TECHNOLOGY

A Lustre directory default does not restripe existing files

In this article
THE QUICK TAKE

Separate directory defaults, file creation and explicit migration; a pathname under a new policy does not prove that its objects moved.

The directory changed but the checkpoint did not

A team changes a checkpoint directory’s Lustre stripe default and expects the next save to use the new layout. The writer opens and truncates an existing file instead of creating a fresh file. The directory policy therefore does not establish the layout of the object actually being written.

The setstripe manual distinguishes creating a file with a layout from replacing a directory’s default for new files. Review the writer’s file lifecycle before interpreting a performance comparison as a stripe-layout experiment.

Inspect the file rather than its parent

The getstripe manual describes inspection of stripe count, stripe size, allocated OST objects and composite components. Save the actual target file’s layout and identity. A parent-directory default is evidence about a creation policy, not a substitute for that observation.

Also distinguish a data-file layout from the placement of directory metadata. A checkpoint pathname can involve metadata on an MDT and data objects on OSTs. Those are different control surfaces, and changing one does not necessarily move the other.

Trace how the writer publishes files

Determine whether the application creates a temporary file, rewrites an existing inode, copies an older file or renames a completed file into place. Preserve the creation directory and the point at which layout is selected. The final pathname can conceal where the file originated.

For a controlled comparison, create a genuinely new disposable file under the intended policy and inspect its layout before writing the representative checkpoint. Keep pre-existing files in a separate cohort rather than silently combining old and new layouts in a single result.

Account for inheritance and components

Directory inheritance has documented rules, and composite layouts can give different file extents different stripe options. An abbreviated listing of one stripe count can therefore omit an important component or inherited setting. Capture the full relevant layout instead of choosing the field that matches the desired configuration.

Do not assume that rewriting the data migrates its allocated objects to a new layout. Existing-file migration is a separate supported operation with its own concurrency and capacity considerations. The creation-default change should not be presented as if that migration already happened.

Acceptance for the placement change

Accept the change when newly created files demonstrate the intended layout and the actual application publication path preserves it. Validate readback and restoration as well as write completion. Keep object identity and final layout with the workload description so repeated runs can be compared honestly.

Storage placement provides the general loading context. File and directory synchronization explains why selecting a layout is separate from making a completed publication durable.

Limits of the result

A verified stripe layout does not guarantee a throughput improvement or establish independence from shared OST hardware. It also does not qualify every file size and concurrency pattern. This procedure reports no measurements. Its purpose is to show that the proposed layout was actually applied to the tested files, rather than merely configured on a directory that the writer did not use for new creation.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles