[LU-15307] Option to set max directory stripe count per filesystem Created: 02/Dec/21 Updated: 31/Mar/22 Resolved: 26/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: | Andreas Dilger | Assignee: | Feng Lei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | easy | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||
| Description |
|
We have users that will set directory stripe count by using "-1" as in Filesystem with small number of MDTs (4-8) this was ok. But as the MDT count gets lager (>32) this is not always desirable. Most of the time we don't want users to set directory stripe counts so large. We would like config option for max default directory size setting for ("lfs setdirstripe -c -1"). But would still like the ability to allow setting stripe counts larger for those who explicitly request it, but not unintentionally. |
| Comments |
| Comment by Andreas Dilger [ 02/Dec/21 ] |
|
In addition to limiting the stripe count used when selecting "-c -1" it also makes sense to return an error from "lfs setdirstripe" when creating a default directory striping that has a stripe count > 1 but does not have max-inherit set. There have repeatedly been problems hit when a filesystem is configured with "lfs setdirstripe -c N -D $MOUNT" (for any N > 1) causing REMOTE_PARENT_DIR to be filled or have tens of millions of entries, excessive MDT inode usage, performance issues, etc. With automatic DNE MDT space balancing ( |
| Comment by Feng Lei [ 03/Dec/21 ] |
|
Split the requirement of lfs setdirstripe command to |
| Comment by Gerrit Updater [ 03/Dec/21 ] |
|
"Feng, Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45724 |
| Comment by Gerrit Updater [ 26/Jan/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45724/ |
| Comment by Peter Jones [ 26/Jan/22 ] |
|
Landed for 2.15 |