On Feb 13, 2007  10:36 -0700, Daniel Leaberry wrote:
> Normal df -i gives me ~940 million inodes (I used --mkfsoptions='-i
> 1024' /dev/sdb)
> 
> [EMAIL PROTECTED] ~]# df -i
> Filesystem            Inodes   IUsed   IFree IUse% Mounted on
> /dev/sdb             943652864      35 943652829    1% /var/mnt/lustre1-mds
> 
> 
> lfs df -i gives me ~117 million inodes (which corresponds to the inode
> count with the normal mkfsoptions of -i 4096.

That is because "df" and "df -i" are necessary amalgamations of the MDS
and OST block and inode counts.  The actual number of files you can create
is at least 90M, but could be as high as 117M depending on a number of
factors.  The same is true with free blocks.

We thought it best to report the minimum amount of free inodes instead of
the maximum.

> [EMAIL PROTECTED] lustre01.iarchives.com]# lfs df -i
> UUID                    Inodes     IUsed     IFree IUse% Mounted on
> lustre1-MDT0000_UUID 117768997        36 117768961    0%
> /mnt/lustre01.iarchives.com[MDT:0]
> lustre1-OST0000_UUID 244195328       121 244195207    0%
> /mnt/lustre01.iarchives.com[OST:0]
> lustre1-OST0001_UUID 244195328        57 244195271    0%
> /mnt/lustre01.iarchives.com[OST:1]
> lustre1-OST0002_UUID 244195328        57 244195271    0%
> /mnt/lustre01.iarchives.com[OST:2]
> lustre1-OST0003_UUID 244195328        57 244195271    0%
> /mnt/lustre01.iarchives.com[OST:3]
> lustre1-OST0004_UUID 244195328        57 244195271    0%
> /mnt/lustre01.iarchives.com[OST:4]
> lustre1-OST0005_UUID 244195328        57 244195271    0%
> /mnt/lustre01.iarchives.com[OST:5]
> 
> filesystem summary:  117768997        36 117768961    0%
> /mnt/lustre01.iarchives.com

That's why we have "lfs df" so that you can see the per-device info
instead of the munged "df" output.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss

Reply via email to