linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* RE: [linux-lvm] Problem with vgreduce on LVM1
@ 2006-08-29 16:41 mghofran
  2006-08-29 18:01 ` Peter Smith
  0 siblings, 1 reply; 8+ messages in thread
From: mghofran @ 2006-08-29 16:41 UTC (permalink / raw)
  To: linux-lvm

You show lv=4 so don't you need to check if any of those lvols were
using that particular disk, remove the lvol and then proceed?

-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com]
On Behalf Of Peter Smith
Sent: Tuesday, August 29, 2006 12:21 PM
To: linux-lvm@redhat.com
Subject: [linux-lvm] Problem with vgreduce on LVM1

I can't seem to remove two physical volumes.  I've removed the LVs on 
them.  I've deactivated the PVs.  But I can not remove the PVs from the
VG.

Here's an example of what I'm seeing:

[root@linux archive]# pvmove -v /dev/emcpowera
pvmove -- checking name of source physical volume "/dev/emcpowera"
pvmove -- locking logical volume manager
pvmove -- reading data of source physical volume from "/dev/emcpowera"
pvmove -- checking volume group existence
pvmove -- reading data of volume group "data" from lvmtab
pvmove -- checking volume group consistency of "data"
pvmove -- searching for source physical volume "/dev/emcpowera" in 
volume group "data"
pvmove -- no logical volumes on empty source physical volume 
"/dev/emcpowera"

[root@linux archive]# vgreduce data /dev/emcpowera
vgreduce -- ERROR: can't reduce volume group "data" by used physical 
volume "/dev/emcpowera"

[root@linux archive]# pvdisplay /dev/emcpowera
--- Physical volume ---
PV Name               /dev/emcpowera
VG Name               data
PV Size               785.10 GB [1646481408 secs] / NOT usable 1 GB 
[LVM: 127 KB]
PV#                   1
PV Status             available
Allocatable           NO
Cur LV                4
PE Size (KByte)       1048576
Total PE              784
Free PE               784
Allocated PE          0
PV UUID               JpYFFb-NUqC-trBf-oFm7-tbdF-65If-GZ56fw

Does anyone have any idea why I can't complete a reduce?

Thanks,
Peter

Note:
Logical Volume Manager 1.0.8-13
Heinz Mauelshagen, Red Hat  03/05/2005 (IOP 10)

_______________________________________________
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [linux-lvm] Problem with vgreduce on LVM1
@ 2006-08-29 16:21 Peter Smith
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Smith @ 2006-08-29 16:21 UTC (permalink / raw)
  To: linux-lvm

I can't seem to remove two physical volumes.  I've removed the LVs on 
them.  I've deactivated the PVs.  But I can not remove the PVs from the VG.

Here's an example of what I'm seeing:

[root@linux archive]# pvmove -v /dev/emcpowera
pvmove -- checking name of source physical volume "/dev/emcpowera"
pvmove -- locking logical volume manager
pvmove -- reading data of source physical volume from "/dev/emcpowera"
pvmove -- checking volume group existence
pvmove -- reading data of volume group "data" from lvmtab
pvmove -- checking volume group consistency of "data"
pvmove -- searching for source physical volume "/dev/emcpowera" in 
volume group "data"
pvmove -- no logical volumes on empty source physical volume 
"/dev/emcpowera"

[root@linux archive]# vgreduce data /dev/emcpowera
vgreduce -- ERROR: can't reduce volume group "data" by used physical 
volume "/dev/emcpowera"

[root@linux archive]# pvdisplay /dev/emcpowera
--- Physical volume ---
PV Name               /dev/emcpowera
VG Name               data
PV Size               785.10 GB [1646481408 secs] / NOT usable 1 GB 
[LVM: 127 KB]
PV#                   1
PV Status             available
Allocatable           NO
Cur LV                4
PE Size (KByte)       1048576
Total PE              784
Free PE               784
Allocated PE          0
PV UUID               JpYFFb-NUqC-trBf-oFm7-tbdF-65If-GZ56fw

Does anyone have any idea why I can't complete a reduce?

Thanks,
Peter

Note:
Logical Volume Manager 1.0.8-13
Heinz Mauelshagen, Red Hat  03/05/2005 (IOP 10)

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

end of thread, other threads:[~2006-09-07 17:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-29 16:41 [linux-lvm] Problem with vgreduce on LVM1 mghofran
2006-08-29 18:01 ` Peter Smith
2006-08-29 19:49   ` Peter Smith
2006-08-29 20:40     ` Peter Smith
2006-08-30  1:13       ` Peter Smith
2006-09-07 17:11         ` Peter Smith
2006-09-07 17:34           ` Peter Smith
  -- strict thread matches above, loose matches on Subject: below --
2006-08-29 16:21 Peter Smith

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).