Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
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
Fix Version/s | New: Lustre 2.14.0 [ 14490 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |