[LU-15314] set default max-inherit to 3 for default dir stripe policy if stripe count is not 0 or 1 Created: 03/Dec/21 Updated: 26/Jan/22 Resolved: 11/Jan/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.7.0 |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | New Feature | Priority: | Critical |
| Reporter: | Feng Lei | Assignee: | Feng Lei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | easy | ||
| Issue Links: |
|
||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||
| Description |
|
From With automatic DNE MDT space balancing ( |
| Comments |
| Comment by Feng Lei [ 14/Dec/21 ] |
|
I would suggest to set the default value of --max-inherit to a fixed value (e.g., 3) instead of unlimited (-1) for lfs setstripe -D -c N command. But if --max-inherit is specified explicitly, its value will always be accepted. A warning message can be printed too to notify the user the default value of --max-inherit. This behavior won't change anything on a running system, and won't block existing script to deploy a new system. Even the new system will be a little different from the old ones. But if we make --max-inherit mandatory, some existing scripts may be blocked if they do not provide --max-inherit. adilger Please feel free to comment. |
| Comment by Andreas Dilger [ 16/Dec/21 ] |
I think this would be a reasonable (and safe) option as well, given the consequences . Having a limited inheritance ("LMV_INHERIT_DEFAULT = 3") for default directory layouts with "stripe_count != 0,1" avoids users shooting themselves in the foot. "lfs setdirstripe -D" should print a warning message for layouts with --max-inherit=N, N > 4 for "stripe_count != 0,1". There shouldn't be a warning message printed for default directory layouts with "stripe_count=0,1", regardless of --max-inherit used, since this does not cause the same problems as striped directories. chunteraa, crusan, laisiyao, any feedback on this? When the MDT space balancing/limited layout inheritance was being developed in |
| Comment by Lai Siyao [ 17/Dec/21 ] |
|
This looks reasonable to me. |
| Comment by Gerrit Updater [ 17/Dec/21 ] |
|
"Feng, Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45874 |
| Comment by Gerrit Updater [ 11/Jan/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45874/ |
| Comment by Peter Jones [ 11/Jan/22 ] |
|
Landed for 2.15 |