In <[🔎] jwvwsap9oo1.fsf-monnier+gmane.linux.debian.user@gnu.org>, Stefan Monnier wrote: >> What happens if, for whatever reason, just one of the disks is >> available? > >You lose it all (pretty much). For that reason, it's not recommended, >unless you have backups elsewhere. You don't really lose it all. If the disk is just unavailable, the VG is just unavailable. Bringing both disks on-line simultaneously will restore your access to the VG and all its LVs. If one disk dies or gets corrupted, you can still recover some of the data on the other disk. LVs that reside only on the good disk(s) will be completely safe. LVs that reside only on the bad disk(s) will be entirely lost. For accessing LVs that have segments allocated from both disks, you can get the old PV's UUID from the VGDA backups (or the good disk) and create a new PV with the same UUID. Then, you can fsck your file systems and continue with data recovery. It's not pretty, and you'll almost certainly lose more data than if the disks were completely separate file systems, but you should be able to recover some data. You can make this easier by making sure a backup file system header is stored on each disk. IMO, LVM is a replacement for partition tables not for RAID or backups. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
Attachment:
signature.asc
Description: This is a digitally signed message part.