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

FS default striping settings only honored on MDT 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.5.0, Lustre 2.7.0, Lustre 2.8.0
    • Fix Version/s: Lustre 2.9.0
    • Labels:
    • Severity:
      3
    • Rank (Obsolete):
      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

              People

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

                Dates

                Created:
                Updated:
                Resolved: