[LU-12036] Add option to create new OSTs inactive Created: 28/Feb/19  Updated: 04/Dec/23  Resolved: 03/Jan/20

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

Type: New Feature Priority: Minor
Reporter: Andrew Elwell Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: LTS12, easy

Issue Links:
Related
is related to LU-12025 Adding OST may cause EIO - delay acti... Resolved
is related to LU-17300 Avoid creating new dir/file/object on... Open
is related to LU-17334 Client should handle dir/file/object ... In Progress
Rank (Obsolete): 9223372036854775807

 Description   

When adding new OSTs to an existing filesystem, it'd be nice to have a command line flag to be able to add them to the MGS in an inactive state so that they weren't used for allocation until the site was ready.

(this should be a non-default flag so it doesn't break existing behaviour)



 Comments   
Comment by Andreas Dilger [ 08/Nov/19 ]

With the landing of LU-12025 it should be relatively straight forward to add a mount option (maybe "nocreate" or "disabled" or "deactivated" or similar) that sets ofd->ofd_no_precreate immediately at mount time so that the MDS will not use it. This should have a test that verifies a newly-added OST is not used (even if requested specifically) when mounted with this option.

Comment by Gerrit Updater [ 08/Nov/19 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36716
Subject: LU-12036 ofd: add "nocreate" mount option
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6de22b05b9881436fd4ec1d724758a69ba8673b0

Comment by Gerrit Updater [ 03/Jan/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36716/
Subject: LU-12036 ofd: add "no_precreate" mount option
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 416e67222b769df490a8be034ef987a596dd8dff

Comment by Peter Jones [ 03/Jan/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 03/Jan/20 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37133
Subject: LU-12036 ofd: add "no_precreate" mount option
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: ab889485b994814804059967a98f2da28590e956

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