LVM (1.0.2 ), ext3 and 'hot' snapshotting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, all.

I work with lvm ( kernel 2.4.17 + ext3-2.4-0.9.17-2418p3 patch )  but i can't 
snapshot a ext3 fs directly
	# lvcreate --snap --name snap --size +1G /dev/vgtest/lvtest
	# mount -o ro -t ext3 /dev/vgtest/lvtest /snap /mnt/snap  
	ext3 can't work , ext2 work

 
If I mount readonly the etx3 filesystem, snapshot-it, and remount rw the 
filesystem ( and ro the snapshot ) it work fine. 
	# mount -o remount,ro /dev/vgtest/test ; 
	# lvcreate --snap --name snap --size +1G /dev/vgtest/lvtest; 
	# mount -o remount,rw /dev/vgtest/test ; 
	# mount -o ro -t ext3 /dev/vgtest/snap /mnt/snap 
	ext3 now work fine, but I must stop all services

I have apply the lvm-lock-patch ( linux-2.4.11-VFS-lock.patch ) , and _now_ I 
can snapshot a ext3 filesystem whitout remounting-it ro.
	# lvcreate --snap --name snap --size +1G /dev/vgtest/lvtest
	# mount -o ro -t ext3 /dev/vgtest /snap /mnt/snap  
	ext3 work fine.

Does anyone have test this patch for production system ?
Does anyone know a test suite for this patch and snapshot ?

TIA





[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux