Skip to contentSkip to conversation

vgreduce --removemissing

linux-lvm [email protected] 2 participants 2 messages Jun 25, 2005

lore
Share & tools
lore
#0 lore raw

I have a VG which had two LVs. I removed the drives for the second LV from the system without disabling the LV or otherwise letting LVM know. Now LVM refuses to start the VG back up (which is reasonable behavior). However, I wish to inform LVM that the two drives I removed are not going to reappear, and I would like it to start up and just give me the remaining LV. The --removemissing flag to vgreduce seems like it should be exactly what I'm looking for, and when run indicates that it is doing the right thing. But it doesn't seem to actually make any changes. Anyone know what's going on?

[root@typhoon ~]# pvdisplay
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'. --- Physical volume ---

  PV Name               /dev/sda1
  VG Name               typhoon
  PV Size               186.28 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              5961
  Free PE               0
  Allocated PE          5961
  PV UUID               tVs73X-iCjn-JkPe-uakW-teze-yCXX-LegeRB

--- Physical volume ---

  PV Name               unknown device
  VG Name               typhoon
  PV Size               186.28 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              5961
  Free PE               0
  Allocated PE          5961
  PV UUID               5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA

--- Physical volume ---

  PV Name               unknown device
  VG Name               typhoon
  PV Size               111.78 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3577
  Free PE               0
  Allocated PE          3577
  PV UUID               O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt

[root@typhoon ~]# vgreduce --removemissing --verbose typhoon
Finding volume group "typhoon"
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find all physical volumes for volume group typhoon. Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'.
Archiving volume group "typhoon" metadata.
typhoon/backups has missing extents: removing (including dependencies) Deactivating (if active) logical volume backups
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'.
Found volume group "typhoon"
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'.
Found volume group "typhoon"
Removing LV backups from VG typhoon
typhoon/backups has missing extents: removing (including dependencies) Deactivating (if active) logical volume backups
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'.
Found volume group "typhoon"
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'.
Found volume group "typhoon"
Removing LV backups from VG typhoon
[root@typhoon ~]# pvdisplay
Couldn't find device with uuid '5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA'. Couldn't find device with uuid 'O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt'. --- Physical volume ---

  PV Name               /dev/sda1
  VG Name               typhoon
  PV Size               186.28 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              5961
  Free PE               0
  Allocated PE          5961
  PV UUID               tVs73X-iCjn-JkPe-uakW-teze-yCXX-LegeRB

--- Physical volume ---

  PV Name               unknown device
  VG Name               typhoon
  PV Size               186.28 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              5961
  Free PE               0
  Allocated PE          5961
  PV UUID               5Ztw2o-Ooa8-AYX3-XE56-HR9T-uRQI-75YTuA

--- Physical volume ---

  PV Name               unknown device
  VG Name               typhoon
  PV Size               111.78 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3577
  Free PE               0
  Allocated PE          3577
  PV UUID               O4kqGt-VEKo-yavU-R8yN-PGjF-mWjF-a9tdWt
Signature · 2 lines
Jason Heiss
PGP key:  http://ofb.net/~jheiss/jheiss.pgp.txt