This application is based upon and claims the benefit of priority of the prior Japanese Patent application No. 2013-239897, filed on Nov. 20, 2013, the entire contents of which are incorporated herein by reference.
The embodiment discussed herein is directed to a storage control device, a program, and a control method.
In a storage apparatus, in a case where a storage device is broken down or preventive maintenance of a storage device is performed, data is copied (rebuilding/redundant copying) to a hot spare (HS; spare storage device). Then, after rebuilding/redundant copying is completed, and the broken storage device or a storage device that is the target for the preventive maintenance is replaced, a copying-back operation from the HS to a storage device after the replacement is performed.
The operation of a conventional storage apparatus is dedicatedly used for a host, and there is a premise that a change in the configuration is hardly made and, also in the copying-back operation, as is known, the operation configures a part of the maintenance sequence.
[Patent Literature 1] Japanese Laid-open Patent Publication No. 7-110743
[Patent Literature 2] Japanese Laid-open Patent Publication No. 2010-9442
However, when the copying-back operation from the HS is performed, for example, the storage apparatus needs to be monitored until the copying-back operation is completed, and there is an influence on the input/output (I/O) performance during the copying-back operation. In other words, implementation of an open system or shared use (clouding or the like) of a system including a storage apparatus has progressed, and there is an issue for reducing the load according to the operation work (copying-back operation) in an operation form.
There is provided a storage control device that is communicably connected to a plurality of storage devices and a plurality of spare storage devices through a plurality of paths. The storage control device includes: a memory configured to store path information associating the plurality of spare storage devices and the plurality of paths with each other; and a selection unit configured to select a spare storage device that is a replacing apparatus from among the plurality of spare storage devices based on a path connection condition determined in accordance with a path in which the storage device that is a replacement target among the plurality of storage devices is connected and the path information.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention.
Hereinafter, a storage control device, a program, and a control method according to an embodiment will be described with reference to the drawings. However, the embodiment illustrated below is merely an example but is not intended to exclude various modified examples or the application of various technologies that are not explicitly represented in the embodiment. In other words, this embodiment may be variously changed in a range not departing from the concept thereof.
In addition, each diagram is not intended to include only constituent elements illustrated in the diagram, but any other function and the like may be included.
Like reference numerals in the drawings denote like elements, and thus their description will not be presented.
[A] Example of Embodiment
[A-1] System Configuration
The storage system 100 according to an example of the embodiment, as illustrated in
The server 2, for example, is a computer (information processing apparatus) provided with a server function. In the example illustrated in
The storage apparatus 1 is equipped with a plurality of storage devices 21 to be described later and provides a storage area for the server 2. The storage apparatus 1 distributes data to the plurality of storage devices 21 using redundant arrays of inexpensive disks (RAID) and stores the data in a redundant state. The storage apparatus 1 includes two control modules #0 and #1 (CM #0 and CM #1; storage control devices) 10 and a plurality of disk enclosures (DE) 20.
Hereinafter, in a case where a specific CM is represented, it will be simply denoted as “CM #0” or “CM #1”. On the other hand, in a case where an arbitrary CM is represented, it will be denoted as a “CM 10”.
As illustrated in
For redundancy, each DE 20 is connected to CM #0 and CM #1 to be communicable with each other through access paths and includes a plurality of storage devices 21.
Each storage device 21 is a known device that stores data to be readable and writable and, for example, is a hard disk drive (HDD) or a solid state drive (SSD). The storage devices 21 have the same configuration. Among the plurality of the storage devices 21 included in each DE 20, at least one, as illustrated in
The CM 10 is a control device that performs various control processes and performs various control processes in accordance with storage access requests (access control signals; hereinafter, referred to as host I/Os) from the server 2. The CM 10 includes a central processing unit (CPU) 11, a memory 12, a plurality of ports 13, and a communication adapter (CA) 14. In the example illustrated in
The CA 14 is an interface controller that connects to the server 2 in a communicable manner.
The port 13 is a device adapter (DA) as an interface used for connecting the CM 10 and the DE 20 together in a communicable manner and, for example, is a fiber channel (FC) adapter. The CM 10 writes/reads data into/from the DE 20 through the port 13.
The memory 12 is a storage device that includes a read only memory (ROM) and a random access memory (RAM). In the ROM of the memory 12, programs such as a basic input/output system (BIOS) and the like have been written. A software program on the memory 12 is appropriately read and executed by the CPU 11. In addition, the RAM of the memory 12 is used as a primary recording memory or a working memory. In an example of this embodiment, the memory 12 stores information relating to a path connection condition (to be described later with reference to
The CPU 11 is a processing device that performs various control processes and various calculation operations and realizes various functions by executing an operating system (OS) or a program stored in the memory 12. In other words, the CPU 11, as illustrated in
The program for realizing the functions of the detection unit 111, the selection unit 112, the write processing unit 113, and the replacement processing unit 114, for example, is provided in a form being recorded on a computer-readable recording medium such as a flexible disk, a CD (a CD-ROM, a CD-R, a CD-RW, or the like), a DVD (a DVD-ROM, a DVD-RAM, a DVD-R, a DVD+R, a DVD-RW, a DVD+RW, an HD DVD, or the like), a Blu-ray disk, a magnetic disk, an optical disc, or a magneto-optical disk. A computer reads the program from the recording medium through a reading device not illustrated in the figure, transfers the read program to an internal recording device or an external recording device so as to be stored therein, and uses the stored program. In addition, the program may be recorded in a storage device (recording medium) such as a magnetic disk, an optical disc, or a magneto-optical disk and supplied from the storage device to the computer through a communication path.
In order to realize the functions of the detection unit 111, the selection unit 112, the write processing unit 113, and the replacement processing unit 114, the program stored in the internal storage device (in this embodiment, the memory 12) is executed by a microprocessor (in this embodiment, the CPU 11) of the computer. At this time, the program recorded on the recording medium may be read and executed by the computer.
In addition, the storage apparatus 1 may be configured to be redundant by configuring CM #0 as primary and CM #1 as secondary. Furthermore, in a case where CM #0 that is the primary module is broken down, CM #1 that is the secondary module may be configured to succeed the function of CM #0.
The detection unit 111 specifies a storage device 21 that is a replacement target. More specifically, the detection unit 111 detects the occurrence of an abnormality of the storage device 21 such as breakdown and detects the occurrence of a request for preventive maintenance of the storage device 21 from an operator, thereby specifying the storage device 21 that is the replacement target. In a case where the preventive maintenance of the storage device 21 is performed, the detection unit 111 may be configured to detect the elapse of a predetermined time after building the storage device 21 into the storage apparatus 1 or detect the occurrence of an error for a predetermined number of times or more in accordance with host I/Os for a specific storage device 21. In addition, the detection unit 111, as will be described later with reference to
The selection unit 112 selects an HS 21a that is the replacing apparatus from among a plurality of HS's 21a included in the storage apparatus 1. More specifically, in a case where a storage device 21 that is the replacement target is specified by the detection unit 111, the selection unit 112 selects an HS 21a that is the replacing apparatus in which data stored in the storage device 21 that is the replacement target is to be stored. A specific technique for selecting the HS 21a that is the replacing apparatus using the selection unit 112 will be described later with reference to
The write processing unit 113 writes data into the storage device 21. More specifically, the write processing unit 113 performs a rebuilding/redundant copying (data disk building) process for the HS 21a that is the replacing apparatus selected by the selection unit 112. In a plurality of storage devices 21 configuring the same RAID group, the data of each storage device 21 is copied to a plurality of other storage devices 21 in a distributed manner so as to be redundant. The write processing unit 113 reads data stored in the plurality of storage devices 21 configuring the RAID group together with the storage device 21 that is the replacement target and stores the read data in the HS 21a that is the replacing apparatus, thereby restoring data (data disk building) of the storage device 21 that is the replacement target. In addition, after the replacement of the storage device 21 that is the replacement target, the write processing unit 113 serves also as a writing-back processing unit 113a that copies back (writes back) data written in the HS 21a that is the replacing apparatus to the storage device 21 after replacement. A specific writing technique using the write processing unit 113 will be described later with reference to
After the rebuilding/redundant copying using the write processing unit 113 is completed, the replacement processing unit 114 determines whether definitions (storage device configuration information to be described later with reference to
Hereinafter, the functions of the detection unit 111, the selection unit 112, the write processing unit 113, and the replacement processing unit 114 will be described in detail with reference to
In the example illustrated in
Hereinafter, in a case where a specific DE is represented, it will be denoted as “DE #00”, “DE #01”, “DE #10”, “DE #11”, “DE #20”, “DE #21”, “DE #30”, or “DE #31”. On the other hand, in a case where an arbitrary DE is represented, it will be denoted as a “DE 20”. In addition, hereinafter, DEs #00, #10, #20, and #30 that are directly connected to the CM 10 through paths #0 to #3 may be referred to as basic DEs 20. Hereinafter, DEs #01, #11, #21, and #31 that are indirectly connected (cascade connection) to the CM 10 respectively through DEs #00, #10, #20, and #30 may be referred to as extended DEs 20.
The CM 10 includes four ports 13 denoted as #0 to #3. Hereinafter, in a case where a specific port is represented, it will be denoted as one of “port #0” to “port #3”, and, in a case where an arbitrary port is represented, it will be denoted as a “port 13”. Ports #0 to #3 are respectively connected to paths #0 to #3.
The DE 20 includes a plurality of storage devices 21 each including one HS 21a and an expander 22. In the example illustrated in
The expander 22 is a device that relays between the CM 10 and the DE 20 and performs a data transfer based on a host I/O. In other words, the CM 10 accesses each DE 20 through the expander 22. In the example illustrated in
The detection unit 111, for example, detects the occurrence of breakdown in the storage device 21 of DE #10 or detects the occurrence of a request for preventive maintenance of the storage device 21 of DE #10 (see reference sign A1). In other words, the detection unit 111 specifies the storage device denoted by reference sign A1 as the storage device 21 that is the replacement target.
In the example illustrated in
The selection unit 112 selects an HS 21a that is the replacing apparatus used for replacing the storage device 21 that is the replacement target among the plurality of HS's 21a included in the storage apparatus 1.
More specifically, the selection unit 112 acquires a path in which the storage device that is the replacement target is connected and a path connection condition that is determined based on the acquired path from the memory 12. In addition, the selection unit 112 acquires path information (to be described later with reference to
Then, the selection unit 112 selects an HS 21a having highest redundancy from the viewpoint of the path connection in the RAID configuration of the storage apparatus 1 as the HS 21a that is the replacing apparatus.
The selection unit 112 selects HS's 21a on the same path as the path in which the storage device 21 that is the replacement target is connected from among the plurality of HS's 21a as first candidates for the HS 21a that is the replacing apparatus. Here, the same path represents paths that are connected to the same port 13. In other words, in the example illustrated in
In addition, the selection unit 112 selects an HS 21a that is present on a path in which the storage device 21 that is the replacement target is not connected and is present on a path that does not configure a RAID group together with the storage device 21 that is the replacement target among the plurality of HS's 21a as a second candidate for the HS 21a that is the replacing apparatus. In other words, the selection unit 112 selects the HS's 21a of DEs #20, #21, #30, and #31 connected to the CM 10 through paths #2 and #3 as second candidate HS's 21a (see reference sign A3). In addition, in a case where there are a plurality of second candidate HS's 21a (for example, the HS's 21a of DEs #20, #21, #30, and #31), the selection unit 112 selects the HS's 21a of the DEs 20 (for example DEs #20 and #21) having a smallest path number as the second candidates with high priority. Furthermore, in a case where there are a plurality of DEs 20 (for example, DEs #20 and #21) on the path having the smallest path number, the selection unit 112 selects the HS 21a of the basic DE 20 (for example, DE #20) that has the smallest number of stages of the cascade connection so as to be closest to the CM 10 as the second candidate with high priority.
In other words, based on the path in which the storage device 21 that is the replacement target is connected, the selection unit 112 selects an HS 21a satisfying the path connection condition from among the plurality of HS's 21a as the HS 21a that is the replacing apparatus. Here, the path connection condition, for example, is a condition that is determined based on the path in which the storage device 21 that is the replacement target is connected. Then, the selection unit 112 selects the first or second candidate HS 21a as the HS 21a that is the replacing apparatus by using the path connection condition.
Furthermore, the selection unit 112 selects, as the HS 21a that is the replacing apparatus, an HS 21a satisfying a performance condition with high priority with reference to the storage device 21 that is the replacement target from among a plurality of HS's 21a. In other words, the selection unit 112 determines whether or not the first candidate HS 21a satisfies the performance condition. Then, in a case where the first candidate HS 21a satisfies the performance condition, the selection unit 112 selects the first candidate HS 21a. On the other hand, in a case where the first candidate HS 21a does not satisfy the performance condition, the selection unit 112 determines whether the second candidate HS 21a satisfies the performance condition. In a case where the second candidate HS 21a satisfies the performance condition, the selection unit 112 selects the second candidate HS 21a. On the other hand, in a case where the second candidate HS 21a does not satisfy the performance condition, the selection unit 112 selects the HS 21a of the DE 20 having the smallest value of the path number with high priority. In addition, in a case where there are a plurality of DEs 20 (for example DEs #00 and #01) on the path having the smallest path number, the selection unit 112 selects a basic DE 20 (for example, DE #00) that has the smallest number of stages of the cascade connection so as to be closest to the CM 10 with high priority.
In the storage device performance information, for each storage device 21, for example, a physical logical unit (PLU) number, a DE number, an inter-DE slot number, a distinction between an HS and a data storage device (HS or Data), iops, access speed (MB/s), a revolution number, a capacity, a disk size (inch), a distinction between an HDD and an SSD (HDD or SSD), a DE path, and a RAID logical unit (RLU) number are associated with one another. The storage device performance information, for example, is stored in the memory 12.
The PLU number, for example, includes an expander port number, a DE cascade number, and an inter-DE slot number and is information of 16 bits. For example, an inter-DE slot number is registered in bits 1 to 4, a DE cascade number is registered in bits 8 to 11, and an expander port number is registered in bits 12 to 13. In the expander port number, information relating to a path in which the storage device 21 (DE 20) is connected is registered, and, for example, information corresponding to paths #0 to #3 illustrated in
The DE path is information that is generated based on the expander port number and, for example, information corresponding to paths #0 to #3 illustrated in
The RLU number is information that represents the number of a RAID group to which the storage device 21 belongs. In a case where the storage device 21 belongs to any one RAID group, the number of the corresponding RAID group is registered in the RLU number. On the other hand, in a case where the storage device 21 (HS 21a) is unused, a number (0xFFFF or the like) that is not used as the number of a RAID group is registered in the RLU number.
In an example of this embodiment, the DE path and the RLU number included in the storage device performance information are respectively defined as the path information and the RAID configuration information.
Then, the selection unit 112 selects an HS 21a that is the replacing apparatus from among a plurality of HS's 21a based on the path connection condition and the path information determined in accordance with the path in which the storage device 21 that is the replacement target among the plurality of storage devices 21 is connected. More specifically, the selection unit 112 selects an HS 21a on the same path as the path in which the storage device 21 that is the replacement target among the plurality of HS's 21a is connected as the first candidate for the HS 21a that is the replacing apparatus based on the path connection condition and the path information. In addition, based on the path connection condition and the path information, the selection unit 112 selects an HS 21a that is on a path in which the storage device 21 that is the replacement target is not connected and is on a path not configuring the RAID group together with the storage device 21 that is the replacement target from among the plurality of HS's 21a as a second candidate for the HS 21a that is the replacing apparatus.
The selection unit 112 determines the performance condition, for example, based on the storage device performance information stored in the memory 12 included in the CM 10.
The selection unit 112 determines whether the performance condition is satisfied by determining whether or not at least some indices included in the storage device performance information of the HS 21a that is the replacing apparatus are equal to or more than corresponding indices of the storage device 21 that is the replacement target. Here, the some indices used for determining the performance condition may be variously selected from among the storage device performance information. In addition, the determination on whether the index (performance value) of the storage device performance information is equal to or more than the corresponding index is performed based on whether the performance value is a threshold or more. The threshold value is set based on the performance value of the storage device 21 that is the replacement target. In order to allow the performance value of the storage device 21 that is the replacement target to have desirable flexibility, a margin of a predetermined amount (for example, 5%) may be included in the threshold value.
Hereinafter, an HS 21a that is selected from the first candidate or the second candidate and satisfies the performance condition will be referred to as a compatible HS. In addition, hereinafter, an HS 21a that is selected from HS's other than the first and second candidates or does not satisfy the performance condition will be referred to as an incompatible HS. In other words, an HS 21a satisfying the path connection condition and the performance condition will be referred to as compatible HS, and an HS 21a that does not satisfy the path connection condition or the performance condition will be referred to as an incompatible HS.
In the example illustrated in
In the example illustrated in
The write processing unit 113 writes data stored in the storage device 21 that is the replacement target into the HS 21a that is the replacing apparatus based on redundant data stored in the storage device 21 of DE #00 configuring a RAID group together with the storage device 21 (see reference sign B1 illustrated in
The replacement processing unit 114 determines whether or not the HS 21a that is the replacing apparatus has been selected from the first candidate or the second candidate and satisfies the performance condition. In other words, the replacement processing unit 114 determines whether or not the HS 21a that is the replacing apparatus is a compatible HS.
In the example illustrated in
In other words, in a case where the HS 21a that is the replacing apparatus satisfies the path connection condition and the performance condition, after the completion of the rebuilding/redundant copying, the operator's disk maintenance or copying-back using the writing-back processing unit 113a is not performed. Then, the replacement processing unit 114 builds the HS 21a that is the replacing apparatus as a data disk configuring the RAID and defines the storage device 21, which is the replacement target, that is a data disk as an HS 21a (the HS 21a and the data disk are interchanged).
In addition, the operator may be notified of the completion of the rebuilding/redundant copying or the storage device replacing process, for example, by a display device, which is not illustrated in the figure, included in the server 2.
The replacement processing unit 114 rewrites the storage device configuration information stored in a storage device, which is not illustrated in the figure, included in the CM 10, thereby replacing the storage device 21 that is the replacement target with the HS 21a in which the data has been written by the write processing unit 113.
In the example illustrated in reference symbol (a) of
When the storage device replacing process illustrated in
In the example illustrated in
In the example illustrated in
The write processing unit 113 writes the data stored in the storage device 21 that is the replacement target into the HS 21a that is the replacing apparatus based on data stored in the storage device 21 of DE #00 configuring a RAID group together with the storage device 21 (see reference sign C1 illustrated in
The replacement processing unit 114 determines whether or not the HS 21a that is the replacing apparatus has been selected from the first candidate or the second candidate and satisfies the performance condition. In other words, the replacement processing unit 114 determines whether or not the HS 21a that is the replacing apparatus is a compatible HS.
In the example illustrated in
The writing-back processing unit 113a copies back (writes back) the data written into the HS 21a that is the replacing apparatus by the write processing unit 113 into the storage device 21 after the replacement (see reference sign C4 illustrated in
In addition, the operator may be notified of the completion of the rebuilding/redundant copying or the copying back, for example, by using a display device, which is not illustrated in the figure, included in the server 2.
In the example illustrated in
The selection unit 112 selects an incompatible HS as the HS 21a that is a replacing apparatus (see reference sign D2).
The write processing unit 113 extracts redundant data of the storage device 21, which is the replacement target, that is stored in three storage devices 21, which configures a RAID group, other than the storage device 21 that is the replacement target and rebuilds/redundantly copies data stored in the storage device 21 that is the replacement target (see reference sign D3).
Here, for example, in a case where an HS 21a is released from another rebuilding/redundant copying process or a new HS 21a is installed inside the storage apparatus 1, the HS 21a that is newly usable is generated. In such a case, the detection unit 111 detects the newly-usable HS 21a.
Then, the selection unit 112 determines whether or not the HS 21a detected by the detection unit 111 is a compatible HS. In a case where the detected HS 21a is a compatible HS, the selection unit 112 selects the detected HS 21a as an HS 21a that is a new replacing apparatus (see reference sign D4).
The write processing unit 113 continues the rebuilding/redundant copying to the incompatible HS based on the data stored in three storage devices 21, which configure a RAID group, other than the storage device 21 that is the replacement target and performs rebuilding/redundant copying also for a compatible HS in a parallel manner (see reference sign D5). In other words, the write processing unit 113 starts rebuilding/redundant copying from an area (in the middle of the process) for which the rebuilding/redundant copying to the incompatible HS has not been completed to the compatible HS.
In addition, the write processing unit 113 copies data, of which the rebuilding/redundant copying to the incompatible HS has been completed, from the incompatible HS to a compatible HS in parallel with the rebuilding/redundant copying (see reference sign D6).
Then, after the completion of the copying of the data from the incompatible HS to the compatible HS, the replacement processing unit 114 performs a process of replacing the storage device 21 that is the replacement target with the compatible HS (see
In addition, the incompatible HS is released from the RAID group illustrated in
[A-2] Operation
The storage device replacing process performed in the storage apparatus as an example of the embodiment configured as described above will be described along a flowchart (Steps S10 to S70) illustrated in
The detection unit 111 detects an abnormality of the storage device 21 such as breakdown or detects a request for the preventive maintenance of the storage device 21 from the operator or the like in Step S10. The detection of the request for the preventive maintenance of the storage device 21 may be performed by detecting the elapse of a predetermined time after building of the storage device 21 in the storage apparatus 1 using the detection unit 111. In addition, the detection of a request for the preventive maintenance of the storage device 21 may be performed by detecting the occurrence of an error for a predetermined number of times or more in accordance with the host I/Os for a specific storage device 21 using the detection unit 111.
The selection unit 112 selects an HS 21a that is the replacing apparatus from among a plurality of HS's 21a included in the storage apparatus 1 in Step S20. The HS selecting process will be described later in detail with reference to a flowchart illustrated in
The write processing unit 113 performs a rebuilding/redundant copy process for the HS 21a, which is the replacing apparatus, selected by the selection unit 112 in Step S30. More specifically, the write processing unit 113 performs rebuilding in a case where an abnormality of the storage device 21 such as breakdown is detected by the detection unit 111 and performs redundant copy in a case where a request for the preventive maintenance of the storage device 21 is detected by the detection unit 111. In addition, in a data building process, the write processing unit 113 writes data stored in the storage device 21 that is the replacement target into the HS 21a that is the replacing apparatus based on data stored in the storage devices 21 configuring a RAID group together with the storage device 21 that is the replacement target.
The replacement processing unit 114 performs a replacement determination of the storage device 21 in Step S40. The replacement determination will be described later in detail with reference to a flowchart illustrated in
In a case where the replacement of the storage device 21 can be performed as a result of the replacement determination (see Yes route of Step S40), the replacement processing unit 114 performs the replacement of the storage device 21 in Step S50, and the process ends. More specifically, the replacement processing unit 114 replaces the storage device 21 that is the replacement target with the HS 21a in which data has been written by the write processing unit 113. In other words, the replacement processing unit 114 performs the replacement process by interchanging the storage device configuration information of the storage device 21 that is the replacement target and the storage device configuration information of the HS 21a that is the replacing apparatus.
On the other hand, in a case where the replacement of the storage device 21 cannot be performed as a result of the replacement determination (see No route of Step S40), the operator performs disk maintenance in Step S60. More specifically, the operator replaces the storage device 21 that is the replacement target with a new storage device 21.
The writing-back processing unit 113a copies back (writes back) the data that has been written into the HS 21a that is the replacing apparatus by the write processing unit 113 into the storage device 21 after the replacement in Step S70, and the process ends.
Next, the HS selecting process (Step S20) represented in a flowchart illustrated in
The selection unit 112 determines whether or not there is an HS 21a on the same path as that of the storage device 21 that is the replacement target in Step S21. In other words, the selection unit 112 determines whether or not the first candidate HS 21a is present inside the storage apparatus 1, and the first candidate HS 21a is usable.
In a case where the HS 21a on the same path as that of the storage device 21 that is the replacement target is present (see Yes route of Step S21), the selection unit 112 determines whether or not the HS 21a has performance that is equal to or higher than the storage device 21 that is the replacement target in Step S22. In other words, the selection unit 112 determines whether the HS 21a on the same path as that of the storage device 21 that is the replacement target satisfies the performance condition with reference to the storage device 21 that is the replacement target.
In a case where the HS 21a has the performance that is equal to or higher than the storage device 21 that is the replacement target (see Yes route of Step S22), the selection unit 112 selects the HS 21a as a compatible HS in Step S23. In this way, the process ends, and the process proceeds to Step S30 illustrated in
On the other hand, in a case where the HS 21a on the same path as that of the storage device 21 that is the replacement target does not have the performance that is equal to or higher than the storage device 21 that is the replacement target (see No route of Step S22), the process proceeds to Step S24.
In addition, in a case where there is no HS 21a on the same path as that of the storage device 21 that is the replacement target (see No route of Step S21), the process proceeds to Step S24.
Then, the selection unit 112 determines whether there is an HS 21a that is on a path in which the storage device 21 that is the replacement target is not connected and is on a path not configuring a RAID group together with the storage device 21 that is the replacement target in Step S24. In other words, the selection unit 112 determines whether the second candidate HS 21a is present inside the storage apparatus 1, and the second candidate HS 21a is usable.
In a case where there is an HS 21a that is on a path in which the storage device 21 that is the replacement target is not connected and is on a path not configuring a RAID group together with the storage device 21 that is the replacement target (see Yes route of Step S24), the selection unit 112 determines whether the HS 21a has performance that is equal to or higher than the storage device 21 that is the replacement target in Step S25. In other words, the selection unit 112 determines whether an HS 21a on a path different from the path of the storage device 21 configuring the RAID group together with the storage device 21 that is the replacement target satisfies the performance condition with reference to the storage device 21 that is the replacement target.
In a case where the HS 21a has the performance that is equal to or higher than the storage device 21 that is the replacement target (see Yes route of Step S25), the selection unit 112 selects the HS 21a as a compatible HS in Step S26. In this way, the process ends, and the process proceeds to Step S30 illustrated in
On the other hand, in a case where the HS 21a that is on a path in which the storage device 21 that is the replacement target is not connected and is on a path not configuring a RAID group together with the storage device 21 that is the replacement target does not have the performance that is equal to or higher than the storage device 21 that is the replacement target (see No route of Step S25), the process proceeds to Step S27.
In addition, also in a case where there is no HS 21a that is on a path in which the storage device 21 that is the replacement target is not connected and is on a path not configuring a RAID group together with the storage device 21 that is the replacement target (see No route of Step S24), the process proceeds to Step S27.
Then, the selection unit 112, for example, selects the HS 21a of a DE 20 having the smallest path number as an incompatible HS in Step S27. In this way, the process ends, and the process proceeds to Step S30 illustrated in
Next, the storage device replacement determining process (Step S40) represented in a flowchart illustrated in
The replacement processing unit 114 determines whether the HS 21a for which the rebuilding/redundant copying process has been performed by the write processing unit 113 has performance that is equal to or higher than the storage device 21 that is the replacement target in Step S41.
In a case where the HS 21a does not have the performance that is equal to or higher than the storage device 21 that is the replacement target (see No route of Step S41), as described above with reference to
On the other hand, in a case where the HS 21a has the performance that is equal to or higher than the storage device 21 that is the replacement target (see Yes route of Step S41), the replacement processing unit 114 determines whether the HS 21a has been selected from the first candidate or the second candidate in Step S42.
In a case where the HS 21a has not been selected from the first candidate or the second candidate (see No route of Step S42), the process proceeds to Step S60.
On the other hand, in a case where the HS 21a has been selected from the first candidate or the second candidate (see Yes route of Step S42), as described above with reference to
[A-3] Advantage
As above, according to the CM (storage control device) 10 of an example of this embodiment, the following advantages can be acquired.
The selection unit 112 selects an HS 21a that is the replacing apparatus from among a plurality of HS's 21a based on the path connection condition determined in accordance with the path in which the storage device 21 that is the replacement target among the plurality of storage devices 21 is connected and the path information that associates the plurality of HS's 21a and a plurality of paths with each other. In this way, the replacement of the storage device 21 can be efficiently performed.
More specifically, the selection unit 112 selects a first candidate HS 21a that is on the same path as the path in which the storage device 21 that is the replacement target is connected from among the plurality of HS's 21a as the HS 21a that is the replacing apparatus as the path connection condition. In this way, before and after the replacement of the storage device 21, the load and the redundancy of the path between the CM 10 and the DE 20 can be maintained, and the configuration of the RAID group within the storage apparatus 1 can be maintained.
In addition, the selection unit 112 selects a second candidate HS 21a that is on a path in which the storage device 21 that is the replacement target or a storage device 21 configuring a RAID group together with the storage device 21 that is the replacement target is not connected from among the plurality of HS's 21a as the HS 21a that is the replacing apparatus as the path connection condition. In this way, before and after the replacement of the storage device 21, the load and the redundancy of the path between the CM 10 and the DE 20 can be maintained.
Furthermore, the selection unit 112 selects an HS 21a satisfying the performance condition with reference to the storage device 21 that is the replacing apparatus with high priority from among the plurality of HS's 21a as an HS 21a that is the replacing apparatus. In this way, before and after the replacement of the storage device 21, the load and the redundancy of the path between the CM 10 and the DE 20 can be maintained.
In addition, in a case where the HS 21a of the selected first or second candidate satisfies the performance condition, the replacement processing unit 114 replaces the storage device 21 that is the replacement target with the HS 21a in which data has been written by the write processing unit 113. In this way, after the replacement of the storage device 21 that is the replacement target, copying-back (writing-back) for the storage device 21 after the replacement does not need to be performed. Accordingly, at least one of the following effects or advantages can be acquired.
(1) The state of the storage apparatus according to copying back does not need to be monitored.
(2) The operation of the storage apparatus does not need to wait in accordance with copying back, and the completion of the copying back does not need to be reported to the user.
(3) In the replacement of the storage device, since rebuilding or redundant copying and copying back are not repeated, a time required for the completion of the replacement can be shortened.
(4) The influence of copying back on the I/O performance can be reduced.
(5) In the replacement of the storage device, the usability of the storage device and the HS can be improved.
In addition, in a case where an HS 21a that does not satisfy the path connection condition or the performance condition is selected as an HS 21a that is the replacing apparatus, the detection unit 111 detects an HS 21a that becomes newly usable. In this way, even during the execution of rebuilding/redundant copying, a compatible HS that becomes newly usable can be detected, and accordingly, copying-back (wiring-back) for the storage device 21 after the replacement does not need to be performed. Accordingly, at least one of the above-described effects or advantages (1) to (5) can be acquired.
[B] Other
The disclosed technology is not limited to the embodiment described above, and may be variously changed in the range not departing from the concept of this embodiment. Each configuration and each process of this embodiment may be adopted or rejected as is necessary, or the configurations or the processes of the embodiment may be appropriately combined.
For example, it may be set in units of RAID groups or storage apparatuses 1 whether to perform the storage device replacing process (see
According to the disclosed storage control device, the replacement of the storage device can be efficiently performed.
All examples and conditional language recited herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present inventions have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2013-239897 | Nov 2013 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7146522 | Rowe et al. | Dec 2006 | B1 |
20060075283 | Hartung | Apr 2006 | A1 |
20090327801 | Maeda et al. | Dec 2009 | A1 |
20110208996 | Hafner | Aug 2011 | A1 |
Number | Date | Country |
---|---|---|
7-110743 | Apr 1995 | JP |
2010-009442 | Jan 2010 | JP |
Entry |
---|
Extended European Search Report mailed on Mar. 31, 2015 for corresponding European Patent Application No. 14191062.0, 6 pages. |
Number | Date | Country | |
---|---|---|---|
20150143169 A1 | May 2015 | US |