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

mkfs.lustre fails on devices between 16TiB-32GiB and 16TiB-1B

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Attempting to mkfs.lustre a disk below 16TiB in size but above the value computed for "resize" by mkfs.lustre (for 4KiB blocks, 32GiB shy of 16TiB) results in a failure as mke2fs requires resize to be greater than the specified capacity.

      Example:
      mkfs.lustre --ost --reformat --servicenode <elided> --fsname=lustrefs --index 1 --mgsnode <elided> --backfstype=ldiskfs /dev/ost1
      mkfs.lustre FATAL: Unable to build fs /dev/ost1 (256)mkfs.lustre FATAL: mkfs failed 256   Permanent disk data:
      Target:     lustrefs:OST0001
      Index:      1  
      Lustre FS:  lustrefs
      Mount type: ldiskfs
      Flags:      0x1062
                    (OST first_time update no_primnode )
      Persistent mount opts: ,errors=remount-ro
      Parameters: failover.node=<elided> mgsnode=<elided>device size = 16777152MB
      formatting backing filesystem ldiskfs on /dev/ost1
        target name   lustrefs:OST0001
        kilobytes     17179803648
        options         -J size=1024 -I 512 -i 524288 -q -O extents,uninit_bg,mmp,dir_nlink,quota,project,huge_file,^fast_commit,flex_bg -G 256 -E resize=\"4290772992\",lazy_journal_init=\"0\",lazy_itable_init=\"0\" -F
      mkfs_cmd = mke2fs -j -b 4096 -L lustrefs:OST0001   -J size=1024 -I 512 -i 524288 -q -O extents,uninit_bg,mmp,dir_nlink,quota,project,huge_file,^fast_commit,flex_bg -G 256 -E resize=\"4290772992\",lazy_journal_init=\"0\",lazy_itable_init=\"0\" -F /dev/ost1 17179803648k
         detected raid stride 4194304 too large, use optimum 512
         detected raid stripe width 67108864 too large, use optimum 512
         The resize maximum must be greater than the filesystem size.
         
         
         Bad option(s) specified:   Extended options are separated by commas, and may take an argument which
          is set off by an equals ('=') sign.    Valid extended options are:
          mmp_update_interval=<interval>
          num_backup_sb=<0|1|2>
          stride=<RAID per-disk data chunk in blocks>
          stripe-width=<RAID stride * data disks in blocks> 
          offset=<offset to create the file system>
          resize=<resize maximum size in blocks>
          packed_meta_blocks=<0 to disable, 1 to enable>
          lazy_itable_init=<0 to disable, 1 to enable>
          lazy_journal_init=<0 to disable, 1 to enable>
          root_owner=<uid of root dir>:<gid of root dir>
          test_fs
          discard
          nodiscard
          encoding=<encoding>
          encoding_flags=<flags>
          quotatype=<quota type(s) to be enabled>

      Attachments

        Issue Links

          Activity

            People

              elliswilson Ellis Wilson
              elliswilson Ellis Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: