Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j5P5P6u01669 for ; Sat, 25 Jun 2005 01:25:06 -0400 Received: from ofb3.ofb.net (h34-aclarke.sv.meer.net [205.217.153.34]) by mx3.redhat.com (8.12.11/8.12.11) with ESMTP id j5P5OrL9011323 for ; Sat, 25 Jun 2005 01:24:58 -0400 Date: Fri, 24 Jun 2005 22:24:47 -0700 From: jheiss-lvm@ofb.net Message-ID: <20050625052447.GA28915@ofb.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline Subject: [linux-lvm] vgreduce --removemissing Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have a VG which had two LVs. I removed the drives for the second LV =66rom 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 =20 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 =20 --- Physical volume --- PV Name unknown device VG Name typhoon PV Size 186.28 GB / not usable 0 =20 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 =20 --- Physical volume --- PV Name unknown device VG Name typhoon PV Size 111.78 GB / not usable 0 =20 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 =20 [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 =20 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 =20 --- Physical volume --- PV Name unknown device VG Name typhoon PV Size 186.28 GB / not usable 0 =20 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 =20 --- Physical volume --- PV Name unknown device VG Name typhoon PV Size 111.78 GB / not usable 0 =20 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 --=20 Jason Heiss PGP key: http://ofb.net/~jheiss/jheiss.pgp.txt --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCvOqfmyNX8sTTeO0RAuJrAKCakgYry+UELqQS9mBl06TOvXCM6gCeIorH w8xvztEpTlIolS2GPSGyYFg= =1dhx -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--