Hi all,
I found that when I create a file, the number of inodes on OST does not
increase.
Let's see the following experiment:
[root@client lustre]# lfs df -i
UUID Inodes IUsed IFree IUse% Mounted on
data-MDT_UUID 5242883428 520860
For performance reason, the MDT creates objects on OSTs in batch with a
technology called `precreate’. The MDT caches the `precreated’ objects in cache
and whenever a client is creating a file on the MDT, it will allocate objects
from cache. This is why you can’t see the inode count on OSTs