[linux-lvm] vgreduce --removemissing

jheiss-lvm at ofb.net jheiss-lvm at ofb.net
Sat Jun 25 03:14:46 UTC 2005


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.

[root at 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 at 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 at 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

-- 
Jason Heiss
PGP key:  http://ofb.net/~jheiss/jheiss.pgp.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050624/8685d776/attachment.sig>


More information about the linux-lvm mailing list