View previous topic :: View next topic |
Author |
Message |
meez n00b
Joined: 25 Jul 2004 Posts: 33
|
Posted: Fri Jan 23, 2009 8:37 pm Post subject: df -h showing wrong filesystem size |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Fri Jan 23, 2009 8:48 pm Post subject: |
|
|
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 |
|
|
HeissFuss Guru
Joined: 11 Jan 2005 Posts: 414
|
Posted: Fri Jan 23, 2009 9:22 pm Post subject: |
|
|
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 |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Fri Jan 23, 2009 9:23 pm Post subject: Re: df -h showing wrong filesystem size |
|
|
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 |
|
|
meez n00b
Joined: 25 Jul 2004 Posts: 33
|
Posted: Fri Jan 23, 2009 9:25 pm Post subject: my fault |
|
|
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 |
|
|
|