On Wed, Aug 20, 2003 at 04:45:32PM +0200, Sascha Reetz wrote: > Hallo, > > I am a lvm running with several hard disks. One of the hard disks > died. > > What can I do, to have access to left data? LVM1, I assume ? Raplace the dead hard disk with one of the same size, pvcreate the new one and vgcfgrestore the data to it. Run "vgscan ; vgchange -ay" afterwards (which will probably run anyway in one of your boot scripts). - Or - Install device-mapper and LVM2 and use LVM2's partial activation feature (vgchange -ay -P). You must recreate the VG after you saved any data still accessible. - Or - if you want a quick hack taking the risk that accessing parts of logical volumes mapped to the dead disk (assuming your volume grous name is "VG" and that VG is the only one in the system): # mkdir /etc/lvmtab.d # cp /etc/lvmconf/VG.conf /etc/lvmtab.d/ # echo -ne "VG\0" > /etc/lvmtab # vgchange -ay That should get you temporary access to all data you still _can_ access. Save it and if you don't replace the failed disk, recreate your volume group, logical volumes and filesystems in order to restore your data. > > > > -- > ... in diesem Sinne ... > Sascha Reetz +---------------------------------+ > ------++-------++------ | Website : http://www.reetz.de | > || || | ICQ UNI : 20345264 | > +-----++-------++--------------+ Tkom-Net: 0173 - 2643341 +-- > ==================================================================== > = Die letzten Worte ... ...eines Chemikers = > = ''Muß das warm werden?'' = > ==================================================================== > > > > _______________________________________________ > linux-lvm mailing list > linux-lvm@sistina.com > http://lists.sistina.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ -- 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://tldp.org/HOWTO/LVM-HOWTO/