摘要 |
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. In this way, when a storage request message is received subsequently, a storage partition corresponding to the storage request message can be determined, a read-write control module that is corresponding to the storage partition corresponding to the storage request message can be determined according to the global partition information, and finally the storage request message can be sent to the determined read-write control module, so that the read-write control module performs an operation requested by the storage request message. 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. |