﻿# Recover evidence for a stale model-file handle on NFS

Preserve NFS handle and export identity before reopening a familiar path; a newly resolved object must satisfy the accepted model revision contract.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-storage-nfs-stale-handle/
Language: en

A worker's existing NFS file access returns a stale-handle error, while a fresh pathname lookup appears to find a model file. Those operations can refer to different underlying objects. An NFS filehandle is an opaque object reference, not merely a filename. Preserve the old access context and the new lookup result before reopening silently and mixing artifact identities.

## Identify the protocol and export

Record server identity, export, protocol version, mount options and the worker's mount namespace. A failover, restored filesystem or changed export can alter the relevant server-side object context. Do not treat an administrative hostname as sufficient identity for the entire investigation. Preserve maintenance events and actual source mappings so a client-side symptom can be related to the export that generated its handles.

## Separate handle from pathname

Linux export documentation explains why remote object references need a stable mechanism beyond filename spelling. Normal rename behavior does not imply that every existing handle becomes stale. Deleting and recreating an object or replacing backing storage is a different event. A new file with the same path is therefore not automatically the object an earlier loader opened or the accepted artifact revision it represents.

## Preserve the original failure

Keep the operation and exact error, including whether it occurred on an existing open or a new lookup. A generic retry can discard that distinction. Compare server and client evidence under the applicable protocol's handle and recovery semantics. An unavailable server, permission denial and a stale object reference require different branches; reconnecting transport cannot by itself recreate a removed object's identity.

## Reopen under a revision contract

If recovery resolves the pathname again, verify the resulting file's accepted revision and integrity before use. Do not continue a partially assembled model with replacement shards merely because their names match. Retain the relationship between old handles, abandoned work and newly selected artifacts. A clean complete reload can be safer than assuming a retry resumed the same immutable object after an export change.

## Verify the restored access path

In an isolated equivalent, reproduce the supported maintenance transition and validate new opens, complete loading and old-reference handling. Preserve any unsupported recovery assumptions instead of promising automatic repair. A useful result explains the object-identity break and application response. It does not declare every stale handle a network outage or authorize remounting an active shared filesystem as a harmless first diagnostic step.

## Primary references

[IETF NFS Version Four Minor Version One Protocol](https://www.rfc-editor.org/rfc/rfc8881.html).

[Linux Exported Filesystem Handle Identity](https://docs.kernel.org/filesystems/nfs/exporting.html).

[Linux NFS Mount Recovery and Coherence](https://man7.org/linux/man-pages/man5/nfs.5.html).

Related reading: [Choose vLLM safetensors loading strategies for local disks and NFS](/journal/vllm-safetensors-load-strategy/); [Keep tokenizer vocabulary, special tokens and chat templates in one release](/journal/tokenizer-artifact-release-manifest/).
