A kind of multi-controller storage system
Technical field
The present invention relates to computer memory technical field, particularly a kind of multi-controller storage system.
Background technology
Disk memory array is to form an array to a plurality of disks to be used as single disk use, and it is stored in the mode of data with band (striping) in the different disks.During access data, the associative disk in the array moves together, significantly lowers the access time of data, and better space availability ratio is arranged simultaneously.Disk memory array is generally used for the storeroom as various significant datas in the computer system; Requirement can provide high reliability; The safety that guarantees data simultaneously, requires disk memory array can provide long-term whole day 24 hours not interrupt data service with stable.
Disk memory array adopts the multi-controller framework usually in order to reach the characteristic of highly reliable and not break in service, and wherein modal is the dual controller framework.Fig. 1 is the basic framework synoptic diagram of the double-controller disk memory array of prior art.Double-controller disk memory array comprises 101, two switches of a main frame (being respectively switch 102 and switch 103), two controllers (be respectively controller 104 and controller 105, or claim controller A and controller B), and the physical disk group of rear end.Two controller managed together physical disk groups.(Multipath Input/Output, MPIO) software can be through arbitrary switch and controller access physical disk group in operation multipath input output in the main frame 101.According to application demand, the physical disk group will be divided into some logical volumes, and each logical volume is equivalent to a virtual disk, and (Logical Unit Number is LUN) as sign with LUN.Between switch 102 and the switch 103, and all the relation that backs up each other between controller A and the controller B.Main frame 101 can pass through wherein any switch and controller access logical volume.
A plurality of controllers have following problem when service externally is provided:
When a plurality of controllers externally provide service simultaneously; Service needs the state of each controller synchronously, accident occurs, when can not externally be provided as controller; Service can taken over and provide to other controllers, so need each controller can both know the state of other controllers.
Summary of the invention
The invention provides a kind of multi-controller storage system, synchronously the state of each controller.
The embodiment of the invention provides a kind of multi-controller storage system, comprises n controller, and wherein 1 as master controller, and all the other n-1 as slave controller,
Said slave controller comprises:
Monitoring module is used to monitor self and state variation whether occurs, if enable the daily record generation module;
The daily record generation module after being used to enable, generates a daily record that is used for the carrier state change information;
Sending module is used for the daily record that the daily record generation module is generated is sent to master controller;
Said master controller comprises:
Monitoring module is used to monitor self and state variation whether occurs, if enable self daily record generation module;
The daily record generation module after being used to enable, generates a daily record that is used for the carrier state change information;
Receiver module is used for receiving from each slave controller daily record;
Logging modle is used for daily record that the log generation module generated and the daily record that receiver module received;
Sending module is used for the daily record that the daily record generation module generated and sends to all slave controllers; And the daily record from i controller that receiver module received sent to other all slave controllers except that i slave controller; 1≤i≤n-1.
Preferably, said primary controller further comprises: notification module is used for logging modle institute recorded logs is notified to the service user.
Can find out from above technical scheme, the method for usage log pass-along message, usage log transmits the state of controller in multi-controller, makes the state of each controller can be in time synchronous.
Can find out that from above technical scheme usage log transmits the state of controller in multi-controller, wherein, slave controller monitoring oneself state changes, and notifies master controller through daily record with the oneself state situation of change; Master controller is except notifying the oneself state situation of change all from server through daily record.The present invention program makes the state of each controller can be in time synchronous.The present invention program can also be applicable to the more multi-controller storage system of controller number except going for the dual controller accumulator system.In addition, the present invention can also realize the state notifying service user with controller.
Description of drawings
Fig. 1 is the basic framework synoptic diagram of the double-controller disk memory array of prior art.
Embodiment
The invention provides the scheme of usage log pass-along message between a kind of a plurality of controller, usage log transmits the state of controller in multi-controller, makes the state of each controller can be in time synchronous.The present invention program can also be applicable to the more multi-controller storage system of controller number except going for the dual controller accumulator system.In addition, the present invention can also realize the state notifying service user with controller.
Daily record uses message header to add the form of data, can be used for transmitting message such as event and state.
The controller that the present invention program has in the multi-controller storage system of n controller is set to master controller, and other n-1 controller is set to slave controller.
Slave controller comprises:
Monitoring module is used to monitor self and state variation whether occurs, if enable the daily record generation module;
The daily record generation module after being used to enable, generates a daily record that is used for the carrier state change information;
Sending module is used for the daily record that the daily record generation module is generated is sent to master controller.
Master controller comprises:
Monitoring module is used to monitor self and state variation whether occurs, if enable the daily record generation module;
The daily record generation module after being used to enable, generates a daily record that is used for the carrier state change information;
Receiver module is used for receiving from each slave controller daily record;
Logging modle is used for daily record that the log generation module generated and the daily record that receiver module received;
Sending module is used for the daily record that the daily record generation module generated and sends to all slave controllers; And the daily record from i controller that receiver module received sent to other all slave controllers except that i slave controller; 1≤i≤n-1.
Notification module is used for logging modle institute recorded logs is notified to the service user.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.