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

lctl pool_add returns error randomly

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      lctl pool_add returns error code depending on order of OSTs, see example:

      [root@dhcppc3 lustre-wc-rel]# lctl pool_add lustre.qpool1 OST0000
      OST lustre-OST0000_UUID added to pool lustre.qpool1
      [root@dhcppc3 lustre-wc-rel]# lctl pool_add lustre.qpool1 OST[0-1]
      OST lustre-OST0000_UUID is already in pool lustre.qpool1
      OST lustre-OST0001_UUID added to pool lustre.qpool1
      [root@dhcppc3 lustre-wc-rel]# echo $?
      0
      [root@dhcppc3 lustre-wc-rel]# lctl pool_remove lustre.qpool1 OST[0-1]
      OST lustre-OST0000_UUID removed from pool lustre.qpool1
      OST lustre-OST0001_UUID removed from pool lustre.qpool1
      [root@dhcppc3 lustre-wc-rel]# lctl pool_add lustre.qpool1 OST0001
      OST lustre-OST0001_UUID added to pool lustre.qpool1
      [root@dhcppc3 lustre-wc-rel]# lctl pool_add lustre.qpool1 OST[0-1]
      OST lustre-OST0001_UUID is already in pool lustre.qpool1
      OST lustre-OST0000_UUID added to pool lustre.qpool1
      pool_add: File exists
      [root@dhcppc3 lustre-wc-rel]# echo $?
      17 

      The problem is caused by jt_pool_cmd, that returns the latest result ignoring previous errors.

        Attachments

          Activity

            People

            • Assignee:
              sergey Sergey Cheremencev
              Reporter:
              sergey Sergey Cheremencev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: