mirror of https://github.com/tLDP/LDP
o add faq entry about human readable size rounding
This commit is contained in:
parent
7945cac93b
commit
d758c2a543
|
@ -17,6 +17,16 @@
|
|||
</author>
|
||||
|
||||
<revhistory>
|
||||
|
||||
<revision>
|
||||
<revnumber>0.12</revnumber>
|
||||
<date>2004-06-07</date>
|
||||
<authorinitials>ajl</authorinitials>
|
||||
<revremark>
|
||||
Updated LVM2 FAQ entries
|
||||
</revremark>
|
||||
</revision>
|
||||
|
||||
<revision>
|
||||
<revnumber>0.11</revnumber>
|
||||
<date>2004-05-03</date>
|
||||
|
@ -1013,6 +1023,49 @@ swap /dev/vg00/swap 256 Megabytes
|
|||
</note>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
<qandaentry>
|
||||
<question>
|
||||
<para>
|
||||
I'm trying to fill my vg, and vgdisplay/vgs says that I
|
||||
have 1.87 GB free, but when I do an lvcreate vg -L1.87G
|
||||
it says "insufficient free extends". What's going on?
|
||||
</para>
|
||||
</question>
|
||||
<answer>
|
||||
<para>
|
||||
The 1.87 GB figure is rounded to 2 decimal places, so
|
||||
it's probably 1.866 GB or something. This is a
|
||||
human-readable output to give you a general idea of how
|
||||
big the VG is. If you want to specify an exact size,
|
||||
you must use extents instead of some multiple of bytes.
|
||||
</para>
|
||||
<para>
|
||||
In the case of vgdisplay, use the Free PE count instead
|
||||
of the human readable capacity.
|
||||
<screen>
|
||||
Free PE / Size 478 / 1.87 GB
|
||||
^^^
|
||||
</screen>
|
||||
So, this would indicate that you should do run
|
||||
<screen>
|
||||
# lvcreate vg -l478 </screen> Note that instead of an upper-case 'L',
|
||||
we used a lower-case 'l' to tell lvm to use extents
|
||||
instead of bytes.
|
||||
</para>
|
||||
<para>
|
||||
In the case of vgs, you need to instruct it to tell you how many extents are available:
|
||||
<screen>
|
||||
# vgs -o +vg_free_count,vg_extent_count
|
||||
</screen>
|
||||
This tell vgs to add the free extents and the total
|
||||
number of extents to the end of the vgs listing. Use
|
||||
the free extent number the same way you would in the
|
||||
above vgdisplay case.
|
||||
</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
</qandaset>
|
||||
</sect1>
|
||||
|
||||
|
|
Loading…
Reference in New Issue