On Tue, Sep 10, 2002 at 03:02:14AM +1000, Jay Hap-hang Yu wrote: > Hi all, > > I know this must be a very common question and has been asked many > times. I'm evaluating LVM and skimmed the LVM-HOWTO. AFAIK there's no > info on what the sysadmin should do in case one of the PVs of a VG > crashes and cannot be remounted. My questions are: > > - will the failure of a single PV take down the whole VG it's in? Yes, unless you temporarily use LVM1.1 and its PV quorum feature or vgcfgrestore the metadata of the failed drive to some other drive (could well be a loop device). Both ways you can activate your VG and retrieve your still accessable data. LVM2 which is our new code base will have quroum support soon too. > - does the entire VG have to be rebuilt? No. > or are there methods to simply > replace the faulty PV with a new HDD and restore the lost data from > backup (assume using linear mode) As mentioned above: use vgcfgrestore and your recent VG metadata archive in directory /etc/lvmconf/ to restore the metadata to some replacement drive. Don't forget to pvcreate the replacement drive before running vgcfgrestore. Run "vgscan ; vgchange -ay" afterwards, BTW: in case you don't want to loose your valuable data as you do in this PV replacement case, you want to think about running RAID > 0 devices as physical volumes either in HW-RAID or using MD. > > Cheers, > -- > > - jhy > > "If you are reading this line you've too much time to waste." -- Regards, Heinz -- The LVM Guy -- *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@Sistina.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _______________________________________________ linux-lvm mailing list linux-lvm@sistina.com http://lists.sistina.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html