[LU-11146] setstripe for specific osts are broken Created: 13/Jul/18  Updated: 22/Sep/18  Resolved: 23/Aug/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0, Lustre 2.10.5
Fix Version/s: Lustre 2.12.0

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
is related to LU-11280 sanity: test_56w: unable to handle ke... Resolved
is related to LU-11279 sanity test_65c: lverify failed Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

[root@s17 lustre]# mkdir X
[root@s17 lustre]# lfs getstripe X
X
stripe_count: 1 stripe_size: 1048576 stripe_offset: -1
[root@s17 lustre]#
[root@s17 lustre]# lfs setstripe -o 1 X
error on ioctl 0x4008669a for 'X' (3): Invalid argument
error: setstripe: create stripe file 'X' failed



 Comments   
Comment by Gerrit Updater [ 13/Jul/18 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/32814
Subject: LU-11146 lustre: fix setstripe for specific osts
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 29c5147584008c2a32fe7277ae549a192a5f7361

Comment by Andreas Dilger [ 13/Jul/18 ]

Please add the affected version and the patch and link to the LU ticket that broke it.

Comment by Wang Shilong (Inactive) [ 13/Jul/18 ]

Andreas, looks the problem have been existing for a long time, unfortunate there is no test
in sanity.sh to verify 'lfs setstripe -o' option, and I did not track which specific commit break this,
or it was broken even when adding first time.

The problem at least existed at ES3.x which is 2.7 series and also ES4.x which is 2.10 series.
As well as master community branch too.

Comment by Zhenyu Xu [ 17/Jul/18 ]

Setting ost list on directory is not doable before commit 7da1d93e2320bd7e6db8062350a90a651a00f84b, since there is no place to save the ost list info. PFL's late instantiation needs to instantiate component with customized ost list during writing phase, lod_layout_component::llc_ostlist is added in that commit to make it possible. And this llc_ostlist also makes customized ost list setting upon directory possible.

Comment by Gerrit Updater [ 23/Aug/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32814/
Subject: LU-11146 lustre: fix setstripe for specific osts upon dir
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 083d62ee6de5ac6cee95c1d2f86b62b75034093b

Comment by Peter Jones [ 23/Aug/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:41:20 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.