[LU-16894] The MDS should not limit the stripe count for a conflicting stripe offset and pool name parameters Created: 14/Jun/23  Updated: 30/Jun/23  Resolved: 28/Jun/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.16.0
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Etienne Aujames Assignee: Etienne Aujames
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-15658 Interop sanity-flr test_0b test_0c te... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When a user specified stripe offset not matching the OST index of the pool. The MDS will not set the pool name in the file layout (LU-15658). But it will still limit the stripe count to the number of OST inside the pool, this is a bug.

lfs pool_list lustre.pool1
Pool: lustre.pool1
lustre-OST0000_UUID

# set the pool1 on a dir
lfs setstripe -p pool1 testdir/
# conflicting stripe offset parameter -> ost 1 is not in pool1
lfs setstripe  -c 2 -i 1 testdir/test1
# not conflicting stripe offset parameter -> ost 0 is not in pool1
lfs setstripe  -c 2 -i 0 testdir/test2

lfs getstripe testdir/test*
testdir/test1
lmm_stripe_count:  1
lmm_stripe_size:   1048576
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 1
        obdidx           objid           objid           group
             1               3            0x3      0x280000400

testdir/test2
lmm_stripe_count:  1
lmm_stripe_size:   1048576
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 0
lmm_pool:          pool1
        obdidx           objid           objid           group
             0               3            0x3      0x240000400
# the stripe count of test1 should be 2 because no pool is set


 Comments   
Comment by Gerrit Updater [ 14/Jun/23 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51314
Subject: LU-16894 lod: fix stripe_count limit in lod_qos_set_pool
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7bc94f5742f072f97ca433a90d22cbd59c1e6576

Comment by Etienne Aujames [ 14/Jun/23 ]

After the patch:

[root@dev lustre]# lfs getstripe testdir/test*                  
testdir/test1
lmm_stripe_count:  2
lmm_stripe_size:   1048576
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 1
        obdidx           objid           objid           group
             1               2            0x2      0x280000400
             0               2            0x2      0x240000400

testdir/test2
lmm_stripe_count:  1
lmm_stripe_size:   1048576
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 0
lmm_pool:          pool1
        obdidx           objid           objid           group
             0               3            0x3      0x240000400
Comment by Gerrit Updater [ 28/Jun/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51314/
Subject: LU-16894 lod: fix stripe_count limit in lod_qos_set_pool
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d6df160877cda3ff1e0b3ce5c4df46fa17e1468a

Comment by Peter Jones [ 28/Jun/23 ]

Landed for 2.16

Comment by Gerrit Updater [ 30/Jun/23 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51527
Subject: LU-16894 lod: fix stripe_count limit in lod_qos_set_pool
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: d1d20040a7dabbdf6bd8c36ca5b5eb5810f9e2d7

Generated at Sat Feb 10 03:30:53 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.