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

lfs setstripe should warn when layout does not go to EOF

Details

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

    Description

      It is possible to specify a file layout with `lfs setstripe` that does not allow a file to be written the the max EOF. This is especially easy to trip up when specifying a DoM layout because it is generally assumed that the remaining layout will automatically go to the OSTs, but it does not.

      For example a user might execute the following command to create a DoM file:
      lfs setstripe -E 1M -L mdt /mnt/lustre/domdir

      However, the file won't be writeable beyond 1 MIB because there is no extent defined beyond the DoM component. Instead the user should run:
      lfs setstripe -E 1M -L mdt -E -1 /mnt/lustre/domdir

      That will allow the file to have a stripe beyond the DoM component to max EOF (-1).

      This usability quirk means that users can easily shoot themselves in the foot. We should contemplate either making the non-EOF case an error (that could be overridden for users that truly don't want striping to EOF) or at least emit a warning when they create a layout short of EOF.

      Attachments

        Activity

          [LUDOC-531] lfs setstripe should warn when layout does not go to EOF

          "Andreas Dilger <adilger@whamcloud.com>" merged in patch https://review.whamcloud.com/c/doc/manual/+/56127/
          Subject: LUDOC-531 mdt: Added more info on DoM EOF
          Project: doc/manual
          Branch: master
          Current Patch Set:
          Commit: 143c7cf8e9331dc1ed2c86d9d6c46ff55f5fde3e

          gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" merged in patch https://review.whamcloud.com/c/doc/manual/+/56127/ Subject: LUDOC-531 mdt: Added more info on DoM EOF Project: doc/manual Branch: master Current Patch Set: Commit: 143c7cf8e9331dc1ed2c86d9d6c46ff55f5fde3e

          "Rajeev Mishra <rajeevm@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/doc/manual/+/56127
          Subject: LUDOC-531 mdt: Added more info on DoM EOF
          Project: doc/manual
          Branch: master
          Current Patch Set: 1
          Commit: cafdc5122b2ba20a543b8a2a2397d16b6f332c19

          gerrit Gerrit Updater added a comment - "Rajeev Mishra <rajeevm@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/doc/manual/+/56127 Subject: LUDOC-531 mdt: Added more info on DoM EOF Project: doc/manual Branch: master Current Patch Set: 1 Commit: cafdc5122b2ba20a543b8a2a2397d16b6f332c19

          People

            rajeevm Rajeev Mishra
            rajeevm Rajeev Mishra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: