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
asked 2 years ago247 views
3 Answers
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
answered 2 years ago
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
answered 2 years ago
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions