I am testing an LVM configuration in VirtualBox. The VM has 2 - 20 GB disks.
Disk 1:
sda1 - 250 MB, raid 1, ext2, /boot
sda2 - 2 GB, raid 1, swap
sda3 - 8 GB ext 4 , /
sda5 - 10 GB, LVM, vg: data, lv: home /home
Disk 2:
sdb1 - 250 MB, raid 1, ext2, /boot
sdb2 - 2 GB, raid 1, swap
sdb3 - 8 GB ext 4 , /
sdb5 - 10 GB, LVM vg: data
Installed ok and boots ok.
changed home lv to mirrored with:
lvchange -m1 --mirrorlog mirrored data/home
Command completes as expected. Reboots ok.
Shutdown VM. Remove one of the disks. Boots to "unable to mount /home" error message. Press 'm' for manual recovery.
pvscan shows /dev/sda5 as vg: data and UUID XXXYYY is missing.
vgscan shows could not find device with UUID XXXYYY. Found volume group data.
lvscan shows could not find device with UUID XXXYYY and /dev/data/home as inactive.
My understanding was that the failure of a physical disk would cause mirrored volume to be changed to a linear volume and continue.
Can someone shed some light on this?
Bookmarks