linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] repair a damaged vg
@ 2009-12-20  0:42 Maurizio Marini Gmail
  0 siblings, 0 replies; only message in thread
From: Maurizio Marini Gmail @ 2009-12-20  0:42 UTC (permalink / raw)
  To: linux-lvm; +Cc: maumar

sorry for cross-posting with fedora mlists.

after  pvcreate /dev/sdc
  Physical volume "/dev/sdc" successfully created


sadly i issued:
 vgextend /dev/mapper/VolGroup01 /dev/sdc
  Volume group "VolGroup01" successfully extended

instead of doing:

 vgextend VolGroup01 /dev/sdc
  Volume group "VolGroup01" successfully extended

I used the wrong syntax.

then i tryied to extend lv

lvextend -l 100%VG  /dev/mapper/VolGroup01-lvol0
  Couldn't find device with uuid
'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
  Extending logical volume lvol0 to 329,99 GB
  Cannot update volume group VolGroup01 while physical volumes are missing.

now i tried to assign that uuid to /dev/sdb, sadly w/out success:

================
pvcreate -u qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF --restorefile
/etc/lvm/archive/VolGroup01_00002.vg /dev/sdb
  Couldn't find device with uuid
'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
  Device /dev/sdb not found (or ignored by filtering).
================
 pvcreate -ff -u qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF --restorefile
/etc/lvm/archive/VolGroup01_00002.vg /dev/sdb
  Couldn't find device with uuid
'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
  Device /dev/sdb not found (or ignored by filtering).
================

 vgreduce -t --removemissing VolGroup01
  Test mode: Metadata will NOT be updated.
  Couldn't find device with uuid
'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
  Couldn't find device with uuid
'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
  WARNING: Partial LV lvol0 needs to be repaired or removed.
  WARNING: There are still partial LVs in VG VolGroup01.
  To remove them unconditionally use: vgreduce --removemissing
--force.
  Proceeding to remove empty missing PVs.


================

is there a clean solution to my fault?

tia

Maurizio

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-20  0:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-20  0:42 [linux-lvm] repair a damaged vg Maurizio Marini Gmail

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).