Re: LVM snapshotting broken?

Andrea Arcangeli
2000-10-27T13:45:03Z

On Fri, Oct 27, 2000 at 11:32:06AM -0200, Rik van Riel wrote:
> Have you checked if the CONTENT of the snapshot is indeed
> the right LV and not the other one?

laser:~ # mke2fs /dev/vg1/lv1 &>/dev/null
laser:~ # mount /dev/vg1/lv1 /mnt
laser:~ # >/mnt/ciao
laser:~ # ls /mnt
. .. ciao lost+found
laser:~ # umount /mnt
laser:~ # lvcreate -s -n lv1-snap /dev/vg1/lv1 -L 400M
lvcreate -- INFO: using default snapshot chunk size of 64 KB
lvcreate -- doing automatic backup of "vg1"
lvcreate -- logical volume "/dev/vg1/lv1-snap" successfully created

laser:~ # mount /dev/vg1/lv1 /mnt
laser:~ # rm /mnt/ciao
laser:~ # umount /mnt
laser:~ # mount /dev/vg1/lv1-snap /mnt
mount: block device /dev/vg1/lv1-snap is write-protected, mounting read-only
laser:~ # ls /mnt/
. .. ciao lost+found
laser:~ #

Andrea