[LU-11482] Inherit component level flags from default layout Created: 08/Oct/18  Updated: 19/Dec/18  Resolved: 23/Oct/18

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

Type: Bug Priority: Minor
Reporter: Patrick Farrell (Inactive) Assignee: Patrick Farrell (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Today, new files created in directories with a default layout set do not inherit per-component layout flags.

This makes it impossible, for example, to set the preferred write replica or NOSYNC flags in a default layout and have it actually inherited.  (In particular, it does appear in the directory striping, but new files do not pick it up.)



 Comments   
Comment by Andreas Dilger [ 09/Oct/18 ]

Patrick, is this something you are actively working on? It would be great to get this fixed for 2.12.

Comment by Patrick Farrell (Inactive) [ 09/Oct/18 ]

Sorry, yes - I have a patch for this, and while writing a test for it, I hit another bug and got distracted trying to figure that out.  I'm going to push the patch with a test that doesn't hit the other bug, and also open the other bug.

Comment by Gerrit Updater [ 09/Oct/18 ]

Patrick Farrell (paf@cray.com) uploaded a new patch: https://review.whamcloud.com/33326
Subject: LU-11482 flr: Inherit flags from template
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8ec745b63ab3ce1c6fd4bac872e6b78f0de3a18d

Comment by Patrick Farrell (Inactive) [ 09/Oct/18 ]

The bug I found - layout corruption - is open at https://jira.whamcloud.com/browse/LU-11485 .

Comment by Patrick Farrell (Inactive) [ 09/Oct/18 ]

Also found that FLR allows overlapping write prefer flags:
https://jira.whamcloud.com/browse/LU-11486

Comment by Gerrit Updater [ 23/Oct/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33326/
Subject: LU-11482 flr: Inherit flags from template
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1eeb1455c2770edc92b2d127d5a2a22efe213773

Comment by Peter Jones [ 23/Oct/18 ]

Landed for 2.12

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