linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] vgreduce --removemissing
@ 2005-06-25  3:14 jheiss-lvm
  0 siblings, 0 replies; 4+ messages in thread
From: jheiss-lvm @ 2005-06-25  3:14 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 4799 bytes --]

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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [linux-lvm] vgreduce --removemissing
@ 2005-06-25  5:24 jheiss-lvm
  2005-06-25 15:30 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: jheiss-lvm @ 2005-06-25  5:24 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 4829 bytes --]

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

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


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [linux-lvm] vgreduce --removemissing
@ 2005-06-25 17:07 jheiss-lvm
  0 siblings, 0 replies; 4+ messages in thread
From: jheiss-lvm @ 2005-06-25 17:07 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1986 bytes --]

--partial doesn't seem to be a valid option for vgreduce.

Or did you mean something like 'lvchange -ay --partial /dev/typhoon/backup'
or 'vgchange -ay --partial typhoon'?

[root@typhoon ~]# lvchange -ay --partial /dev/typhoon/backup
  Partial mode. Incomplete volume groups will be activated read-only.
  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'.
  One or more specified logical volume(s) not found.                            [root@typhoon ~]# vgchange -ay --partial typhoon
  Partial mode. Incomplete volume groups will be activated read-only.
  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'.
  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'.
  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'.
  device-mapper ioctl cmd 9 failed: Invalid argument
  Couldn't load device 'typhoon-backups'.
  2 logical volume(s) in volume group "typhoon" now active                      

The end result is roughly what the messages indicate, the remaining good
LV is made available read-only.  However, lvdisplay and vgdisplay both
still fail and I'm no closer to dumping the unwanted LV and establishing
a clean configuration.

As for versions, I'm running FC3 patched up to the latest and greatest:

[root@typhoon ~]# rpm -q lvm2
lvm2-2.00.25-1.01
[root@typhoon ~]# uname -a
Linux typhoon.aput.net 2.6.11-1.27_FC3 #1 Tue May 17 20:27:37 EDT 2005 i686 athlon i386 GNU/Linux

Jason

On Jun 25, 2005, at 8:30 AM, Alasdair G Kergon wrote:
> 
> --partial  ?
> 
> else what version?
> 

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


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-25 17:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-25  3:14 [linux-lvm] vgreduce --removemissing jheiss-lvm
  -- strict thread matches above, loose matches on Subject: below --
2005-06-25  5:24 jheiss-lvm
2005-06-25 15:30 ` Alasdair G Kergon
2005-06-25 17:07 jheiss-lvm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).