Details
-
Bug
-
Resolution: Fixed
-
Minor
-
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
- is related to
-
LU-15658 Interop sanity-flr test_0b test_0c test_0e test_0f: verify pool failed != flash
- Resolved
-
LU-15707 Unable to create file without a pool with a pool define on the parent or on the fs root.
- Resolved
-
LU-17703 some pool inheritance fixes
- Resolved
- is related to
-
LU-9392 lfs migrate -o and lfs setstripe -o should pick OST from ost_list
- Open