Skip to contentSkip to conversation

snapshot on 6.8.5/FC development

linux-lvm Gunnar Hilling 3 participants 3 messages Sep 16, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I just tried the lvm2/dm-snapshot feature and failed miserably... After reading some older postings in this and the dm-devel mailing lists I'm not sure what to do:

setup:
lvm2-2.0.21
kernel-2.6.8
xfs

VG-Size: 4G on Raid-Mirror (/dev/md1)
LV-Size: 1G

Calling:

lvcreate --snapshot --size 100m --name snap /dev/TestMirrorGroup/OnlineVol

will block forever. I have to reboot the computer. After that /dev/TestMirrorGroup/snap is there...

I froze xfs before (xfs_freeze -f)

Any Clue? Is this related to xfs-FS only or do there exist general problems (I read somewhere about problems snapshotting raids...)

BTW: Why isn't it possible to create the snapshot on another VG than the original. This would be quite nice becauce in a typical setup it could be an advantate to have the snapshot on a small extra disk, keeping the original data separated from the writes to the snapshot.

Any help appreciated,

-Gunnar

#1 lore raw
Quoted 1 line · Gunnar Hilling

Hello,

Hi,

Quoted 5 lines

I just tried the lvm2/dm-snapshot feature and failed miserably... After reading some older postings in this and the dm-devel mailing lists I'm not sure what to do:

[...]

Quoted 5 lines

lvcreate --snapshot --size 100m --name snap /dev/TestMirrorGroup/OnlineVol

will block forever. I have to reboot the computer. After that /dev/TestMirrorGroup/snap is there...

/dev/TestMirrorGroup/OnlineVol is your root filesystem? I have the same problem. Snapshots on other (non root fs) work for me.

AFAIK snapshots and pvmove do not work on the filesystem where the lvm-tools reside. I hope this will change in the (not so distant) future as I need snapshots on root-fs.

regards
Thomas

#2 lore raw

Thanks,

But no, it's not my root filesystem. Seems that the snapshot feature ist, well, not quite ready for use.

-Gunnar

Quoted 33 lines · Gunnar Hilling
Quoted 1 line

Hello,

Hi,

Quoted 5 lines

I just tried the lvm2/dm-snapshot feature and failed miserably... After reading some older postings in this and the dm-devel mailing lists I'm not sure what to do:

[...]

Quoted 5 lines

lvcreate --snapshot --size 100m --name snap /dev/TestMirrorGroup/OnlineVol

will block forever. I have to reboot the computer. After that /dev/TestMirrorGroup/snap is there...

/dev/TestMirrorGroup/OnlineVol is your root filesystem? I have the same problem. Snapshots on other (non root fs) work for me.

AFAIK snapshots and pvmove do not work on the filesystem where the lvm-tools reside. I hope this will change in the (not so distant) future as I need snapshots on root-fs.

regards
Thomas
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/