[LU-9611] fix default stripe count/offset proc tunables Created: 06/Jun/17  Updated: 26/Mar/18  Resolved: 06/Nov/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.9.0, Lustre 2.10.0
Fix Version/s: Lustre 2.11.0, Lustre 2.10.3

Type: Bug Priority: Major
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Related
is related to LU-7334 Refactor lprocfs helpers Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Since patch http://review.whamcloud.com/16930 "LU-7334 lprocfs: Refactored string to value helpers" was landed, it incorrectly checks that lod.*.stripecount and lod.*.stripeoffset are not negative, but in fact they can both be "-1" to indicate that the filesystem-wide default value should be used. These parameters are also set internally if using lfs setstripe -c -1 $MOUNT or lfs setstripe -i -1 $MOUNT to set the system wide default, generating a console error on the MDS:

LustreError: 12558:0:(obd_config.c:1392:class_process_proc_param())  lov.: error writing proc entry 'stripecount': rc = -34
LustreError: 12558:0:(obd_config.c:1392:class_process_proc_param())  lov.: error writing proc entry 'stripeoffset': rc = -34


 Comments   
Comment by Gerrit Updater [ 06/Jun/17 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/27473
Subject: LU-9611 lod: allow -1 for default stripe count/offset
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a7c6c37e491182bfd0519b7d737972bf4ea64404

Comment by Gerrit Updater [ 16/Jun/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27473/
Subject: LU-9611 lod: allow -1 for default stripe count/offset
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a4771a6935a97376cc93dfaf023b0a12e9d07511

Comment by Peter Jones [ 16/Jun/17 ]

Landed for 2.10

Comment by Gerrit Updater [ 06/Jul/17 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/27946
Subject: LU-9611 lov: allow lov.*.stripe

{size,count}

=-1 param
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6774bd00931d05e78d42c1cfed31cce458fb9e95

Comment by John Hammond [ 27/Oct/17 ]

The second change, https://review.whamcloud.com/#/c/27946/, is still unlanded.

Comment by Gerrit Updater [ 06/Nov/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27946/
Subject: LU-9611 lov: allow lov.*.stripe

{size,count}

=-1 param
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f93276d9a5b5df475c9f6007265692632d8e7222

Comment by Peter Jones [ 06/Nov/17 ]

Landed for 2.11

Comment by Gerrit Updater [ 06/Dec/17 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/30407
Subject: LU-9611 lov: allow lov.*.stripe

{size,count}

=-1 param
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 3cf0e254f1afa1c87f0867b5c1d39f55a5bb8a0d

Comment by Gerrit Updater [ 19/Dec/17 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/30407/
Subject: LU-9611 lov: allow lov.*.stripe

{size,count}

=-1 param
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: bb1663cb01744b68aa29d625cea8652ae0457257

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