Discussion:
[Lustre-discuss] lfs df vs. df -k
Hendelman, Rob
2008-10-13 18:42:32 UTC
Permalink
So I've read through the mailing lists, faq, etc and have not come
across this.

Total space available: df -k and lfs df show the exact same # of 1k
blocks. So far so good. However, a df -k shows 4783238028 1k blocks in
use, while a lfs df shows 5399853568 1k blocks in use. Interestingly,
lfs df -i and df -i both show the same number of total inodes the same.
They ALSO both show the used inodes the same as well. Free inodes are
also the same. Everything matches.

Anyone know why "df -k" used space doesn't match between "lfs df -k" and
df -k ?

Client is 2.6.22 patchless kernel/client on Ubuntu. The server is
centos using the packages provided for download, including kernel:

-bash-3.1$ rpm -qa | sort | grep lust
kernel-lustre-smp-2.6.18-53.1.13.el5_lustre.1.6.4.3
lustre-1.6.4.3-2.6.18_53.1.13.el5_lustre.1.6.4.3smp
lustre-ldiskfs-3.0.4-2.6.18_53.1.13.el5_lustre.1.6.4.3smp
lustre-modules-1.6.4.3-2.6.18_53.1.13.el5_lustre.1.6.4.3smp

Thanks,

Robert

The information contained in this message and its attachments
is intended only for the private and confidential use of the
intended recipient(s). If you are not the intended recipient
(or have received this e-mail in error) please notify the
sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-
mail is strictly prohibited.
Andreas Dilger
2008-10-14 19:45:23 UTC
Permalink
Post by Hendelman, Rob
Total space available: df -k and lfs df show the exact same # of 1k
blocks. So far so good. However, a df -k shows 4783238028 1k blocks in
use, while a lfs df shows 5399853568 1k blocks in use. Interestingly,
lfs df -i and df -i both show the same number of total inodes the same.
They ALSO both show the used inodes the same as well. Free inodes are
also the same. Everything matches.
Anyone know why "df -k" used space doesn't match between "lfs df -k" and
df -k ?
Client is 2.6.22 patchless kernel/client on Ubuntu. The server is
-bash-3.1$ rpm -qa | sort | grep lust
kernel-lustre-smp-2.6.18-53.1.13.el5_lustre.1.6.4.3
lustre-1.6.4.3-2.6.18_53.1.13.el5_lustre.1.6.4.3smp
lustre-ldiskfs-3.0.4-2.6.18_53.1.13.el5_lustre.1.6.4.3smp
lustre-modules-1.6.4.3-2.6.18_53.1.13.el5_lustre.1.6.4.3smp
It's a bug that was fixed - we were printing blocks in use based on "free"
instead of "available" blocks, or something similar. Sorry, I don't have
the bug number handy.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

Loading...