[Lustre-devel] F/S stats visualisation

rf at q-leap.de rf at q-leap.de
Mon May 2 08:51:36 PDT 2011

>>>>> "Johann" == Johann Lombardi <johann at whamcloud.com> writes:

Hi Johann, Ashley, 

    Johann> Hi Ashley, On Fri, Apr 29, 2011 at 12:06:06AM -0700, Ashley
    Johann> Pittman wrote:

    >> What do you think of the blue lines showing total number of
    >> inodes?  It appears to me as though df -i and lfs df -i are
    >> reporting different numbers for this value which I'm not able to
    >> easily explain.

    Johann> The total number of inodes can indeed be different between
    Johann> df (statfs(2)) and lfs df (lustre's ioctl). File creation
    Johann> can also fail with ENOSPC if you run out of objects on the
    Johann> OSTs, although the MDT might still have free
    Johann> inodes. Therefore the number of free inodes as well as the
    Johann> total number of inodes returned through statfs(2) are
    Johann> adjusted if the MDT has more free inodes than the OSTs.  You
    Johann> can check ll_statfs_internal() to see how this is computed.

It seems lfs df -i is indeed buggy showing totally bogus numbers
(see https://bugzilla.lustre.org/show_bug.cgi?id=24489)


More information about the lustre-devel mailing list