[LU-14792] DNE3: enable filesystem-wide default LMV Created: 25/Jun/21  Updated: 04/Dec/23  Resolved: 31/Jul/21

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

Type: New Feature Priority: Major
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-13417 DNE3: mkdir() automatically create re... Resolved
is related to LU-17300 Avoid creating new dir/file/object on... Open
is related to LU-12434 use filesystem default dir layout for... Resolved
is related to LU-15200 "lfs getdirstripe -D subdir" does not... Resolved
is related to LU-15736 Commit for LU-14792 introduces client... Closed
is related to LU-15314 set default max-inherit to 3 for defa... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Similar to default LOV on ROOT, default LMV on ROOT can act as filesystem-wide default LMV, but this may cause too many remote directories. However with the inherit depth, only new directories whose depth to ROOT is not larger than the inherit depth will inherit this default LMV to create.



 Comments   
Comment by Andreas Dilger [ 25/Jun/21 ]

In theory, we could keep the directory depth in memory for each directory object when the path is walked from ROOT/ during normal pathname lookups. That would allow inheriting the directory layout from ROOT with a limited max_inherit depth when creating directories that didn't previously inherit from ROOT.

Ideally, we wouldn't need to explicitly copy the layout to each directory, since that makes life difficult if the root layout ever changes, but it may be too complex for the first version (eg. handling remote directories, etc).

In the common case of max_inherit=-1 there is never a need to explicitly copy the ROOT/ layout.

Comment by Gerrit Updater [ 28/Jun/21 ]

Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44090
Subject: LU-14792 llite: enable filesystem-wide default LMV
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 91ee6a144add71059aae154362fd7b34fda2166d

Comment by Gerrit Updater [ 31/Jul/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44090/
Subject: LU-14792 llite: enable filesystem-wide default LMV
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b9c4dc3c33fe87ecaa79a290190524ea21b7fa8a

Comment by Peter Jones [ 31/Jul/21 ]

Landed for 2.15

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