repair a damaged vg

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

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux