TECHNOLOGY

A CephFS client eviction is not a clean disconnect

In this article
THE QUICK TAKE

Treat eviction as a state-loss and fencing event; removing a blocklist entry does not restore a healthy mount or prove buffered writes survived.

The mount returned, but did the writes survive?

A training client loses contact with the metadata service and is evicted. An operator removes its blocklist entry and sees filesystem activity resume. That observation does not establish that the mount is fully healthy or that buffered checkpoint data survived the interruption.

Ceph’s client-eviction reference states that eviction prevents further communication with MDS and OSD daemons and loses unflushed buffered data. Recovery must start from the application’s last verified durable state rather than from an assumption that the interrupted process retained every accepted write.

Identify the evicted session

Preserve the client identifier, connection identity, mount implementation and associated application processes. Determine whether the eviction followed session inactivity, an enabled capability-revoke timeout or failure to reconnect during MDS startup. These mechanisms describe different triggering conditions, even though the access restriction may look similar.

Keep the MDS logs and effective timeout configuration with the event. A hostname alone is insufficient when a machine hosts several mounts or a gateway represents other clients. Establish exactly which checkpoint writer and open files were affected.

Understand the access fence

CephFS normally uses the OSD blocklist to prevent the evicted client from continuing data access. The documented OSDMap epoch barrier requires other clients to observe a sufficiently recent map before touching affected objects. This protects the transition between old access and newly granted capabilities.

The metadata-cache reference explains those capabilities. Dropping a session with blocklisting disabled changes the scope: manual eviction may then affect only the MDS addressed. Do not interpret a local session removal as cluster-wide fencing without checking the effective policy.

Reconnect without inventing recovered state

The reference recommends unmounting and making a fresh mount to obtain a healthy client after eviction. Removing the blocklist entry alone is not guaranteed to restore a fully functional client and can put integrity at risk if other clients accessed files involved in buffered I/O.

Before resuming training, stop the old writer from blindly continuing its publication sequence. Inspect the retained checkpoint through a fresh supported client path and validate its manifest and component set. Do not merge uncertain buffered output into a newer writer’s result merely because filenames match.

Acceptance after the interruption

Accept recovery when the old access is fenced, the replacement mount is healthy and the application restores a known complete checkpoint. Record which in-flight work was abandoned and whether any publication remains uncertain. Successful directory listing is weaker evidence than loading and validating the intended saved state.

Checkpoint failure-domain reasoning helps choose the retained recovery copy. Snapshot consistency explains why visible files alone cannot establish a coherent training state.

Boundaries of the procedure

This is not a recommendation to relax eviction timeouts to hide an unreliable network. Nor does it claim that every evicted client lost application data: the relevant boundary is what remained unflushed. The result must distinguish access recovery from data recovery. Preserve both conclusions explicitly so a remounted client is not mistaken for proof that the interrupted checkpoint completed.

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