Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
df -h showing wrong filesystem size
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Fri Jan 23, 2009 8:37 pm    Post subject: df -h showing wrong filesystem size Reply with quote

Hi everybody,
today I got my two new Dell 2650 Storage Server with 6x 1.5TB discs.

Code:

>df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              94G  2.2G   92G   3% /
udev                   10M  144K  9.9M   2% /dev
shm                   2.0G     0  2.0G   0% /dev/shm
/dev/sdb1             742G  4.2M  742G   1% /storage-1

>df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             98221624   2259344  95962280   3% /
udev                     10240       144     10096   2% /dev
shm                    2026664         0   2026664   0% /dev/shm
/dev/sdb1            778008916      4256 778004660   1% /storage-1


The device /dev/sdb1 has about 7,4T, but is shown is 742G at df -h, df only shows right size?
is this a bug? Filesystem is XFS

Thanks,

Martin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Fri Jan 23, 2009 8:48 pm    Post subject: Reply with quote

meez,

With what tool did you make the partition /dev/sdb1 ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
HeissFuss
Guru
Guru


Joined: 11 Jan 2005
Posts: 414

PostPosted: Fri Jan 23, 2009 9:22 pm    Post subject: Reply with quote

Both dfs show 742GB...

Since you partitioned your device (sdb1) you need to use GPT partition type to get that size. Your other option is to stick the xfs filesystem directly on the raw /dev/sdb device.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Fri Jan 23, 2009 9:23 pm    Post subject: Re: df -h showing wrong filesystem size Reply with quote

meez wrote:
Code:
>df -h
/dev/sdb1             742G  4.2M  742G   1% /storage-1
>df
/dev/sdb1            778008916      4256 778004660   1% /storage-1

The device /dev/sdb1 has about 7,4T, but is shown is 742G at df -h, df only shows right size?

1) df and df -h are in agreement: 778008916 blocks * 1024 bytes/block = 741.97 GB.
2) See this thread for some things to consider when creating very large partitions (> 2TB).
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Fri Jan 23, 2009 9:25 pm    Post subject: my fault Reply with quote

ok ok. First think then ask.

I found the problem with fdisk / cfdisk

but now I used parted :-)
Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              94G  2.2G   92G   3% /
udev                   10M  144K  9.9M   2% /dev
shm                   2.0G     0  2.0G   0% /dev/shm
/dev/sdb1             6.8T  4.3M  6.8T   1% /storage-1


Looks much more better :-)

many thanks for such quick answers,

Martin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum