Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-9192

lfs quota reports wrong file count when using ZFS backend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Lustre 2.8.0
    • None
    • CentOS Linux release 7.2.1511
      Kernel 3.10.0-327.4.4.el7.x86_64
      Lustre 2.8.0
    • 3
    • 9223372036854775807

      I recently set up a Lustre 2.8 file system that uses ZFS for the backend storage (both on the MDT and OSTs). When I was doing some testing, I noticed that the output from lfs quota seemed odd. While the quota information for the amount of used space seemed correct, the info on the number of files was off. For example, when I started with no files, “lfs quota” showed this:

      Filesystem kbytes quota limit grace files quota limit grace
      /lustre/xxxxx
      33 0 0 - 18446744073709551595 0 0 -

      As I created empty files one-by-one, the number of files kept incrementing. Once I had 21 files created, lfs quota then reported that I had zero files:

      Filesystem kbytes quota limit grace files quota limit grace
      /lustre/xxxxx
      211 0 0 - 0 0 0 -

      It looks like some kind of counter under/overflow, but I am not sure if this is an issue with Lustre or with ZFS.

            wc-triage WC Triage
            rmohr Rick Mohr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: