Uploaded image for project: 'Lustre Documentation'
  1. Lustre Documentation
  2. LUDOC-413

lfs mkdir documentation should be fixed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • CentOS 7.5, Lustre 2.11.55
    • 3
    • 9223372036854775807

      Hello,
      I think the lfs mkdir help/usage string should be clarified and fixed as it says the following:

      $ lfs mkdir
      lfs mkdir: DIR must be specified
      To create a striped directory on a specified MDT. This can only
      be done on MDT0 with the right of administrator.
      usage: mkdir [OPTION] <directory>
      		[--mdt-count|-c stripe_count>
      		[--mdt-index|-i mdt_index]
      		[--mdt-hash|-H mdt_hash]
      		[--default|-D] [--mode|-m mode] <dir>
      	stripe_count: stripe count of the striped directory
      	mdt_index: MDT index of first stripe
      	mdt_hash:  hash type of the striped directory. mdt types:
      	fnv_1a_64 FNV-1a hash algorithm (default)
      	all_char  sum of characters % MDT_COUNT (not recommended)
      	default_stripe: set default dirstripe of the directory
      	mode: the mode of the directory
      

      This doesn't seem to be correct a striped directory can be created on other MDTs too, not only MDT0 right?

      # lfs mkdir -c 1 -i 3 mdt3
      # cd mdt3
      # lfs mkdir -c 4 dnewide
      # lfs getstripe --mdt-index dnewide
      3
      # cd dnewide
      # touch 1 2 3 4
      # lfs getstripe --mdt-index *
      3
      2
      3
      0
      

      Thanks,
      Stephane

            LM-Triage Lustre Manual Triage
            sthiell Stephane Thiell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: