LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   lvm snapshot cannot work when it takes on mounting files from network, so does zfs (https://www.linuxquestions.org/questions/linux-server-73/lvm-snapshot-cannot-work-when-it-takes-on-mounting-files-from-network-so-does-zfs-4175554269/)

sunrise2015 09-23-2015 03:55 AM

lvm snapshot cannot work when it takes on mounting files from network, so does zfs
 
I wanted to use snapshot to backup data from my windows on my openfiler, so I used lvm create a logic volume, and mounted it on /mnt/vg1/lv1, then I mounted windows files through cifs on /mnt/vg1/lv1/windows,then take a snapshot for lv1, but when I mounted the snapshot on /mnt/vg1/snapshot_lv1
there was nothing in /mnt/vg1/lv1/windows, why? I try this on zfs, there is also nothing. However, my boss told me that NetApp could. I cannot find solution with openfiler, can it do this with openfiler? I want to know how, so I ask for help here. so badly my English. thank you.

/dev/random 09-24-2015 10:53 AM

Quote:

Originally Posted by sunrise2015 (Post 5424377)
I wanted to use snapshot to backup data from my windows on my openfiler, so I used lvm create a logic volume, and mounted it on /mnt/vg1/lv1, then I mounted windows files through cifs on /mnt/vg1/lv1/windows,then take a snapshot for lv1, but when I mounted the snapshot on /mnt/vg1/snapshot_lv1
there was nothing in /mnt/vg1/lv1/windows, why? I try this on zfs, there is also nothing. However, my boss told me that NetApp could. I cannot find solution with openfiler, can it do this with openfiler? I want to know how, so I ask for help here. so badly my English. thank you.


Hi Sunrise, that will never work, what you did was crate a LVM volume and mount over top of the volume, which means nothing on the LVM volume was written, you have just mounted your windows share ontop of the same mount point...

In Windows lingo, (if windows would let you) you have essentially renamed drive D: to C: without updating the original drive C: drive letter so now they are both drive C: then wondered were everything on the old drive C: went...

You can't use LVM snapshots externally, all snapshots must be within an LVM volume, you can't mount something over top of it and try to snapshot it, it doesn't work that way.

sunrise2015 09-24-2015 08:25 PM

Hi /dev/random, thank you very much for your replay. I agree your point that it cannot work that way with LVM snapshot, but I learn that at least snapshotroot can do it, do you know any opensource applications can do it? And as I know all snapshots are for a volume or a file system, do you know any snapshot applications can make snapshot for files or directories? Thank you again.

/dev/random 09-25-2015 01:15 PM

Quote:

Originally Posted by sunrise2015 (Post 5425264)
Hi /dev/random, thank you very much for your replay. I agree your point that it cannot work that way with LVM snapshot, but I learn that at least snapshotroot can do it, do you know any opensource applications can do it? And as I know all snapshots are for a volume or a file system, do you know any snapshot applications can make snapshot for files or directories? Thank you again.

Try rsnapshot

sunrise2015 09-25-2015 08:00 PM

Quote:

Originally Posted by /dev/random (Post 5425640)
Try rsnapshot

Thank you!!!


All times are GMT -5. The time now is 04:40 PM.