Method and system for pooling, partitioning, and sharing network storage resources
First 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;
determining, by the virtual block service module, a storage partition associated with the storage request message;
determining, by the virtual block service module, according to the global partition information, the read-write control module that is associated with the storage partition; and
sending, by the virtual block service module, the storage request message to the read-write control module.
3 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method and a system for sharing a storage resource, where storage resources of a hard disk and a storage array are divided into multiple storage partitions and the multiple storage partitions form a shared storage resource pool, a read-write control module is allocated to each storage partition, and global partition information is generated to record a correspondence between each storage partition in the shared storage resource pool and the read-write control module. The embodiments of the present invention implement fast and simple integration of heterogeneous storage resources, and therefore can efficiently use various storage resources, save cost, and avoid a resource waste.
25 Citations
18 Claims
-
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; determining, by the virtual block service module, a storage partition associated with the storage request message; determining, by the virtual block service module, according to the global partition information, the read-write control module that is associated with the storage partition; and sending, by the virtual block service module, the storage request message to the read-write control module. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A server cluster system comprising a server node, a network storage node, and a distributed storage controller;
-
wherein the server node comprises a hard disk, the network storage node comprises a storage array, the distributed storage controller runs on the server node, and the distributed storage controller comprises a metadata controller, a virtual block service module, and a read-write control module; wherein the metadata controller is configured to; divide storage resources of the hard disk and the storage array into storage partitions, wherein the storage partitions form a shared storage resource pool; allocate a read-write control module to each of the storage partitions, wherein 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; generate 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 deliver the global partition information to the virtual block service module; wherein the virtual block service module is configured to; determine the storage partition associated with the storage request message; determine the read-write control module that is associated with the storage partition; and send the storage request message to the read-write control module; and wherein the read-write control module is configured to perform an operation requested by the storage request message. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer, comprising:
- a processor, a memory, a bus, a communications interface and a hard disk, and the computer is connected to a network storage node which comprises a storage array, wherein;
the memory is configured to store a computer execution instruction method, the processor is connected to the memory by using the bus, and when the computer runs, the processor executes the computer execution instruction method to implement a distributed storage controller running 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, the method comprising; dividing storage resources of the hard disk and the storage array into storage partitions, wherein the storage partitions form a shared storage resource pool; allocating a read-write control module to each of the storage partition; generating 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 a storage request message, performing the following; determining the storage partition associated with the storage request message; determining, according to the global partition information, the read-write control module that is associated with the storage partition; and sending the storage request message to the read-write control module.
- a processor, a memory, a bus, a communications interface and a hard disk, and the computer is connected to a network storage node which comprises a storage array, wherein;
-
18. A computer-readable medium, comprising a computer execution instruction, wherein when a processor of a computer, which comprises a hard disk and is connected to a network storage node which comprising a storage array, executes the computer execution instruction, the computer implements a distributed storage controller running on the server node, and the distributed storage controller comprises a metadata controller, a virtual block service module and read-write control modules, each of the read-write control modules comprising 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 computer executes a method for creating a virtual machine comprising:
-
dividing storage resources of the hard disk and the storage array into storage partitions, wherein the storage partitions form a shared storage resource pool; allocating one of the read-write control module to each of the storage partitions; generating 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 a storage request message, performing the following; determining the storage partition associated with the storage request message; determining, according to the global partition information, the read-write control module that is associated with the storage partition; and sending the storage request message to the read-write control module.
-
Specification