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@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 -- Jason Heiss PGP key: http://ofb.net/~jheiss/jheiss.pgp.txt
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ 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/