Patent ID: 9733848
Date: 2017-08-15
CPC Classifications: G06F,H04L

Claim:
1. A method for sharing a storage resource, applied to a server cluster system, wherein the server cluster system comprises a server node and a network storage node, the server node comprises a hard disk, the network storage node comprises a storage array, a distributed storage controller is operably disposed and configured to run on the server node, and the distributed storage controller comprises a metadata controller, a virtual block service module and a read-write control module, the read-write control modules comprise an object storage delegate and a SAN storage agent, wherein the object storage delegate is configured to perform read-write control on a storage resource of the hard disk and the SAN storage agent is configured to perform read-write control on a storage resource of the storage array, and the method comprises: dividing, by the metadata controller, storage resources of the hard disk and the storage array into storage partitions, wherein the storage partitions form a shared storage resource pool; allocating, by the metadata controller, a read-write control module to each of the storage partitions; generating, by the metadata controller, global partition information, wherein the global partition information records a correspondence between each of the storage partitions in the shared storage resource pool and the allocated read-write control module; and when receiving, by the virtual block service module, a storage request message, performing the following: