* [linux-lvm] Mapping between PEs and Logical Volumes.
@ 2005-02-06 15:44 fromkth+lvm
2005-02-06 18:12 ` [linux-lvm] Mapping between PEs and Logical Volumes - Remapping of PEs in a Volume Group whic is on one PV Ajeet Nankani
2005-02-07 23:31 ` [linux-lvm] Mapping between PEs and Logical Volumes James Parsons
0 siblings, 2 replies; 4+ messages in thread
From: fromkth+lvm @ 2005-02-06 15:44 UTC (permalink / raw)
To: LVM general discussion & development
Hi,
I have one Volume Group and it contains two Logical Volumes.
There are many free PEs in Volume Group.
I want to know which PEs inside a Physical Volume(Volume Group) are
assigned to which Logical Volume.
So which command shows this.
Thanks.
-ajeet.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Mapping between PEs and Logical Volumes - Remapping of PEs in a Volume Group whic is on one PV
2005-02-06 15:44 [linux-lvm] Mapping between PEs and Logical Volumes fromkth+lvm
@ 2005-02-06 18:12 ` Ajeet Nankani
2005-02-07 23:31 ` [linux-lvm] Mapping between PEs and Logical Volumes James Parsons
1 sibling, 0 replies; 4+ messages in thread
From: Ajeet Nankani @ 2005-02-06 18:12 UTC (permalink / raw)
To: LVM general discussion and development
Ok i have figured it out that
lvdisplay -m
command shows the mapping of PEs and Logical Volumes.
and in my case it shows that total PEs are 266 that means from 0 to 265,
allocated are 224 and 42 are free PEs
Logical Volume 0 is from 0 to 191 PEs = 192 PEs
and Logical Volume 1 is from 233 to 264 = 32 PEs
so total is 224 PEs
and in between these 2 logical volumes 41 PEs(PE# 191 to 232) are free
and 1 PE (PE#265) is free at the end after 2nd logical Volume.
Now i want to be LogVols in VolGroup to be contiguous physically, such
that logical Volume 0 remains on 0 to 191 PEs and logical volume 1
should start from PE 192 and finishes at PE 223.
I figured it out that for this shuffling of PEs the command should be,
# pvmove -v /dev/hda6:233-264 /dev/hda6:192-223
which gives following error
Finding volume group "VolGroup00"
No extents available for allocation
or
# pvmove -v -n /dev/Volgroup00/logVol01 /dev/hda6 /dev/hda6:192-223
which gives following error
Named LV and old PV must be in the same VG
pvmove: Move extents from one physical volume to another
in both cases i cant figure out what is the problem as there are PEs
available and also LV and the "old PV" infact are in same VG.
I have also tried the simple command
# pvmove -v -n /dev/Volgroup00/logVol01
which does not give any error, but do nothing as the mapping remains
same.
anybody here to help me out?
-ajeet.
On Sun, 06 Feb 2005 07:44:25 -0800, fromkth+lvm@fastmail.fm said:
> Hi,
>
> I have one Volume Group and it contains two Logical Volumes.
> There are many free PEs in Volume Group.
> I want to know which PEs inside a Physical Volume(Volume Group) are
> assigned to which Logical Volume.
>
> So which command shows this.
>
>
> Thanks.
>
> -ajeet.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Mapping between PEs and Logical Volumes - Remapping of PEs in a Volume Group whic is on one PV
@ 2005-02-06 18:20 fromkth+lvm
0 siblings, 0 replies; 4+ messages in thread
From: fromkth+lvm @ 2005-02-06 18:20 UTC (permalink / raw)
To: LVM general discussion and development
Ok i have figured it out that
lvdisplay -m
command shows the mapping of PEs and Logical Volumes.
and in my case it shows that total PEs are 266 that means from 0 to 265,
allocated are 224 and 42 are free PEs
Logical Volume 0 is from 0 to 191 PEs = 192 PEs
and Logical Volume 1 is from 233 to 264 = 32 PEs
so total is 224 PEs
and in between these 2 logical volumes 41 PEs(PE# 191 to 232) are free
and 1 PE (PE#265) is free at the end after 2nd logical Volume.
Now i want to be LogVols in VolGroup to be contiguous physically, such
that logical Volume 0 remains on 0 to 191 PEs and logical volume 1
should start from PE 192 and finishes at PE 223.
I figured it out that for this shuffling of PEs the command should be,
# pvmove -v /dev/hda6:233-264 /dev/hda6:192-223
which gives following error
Finding volume group "VolGroup00"
No extents available for allocation
or
# pvmove -v -n /dev/Volgroup00/logVol01 /dev/hda6 /dev/hda6:192-223
which gives following error
Named LV and old PV must be in the same VG
pvmove: Move extents from one physical volume to another
in both cases i cant figure out what is the problem as there are PEs
available and also LV and the "old PV" infact are in same VG.
I have also tried the simple command
# pvmove -v -n /dev/Volgroup00/logVol01
which does not give any error, but do nothing as the mapping remains
same.
anybody here to help me out?
-ajeet.
On Sun, 06 Feb 2005 07:44:25 -0800, fromkth+lvm@fastmail.fm said:
> Hi,
>
> I have one Volume Group and it contains two Logical Volumes.
> There are many free PEs in Volume Group.
> I want to know which PEs inside a Physical Volume(Volume Group) are
> assigned to which Logical Volume.
>
> So which command shows this.
>
>
> Thanks.
>
> -ajeet.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Mapping between PEs and Logical Volumes.
2005-02-06 15:44 [linux-lvm] Mapping between PEs and Logical Volumes fromkth+lvm
2005-02-06 18:12 ` [linux-lvm] Mapping between PEs and Logical Volumes - Remapping of PEs in a Volume Group whic is on one PV Ajeet Nankani
@ 2005-02-07 23:31 ` James Parsons
1 sibling, 0 replies; 4+ messages in thread
From: James Parsons @ 2005-02-07 23:31 UTC (permalink / raw)
To: LVM general discussion and development
fromkth+lvm@fastmail.fm wrote:
>Hi,
>
>I have one Volume Group and it contains two Logical Volumes.
>There are many free PEs in Volume Group.
>I want to know which PEs inside a Physical Volume(Volume Group) are
>assigned to which Logical Volume.
>
>So which command shows this.
>
>
There is a GUI for LVM2 that is included in the latest Fedora release
called system-config-lvm that visually displays the mapping between PVs
and LVs. Here is the rpmfind URL:
http://fr.rpmfind.net/linux/RPM/fedora/devel/x86_64/system-config-lvm-0.9.18-1.1.noarch.html
system-config-lvm has undergone a couple of rounds of QA. It will NOT
work with the very latest (lvm2-2.01.03-1.0) LVM2 package, due to a
path issue discovered today and being addressed now, but will work just
fine between lvm2-2.00.25-1.01 and the version listed above.
This version of system-config-lvm is the first GA version. It is under
active development, and near term planned features include support for
snapshotting and resizing, as well as fixes for some UI nits. Try it
out, and please report any bugs you find or features/changes you would
like to see.
Regards,
-Jim Parsons
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-02-07 23:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-06 15:44 [linux-lvm] Mapping between PEs and Logical Volumes fromkth+lvm
2005-02-06 18:12 ` [linux-lvm] Mapping between PEs and Logical Volumes - Remapping of PEs in a Volume Group whic is on one PV Ajeet Nankani
2005-02-07 23:31 ` [linux-lvm] Mapping between PEs and Logical Volumes James Parsons
-- strict thread matches above, loose matches on Subject: below --
2005-02-06 18:20 [linux-lvm] Mapping between PEs and Logical Volumes - Remapping of PEs in a Volume Group whic is on one PV fromkth+lvm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox