The invention discloses an NFS (
Network File System) service high-availability method,
system, equipment and medium based on state detection, belongs to the technical field of information, and aims to solve the technical problem of low reliability of NFS service caused by abnormal working state of an NFS
server in an NFS high-availability
system. CephFS is integrated to serve as a rear-end storage
system, and a main node and a standby node share the same data; at the same time, deploying NFS-Ganesha services at all
server nodes of the cluster, and exporting the CephFS as an NFS through an FSAL; a keepalived service is deployed on all
server nodes of the cluster for health monitoring and
failover, and all the nodes share the same
virtual IP address; a local
loopback address mounting strategy is adopted, a shared
directory exported by the server node is mounted at the server node, and the
IP address of the NFS service is specified to be a local
loopback address, so that the request
processing capability of the server is detected.