Stale mount handle on file gateway

0

Hi we have two storage gateway servers on our local environment. and I've been using them for several years. the problem they tend to die after some time, and we need to create a new server. now I've restarted the storage gateways because we suspected they are acting slow (happened before causing high load on the linux servers where they are mounted) now I'm getting "stale file handle" on some shares. how to debug this?

The servers (the nfs clients) are Centos 6 and Centos 7.

Regards Yaniv

Yanivhs
posta 2 anni fa251 visualizzazioni
3 Risposte
0

Hi Yaniv,

Stale file handles can occur when the file gateway is rebooted and there are clients with open files from the gateway NFS share. File handles for these open files can get invalid on the server side when one of the clients removes an open file. You can use file gateway audit logs to review the client activity. You may resolve this error by un-mounting/re-mounting the NFS share on the client, or rebooting the client. Thank you - Surya

profile pictureAWS
Surya
con risposta 2 anni fa
0

Hi

and what i'm suppose to configure in the logs ? Also, remounting will not work if there is a problem in the storage gateway. it's a black box.

Yanivhs
con risposta 2 anni fa
0

Hi, audit logs on the NFS file share would give insight into which client deleted the file when it it is being used by a different client at the same time.

To prevent running into the issue, application/client should coordinate and delete a file when it is not in use by any other client. If remounting doesn't work, rebooting the NFS client usually resolves this error and clears the stale file error reported by the client.

profile pictureAWS
Surya
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande