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

If setstripe for DoM file fails, less/no information is given

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      While exploring DoM feature, found out that the error returned by setstripe on dom file
      are not useful some times. e.g. say when user try to do setstripe on dom file and
      used mdt component value more than dom_stripesize. Then this will fail with invalid
      input error. User do not have any clue on what went wrong and no hint in var log
      messages as well.

      As a work around, can we change this CDEBUG to CWARN (also for other similar error
      checks in lod_verify_striping()) so that user will atleast get the hint in logs?

              /* Check stripe size againts per-MDT limit */
              if (stripe_size > d->lod_dom_max_stripesize) {
                      CDEBUG(D_LAYOUT, "DoM component size "
                             "%u is bigger than MDT limit %u, check "
                             "dom_max_stripesize parameter\n",
                             stripe_size, d->lod_dom_max_stripesize);
                      RETURN(-EINVAL);
              }
      

      Please suggestion, if this is ok, will create patch and push.

      Attachments

        Issue Links

          Activity

            People

              tappro Mikhail Pershin
              rdeshmukh_ddn Rahul Deshmukh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: