[LU-10282] 'lfs mirror create|extend' should support mirror flags Created: 27/Nov/17  Updated: 20/Jan/18  Resolved: 20/Jan/18

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

Type: Improvement Priority: Minor
Reporter: Jinshan Xiong (Inactive) Assignee: Jinshan Xiong (Inactive)
Resolution: Fixed Votes: 0
Labels: FLR2

Issue Links:
Related
is related to LU-9771 FLR1: Landing tickets for File Level ... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

lfs mirror create|extend should support mirror flags setting when creating new mirrors so that all components belong to the new mirrors will have the flags set. The flags are not inheritable so it will only apply to the mirrors in current '-N' option. For example:

lfs mirror create -N2 --pool flash --flags preferred -N4 --pool hdd file

the first two mirrors on flash pool will have 'preferred' flag set and it won't be applied to the last 4 mirrors on the 'hdd' pool. Similarly, the mirror flags should also work for lfs mirror extend and be applied to newly merged mirror from victim file or specified by setstripe options.

Multiple flags are split by comma when existing. For example:

lfs mirror create -N --flags preferred,stale -c 1 -N2 -c 2 file

the first mirror will have both 'preferred' and 'stale' flags set, though I don't know why someone would like to set these two flags at the same time.



 Comments   
Comment by Gerrit Updater [ 04/Dec/17 ]

Jinshan Xiong (jinshan.xiong@intel.com) uploaded a new patch: https://review.whamcloud.com/30360
Subject: LU-10282 flr: comp-flags support when creating mirrors
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 80cfeb3a5e29bd79bf207565d9d3d79c1dbbc94a

Comment by Gerrit Updater [ 20/Jan/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30360/
Subject: LU-10282 flr: comp-flags support when creating mirrors
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: aa1646a8a1c2a91a1571147994229b6413ee7acc

Comment by Peter Jones [ 20/Jan/18 ]

Landed for 2.11

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