[linux-lvm] Re: One PV destroyed - now the whole VG isn't working anymore

Samuel Leuthold sam at asgard.ch
Mon Nov 3 15:56:02 UTC 2003


I have the same Problem as Sebastian. I have 3 disks in my LV. The third one
has badblocks. The Data isn't nessecary on this disk.
So can i release the third disk from the LV, reformat and rebind into it
without loosing the data on disk1 and 2?? And what about the reiser? Is it
consistent after this "hack"??

disk1 /dev/hdb
disk2 /dev/hdc
disk3 /dev/hdd  <-- the faulty one and the last joined to the LV

Can i do it with these commands?? What is different? Whats the meaning of
the "0" in storage\0 ??

mkdir /etc/lvmtab.d
cp /etc/lvmconf/storage.conf /etc/lvmtab.d/storage
echo -ne "storage\0" > /etc/lvmtab
vgchange -ay storage

Please help... i don't want to lose 240GB!

Thanks for help!

Message: 5
Date: Mon, 3 Nov 2003 11:05:55 +0100
From: "Heinz J . Mauelshagen" <mauelshagen at sistina.com>
To: linux-lvm at sistina.com
Subject: Re: [linux-lvm] One PV destroyed - now the whole VG isn't working
Reply-To: linux-lvm at sistina.com


you either want to use LVM2/device-mapper and try the "vgchange -P ..."
option to activate partially available VGs


a quick hack to get LVM1 going:

mkdir /etc/lvmtab.d
cp /etc/lvmconf/storage.conf /etc/lvmtab.d/storage
echo -ne "storage\0" > /etc/lvmtab
vgchange -ay storage

If you have those contents in /etc/lvmtab and /etc/lvmtab.d/storage restored
anyway, "vgchange -ay storage" is all you need to do.

Either way presumes, that enough logical extends are accessable fine. Backup
your data and recreate the VG afterwards.

Heinz    -- The LVM Guy --

More information about the linux-lvm mailing list