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

Flag for mke2fs to automatically adjust number of inodes

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • None
    • 9223372036854775807

    Description

      In certain cases device size where filesystem is created is not know in advance, and it's impractical to try guess correct inode ratio to satisfy filesystem limitations (which is 4G inodes for ext4 and ldiskfs).
      We need a flag to tell mke2fs to limit inode count to match current filesystem limits.
      Example of current behavior:

      # mke2fs  -i 1024 img
      mke2fs 1.42.13.x2 (29-Sep-2016)
      mke2fs: too many inodes (5269225472), raise inode ratio?
      root@kvkvm1oem(0):~#
      

      Proposed behavior (example only, feel free to change message text):

      # mke2fs  -i 1024 --adjust-inode-count img
      mke2fs 1.42.13.x2 (29-Sep-2016)
      mke2fs: too many inodes (5269225472), changing to <supported FS limit> 
      ... formatting continues ...
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            artem_blagodarenko Artem Blagodarenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: