[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

> On Wed, 12 Oct 2011 14:26:09 +0000, 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


Reply to: