[LU-11918] Allow setting default file layout on root directory at mkfs time Created: 02/Feb/19 Updated: 05/Jan/24 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0, Lustre 2.13.0 |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Andreas Dilger | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | medium | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
It is useful to enable newer features like PFL, DoM, and FLR at format time, so that users unfamiliar with Lustre can have a default filesystem configuration that is most useful. In particular, enabling PFL for new filesystems is desirable for new releases, and if the MDT is configured with a large amount of space per inode (using e.g. "--mkfsoptions='-i 65536'" for ldiskfs, or always for ZFS) then a DoM component could be added. Some options for implementing this exist:
I don't think that mounting the MDT as type lustre, and then mounting a local client and using "lfs setstripe" is practical. |
| Comments |
| Comment by Andreas Dilger [ 08/Jul/19 ] |
|
The first step would be to change test-framework.sh to enable PFL layout on the root directory when the filesystem is formatted. This will allow testing and fixing test script breakage where the default layout is assumed to be a plain file before we enable this by default for all filesystems. |
| Comment by James Nunez (Inactive) [ 31/Jul/19 ] |
|
James Nunez (james.a.nunez@intel.com) uploaded a new patch: https://review.whamcloud.com/26576 |
| Comment by Andreas Dilger [ 14/Jul/21 ] |
|
According to patch https://review.whamcloud.com/35068 " What is still needed is to push patches that:
Once all test scripts are passing with a default PFL layout, the next step would be to set a default fs_STRIPEPARAMS value in init_test_env() so this is permanently used, and then (separately) have mkfs.lustre (or first MDT mount of a new filesystem creating "ROOT/") set a default PFL layout on the root directory (similar to patch https://review.whamcloud.com/38553 " |
| Comment by Andreas Dilger [ 14/Jul/21 ] |
|
One way that mkfs.lustre could set the default layout is directly via setxattr from userspace to the ROOT/ directory while it is mounted locally as type ldiskfs. However, that would not work for ZFS. |
| Comment by Andreas Dilger [ 05/Jan/24 ] |
|
LU-16904 has added the sanity-compr.sh test script, which is a wrapper that runs sanity and sanityn with a different file layout. The initial patch landed with a 1-stripe PFL layout COMPR_EXTRA_LAYOUT="-E eof -c 1" and fixed a number of issues related to that. Some more work is needed to take this further to allow passing the tests with a more complex PFL layout. Once testing with PFL layouts is working, then it should be possible to actually implement the mkfs.lustre support for setting the PFL layout. The test-framework code should pass the default layout from $fs_STRIPEPARAMS to "mkfs.lustre --setstripe" |