* [linux-lvm] pvresize missing 500GB or more
@ 2013-06-25 21:45 Marc Roos
2013-06-25 23:32 ` Lars Ellenberg
0 siblings, 1 reply; 2+ messages in thread
From: Marc Roos @ 2013-06-25 21:45 UTC (permalink / raw)
To: linux-lvm
We have a reshaped a raid5 array from 11TB to 14TB, on top of this we
have a drbd device that resized to 14994.5 GB, 14994541563904 bytes,
but after the pvresize I have
pvdisplay
--- Physical volume ---
PV Name /dev/drbd21
VG Name VGstorage21
PV Size 13.64 TB / not usable 948.00 KB
Allocatable yes
PE Size (KByte) 4096
Total PE 3574977
Free PE 717377
Allocated PE 2857600
Is it normal to have this much loss?
Thanks in advance,
Marc
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -.
F1 Outsourcing Development Sp. z o.o.
Poland
t: +48 (0)124466845
f: +48 (0)124466843
e: marc@f1-outsourcing.eu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] pvresize missing 500GB or more
2013-06-25 21:45 [linux-lvm] pvresize missing 500GB or more Marc Roos
@ 2013-06-25 23:32 ` Lars Ellenberg
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2013-06-25 23:32 UTC (permalink / raw)
To: linux-lvm
On Tue, Jun 25, 2013 at 11:45:59PM +0200, Marc Roos wrote:
>
> We have a reshaped a raid5 array from 11TB to 14TB, on top of this we
> have a drbd device that resized to 14994.5 GB, 14994541563904 bytes,
> but after the pvresize I have
>
>
> pvdisplay
> --- Physical volume ---
> PV Name /dev/drbd21
> VG Name VGstorage21
> PV Size 13.64 TB / not usable 948.00 KB
> Allocatable yes
> PE Size (KByte) 4096
> Total PE 3574977
> Free PE 717377
> Allocated PE 2857600
>
>
> Is it normal to have this much loss?
>
> Thanks in advance,
> Marc
Don't confuse SI units with "binary" units.
pvdisplay TB are actually TiB.
1000 != 1024
1000 * 1000 * 1000 * 1000 != 1024 * 1024 * 1024 * 1024
x**y --> x to the power of y
10**12 / 2**40 = 0.91
2**40 / 10**12 = 1.1
14994541563904 / 2 ** 40
13.64
So yes, in the "terra" range,
it is normal to have about 10 percent "loss"
due to "unit confusion".
more recent LVM tools try to make that clear by using
TB, GB vs TiB, GiB and so on.
you can specify --units in lower case letters for "base 1024",
upper case for "base 1000" units.
pvdisplay --units t
pvdisplay --units T
pvdisplay --units g
pvdisplay --units G
(same goes for all lvm tools)
Lars
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD� and LINBIT� are registered trademarks of LINBIT, Austria.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-25 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 21:45 [linux-lvm] pvresize missing 500GB or more Marc Roos
2013-06-25 23:32 ` Lars Ellenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).