A distributed lock management method based on a
storage area network SAN belongs to the
network storage field. The distributed lock management method is characterized in that all node servers of a cluster form multiple master-slave mode sub-clusters, namely, Quorum; one node in the sub-clusters is used as the master
server and the other nodes are slave servers; the multiple sub-clusters include one State Quorum and a plurality of Lock Quorums, which are respectively in charge of the management of the birth-death state of the
system nodes and the management of a read-write visit lock in a
name space; the State Quorum is formed by all the nodes and the Lock Quorum is formed by nodes of arbitrary number, the sizes and the structures of the State Quorum and the Lock Quorum can be flexibly configured by the
client; both the State Quorum and the Lock Quorum follow the sub-cluster detection protocol, and all the nodes can select the only master
server in the Quorum through the protocol to configure a normal Quorum; all the Lock Quorums respectively manages the different sections of the
name space, are not overlapped and are respectively vested with different weights according to different service capacities; all the Lock Quorums independently count the load conditions, therefore when the lock management task charged by one Lock Quorum is too heavy, the load balancing process is triggered to distribute part task of the Lock Quorum to the other Lock Quorums. The invention is easy for flexible configuration and has good properties, high
extensibility and high reliability.