TECHNOLOGY

RequiresMountsFor establishes mount dependencies rather than artifact validation

In this article
THE QUICK TAKE

The systemd.unit documentation says RequiresMountsFor adds Requires and After dependencies for all mount units needed to access the specified path. Mount points marked noauto are still pulled in by this dependency, despite not being mounted automatically through local-fs.target. An absolute path therefore identifies a dependency chain, not simply a directory-exists predicate. The effective mount configuration determines which units are part of that chain.

A model worker may start successfully against an empty directory on the root filesystem when its intended model volume is absent. RequiresMountsFor expresses a mount dependency for an absolute path. It can prevent a particular ordering mistake, but it does not validate the contents of the mounted storage or prove the model artifact is the expected release.

The service-manager contract

The systemd.unit documentation says RequiresMountsFor adds Requires and After dependencies for all mount units needed to access the specified path. Mount points marked noauto are still pulled in by this dependency, despite not being mounted automatically through local-fs.target. An absolute path therefore identifies a dependency chain, not simply a directory-exists predicate. The effective mount configuration determines which units are part of that chain.

Implementation details

Specify the path the worker actually opens, then inspect the generated dependencies and mounted source. Keep artifact digest, tokenizer compatibility and access permissions as separate acceptance checks. If an application path is redirected through additional namespace or deployment configuration, resolve what the process really sees. A dependency on the host path should not be assumed to establish an unrelated private filesystem view. Record the distinction between mounting a volume and successfully reading the required model files.

A constructed validation case

Build a disposable mount-backed model directory and a service that records the visible mount identity before reading a harmless fixture file. Compare the intended mount, a failed mount activation and a mounted volume containing the wrong fixture. Add a noauto case to verify that the service dependency still requests that mount. The wrong-content branch should demonstrate the limit clearly: dependency ordering can succeed while artifact validation fails. Keep the directory and mount namespace isolated from production model storage.

Recovery limits

Successful activation is not a continuous storage-health monitor. Later I/O failures, stale remote data or an unexpected model revision require independent handling. Review the actual mount dependency graph rather than inferring it from a familiar path name. Keep startup failures distinguishable from model validation failures so that recovery does not repeatedly restart a worker against the same incorrect volume. The documented mechanism establishes dependencies; the proposed artifact checks establish a different claim.

Primary references

systemd systemd.unit documented interface; systemd systemd.service documented interface.

This is a proposed service-lifecycle validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the availability or correctness of an inference service.

Reproducible inference stacks: preserving a GPU pilot’s result; Golden inference API fixtures: test the contract rather than prose.

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