Skip to contentSkip to conversation

Removing PVs from Volume Groups which have allocated LVs

linux-lvm R Ramkumar 3 participants 4 messages May 22, 2008 – May 28, 2008

lore
Share & tools
lore

R Ramkumar

author
#0 lore raw

Hi,

I have a LVM setup where I have a VG with 3 PVs.. I have created 2 LVs from the VG which eventually has taken physical storage space from one or two of the PVs.. Now, when I want to shrink the VG, I need to know the unallocated PV so that I can remove from the VG..

Is there anyway that I can find out which PV is unallocated and which PV to remove from the VG.. Please let me know your views..

Thanks,
Ram

author
#1 lore raw

Hi,

Does any one have any update on this issue? In brief, is it possible to know the PV's which are free (which are not being used by the LVs created) inside a VG so that they can be removed from the VG..

Quoted 1 line
Quoted 1 line
Quoted 1 line

R Ramkumar 05/22/08 6:36 PM >>>

Hi,

I have a LVM setup where I have a VG with 3 PVs.. I have created 2 LVs from the VG which eventually has taken physical storage space from one or two of the PVs.. Now, when I want to shrink the VG, I need to know the unallocated PV so that I can remove from the VG..

Is there anyway that I can find out which PV is unallocated and which PV to remove from the VG.. Please let me know your views..

Thanks,
Ram

#2 lore raw

lvdisplay --maps

also, pvmove can move the data to other PVs before vgreduce.

2008/5/28 R Ramkumar <[email protected]>:

Quoted 23 lines

Hi,

Does any one have any update on this issue? In brief, is it possible to know the PV's which are free (which are not being used by the LVs created) inside a VG so that they can be removed from the VG..

Quoted 1 line
Quoted 1 line
Quoted 1 line

R Ramkumar 05/22/08 6:36 PM >>>

Hi,

I have a LVM setup where I have a VG with 3 PVs.. I have created 2 LVs from the VG which eventually has taken physical storage space from one or two of the PVs.. Now, when I want to shrink the VG, I need to know the unallocated PV so that I can remove from the VG..

Is there anyway that I can find out which PV is unallocated and which PV to remove from the VG.. Please let me know your views..

Thanks,
Ram

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#3 lore raw
In reply to R Ramkumar

Hi all,

I ran onto a similar problem when trying to create a LV where the ramdisk PV came FIRST. It wouldn't do it even though I ordered it first in the list. So what I had to do was create a VG out of the first PV alone, and the LV on it, and then keep adding PV to VG and extend the LV. That resulted in a determinate ordering.

If the composite VG already exists, the only technique I know is to search or even write characteristic data patterns in the LV and also in all the PVs, thus determining offsets :-(

Larry Dickson
Cutting Edge Networked Storage

Quoted 22 lines · R Ramkumar

Hi,

I have a LVM setup where I have a VG with 3 PVs.. I have created 2 LVs from the VG which eventually has taken physical storage space from one or two of the PVs.. Now, when I want to shrink the VG, I need to know the unallocated PV so that I can remove from the VG..

Is there anyway that I can find out which PV is unallocated and which PV to remove from the VG.. Please let me know your views..

Thanks,
Ram

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/