stupid question about pvdisplay, just to be sure.

2011-10-12 Thread Hendrik Boom
Just to be sure in case I misunderstand and do something really stupid:

When pvdisplay says

april:/farhome/hendrik# pvdisplay
  --- Physical volume ---
  PV Name   /dev/md0
  VG Name   VG1
  PV Size   673.62 GiB / not usable 3.00 MiB
  Allocatable   yes 
  PE Size   4.00 MiB
  Total PE  172445
  Free PE   59037
  Allocated PE  113408
  PV UUID   OsiEMf-FpfL-rc95-vV7a-QuJ3-EtUI-w0g7Bb
   
april:/farhome/hendrik# 


does that mean that /dev/md0 still has 59037*4.00 = 236148 mebibytes of 
free space left to be allocated to logical volumes?

-- hendrik


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/j74821$oe5$1...@dough.gmane.org



Re: stupid question about pvdisplay, just to be sure.

2011-10-12 Thread Camaleón
On Wed, 12 Oct 2011 14:26:09 +, Hendrik Boom wrote:

 Just to be sure in case I misunderstand and do something really stupid:
 
 When pvdisplay says
 
 april:/farhome/hendrik# pvdisplay
   --- Physical volume ---
   PV Name   /dev/md0
   VG Name   VG1
   PV Size   673.62 GiB / not usable 3.00 MiB 
   Allocatable   yes
   PE Size   4.00 MiB
   Total PE  172445
   Free PE   59037
   Allocated PE  113408
   PV UUID   OsiEMf-FpfL-rc95-vV7a-QuJ3-EtUI-w0g7Bb

 april:/farhome/hendrik#
 
 
 does that mean that /dev/md0 still has 59037*4.00 = 236148 mebibytes of
 free space left to be allocated to logical volumes?

Mmm... I've been reading the man page for pvdisplay and seems a bit 
cryptic (to me at least that know nothing about LVM :-) ).

What's the output of pvdisplay -s? Let's see if both values (~230 GiB) 
match.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.10.12.15.53...@gmail.com



Re: stupid question about pvdisplay, just to be sure.

2011-10-12 Thread Hendrik Boom
On Wed, 12 Oct 2011 15:53:30 +, Camaleón wrote:

 On Wed, 12 Oct 2011 14:26:09 +, Hendrik Boom wrote:
 
 Just to be sure in case I misunderstand and do something really stupid:
 
 When pvdisplay says
 
 april:/farhome/hendrik# pvdisplay
   --- Physical volume ---
   PV Name   /dev/md0
   VG Name   VG1
   PV Size   673.62 GiB / not usable 3.00 MiB
   Allocatable   yes
   PE Size   4.00 MiB
   Total PE  172445
   Free PE   59037
   Allocated PE  113408
   PV UUID   OsiEMf-FpfL-rc95-vV7a-QuJ3-EtUI-w0g7Bb

 april:/farhome/hendrik#
 
 
 does that mean that /dev/md0 still has 59037*4.00 = 236148 mebibytes of
 free space left to be allocated to logical volumes?
 
 Mmm... I've been reading the man page for pvdisplay and seems a bit
 cryptic (to me at least that know nothing about LVM :-) ).
 
 What's the output of pvdisplay -s? Let's see if both values (~230 GiB)
 match.

april:/farhome/hendrik# pvdisplay -s
  Device /dev/md0 has a capacity of 230.61 GiB
april:/farhome/hendrik# 

Indeed it does say approx 230GiB.  This looks promising, except that the 
man page for pvdisplay says

   -s, --short
  Only display the size of the given physical volumes.

so I'd expect it to report the size (673.62 GiB), instead of the free 
space.  Is this a bug or a feature?

-- hendrik


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/j74fg2$fpt$1...@dough.gmane.org



Re: stupid question about pvdisplay, just to be sure.

2011-10-12 Thread Camaleón
On Wed, 12 Oct 2011 16:33:06 +, Hendrik Boom wrote:

 On Wed, 12 Oct 2011 15:53:30 +, Camaleón wrote:

(...)

 does that mean that /dev/md0 still has 59037*4.00 = 236148 mebibytes
 of free space left to be allocated to logical volumes?
 
 Mmm... I've been reading the man page for pvdisplay and seems a bit
 cryptic (to me at least that know nothing about LVM :-) ).
 
 What's the output of pvdisplay -s? Let's see if both values (~230
 GiB) match.
 
 april:/farhome/hendrik# pvdisplay -s
   Device /dev/md0 has a capacity of 230.61 GiB
 april:/farhome/hendrik#
 
 Indeed it does say approx 230GiB.  This looks promising, except that the
 man page for pvdisplay says
 
-s, --short
   Only display the size of the given physical volumes.
 
 so I'd expect it to report the size (673.62 GiB), instead of the free
 space.  Is this a bug or a feature?

Yep, that's why I say I found it cryptic :-)

However, a Google search on that parameter (-s) reveals that is used to 
know the available physical space on that volume. Go figure... maybe an 
outdated man page? :-?

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.10.12.17.01...@gmail.com



Re: stupid question about pvdisplay, just to be sure.

2011-10-12 Thread Tom H
On Wed, Oct 12, 2011 at 10:26 AM, Hendrik Boom hend...@topoi.pooq.com wrote:

 april:/farhome/hendrik# pvdisplay
  --- Physical volume ---
  PV Name               /dev/md0
  VG Name               VG1
  PV Size               673.62 GiB / not usable 3.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              172445
  Free PE               59037
  Allocated PE          113408
  PV UUID               OsiEMf-FpfL-rc95-vV7a-QuJ3-EtUI-w0g7Bb

 does that mean that /dev/md0 still has 59037*4.00 = 236148 mebibytes of
 free space left to be allocated to logical volumes?

Yes. vgdisplay should give you the same info - unless you have more
than one PV, in which case you might have more Free PE.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SyJD1A_VjaLTaVZ6jYj=gh3yk5ukc4--jqogoszdl6...@mail.gmail.com



Re: stupid question about pvdisplay, just to be sure.

2011-10-12 Thread Stefan Monnier
 Just to be sure in case I misunderstand and do something really stupid:
 When pvdisplay says

 april:/farhome/hendrik# pvdisplay
   --- Physical volume ---
   PV Name   /dev/md0
   VG Name   VG1
   PV Size   673.62 GiB / not usable 3.00 MiB
   Allocatable   yes 
   PE Size   4.00 MiB
   Total PE  172445
   Free PE   59037
   Allocated PE  113408
   PV UUID   OsiEMf-FpfL-rc95-vV7a-QuJ3-EtUI-w0g7Bb
   
 april:/farhome/hendrik# 

 does that mean that /dev/md0 still has 59037*4.00 = 236148 mebibytes of 
 free space left to be allocated to logical volumes?

I don't know, but pvs gives that information in a sweet and short way.


Stefan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/jwv62jtbnow.fsf-monnier+gmane.linux.debian.u...@gnu.org