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

enable large_dir on existing MDTs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.15.0
    • Lustre 2.14.0, Lustre 2.15.0
    • None
    • 3
    • 9223372036854775807

    Description

      For filesystems with a large number of remote entries, either because of widespread striped directory usage, migration, or rename, the REMOTE_PARENT_DIR may become full without the large_dir, causing problems for new mkdirs, rename, and other remote directory operations.

      Currently, osd-ldiskfs prints an error message:

      LDISKFS-fs warning (device dm-14): ldiskfs_dx_add_entry:2625: inode 203423745: comm mdt_out01_005: index 2: reach max htree level 2 
      LDISKFS-fs warning (device dm-14): ldiskfs_dx_add_entry:2629: Large directory feature is not enabled on this filesystem
      

      but this is not very useful for the user, as enabling the large_dir feature requires the MDT to be unmounted (tune2fs is prevented from enabling it on the mounted filesystem due to MMP).

      It makes sense to enable the large_dir feature automatically on existing ldiskfs MDT filesystems at mount time to prevent the problems associated with REMOTE_PARENT_DIR becoming full. This feature has been well supported for several releases already and is in e2fsprogs since 1.44, so there is little risk in enabling it automatically.

      Attachments

        Issue Links

          Activity

            People

              adilger Andreas Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: