Skip to contentSkip to conversation

corrupted VG/LVs

linux-lvm Adrien Farkas 2 participants 2 messages Aug 17, 1999

lore
Share & tools
lore
#0 lore raw

Hi,

somehow I managed to get my volume group vg00 corrupted. I have 7 PVs, some of them are members of (not existing) vg00, some are not. Now my question is how I remove all the dependencies and/or PVs from VG to be able to create new PV/VG/LV? xxremove does not work.

Thanks in advance,

Signature · 6 lines
                                             freddy

----==-- _                      Adrien "freddy" Farkas
---==---(_)__  __ ____  __       [email protected]
--==---/ / _ \/ // /\ \/ /  We all know Linux is great... It
-=====/_/_//_/\_,_/ /_/\_\  does infinite loops in 5 seconds
#1 lore raw

Hi Freddy.

Quoted 2 lines

somehow I managed to get my volume group vg00 corrupted.

Can you recall how this tokk place?

I ask to get an idea if LVM has to be enahnced or fixed.

Quoted 4 lines

I have 7 PVs, some of them are members of (not existing) vg00, some are not. Now my question is how I remove all the dependencies and/or PVs from VG to be able to create new PV/VG/LV? xxremove does not work.

If you want to restore your volume group description to the disks:
------------------------------------------------------------------

Please start by doing a backup of /etc/lvmconf/* because there are up to 10 backups in a history of your volume group configuration.

for p in /dev/YourInvolvedDiskSpecials; do
vgcfgrestore -n YourVolumeGroup -f PathToYourVolumeGroupBackup $p
done

PathToYourVolumeGroupBackup could be /etc/lvmconf/VourVolumeGroupName.conf

- or -

/etc/lvmconf/VourVolumeGroupName.[1-9].conf

BTW: with "vgcfgrestore -n YourVolumeGroup -ll -f PathToYourVolumeGroupBackup
you can look into the backup file and decide, if this is the one you want to be restored.

If you just want to initialize all involved and now useless PVs:
----------------------------------------------------------------

pvcreate -ff /dev/YourPVX ... # insert all involved disk/partition specials

Regards,
Heinz
--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement CS-TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41

                                                 64205 Darmstadt
[email protected]                      Germany
                                                 +49 6151 886-425
                                                          FAX-386

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-