[DRBD-user] size in drbd.conf and size of drbd0 should be the same?

Böttcher, Matthias Matthias.Boettcher at evh.de
Fri Aug 29 12:49:49 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


> -----Original Message-----
> From: Alex <linux at vfemail.net>
> Sent: Friday, August 29, 2008 9:22 AM
> To: <drbd-user at lists.linbit.com>
> Subject: Re: [DRBD-user] size in drbd.conf and size of drbd0 should be thesame?
> 
[...]
> 
> Our topic here is: WHY SIZE in drbd.conf and size of /dev/drbd0
> are different and which size is correct: the one in drbd.conf
> 18GB or the one reported by fdisk: 19.3GB?

Both are correct.

>  Why we have this difference?

We haven't any difference.
Please take a look at the definitions of GB (gigabyte)
http://en.wikipedia.org/wiki/Gigabyte

drbd assumes: "1 gigabyte = 1024^3 bytes = 1,073,741,824 bytes"
and: "18 gigabytes = 18 * 1024^3 bytes = 19,327,352,832 bytes"

fdisk assumes: "1 gigabyte = 1,000,000,000 bytes"
and shows the size in gigabytes and (for clarification) in bytes:

> [root at shd1 ~]# fdisk -l /dev/drbd0
> Disk /dev/drbd0: 19.3 GB, 19327352832 bytes


> Regards,
> Alx

HTH
Matthias



More information about the drbd-user mailing list