Control system, controller, control method and program
The control system with non-volatile storage for state information optimizes redundancy operations by skipping unnecessary steps upon detecting failure states, thus reducing the time to disconnect faulty devices and improving system efficiency.
Patent Information
- Application Number
- JP2023038417
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2043-03-13
AI Technical Summary
Existing systems delay the disconnection of a failed device by requiring time for restart and re-establishment of communication links after a power outage or failure, leading to inefficiencies in redundancy operations.
Implementing a control system with non-volatile storage devices that store state information for both controllers, allowing parallel operations and immediate determination of failure states, thereby skipping redundant operations if predetermined changes in state information exceed a set time.
This approach reduces the time required to disconnect a faulty device by optimizing the redundancy operation based on stored state information, enhancing system efficiency and reducing startup times.
Smart Images

Figure 2024134557000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a control system, a control device, a control method, and a program. [Background technology]
[0002] In the storage system described in Patent Document 1, when returning from a single state in which one storage device has failed to a dual state, a journal (update data history information) is transferred from the normal storage device to the failed storage device. In addition, in this storage system, if a host that inputs and outputs data to the storage devices does not receive a completion notification from one storage device even after a certain period of time has passed since the host normally received a completion notification from the other storage device, it determines that a failure has occurred and isolates the failed storage device. In addition, in this storage system, the normal storage device checks the status of the failed storage device through a communication link between the storage devices. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-86972 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the system described in Patent Document 1, occurrence of a failure is detected by using the fact that information transmitted and received through a communication link cannot be received even after a certain time has passed, and the device in which the failure has occurred is disconnected. In this configuration, for example, if a failure occurs at or during a power outage and the failure is not recovered even after power is restored, the device in which the failure has occurred is disconnected after waiting for the time required for the device to restart and re-establish the communication link after power is restored. Alternatively, in this configuration, for example, when an attempt is made to recover by restarting a device in which a failure is suspected, the device in which the failure has occurred is disconnected after waiting for the time required for the device to restart and re-establish the communication link after the restart. In other words, when occurrence of a failure is detected using a communication link after the device is restarted (or after the device becomes capable of being restarted), there is a problem that the disconnection of the device in which the failure has occurred is delayed by the time required for the device to restart and re-establish the communication link.
[0005] An example of an object of the present invention is to provide a control system, a control device, a control method, and a program that can solve the above-mentioned problems. [Means for solving the problem]
[0006] According to a first aspect of the present invention, a control system includes a first control device and a second control device which perform the same operation, which is a redundancy operation, and the first control device has a first state memory which is a non-volatile storage device that stores first state information representing two or more different states related to a startup operation which is an operation performed from startup of the first control device to the start of the redundancy operation and is readable by the second control device, and the second control device has a second state memory which is a non-volatile storage device that stores second state information representing two or more different states related to the startup operation of the second control device and is readable by the first control device.
[0007] According to a second aspect of the present invention, a control device executes an identical operation, a redundancy operation, in parallel with a second control device, and decides not to execute the redundancy operation when a predetermined change in the second state information stored in a second state memory of the second control device, which is a non-volatile storage device readable by the control device and stores second state information representing two or more different states relating to the operation executed from startup of the second control device to the start of the redundancy operation, exceeds a predetermined time.
[0008] According to a third aspect of the present invention, a control method includes the steps of: deciding not to execute the redundancy operation when a predetermined change in the second state information stored in the second state memory of the first control device, which is a non-volatile storage device readable from the first control device and which stores second state information representing two or more different states related to a startup operation, which is an operation performed by the first control device from startup of the second control device to starting the redundancy operation, exceeds a predetermined time; and deciding not to execute the redundancy operation when a predetermined change in the first state information stored in the first state memory of the first control device, which is a non-volatile storage device readable from the second control device and which stores first state information representing two or more different states related to the startup operation in the first control device.
[0009] According to a fourth aspect of the present invention, the program causes a control device that executes the same operation, a redundancy operation, in parallel with a second control device to decide not to execute the redundancy operation when a predetermined change in the second state information stored in the second state memory of the second control device, which is a non-volatile storage device readable by the control device, stores second state information representing two or more different states relating to the operation executed from startup of the second control device to the start of the redundancy operation, and decides not to execute the redundancy operation when a predetermined change in the second state information stored in the second state memory of the second control device exceeds a predetermined time. Effect of the Invention
[0010] According to the present invention, it is possible to reduce the time required to isolate a device in which a failure has occurred. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing an example of the configuration of a storage system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a block diagram showing an example of the configuration of a control unit according to the embodiment of the present invention. [Diagram 3] 5 is a flowchart illustrating an example of an operation of a control unit according to an embodiment of the present invention when a power outage occurs. [Figure 4] 5 is a flowchart illustrating an example of an operation of a control unit when the power supply of the control unit is turned on according to the embodiment of the present invention. [Diagram 5] 10 is a flowchart illustrating an example of an operation of the control unit when waiting for startup of an opposing controller according to the embodiment of the present invention. [Figure 6] FIG. 13 is a schematic diagram showing an example of the relationship between the state of the opposing controller, the contents of the operation state memory, and an example of the waiting time according to the embodiment of the present invention. [Figure 7] 5 is a flowchart showing an example of an operation of a control unit related to an embodiment of the present invention when a power outage occurs. [Figure 8] 5 is a flowchart showing an example of an operation of a control unit related to the embodiment of the present invention when the control unit is powered on. [Figure 9] 11 is a flowchart illustrating an example of an operation of a control unit related to an embodiment of the present invention when waiting for startup of an opposing controller. [Figure 10] 1 is a block diagram showing an example of the configuration of a control system according to an embodiment of the present invention. [Figure 11] 4 is a flowchart showing an example of a configuration of a control method according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] The following describes embodiments of the present invention, but the following embodiments do not limit the scope of the invention. Furthermore, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.
[0013] FIG. 1 is a block diagram showing an example of the configuration of a storage system according to an embodiment of the present invention. FIG. 2 is a block diagram showing an example of the configuration of a control unit according to an embodiment of the present invention. FIG. 3 is a flowchart showing an example of the operation of a control unit when a power outage occurs according to an embodiment of the present invention. FIG. 4 is a flowchart showing an example of the operation of a control unit when the power supply of the control unit is turned on according to an embodiment of the present invention. FIG. 5 is a flowchart showing an example of the operation of a control unit when waiting for the start of an opposing controller according to an embodiment of the present invention. FIG. 6 is a schematic diagram showing an example of the relationship between the state of the opposing controller according to an embodiment of the present invention, the contents of the operating state memory, and an example of a waiting time. FIG. 7 is a flowchart showing an example of the operation of a control unit when a power outage occurs related to an embodiment of the present invention. FIG. 8 is a flowchart showing an example of the operation of a control unit when the power supply of the control unit is turned on related to an embodiment of the present invention. FIG. 9 is a flowchart showing an example of the operation of a control unit when waiting for the start of an opposing controller related to an embodiment of the present invention. In addition, the same reference numerals are used for the same or corresponding configurations in each figure, and the description is omitted as appropriate.
[0014] (Description of the configuration of the embodiment) 1, a storage system 1 according to an embodiment of the present invention includes a pair of duplicated storage controllers 10 and 20, and a drive group 30. The storage system 1 writes data to the drive group 30 and reads data from the drive group 30 in response to a request from a host system 50 such as a server. The storage controller 20 is also referred to as the opposing controller of the storage controller 10. The storage controller 10 is also referred to as the opposing controller of the storage controller 20.
[0015] The storage controller 10 includes a host port 11, a backup solid state drive (SSD) 12, a cache memory 13, a battery backup unit (BBU) 14, a disk port 15, an operation status memory 16, and a control unit 17. The storage controller 10 is also referred to as the controller 10. The storage controller 20 is also referred to as the controller 20. The backup SSD is also simply referred to as the SSD.
[0016] The controller 20 is a control device having the same configuration as the controller 10, and includes a host port 21, a backup SSD 22, a cache memory 23, a BBU 24, a disk port 25, an operation status memory 26, and a control unit 27.
[0017] The drive group 30 includes a plurality of disks 31 configured as a redundant array of inexpensive disks (RAID) and a control device (not shown).
[0018] The host system 50 is communicatively connected to the storage system 1 via a pair of communication lines 51 and 52. The communication line 51 is connected to a host port 11 of the controller 10. Furthermore, the communication line 52 is connected to a host port 21 of the controller 20.
[0019] In the controller 10, the host port 11 is a port used for communication connection with the host system 50. The backup SSD 12 is a non-volatile storage device, and is a storage device for backing up data stored in the cache memory 13 when power is not supplied to the storage system 1 due to a power outage or the like. The cache memory 13 is a volatile storage device, and is a storage device for temporarily storing data to be written to the drive group 30. The BBU 14 is a backup power supply device, and when the power supply from the outside is stopped, supplies power to the controller 10 and the drive group 30 until the data stored in the cache memory 13 is backed up to the backup SSD 12. The disk port 15 is a port used for communication connection with the drive group 30.
[0020] The control unit 17 is a control device that controls each unit in the controller 10, and includes, for example, a CPU (Central Processing Unit) 171, a main memory device 172, an auxiliary memory device 173, a communication device 174, an input / output device 175, and the like, as shown in FIG. 2. The auxiliary memory device 173 includes one or more non-volatile memory devices, and stores software (programs, etc.) such as a BIOS (Basic Input / Output System) 1731, an OS (Operating System) 1732, and a FW (FirmWare) 1733. The BIOS 1731 is executed when the controller 10 is started, and starts, for example, the OS 1732. The OS 1732 executes processes such as data exchange between the host system 50 and the drive group 30 and backup of data in the cache memory 13, and also enables communication by the communication device 174 by starting a predetermined program in the FW 1733, etc., when the controller 10 is started.
[0021] The operating status memory 16 is a non-volatile storage device having a battery backup function, and is configured so that data can be constantly referenced from the controller 20 via the communication line 42 even when the supply of power from the outside is stopped and when the supply of backup power from the BBU 14 is stopped. The operating status memory 16 can be configured using, for example, a backup battery and a semiconductor chip such as a microcomputer or a PLD (Programmable Logic Device). The operating status memory 16 writes and updates data representing the operating status of the controller 10 to a predetermined memory in response to a request from the control unit 17, and transmits data to the controller 20 in response to a request from the controller 20 received via the communication line 42. The data representing the operating status of the controller 10 includes, for example, data (status information) representing the start of BIOS operation, the start of OS startup, and the start of firmware startup for enabling communication with the opposing controller. The operating status memory 16 records data representing whether data has been backed up to the backup SSD 12 at the time of a power outage, separately from data representing the operating status (in a different storage area). Note that data indicating the operating state and data indicating the backup state are written to the operating state memory 16 by the OS 1732 after the OS 1732 has started up, and by the BIOS 1731 before the OS 1732 has started up.
[0022] Moreover, the controller 10 is connected to the controller 20 via an inter-controller communication line 41, a communication line 42 for referring to data stored in the operation state memory 26, a controller loading state signal line 43, and a power (DC) ON state signal line 44. The inter-controller communication line 41 is a communication line for transmitting and receiving control signals and data between the controller 10 and the controller 20. The controller loading state signal line 43 is a signal line for confirming the presence or absence of the opposing controller. The power (DC) ON state signal line 44 is a signal line for confirming that an external power source (such as a direct current power source) is being supplied to the opposing controller. In the control unit 17, for example, the inter-controller communication line 41 and the communication line 42 are connected to a communication device 174, and the controller loading state signal line 43 and the power (DC) ON state signal line 44 are connected to an input / output device 175.
[0023] In the controller 20, the host port 21, the backup SSD 22, the cache memory 23, the BBU 24, the disk port 25, the operation status memory 26, and the control unit 27 have the same configurations as the host port 11, the backup SSD 12, the cache memory 13, the BBU 14, the disk port 15, the operation status memory 16, and the control unit 17 in the controller 10, respectively.
[0024] (Explanation of an operation example of the embodiment) 1, the storage system 1 and the flow of write data from a host system 50 connected to the storage system 1 will be described. Data received from the host system 50 to the controller 10 via the host port 11 is stored in the cache memory 13. The data is then copied to the cache memory 23 of the opposing controller 20 via the inter-controller communication line 41 for duplication. At this point, the write process is once completed, and the controller 10 returns a completion response to the host system 50.
[0025] The write data stored in the cache memories 13 and 23 is transferred asynchronously to the RAID-configured drive group 30 via the disk ports 15 and 25. The transferred data is either erased from the cache memories 13 and 23 or left as read cache data. Write data that has not been written to the drive group 30 is generally called dirty data.
[0026] When a power outage occurs in the storage system 1, the power supply is cut off, so the BBUs 14 and 24 become the power supply sources and the controllers 10 and 20 can operate for a certain period of time. During this time, the controllers 10 and 20 write dirty data in the cache memories 13 and 23, respectively, to the backup SSDs 12 and 22, respectively. However, if there is no dirty data, it is not written out.
[0027] When all the dirty data has been written out, the controllers 10 and 20 cut off the power supply to the BBUs 14 and 24, respectively, and the storage system 1 enters a power-off state.
[0028] When the storage system 1 starts up after power is restored, the controllers 10 and 20 restore the dirty data from the backup SSDs 12 and 22 to the cache memories 13 and 23, respectively. After the restoration is complete, the controllers communicate with the controllers 20 and 10 to determine which controller's dirty data to use. If the dirty data from the controller 10 is used, the data is copied from the cache memory 13 to the cache memory 23 using the inter-controller communication line 41, thereby synchronizing the data.
[0029] In addition, a controller installed status signal line 43 can be used to know whether an opposing controller is installed, and a power (DC) ON status signal line 44 can be used to know whether the opposing controller is powered on.
[0030] Next, the operation of the program will be explained by comparing the processing of a reference example (a configuration in which the operational status memories 16 and 26 are omitted from the configuration shown in Figure 1) with that of this embodiment (a configuration in which the operational status memories 16 and 26 shown in Figure 1 are included).
[0031] First, the flow of program processing during a power outage (when a power outage occurs) will be described. As shown in Fig. 7, in the processing of the reference example, when a power outage occurs, the controllers 10 and 20 start backup processing. In the processing of Fig. 7, the controllers 10 and 20 each perform processing for each of their own parts.
[0032] The controllers 10 and 20 determine whether there is data that needs to be backed up from the cache memories 13 and 23 to the backup SSDs 12 and 22 (step S50), and if not, cuts off the power supply from the BBUs 14 and 24, and the backup process ends (step S50: No → step S55 → END).
[0033] On the other hand, if there is data that needs to be backed up (step S50: Yes), the controllers 10 and 20 transfer the data to the backup SSDs 12 and 22 in multiple batches (step S51->step S52->step S53: No->step S52->...). When all data that needs to be backed up has been transferred, the controllers 10 and 20 cut off the power supply from the BBUs 14 and 24, and end the backup process (step S53: Yes->step S54->step S55->END).
[0034] On the other hand, in the program processing of this embodiment, when a power outage occurs, the controllers 10 and 20 start backup processing as shown in Fig. 3. In the processing of Fig. 3, the controllers 10 and 20 each perform processing for each of their own units.
[0035] The controllers 10 and 20 determine whether there is data that needs to be backed up from the cache memories 13 and 23 to the backup SSDs 12 and 22 (step S10), and if not, record "no backup" in the operation status memories 16 and 26 (step S10: No -> step S19), cut off the power supply from the BBUs 14 and 24 (step S18), and end the backup process (END).
[0036] On the other hand, if there is data that needs to be backed up (step S10: Yes), the controllers 10 and 20 start a process of backing up the data to the backup SSD (step S11) and record "backup started" in the operation status memories 16 and 26 (step S12). Furthermore, the controllers 10 and 20 transfer the data to the backup SSDs 12 and 22 in multiple batches (step S13->step S14->step S15: No->step S13->...). During this time, the controllers 10 and 20 record the fact that backup is in progress and the transfer rate (write rate) in the operation status memories 16 and 26 each time the controllers transfer data (step S14).
[0037] When all data that needs to be backed up has been transferred, the controllers 10 and 20 record in the operation status memories 16 and 26 that the backup has been completed ("Backup Completed"), and then cut off the power supply from the BBUs 14 and 24, and end the backup process (Step S15: Yes → Step S16 → Step S17 → Step S18 → END).
[0038] Next, we will explain the startup process of the storage system 1. In steps S60 to S66 in Fig. 8, the controllers 10 and 20 each perform processing for each of their own components. As shown in FIG. 8, in the process of the program of the reference example, the controllers 10 and 20 are powered on and the BIOS is executed, and then the OS is loaded and executed (step S60→step S61). Next, the controllers 10 and 20 restore the backup data (step S62). If there is no backup data, the controllers 10 and 20 proceed without restoring the backup data (step S61, then step S65). If there is backup data, the controllers 10 and 20 transfer the backup data in multiple batches. When the controllers 10 and 20 transfer all the backup data to the cache memories 13 and 23, the restoration is completed (step S62→step S63→step S64: No→step S63→...→step S64: Yes→step S65).
[0039] Next, the FW is loaded and executed in each of the controllers 10 and 20 (step S66). When the FW is started, the controllers 10 and 20 go through a process of waiting until they are able to communicate with the opposing controller (step S67). Since communication with the opposing controller is possible after the initial setting of the inter-controller communication line 41 of the FW, it is necessary to wait for this timing.
[0040] The controllers 10 and 20 perform the process of FIG. 9 in step S67 of FIG. As shown in FIG. 9, in the process of waiting for the opposing controller to start up, the controllers 10 and 20 determine whether the opposing controller is not loaded (step S70), determine whether the power is on (step S71), set a timeout period (step S72), and then wait for the opposing controller to become able to communicate (step S73: No → step S74: No → step S73 → ... → step S73: Yes or step S74: Yes).
[0041] If communication with the opposing controller becomes possible without the timeout time elapses (step S74: No -> step S73: Yes), the two-controller operation is set and cache memory duplication processing is executed (END). In the two-controller operation, the controllers 10 and 20 perform redundant operation.
[0042] On the other hand, if the opposing controller is not installed (step S70: No), is not powered on (step S71: No), or the timeout time has elapsed before communication with the opposing controller is possible (step S73: No -> step S74: Yes), it is determined that there is no opposing controller (one controller) (step S75), and the process shown in Fig. 9 ends (END). In waiting due to the timeout time, the controllers 10 and 20 need to calculate the maximum time during which the opposing controller is powered on and inter-controller communication is not possible, and wait until that time.
[0043] This time is equal to the total time taken to back up to the backup SSDs 12 and 22, the time taken to restore from the backup SSDs 12 and 22, the time taken for the controllers 10 and 20 to reboot, the BIOS execution time, the time taken for the OS to start the FW, and the time taken for the FW to enable communication with the controllers.
[0044] As an example, if the backup time to the backup SSDs 12 and 22 = 50 seconds, the restore time from the backup SSDs 12 and 22 = 50 seconds, the time it takes for the controllers 10 and 20 to reboot = 20 seconds, the BIOS execution time = 10 seconds, the time until the OS starts the FW = 5 seconds, and the time until the FW becomes able to communicate with the controller = 5 seconds, then the maximum time you will need to wait is 50 + 50 + 20 + 10 + 5 + 5 = 140 seconds in total.
[0045] In the process shown in FIG. 9, when communication with the opposing controller is possible (step S73: Yes) or the maximum waiting time times out (step S74: Yes), the processes of the controllers 10 and 20 exit the waiting loop and the startup wait process for the opposing controller is completed (END).
[0046] Returning to FIG. 8, when the process of waiting for the startup of the opposing controller is completed, the controllers 10 and 20 perform cache memory duplication process to synchronize the cache memories 13 and 23 with the opposing controller (duplication is not performed if the opposing controller is not operating) (step S68), and perform FW post-processing (drive recognition, host port initialization, etc.) (step S69), completing the startup process of the storage system (END (device ready)).
[0047] Next, a description will be given of the startup process of the storage system 1 in this embodiment. In steps S20 to S32 in Fig. 4, the controllers 10 and 20 each perform a process for each of their own components. 4, in the program processing of this embodiment, after the BIOS is started (step S20), the controllers 10 and 20 record in the operation status memories 16 and 26 that the BIOS has been started (step S21). Immediately after the OS is started, the controllers 10 and 20 record in the operation status memories 16 and 26 that the OS has been started (step S22→step S23).
[0048] In the process of restoring data from the backup SSDs 12 and 22, the controllers 10 and 20 record the start of restoration in the operation status memories 16 and 26 at the start of restoration (step S24 to step S25). If there is no backup data, the controllers 10 and 20 proceed without restoring (step S29 after step S22).
[0049] During the restoration transfer (step S26->step S27->step S28: No->step S26->...), the controllers 10 and 20 record in the operation status memories 16 and 26 for each transfer that restoration is in progress and the restoration progress rate (step S27).
[0050] When the restoration is all completed (step S28: Yes) or when there is no data to be restored, the controllers 10 and 20 complete the restoration process (step S29). At this time, the controllers 10 and 20 record "restoration completed" in the operation status memories 16 and 26 (step S30).
[0051] Next, the controllers 10 and 20 start up the FW (step S31), and record the fact that the FW has been started ("FW started") in the operation status memories 16 and 26 (step S32), and then wait for the opposing controller to start up (step S33).
[0052] The controllers 10 and 20 perform the process of FIG. 5 in step S33 of FIG. As shown in FIG. 5, in the startup waiting process of the opposing controller in this embodiment, the controllers 10 and 20 determine whether the opposing controller is not installed (step S40), whether the power is on (step S41), and also determine whether backup processing has been performed in the opposing controller by referring to the operation status memories 16 and 26 of the opposing controller (step S42).
[0053] In addition, the controllers 10 and 20 refer to the operation status memories 16 and 26 of the opposing controller to determine what the opposing controller is currently executing, and if the contents of the operation status memories 16 and 26 have changed (step S43: Yes), the controllers 10 and 20 optimize the wait time, which is how long to wait, depending on the contents of the operation status memories 16 and 26 (step S44).
[0054] That is, in the startup waiting process of the opposing controller shown in FIG. 5, the controllers 10 and 20 judge whether the opposing controller is not installed (step S40), judge whether the power is on (step S41), and then judge whether there is a record of "no backup" based on the contents of the operation status memories 16 and 26 (step S42).
[0055] For example, if there is no backed up data in the controller 10 and the operation status memory 26 has a record of "no backup", there is no need to immediately start the process of duplicating the cache memories 13 and 23 at this point. For example, the storage system 1 can be started up with only the controller 10 (one controller) without waiting for the controller 20 to start up, and communication with the controller 20 can be established before communication with the host system 50 starts.
[0056] Alternatively, if "no backup" is recorded in the operating status memory 26 even though data was backed up in the controller 10, this means that backup was not performed normally by the controller 20. In this case as well, it can be determined to start up the storage system 1 with only the controller 10.
[0057] In either case, the controller 10 can determine to separate the controller 20 from the duplexing process. In the process shown in Fig. 5, if the opposing controller is not installed (step S40: No), if the power is not turned on (step S41: No), or if "no backup" is recorded (step S42: Yes), the controller 10 or 20 determines that there is no opposing controller (one controller) (step S47), and ends the process shown in Fig. 5 (END).
[0058] On the other hand, in step S43, when the controller 10 or 20 refers to the operating status memory 16 or 26 of the opposing controller for the first time after startup, or when the contents referred to last time in step S43 are different from the contents referred to this time (step S43: Yes), a timeout time is set (set individually depending on the operating status) (step S44), and a determination is made as to whether communication with the opposing controller is possible (step S45) and whether a timeout has occurred (step S46).
[0059] In step S44, when the contents (state) of the operating state memory 16 or 26 change, a timeout value is set to the maximum time required for the contents (state) to change next time, or the maximum time required from the last state change before communication becomes possible until communication becomes possible (state where communication becomes possible). If the timeout time has elapsed before the next state change, it means that the expected state change did not occur within the time, and it can be confirmed that the operation of the opposing controller is not normal.
[0060] Then, the controller 10 or 20 changes the timeout setting (step S44) each time the contents of the operating status memory 16 or 26 change (step S43: Yes) until the opposing controller becomes able to communicate (step S45: Yes) or a timeout occurs (step S46: Yes).
[0061] If the timeout time does not elapse (step S46: No) and communication with the opposing controller becomes possible (step S45: Yes), the two-controller operation is set, and then the cache memory duplication process is executed (END). On the other hand, if the timeout time elapses before communication with the opposing controller becomes possible (step S45: No → step S46: Yes), it is determined that there is no opposing controller (one controller) (step S47), and the process shown in FIG. 5 ends (END).
[0062] FIG. 6 shows an example of the waiting time for each process. FIG. 6 shows an example of the relationship between the state of the opposing controller or the contents of the operation status memory 16 or 26 and the waiting time until the state changes to the next state. "Controller not installed", "DC OFF (power off)", and "DC ON (power on)" are examples of the state of the opposing controller. "BIOS operation started", "OS boot start", "FW boot start", "backup started / in progress", "backup completed", "restore started / in progress", and "restore completed" are examples of the contents of the operation status memory 16 or 26. For example, "BIOS operation started", "OS boot start", and "FW boot start" change (transition) the operation states in this order before the waiting time has elapsed under normal circumstances after power supply starts.
[0063] In the process shown in FIG. 5, for example, if the contents of the operation status memory 16 or 26 set by the opposing controller are "BIOS operation started", the controller 10 or 20 waits for the maximum time required for BIOS operation (approximately 5 seconds as a guideline) and, if the contents of the operation status memory 16 or 26 do not change to the next "OS boot start", it can determine that there is a problem with the BIOS operation of the opposing controller and that it is not operating, and can time out.
[0064] Similarly, if the contents of operation status memory 16 or 26 are "OS startup started", the controller 10 or 20 waits for the time from OS startup to FW startup (the maximum time required for OS startup operation) (approximately 5 seconds as a guideline), and if the contents of operation status memory 16 or 26 do not change at the next "FW startup started", it can determine that there is a problem with the OS operation and that it is not operating, and time out.
[0065] In addition, the controller 10 or 20 can optimize (shorten) the waiting time by estimating the maximum time for the processes of "FW startup starting," "backup starting / in progress," "backup completed," "restore starting / in progress," and "restore completed" and setting a timeout time accordingly.
[0066] According to the above process, for example, when the backup to the SSD at the time of power outage is completed and the storage system 1 is stopped, if one of the controllers 10 or 20 fails so that it does not operate even though it is powered on, if the storage system 1 is started, the other normal controller 20 or 10 reads the last state of the failed opposing controller from the operation status memory 16 or 26 as "backup completed" in the opposing controller startup waiting process (FIG. 5) (step S43), and sets the timeout time at the time of backup completion to 20 seconds from the table in FIG. 6 (step S44). In this case, since the opposing controller is broken and not operating, the contents of the operation status memory 16 or 26 do not change for 20 seconds. After 20 seconds, the opposing controller startup waiting process times out (step S46: Yes), and the controller 20 or 10 proceeds with the startup process as the first controller.
[0067] In other words, the process that normally takes 20 seconds takes about 140 seconds in the reference example, including the backup time + reboot time + restore time + BIOS operation time + OS startup time + FW startup time, which means that the startup time is reduced by about 120 seconds.
[0068] Also, when the storage system 1 is started, if one controller fails during OS startup and stops, the other normal controller reads the last state of the opposing controller from the operation state memory 16 or 26 in the opposing controller startup waiting process (Fig. 5) as OS startup start, and sets the timeout time to 5 seconds when OS startup starts from the table in Fig. 6. The opposing controller startup waiting process waits for 5 seconds for the opposing controller, times out, and proceeds with startup processing as one controller. On the other hand, in the case of the reference example process, the total time for backup time + reboot time + restore time + BIOS operation time + OS startup time + FW startup time is about 140 seconds, so this has the effect of shortening the startup time by about 135 seconds.
[0069] Returning to FIG. 4, when the process of waiting for the startup of the opposing controller is completed, the controllers 10 and 20 perform cache memory duplication process to synchronize the cache memories 13 and 23 with the opposing controller (duplication is not performed if the opposing controller is not operating) (step S34), and finally perform FW post-processing (drive recognition, host port initialization, etc.) (step S35), completing the startup process of the storage system (END (device ready)).
[0070] (Explanation of effect) According to this embodiment, when one controller 10 or 20 fails during startup of the storage system 1, the startup time is shortened by reducing the waiting time of the other controller 20 or 10. Therefore, according to this embodiment, the time required to isolate the failed controller can be shortened. In particular, according to this embodiment, it is possible to determine whether or not to perform redundancy operation based on the status information stored in the operational status memory 16 and the status information stored in the operational status memory 26, and therefore, as described above, a time-saving effect is expected.
[0071] As another effect, in this embodiment, even if there is no data to be backed up, the time until the controllers 10 and 20 start up normally may be shortened when the storage system 1 is started up, and there is an effect of shortening the start-up time. In the process at the time of a power outage (FIG. 3), if there is no data to be backed up, a record of "no backup" is left in another area in the operation state memories 16 and 26 (step S19). When the storage system 1 is stopped in a state where there is no data to be backed up when backing up to the SSD at the time of a power outage and the record of "no backup" remains in the operation state memories 16 and 26, if the storage system 1 is started up, the controllers 10 and 20 read the state of "no backup" from the operation state memories 16 and 26 of the opposing controller in the opposing controller start-up waiting process (FIG. 5), and the opposing controller start-up waiting process proceeds with the start-up process as one controller without waiting for the opposing controller. In the processing of the reference example, the total of backup time + reboot time + restore time + BIOS operation time + OS startup time + FW startup time is used to set the timeout to about 140 seconds, and the system waits until communication between the controllers becomes possible, resulting in a startup time reduction effect of a minimum of 0 seconds to a maximum of about 140 seconds. That is, in this embodiment, when the storage system 1 is started, it is found that there is no backed up data, so there are cases where it is not necessary to wait for the controller, and the reduction in waiting time has the effect of shortening the startup time.
[0072] In this embodiment, the storage system 1 is an example of a control system according to the present invention. The controllers (storage controllers) 10 and 20 are an example of a control device, a first control device, or a second control device according to the present invention. The operating status memories 16 and 26 are an example of a first status memory and a second status memory according to the present invention.
[0073] Furthermore, although a storage system having two storage controllers has been described above as an example of an embodiment of a control system according to the present invention, the present invention is not limited to storage systems and can be applied to any control system having two control devices that perform the same operation.
[0074] (Configuration of this embodiment) Fig. 10 is a block diagram showing a configuration example of a control system according to an embodiment of the present invention. Fig. 11 is a flowchart showing a configuration example of a control method according to an embodiment of the present invention.
[0075] As shown in FIG. 10, the control system 100 according to this embodiment may include at least a first control device 101 and a second control device 102. The first control device 101 and the second control device 102 execute the same operation (hereinafter referred to as redundancy operation) while performing a predetermined communication. The first control device 101 stores first state information representing two or more different states related to an operation (hereinafter referred to as startup operation) executed from startup of the first control device 101 to the start of the redundancy operation, and has a first state memory 111 which is a non-volatile storage device readable from the second control device. The second control device 102 stores second state information representing two or more different states related to the startup operation of the second control device 102, and has a second state memory 112 which is a non-volatile storage device readable from the first control device.
[0076] 11, the control method of this embodiment includes steps S101 and S102. In step S101, the first control device 101 determines not to execute the redundancy operation when a predetermined change in the second status information stored in the second status memory 112 exceeds a predetermined time. In step S102, the second control device 102 determines not to execute the redundancy operation when a predetermined change in the first status information stored in the first status memory 111 exceeds a predetermined time.
[0077] (Computer Configuration) 2, the computer constituting control unit 17 (and control unit 27) includes CPU 171, main storage device 172, auxiliary storage device 173, communication device 174, and input / output device 175. The operations of control unit 17 described above are stored in auxiliary storage device 173 in the form of a program. CPU 171 reads the program from auxiliary storage device 173, loads it in main storage device 172, and executes each process according to the program. CPU 171 also secures a storage area in main storage device 172 corresponding to each process described above according to the program.
[0078] The program may be for realizing a part of the functions to be performed by the computer constituting the control unit 17. For example, the program may be for realizing the functions by combining with other programs already stored in the auxiliary storage device 173 or by combining with other programs implemented in other devices. In other embodiments, the computer may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, some or all of the functions to be realized by the CPU 171 may be realized by the integrated circuit.
[0079] Examples of the auxiliary storage device 173 include a hard disk drive (HDD), an SSD, a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The auxiliary storage device 173 may be an internal medium directly connected to the bus of the computer, or an external medium connected to the computer via the input / output device 175 or a communication line. In addition, when the program is distributed to the computer 700 via a communication line, the computer that receives the program may load the program in the main storage device 172 and execute the above-mentioned process. In at least one embodiment, the auxiliary storage device 173 is a non-transitory tangible storage medium.
[0080] Although the embodiment of the present invention has been described above with reference to the drawings, the specific configuration is not limited to the above embodiment, and design changes within the scope of the present invention are also included. For example, the timeout period may be set according to the transfer rate (write rate, restore progress rate) of the data recorded in the operation status memories 16 and 26. In addition, a part or all of the programs executed by the controllers 10 and 20 in the above embodiment may be distributed via a computer-readable recording medium or a communication line.
[0081] A part or all of the above-described embodiments can be described as, but are not limited to, the following supplementary notes.
[0082] (Appendix 1) A first control device and a second control device that perform a redundant operation, which is the same operation, are provided; the first control device has a first status memory which is a non-volatile storage device that stores first status information representing two or more different statuses related to a startup operation which is an operation executed from startup of the first control device until the start of the redundancy operation, and is readable by the second control device; The second control device has a second state memory which is a non-volatile storage device that stores second state information representing two or more different states related to the startup operation in the second control device and is readable from the first control device. Control system.
[0083] (Appendix 2) the first control device determines not to execute the redundancy operation when a predetermined change in the second status information stored in the second status memory exceeds a predetermined time; The second control device determines not to execute the redundancy operation when a predetermined change in the first status information stored in the first status memory exceeds a predetermined time. Control system.
[0084] (Appendix 3) the redundancy operation is a data storage operation in a cache memory which is a volatile storage device in which data is backed up to a non-volatile storage device when power is stopped, When the first control device does not perform the backup when the power supply is stopped, the first control device stores, in the first status memory, no-backup information indicating that the backup was not performed, When the second control device does not perform the backup when the power supply is stopped, the second control device stores the no-backup information in the second status memory; The first control device further determines not to execute the redundancy operation when the no-backup information is stored in the second status memory; The second control device further determines not to execute the redundancy operation when the no-backup information is stored in the first status memory. 3. The control system of claim 2.
[0085] (Appendix 4) The redundancy operation is an operation involving a predetermined communication operation between the first control device and the second control device. 4. The control system of claim 2 or 3.
[0086] (Appendix 5) The first status information and the second status information include information representing a start of BIOS operation, a start of OS boot-up, and a start of boot-up of firmware that enables the communication. 5. The control system of claim 4.
[0087] (Appendix 6) The same operation, that is, a redundancy operation, is executed in parallel with the second control device; The second control device is a non-volatile storage device that stores second state information representing two or more different states related to an operation to be executed from the start of the second control device until the start of the redundancy operation, and the second control device is a non-volatile storage device that can be read from its own control device. When a predetermined change in the second state information stored in a second state memory of the second control device exceeds a predetermined time, the second control device decides not to execute the redundancy operation. Control device.
[0088] (Appendix 7) a step of determining not to execute the redundancy operation when a predetermined change in the second state information stored in the second state memory of the second control device, which is a non-volatile storage device readable by the first control device, among a first control device and a second control device that execute the same redundancy operation, exceeds a predetermined time; a step of determining not to execute the redundancy operation when a predetermined change in the first state information stored in the first state memory of the first control device exceeds a predetermined time, the first state information representing two or more different states related to the startup operation in the first control device and readable by the second control device; A control method comprising:
[0089] (Appendix 8) A control device that performs the same redundant operation in parallel with a second control device. a second state memory of the second control device, which is a non-volatile storage device that stores second state information representing two or more different states related to an operation to be executed from the start of the second control device until the start of the redundancy operation, and which is a non-volatile storage device readable by the control device, determining not to execute the redundancy operation when a predetermined change in the second state information stored in the second state memory of the second control device exceeds a predetermined time; A program for executing the above. [Explanation of symbols]
[0090] 1... storage system, 10, 20... storage controller, 12, 22... backup SSD, 13, 23... cache memory, 16, 26... operation status memory, 17, 27... control unit, 30... group of drives
Claims
1. A first control device and a second control device that perform a redundancy operation that is the same operation, the first control device has a first status memory which is a non-volatile storage device that stores first status information representing two or more different statuses related to a startup operation which is an operation executed from startup of the first control device until the start of the redundancy operation, and is readable by the second control device; The second control device has a second state memory which is a non-volatile storage device that stores second state information representing two or more different states related to the startup operation in the second control device and is readable from the first control device. Control system.
2. the first control device determines not to execute the redundancy operation when a predetermined change in the second status information stored in the second status memory exceeds a predetermined time; The second control device determines not to execute the redundancy operation when a predetermined change in the first status information stored in the first status memory exceeds a predetermined time. The control system of claim 1 .
3. the redundancy operation is a data storage operation in a cache memory which is a volatile storage device in which data is backed up to a non-volatile storage device when power is stopped, When the first control device has not performed the backup at the time of power supply interruption, the first control device stores, in the first status memory, no-backup information indicating that the backup has not been performed, When the second control device does not perform the backup when the power supply is stopped, the second control device stores the no-backup information in the second status memory; The first control device further determines not to execute the redundancy operation when the no-backup information is stored in the second status memory; The second control device further determines not to execute the redundancy operation when the no-backup information is stored in the first status memory. The control system of claim 2.
4. The redundancy operation is an operation involving a predetermined communication operation between the first control device and the second control device. A control system according to claim 2 or 3.
5. The first status information and the second status information include information representing a start of BIOS operation, a start of OS booting, and a start of booting firmware that enables the communication.
5. The control system of claim 4.
6. Executing the same redundant operation in parallel with the second control device; The second control device is a non-volatile storage device that stores second state information representing two or more different states related to an operation to be executed from the start of the second control device until the start of the redundancy operation, and the second control device is a non-volatile storage device that can be read from the second control device itself. When a predetermined change in the second state information stored in a second state memory of the second control device exceeds a predetermined time, the second control device decides not to execute the redundancy operation. Control device.
7. a step of determining not to execute the redundancy operation when a predetermined change in the second state information stored in a second state memory of the second control device, which is a non-volatile storage device readable by the first control device, among a first control device and a second control device that execute the same redundancy operation, exceeds a predetermined time; a step of determining not to execute the redundancy operation when a predetermined change in the first state information stored in a first state memory of the first control device exceeds a predetermined time, the first state information representing two or more different states related to the startup operation in the first control device and readable by the second control device; A control method comprising:
8. A control device that executes the same redundant operation in parallel with the second control device, a second state memory of the second control device, which is a non-volatile storage device that stores second state information representing two or more different states related to an operation to be executed from the start of the second control device until the start of the redundancy operation, and which is a non-volatile storage device readable by the control device, determining not to execute the redundancy operation when a predetermined change in the second state information stored in the second state memory of the second control device exceeds a predetermined time; A program for executing.
Citation Information
Patent Citations
Method and device for deciding states of a pair of mirrored data storage units in data processing system
JP1993307445A
Flexible remote data mirroring
JP2004523017A
Storage controller and firmware update method
JP2009058997A
Storage system, control device and control method
JP2012048613A
Information processing device, information processing method, and program
JP2019016179A
