Bug#484370: lvm2: please consider adding pvinfo to the Debian package

Bastian Blank waldi at debian.org
Wed Jun 4 08:06:18 UTC 2008


On Wed, Jun 04, 2008 at 12:01:25AM +0200, Carsten Hey wrote:
> please consider adding pvinfo, a small perl tool to display the physical
> allocation layout of lvm physical volumes to the Debian package lvm2.
> Maybe upstream is interested too.

Well, pvdisplay provides the same information. At least in current
versions.

> Example:
> $ /home/carsten/bin/pvinfo | head -n 10
>          first/last PE    #PE       device                         first/last LE
> vg: vg_foghorn
>   pv: /dev/hda3
>     (      0 ..    124 (  125 )) -- /dev/vg_foghorn/usr       (      0 ..    124 )
>     (    125 ..    249 (  125 )) -- /dev/vg_foghorn/var       (      0 ..    124 )
>     (    250 ..    499 (  250 )) -- /dev/vg_foghorn/vserver   (      0 ..    249 )
>     (    500 ..    624 (  125 )) -- /dev/vg_foghorn/srv       (      0 ..    124 )
>     (    625 ..    874 (  250 )) -- /dev/vg_foghorn/home      (      0 ..    249 )
>     (    875 ..    999 (  125 )) -- /dev/vg_foghorn/usr       (    125 ..    249 )
>     (   1000 ..   1024 (   25 )) -- /dev/vg_foghorn/srv       (    125 ..    149 )

| # pvdisplay --maps
|   --- Physical volume ---
|   PV Name               /dev/sdb
|   VG Name               vg0_waldi
| [...]
|   --- Physical Segments ---
|   Physical extent 0 to 511:
|     Logical volume      /dev/vg0_waldi/root
|     Logical extents     0 to 511
|   Physical extent 512 to 1040:
|     Logical volume      /dev/vg0_waldi/home
|     Logical extents     3567 to 4095
|   Physical extent 1041 to 1041:
|     FREE
|   Physical extent 1042 to 1045:
|     Logical volume      /dev/vg0_waldi/kernel1_boot_yaboot
|     Logical extents     0 to 3
|   Physical extent 1046 to 1301:
|     Logical volume      /dev/vg0_waldi/kernel1_root
|     Logical extents     0 to 255
| [...]

Bastian

-- 
If some day we are defeated, well, war has its fortunes, good and bad.
		-- Commander Kor, "Errand of Mercy", stardate 3201.7





More information about the pkg-lvm-maintainers mailing list