The invention discloses a method, a
system, equipment and a medium for detecting the working state of an NFS (
Network File System)
server, belongs to the technical field of information, and aims to solve the technical problem of how to directly detect the working state of the
server on a node where the NFS
server is located, eliminate the influence of a
client and a network, shorten the fault time and improve the working efficiency. According to the technical scheme, an NFS service is externally provided based on NFS-Ganesha, support for the rear end of a CephFS distributed storage
system is achieved by modifying an NFS-Ganesha
source code and a configuration file, a
client from a local
loopback address 127.0. 0.1 is allowed to access, and the access permission of the local
loopback address is released; the method comprises the following steps: regularly collecting statistical information of the NFS-Ganesha service during operation by adopting a ganeshats tool; analyzing the change of the operation count, and if the operation count does not change in a preset detection period, testing a shared
directory which is mounted and exported by a local
loopback address and setting
timeout limitation; and if the mounting test fails, judging that the working state of the NFS
server side is abnormal, and automatically executing graceful restart of the NFS-Ganesha service.