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

FS default striping settings only honored on MDT 0

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.9.0
    • Lustre 2.5.0, Lustre 2.7.0, Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      From the manual "Setting the striping specification on the root directory determines the striping for all new files created in the file system unless an overriding striping specification takes precedence (such as a striping layout specified by the application, or set using lfs setstripe, or specified for the parent directory)." In a DNE setup, setting the default striping on the root directory only affects files created on MDT 0. See ll_dir_setstripe():

                      ...
                      buf = param;
                      /* Get fsname and assume devname to be -MDT0000. */
                      ll_get_fsname(inode->i_sb, buf, MTI_NAME_MAXLEN);
                      strcat(buf, "-MDT0000.lov");
      		buf += strlen(buf);
      
                      /* Set root stripesize */
                      sprintf(buf, ".stripesize=%u",
      			lump ? le32_to_cpu(lump->lmm_stripe_size) : 0);
                      rc = ll_send_mgc_param(mgc->u.cli.cl_mgc_mgsexp, param);
                      if (rc)
      		        GOTO(end, rc);
                      ...
      

      Attachments

        Issue Links

          Activity

            [LU-7660] FS default striping settings only honored on MDT 0
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-8092 [ LU-8092 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-5676 [ LU-5676 ]
            mdiep Minh Diep made changes -
            Link New: This issue is related to LDEV-342 [ LDEV-342 ]
            mdiep Minh Diep made changes -
            Link Original: This issue is related to LDEV-341 [ LDEV-341 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to LDEV-341 [ LDEV-341 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to JFC-17 [ JFC-17 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-8653 [ LU-8653 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-8454 [ LU-8454 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-7661 [ LU-7661 ]
            jgmitter Joseph Gmitter (Inactive) made changes -
            Link New: This issue is related to JFC-22 [ JFC-22 ]

            People

              laisiyao Lai Siyao
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: