METHOD FOR IMPLEMENTING DISK ARRAY, AND METHOD AND APPARATUS FOR READING OR WRITING DATA
First Claim
1. A method for implementing a disk array, comprising:
- creating logical partition regions according to the number of controllers in a controller group, wherein each logical partition region corresponds to one controller in one controller group;
recording a mapping relationship between the logical partition regions and the controllers in a controller mapping table;
allocating, according to a set disk selection policy, chunklets for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region, and recording a mapping relationship between the logical partition regions and the chunklets in a chunklet mapping table;
when identifying that the number of controller groups which are mounted with the physical disk changes re-dividing logical partition regions according to the current number of controllers in the controller group, wherein each logical partition region corresponds to one controller in one controller group;
updating a mapping relationship between a virtual volume and a logical partition region in a logical partition region mapping table; and
allocating, according to the set disk selection policy chunklets for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region, and recording a mapping relationship between the logical partition regions and the chunklets in the chunklet mapping table.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for implementing a disk array, and a method and apparatus for reading or writing data are provided in embodiments of the present invention. The method includes: creating logical partition regions, where each logical partition region corresponds to one controller in one controller group; recording a mapping relationship between the logical partition regions and the controllers in a controller mapping table; and allocating, chunklets for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region, and recording a mapping relationship between the logical partition regions and the chunklets in a chunklet mapping table. In the present invention, a chunklet in a physical disk that is managed by a controller in the same controller group is set to corresponding to each logical partition region, so that an expansion operation is completed easily.
16 Citations
10 Claims
-
1. A method for implementing a disk array, comprising:
-
creating logical partition regions according to the number of controllers in a controller group, wherein each logical partition region corresponds to one controller in one controller group; recording a mapping relationship between the logical partition regions and the controllers in a controller mapping table; allocating, according to a set disk selection policy, chunklets for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region, and recording a mapping relationship between the logical partition regions and the chunklets in a chunklet mapping table; when identifying that the number of controller groups which are mounted with the physical disk changes re-dividing logical partition regions according to the current number of controllers in the controller group, wherein each logical partition region corresponds to one controller in one controller group; updating a mapping relationship between a virtual volume and a logical partition region in a logical partition region mapping table; and allocating, according to the set disk selection policy chunklets for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region, and recording a mapping relationship between the logical partition regions and the chunklets in the chunklet mapping table. - View Dependent Claims (3, 4)
-
-
2. (canceled)
-
5. An apparatus for implementing a disk array, comprising:
-
a logical partition region dividing module, configured to create logical partition regions according to the number of controllers in a controller group, wherein each logical partition region corresponds to one controller in one controller group, and further configured to trigger a second mapping relationship recording module and a disk selecting module; the second mapping relationship recording module, configured to record a mapping relationship between the logical partition regions and the controllers in a controller mapping table; the disk selecting module, configured to allocate, according to a set disk selection policy, chunklets for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region, and record a mapping relationship between the logical partition regions and the chunklets in a chunklet mapping table; a module for monitoring the number of controllers, configured to trigger the logical partition region dividing module when identifying that the number of controller groups that are mounted with a physical disk changes. - View Dependent Claims (7, 8)
-
-
6. (canceled)
-
9. An apparatus for reading or writing data on a disk array, comprising:
-
a logical partition region querying module, configured to;
when receiving a request for reading or writing data on a disk array, query a logical partition region mapping table for a logical partition region that is corresponding to a virtual address to which the request for reading or writing data is directed in a virtual volume;a controller querying module, configured to query a controller mapping table to determine a controller that is corresponding to the logical partition region; a chunklet querying module, configured to query a chunklet mapping table of the queried and determined controller for a chunklet that is corresponding to the virtual address to which the request for reading or writing data is directed, wherein each logical partition region corresponds to one controller in one controller group, when identifying that the number of controller groups which are mounted with the physical disk changes, re-dividing logical partition regions according to the current number of controllers in the controller group, and each logical partition region corresponds to a chunklet in physical disk that is managed by a controller in a corresponding controller group, after the chunklet for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region was allocated according to the set disk selection policy and a mapping relationship between the logical partition regions and the chunklets in the chunklet mapping table was recorded; and a data reading or writing module, configured to perform a data reading or writing operation on the queried and determined chunklet.
-
-
10. A method for reading or writing data on a disk array, comprising:
-
querying a logical partition region mapping table for a logical partition region that is corresponding to a virtual address to which a request for reading or writing data is directed in a virtual volume, when receiving the request for reading or writing data on a disk array; querying a controller mapping table to determine a controller that is corresponding to the logical partition region; querying a chunklet mapping table of the queried and determined controller for a chunklet that is corresponding to the virtual address to which the request for reading or writing data is directed, wherein each logical partition region corresponds to one controller in one controller group, when identifying that the number of controller groups which are mounted with the physical disk changes, re-dividing logical partition regions according to the current number of controllers in the controller group, and each logical partition region corresponds to a chunklet in physical disk that is managed by a controller in a corresponding controller group, after the chunklet for the logical partition regions from a physical disk that is managed by a controller in a controller group that is corresponding to each logical partition region was allocated according to the set disk selection policy and a mapping relationship between the logical partition regions and the chunklets in the chunklet mapping table was recorded; and performing a data reading or writing operation on the queried and determined chunklet.
-
Specification