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

Setting specific OST's under pool failed with error message "invalid argument"

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      the Error appears if the specific OST is not in the pool. at the same time, only the first OST is checked.

      the regular setstripe and overstripe's -C option works fine and the same way - they allocate OSTs within the given pool starting with the -i first OST. if the starting index is out of the pool, it is always enough to check only the first ost index in lod_qos_parse_config() ->lod_check_index_in_pool()

      however the -o option gives a new opportunity to list all the OSTs we want to place stripes to. and checking only the 1st index is not enough - as the result we may get an error or succeed depending on the 1st index only.

      [root@vm71 wc-main]# mkdir /mnt/lustre/d1
      [root@vm71 wc-main]# ./lustre/utils/lctl pool_new lustre.lala
      ./lustre/utils/lctl pool_new lustre.kaka
      Pool lustre.lala created
      [root@vm71 wc-main]# ./lustre/utils/lctl pool_new lustre.kaka
      Pool lustre.kaka created
      [root@vm71 wc-main]# ./lustre/utils/lctl pool_add lustre.lala lustre-OST[0]
      ./lustre/utils/lctl pool_add lustre.kaka lustre-OST[1]
      OST lustre-OST0000_UUID added to pool lustre.lala
      [root@vm71 wc-main]# ./lustre/utils/lctl pool_add lustre.kaka lustre-OST[1]
      OST lustre-OST0001_UUID added to pool lustre.kaka
      [root@vm71 wc-main]# ./lustre/utils/lfs setstripe --pool lustre.lala /mnt/lustre/d1/
      [root@vm71 wc-main]# ./lustre/utils/lfs setstripe -o 1,0 /mnt/lustre/d1/file2
      lt-lfs setstripe: setstripe error for '/mnt/lustre/d1/file2': Invalid argument
      [root@vm71 wc-main]# ./lustre/utils/lfs setstripe -o 0,1 /mnt/lustre/d1/file2

      the given OST list should have a priority over the pool.

      Attachments

        Issue Links

          Activity

            [LU-14480] Setting specific OST's under pool failed with error message "invalid argument"

            "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46362
            Subject: LU-14480 pool: wrong usage with ost list
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 1a015901ec9a699fb13c502b01b04e9071ee029c

            gerrit Gerrit Updater added a comment - "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46362 Subject: LU-14480 pool: wrong usage with ost list Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 1a015901ec9a699fb13c502b01b04e9071ee029c
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41815/
            Subject: LU-14480 pool: wrong usage with ost list
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: b384ea39e593cda1ac4d6fb8b955d0c7d1a1f67b

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41815/ Subject: LU-14480 pool: wrong usage with ost list Project: fs/lustre-release Branch: master Current Patch Set: Commit: b384ea39e593cda1ac4d6fb8b955d0c7d1a1f67b

            Vitaly Fertman (vitaly.fertman@hpe.com) uploaded a new patch: https://review.whamcloud.com/41815
            Subject: LU-14480 pool: wrong usage with ost list
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: d50ae8bd096f7fc2fb88f9a99ace0e03665b095d

            gerrit Gerrit Updater added a comment - Vitaly Fertman (vitaly.fertman@hpe.com) uploaded a new patch: https://review.whamcloud.com/41815 Subject: LU-14480 pool: wrong usage with ost list Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: d50ae8bd096f7fc2fb88f9a99ace0e03665b095d

            People

              vitaly_fertman Vitaly Fertman
              vitaly_fertman Vitaly Fertman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: