This invention discloses a method, apparatus, and medium for accessing a
clustered file system, applicable to
virtualization and hyper-
converged infrastructure. Based on block file data I / O operations, the Paxos
algorithm is applied to determine the target node for lock request access. The entire process achieves node-to-node access without relying on the network. I / O operations are not limited by
specific storage through read and write operations. An added lock region is used for inter-node competition for lock resources. Disk regions are partitioned to target
metadata structures requiring concurrent access protection. Then, based on the Paxos
algorithm and the kernel
block layer interface, I / O requests are directly issued to allow target nodes to compete for lock resources. This avoids the problem of existing clustered file systems being unable to simultaneously achieve network independence and storage independence during concurrent access, improving the stability and
usability of clustered files.