[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] repair a damaged vg



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]