[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: |
|
||||||||
| 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 ( 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 |
| 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/ |
| 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 |