[DRBD-user] initial formatting of /dev/drbd0 device (with internal metadata)

Carson Gaspar carson at taltos.org
Tue Mar 22 16:54:58 CET 2005

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


--On Tuesday, March 22, 2005 10:36:41 -0500 Brett Bolen <hbbolen at yahoo.com> 
wrote:

> Where do I find the initial size of the partition?  df
> gives me one number ( in 1k blocks), and fdisk gives me another
> number.
>
> In fact, dump2efs give me a third number.
>
> here's my numbers for my real hdisk ( not the example I gave above):
>
>    df       -> 15480832 ( 1K blocks) => 15480832
>    fdisk    -> 15727635              => 15727635
>    dumpe2fs ->  3931908 ( 4k blocks) => 15727632
>
> What is the correct way to determine these numbers?

sfdisk -s -uM ${partition} # Alter -u to taste for appropriate units

df will give use _usable_ space. Filesystems have overhead. I have no idea 
why dumpe2fs is slightly smaller - I must assume that the filesystem didn't 
use all space on the partition for some reason.

-- 
Carson




More information about the drbd-user mailing list