Summary of the invention
The application provides and has avoided the service disconnection method and apparatus of storage array in escalation process, to realize in the escalation process of storage array, avoids storage array to stop business.
The technical scheme that the application provides comprises:
A kind of service disconnection method of storage array in escalation process of avoiding, described storage array comprises master and slave control system, described master control system comprises master controller, describedly from control system, comprise from controller, described master controller is responsible for the control of whole storage array, for controlling the upgrading of described master control system software module, described from controller for controlling the described upgrading from control system software module; Described master controller is identical with the described software module of controlling from controller; The method comprises:
The software module of the needs upgrading of first by described master controller, self being controlled when described storage array need to be upgraded is upgraded, described control and the responsible market demand service of master controller of taking over whole storage array from controller during described master controller is to software module upgrading;
When the software module of self being controlled when described master controller upgrades successfully, master controller notice is upgraded to the software module of the needs upgrading of controlling from controller, and described master controller is taken over the control of whole storage array from controller during to software module upgrading and from the responsible market demand service of controller described;
When the software module of self being controlled when described master controller is upgraded unsuccessfully, describedly from controller, control described master controller and the software module of the needs upgrading of control is return back to the old AKU of operation before upgrading, and after completing rollback, described master controller is taken over the control of whole storage array and formerly belongs to self responsible market demand service from controller from described;
When the described software module of self being controlled from controller upgrades successfully, described adapter from controller from master controller originally by originally serving from the responsible market demand of controller;
When the described software module of self being controlled from controller is upgraded unsuccessfully, described master controller is first controlled the described old AKU that from controller, the software module of the needs upgrading of control is return back to operation before upgrading, and described master controller is taken over the control of whole storage array during software module being return back to old AKU from controller and from the responsible market demand service of controller described; The software module of the needs upgrading that described master controller is controlled from chief commander self afterwards return back to the old AKU of moving before upgrading, described control and the responsible market demand service of master controller of taking over whole storage array from controller during described master controller return back to old AKU to software module; After the old AKU that the software module of the needs upgrading of self being controlled at described master controller is moved before returning back to upgrading, described master controller is taken over the control of whole storage array and formerly belongs to the responsible market demand service of master controller from controller from described.
A kind of service disconnection device of storage array in escalation process of avoiding, described storage array comprises master and slave control system, described master control system comprises master controller, describedly from control system, comprise from controller, described master controller is responsible for the control of whole storage array, for controlling the upgrading of described master control system software module, described from the upgrading of software module from control system described in controller control; Described master controller is identical with the described software module of controlling from controller; This application of installation, in master controller, comprising:
Upgrading unit, for first the software module of the needs upgrading of main controller controls being upgraded, and from controller, consult to be served by described control of taking over whole storage array from controller during master controller is to the software module upgrading of controlling and the responsible market demand of master controller with described when described storage array need to be upgraded;
Notification unit, while upgrading successfully for the software module of self being controlled when described master controller, notice is upgraded to the software module of the needs upgrading of controlling from controller;
Take over unit, for described from controller to during software module upgrading, or during the old AKU of moving, take over the control of whole storage array and from the responsible market demand service of controller before the software module of the needs upgrading of self being controlled from controller return back to upgrading; And, during the old AKU moved before the software module of the needs upgrading of main controller controls return back to upgrading, from described, from controller, take over the control of whole storage array and formerly belong to self responsible market demand service;
Rollback unit while upgrading unsuccessfully for the software module of self being controlled when described master controller, return back to the software module of the needs upgrading of main controller controls the old AKU of operation before upgrading under the control from controller; And, when the old AKU that the software module of self being controlled from controller upgrade unsuccessfully and the software module of the described needs upgrading of self having been controlled the control at master controller from controller is moved before returning back to upgrading, from the software module of the needs upgrading of chief commander's main controller controls, return back to the old AKU that upgrading moves before;
Control module, for when the described software module of self being controlled from controller is upgraded unsuccessfully, the old AKU of operation before the software module of from controller, the needs of control being upgraded described in controlling return back to and upgrades.
A kind of service disconnection device of storage array in escalation process of avoiding, described storage array comprises master and slave control system, described master control system comprises master controller, describedly from control system, comprise from controller, described master controller is responsible for the control of whole storage array, for controlling the upgrading of described master control system software module, described from the upgrading of software module from control system described in controller control; Described master controller is identical with the described software module of controlling from controller; This application of installation in from controller, comprising:
Notice receiving element sends for receiving described master controller the notice that requirement is upgraded to the software module of the needs upgrading of controlling from controller when the software module that self is controlled upgrades successfully;
Upgrading unit, for when described notice receiving element receives described notice, upgrades to the software module of the described needs upgrading of controlling from controller;
Take over unit, for during master controller is to the software module upgrading of controlling, or during described master controller return back to old AKU to software module, take over control and the responsible market demand service of master controller of whole storage array, and when the described software module of self being controlled from controller upgrades successfully, from master controller, take over originally and served from the responsible market demand of controller by this;
Rollback unit, for when the described software module of self being controlled from controller is upgraded unsuccessfully, the old AKU that the software module of first under the control of described master controller, the needs of controlling from controller being upgraded is moved before returning back to upgrading;
Control module, for when described master controller is upgraded unsuccessfully to the software module of controlling, controls described master controller and the software module of the needs upgrading of control is return back to the old AKU of operation before upgrading.
As can be seen from the above technical solutions, in the present invention, when storage array need to be upgraded, only upgrading needs the software module of upgrading, and, if broken down in escalation process, cause upgrading unsuccessfully, adopt the present invention can return back to fast the upgraded version moving before upgrading, business can not interrupted, return to as early as possible normal operating conditions.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the drawings and specific embodiments, describe the present invention.
Method provided by the invention can be accelerated the escalation process of storage array, only upgrading needs the software module of upgrading, and, if broken down in escalation process, cause upgrading unsuccessfully, adopt the present invention can return back to fast the upgraded version moving before upgrading, business can not interrupted, return to as early as possible normal operating conditions.
The technical scheme that the application provides comprises flow process shown in Fig. 1.
Referring to Fig. 1, the method flow diagram that Fig. 1 provides for the embodiment of the present invention.
Wherein, before the method flow providing at description Fig. 1, first the storage array the present invention relates to is described:
In the present invention, storage array, it is double control system storage array, and one of them control system is called master control system, bears the control of whole storage array, and another control system is called from control system, and auxiliary master control system carries out work.
In the present invention, master control system, the hardware comprising from control system, software configuration are similar.As shown in Figure 2, master control system, from control system, all comprise following hardware configuration:
Controller;
Timer in controller;
Firmware memory;
(BMC:Basedboard Mansgement Controller) device is controlled in substrate management.
In the present invention, data path between master and slave control system is not directly based upon between both controllers of master and slave control system, but for the ease of master and slave control system read-write the other side solid-state memory, BMC device, respectively the data path between master and slave control system middle controller and solid-state memory, BMC device is all carried on the data path between master and slave control system, specifically as shown in Figure 2.
It should be noted that, in the present invention, for ease of describing, the controller here master control system being comprised is called master controller, and it is responsible for the control of whole storage array, and the controller comprising from control system is called from controller.
The hardware configuration comprising corresponding to the master and slave control system shown in Fig. 2, the invention also discloses the software configuration in master and slave control system.Wherein, in master and slave control system, software configuration is similar, all comprises identical software module, and the software module in the master and slave control system respectively controller in master and slave control system is controlled.
Fig. 3 shows the software configuration in master and slave control system.As shown in Figure 3, the software configuration in master and slave control system comprises following software module:
Order receiver module, be responsible for to receive the go forward side by side rough handling of line command of outside order of importing into.Preferably, as an embodiment, order receiver module is mainly responsible for receiving firmware upgrade order, and after command execution, passes through the notification command execution result that makes progress herein.
Control module, the control during the whole service of responsible system and the processing of data.
Timing module, is responsible for carrying out system time counting.
Communication module, is responsible for the communication between control module and other modules, comprises the communication of each module of this control system and the communication to each module of end control system, and by this module, control module can complete the read-write of firmware memory and the operation of BMC device.
Memory I/O module, is responsible for firmware memory to carry out I/O operation, provides I/O operation-interface to read or to write firmware memory.
BMC module, is responsible for the information in BMC device to monitor and manage, and system power supply is managed, and BMC operation-interface is provided, by BMC operation-interface, and can be by reset system power supply with reset system.
Hardware configuration based on above-described master and slave control system and software configuration, as shown in Figure 1, this flow process can comprise the following steps:
Step 101, the software module of the needs upgrading of first by described master controller, self being controlled when described storage array need to be upgraded is upgraded, described control and the responsible market demand service of master controller of taking over whole storage array from controller during described master controller is to software module upgrading.
As one embodiment of the present of invention, the software module of the needs upgrading that described master controller is controlled self can be the one or more software modules in master control system shown in Fig. 3.
Step 102, when the software module of self being controlled when described master controller upgrades successfully, master controller notice is upgraded to the software module of the needs upgrading of controlling from controller, and described master controller is taken over the control of whole storage array from controller during to software module upgrading and from the responsible market demand service of controller described.
As one embodiment of the present of invention, the software module of the described needs upgrading of self being controlled from controller can be the one or more software modules from control system shown in Fig. 3.
Step 103, when the software module of self being controlled when described master controller is upgraded unsuccessfully, describedly from controller, control described master controller and the software module of the needs upgrading of control is return back to the old AKU of operation before upgrading, and after completing rollback, described master controller is taken over the control of whole storage array and formerly belongs to self responsible market demand service from controller from described.
Step 104, when the described software module of self being controlled from controller upgrades successfully, described adapter from controller from master controller originally by originally serving from the responsible market demand of controller.
Step 105, when the described software module of self being controlled from controller is upgraded unsuccessfully, described master controller is first controlled the described old AKU that from controller, the software module of the needs upgrading of control is return back to operation before upgrading, and described master controller is taken over the control of whole storage array during software module being return back to old AKU from controller and from the responsible market demand service of controller described; The software module of the needs upgrading that described master controller is controlled from chief commander self afterwards return back to the old AKU of moving before upgrading, described control and the responsible market demand service of master controller of taking over whole storage array from controller during described master controller return back to old AKU to software module; After the old AKU that the software module of the needs upgrading of self being controlled at described master controller is moved before returning back to upgrading, described master controller is taken over the control of whole storage array and formerly belongs to the responsible market demand service of master controller from controller from described.
So far, complete flow process shown in Fig. 1.
It should be noted that, in the present invention, there is not regular time sequencing to step 103 in the step 102 shown in Fig. 1, and step 103 to step 105 does not exist regular time sequencing yet, it is just for convenience of describing the numbering of having done, and non-limiting the present invention.
Method Fig. 1 being provided below by Fig. 4 is described in detail:
Referring to Fig. 4, the example flow chart that Fig. 4 provides for the embodiment of the present invention.In this example, master controller is designated as controller A, the residing system of master controller is designated as control system A, from controller, be designated as controller B, from the residing system of controller, be designated as control system B, before storage array upgrading, the AKU of all preserving the current operation version of each software module in system of living on controller A and B, is called old AKU.
Afterwards, when needs are upgraded to storage array, carry out following steps:
Step 401, the external world issues upgrading and orders to storage array.
Here, when controller A first receives upgrading order, directly perform step 402.And when controller B first receives upgrading order, because the residing system of controller A has the control of whole storage array, controller B can be forwarded to controller A by the upgrading order of reception, to guarantee that the controller in master control system receives and carry out upgrading order, performs step 402 afterwards.
Step 402, controller A receives and stores the extraneous new AKU of importing into.
New AKU described here is storage array AKU used when current need to upgrading.
Step 403, controller A sends new AKU to controller B, and controller B receives and stores new AKU.
Step 404, controller A notification controller B will upgrade, and notification controller B starts the first upgrading timer of setting.
Here, the time-out time of the first upgrading timer can be the update time of estimation, and it is according to actual conditions setting.
Step 405, the software module of the needs upgrading that controller A controls self is upgraded: start the new AKU of decompress(ion), detect the software module that each need to be upgraded, the software module of needs upgrading is upgraded in order.
In the present invention, for guaranteeing can also to continue to provide market demand service during upgrading, keep market demand service not interrupt, controller A and controller B need to consult, the control and the responsible market demand service of controller A that require controller B to take over whole storage array during controller A is to software module upgrading.
Based on this, in the present invention, during the software module of the needs upgrading of self being controlled at step 405 middle controller A is upgraded, controller B takes over control and the responsible market demand service of controller A of the former responsible whole storage array of controller A.
Step 406, if controller A upgrades successfully, controller A is restarted control system A, control system A brings into operation, and turns to step 407; If controller A cannot operation control system A, during the first upgrading timer expiry of starting at controller B, controller B judges that controller A upgrades unsuccessfully, turns to step 420.
Step 407, controller A successful operation plays system, from controller B, takes over the control of whole storage array and takes over the responsible market demand service of controller B.
Step 408, the second upgrading timer that controller A sets at local boot, and send upgrading order to controller B.
As a preferred embodiment of the present invention, the time-out time of the upgrading of second in this step 408 timer can be identical with the time-out time of above-mentioned the first upgrading timer.
Step 409, controller B receives upgrading order, and the software module of the needs that self is controlled upgrading is upgraded: start the new AKU of decompress(ion), detect the software module that each need to be upgraded, the software module of needs upgrading is upgraded in order.
Step 410, if controller B upgrades successfully, restarts control system B, and control system B brings into operation, and turns to step 411; If controller B upgrades unsuccessfully, cannot successful operation control system B, turn to step 413.
Step 411, controller B successful operation plays system, belongs to self responsible market demand service, and return to successfully run signal to controller A from controller A adapter is former.Perform step afterwards 412.
Step 412, controller A receives after the successful operation signal that controller B returns, and deletes old AKU, and notification controller B deletes old AKU, after waiting for that controller B has deleted, upgrading order is sent to the signal prompt having upgraded successfully, duty before recovery upgrading.Finish current flow process.
Step 413, controller B cannot operational system, and during the second upgrading timer expiry starting at controller A, controller A judges that controller B upgrades unsuccessfully, and the update controller B failed number of times of upgrading.Perform step afterwards 414.
Step 414, controller A judges at this upgrading stage control device B failed number of times of upgrading whether arrive the number of times of regulation, if so, proceeds to step 415, otherwise, again attempt the module that controller B upgrades to needs and carry out updating operation, return to step 408.
Step 415, controller B cannot upgrade successfully through repeatedly attempting, the new and old AKU of controller A, detect the module that needs upgrading, the old AKU of the module of needs upgrading is recorded to controller B, so that controller B return back to the software module of needs upgrading the old AKU of moving before upgrading, restart control system B, control system B operation.Perform step afterwards 416.
Step 416, controller B operational system, controller A notification controller B carries out the software module of the needs upgrading that self is controlled to return back to the upgrading operation of the old AKU of operation before, and notification controller B starts the 3rd upgrading timer of setting.
Here, the time-out time of the 3rd upgrading timer can be the time of estimation, and it is according to actual conditions setting, and large I is less than or equal to the time-out time of the above-mentioned first or second upgrading timer.
Similar with step 405, in the present invention, for guaranteeing can also to continue to provide market demand service during upgrading, keep market demand service not interrupt, controller A also needs to consult with controller B, control and the responsible market demand service of controller A that the operating period of the old AKU of moving before requiring the software module of the needs upgrading that controller B controls self at controller A to carry out to return back to upgrading is taken over whole storage array.
Step 417, the software module that the needs that controller A controls self are upgraded is carried out and is return back to the upgrading operation of the old AKU of operation before: compare the old and new's AKU, detect the software module that needs upgrading, by the old AKU of the software module of needs upgrading, writing controller A, so that need the software module of upgrading to return back to the old AKU of moving before upgrading.
Step 418, if control system A is restarted in controller A rollback success, control system A operation, proceeds to step 421, if the failure of controller A rollback, cannot successful operation control system A, proceed to step 419.
Step 419, controller A cannot operation control system A, and during the 3rd upgrading timer expiry that starts at controller B, controller B judges the failure of controller A rollback.Perform step afterwards 420.
Step 420, the new and old AKU of controller B, detect the software module that each need to be upgraded, by the old AKU of the software module of needs upgrading, writing controller A, the software module of the needs upgrading of main controller controls runs to the old AKU of moving before upgrading, and restart controller A waits for controller A operation control system A.Perform step afterwards 421.
Step 421, controller A operational system, controller B notification controller A deletes new AKU, then delete the new AKU of controller B, controller A takes over master controller power and the former market demand service that belongs to self from controller B, controller A sends the unsuccessful signal prompt completing of upgrading, recovers the front duty of upgrading.Finish current flow process.
So far, complete flow process shown in Fig. 4.
Above method provided by the invention is described, below device provided by the invention is described:
Referring to Fig. 5, the structure drawing of device that Fig. 5 provides for the embodiment of the present invention.In this apparatus structure, described storage array comprises master and slave control system, described master control system comprises master controller, describedly from control system, comprise from controller, described master controller is responsible for the control of whole storage array, for controlling the upgrading of described master control system software module, described from the upgrading of software module from control system described in controller control; Described master controller is identical with the described software module of controlling from controller; As shown in Figure 5, this application of installation, in master controller, comprising:
Upgrading unit, for first the software module of the needs upgrading of main controller controls being upgraded, and from controller, consult to be served by described control of taking over whole storage array from controller during master controller is to the software module upgrading of controlling and the responsible market demand of master controller with described when described storage array need to be upgraded;
Notification unit, while upgrading successfully for the software module of self being controlled when described master controller, notice is upgraded to the software module of the needs upgrading of controlling from controller;
Take over unit, for described from controller to during software module upgrading, or during the old AKU of moving, take over the control of whole storage array and from the responsible market demand service of controller before the software module of the needs upgrading of self being controlled from controller return back to upgrading; And, during the old AKU moved before the software module of the needs upgrading of main controller controls return back to upgrading, from described, from controller, take over the control of whole storage array and formerly belong to self responsible market demand service;
Rollback unit while upgrading unsuccessfully for the software module of self being controlled when described master controller, return back to the software module of the needs upgrading of main controller controls the old AKU of operation before upgrading under the control from controller; And, when the old AKU that the software module of self being controlled from controller upgrade unsuccessfully and the software module of the described needs upgrading of self having been controlled the control at master controller from controller is moved before returning back to upgrading, from the software module of the needs upgrading of chief commander's main controller controls, return back to the old AKU that upgrading moves before;
Control module, for when the described software module of self being controlled from controller is upgraded unsuccessfully, the old AKU of operation before the software module of from controller, the needs of control being upgraded described in controlling return back to and upgrades.
Preferably, as shown in Figure 5, described device further comprises:
Receiving element, for receiving and store described storage array new AKU used when current need to the upgrading;
Transmitting element, for sending described new AKU extremely from controller;
Sequentially upgrade according to setting to the software module of the needs upgrading of controlling according to described new AKU in described upgrading unit;
Cleaning unit, for after the software module of the needs upgrading of controlling being upgraded successfully from controller, delete the old AKU of software module operation before upgrading of the needs upgrading of self controlling, and send to delete notice to from controller, old AKU with by delete software module operation before upgrading of the needs upgrading of self controlling from controller, provides the prompting having upgraded successfully; And,
After the old AKU of moving before returning back to upgrading in described master controller, the described software module of all controlling the needs upgrading of self controlling from controller, delete described new AKU, provide upgrading the unsuccessful prompting completing.
Preferably, as shown in Figure 5, described rollback unit is at the software module that further renewal is upgraded to the needs of control from controller after controller upgrade unsuccessfully to the software module of the needs upgrading of the controlling failed number of times of upgrading, whether the number of times after detection is upgraded reaches the number of times of setting, if so the software module of, touching the needs upgrading described control module is controlled first self is controlled from controller return back to described in the old upgrading of operation before upgrading the operation from controller bag; If not, the operation that trigger notice unit notice is upgraded to the software module of the needs upgrading of controlling from controller from controller.
So far, complete the unit describe shown in Fig. 5.
Referring to Fig. 6, another structure drawing of device that Fig. 6 provides for the embodiment of the present invention.In this apparatus structure, described storage array comprises master and slave control system, described master control system comprises master controller, describedly from control system, comprise from controller, described master controller is responsible for the control of whole storage array, for controlling the upgrading of described master control system software module, described from the upgrading of software module from control system described in controller control; Described master controller is identical with the described software module of controlling from controller; As shown in Figure 6, this application of installation in from controller, comprising:
Notice receiving element sends for receiving described master controller the notice that requirement is upgraded to the software module of the needs upgrading of controlling from controller when the software module that self is controlled upgrades successfully;
Upgrading unit, for when described notice receiving element receives described notice, upgrades to the software module of the described needs upgrading of controlling from controller;
Take over unit, for during master controller is to the software module upgrading of controlling, or during described master controller return back to old AKU to software module, take over control and the responsible market demand service of master controller of whole storage array, and when the described software module of self being controlled from controller upgrades successfully, from master controller, take over originally and served from the responsible market demand of controller by this;
Rollback unit, for when the described software module of self being controlled from controller is upgraded unsuccessfully, the old AKU that the software module of first under the control of described master controller, the needs of controlling from controller being upgraded is moved before returning back to upgrading;
Control module, for when described master controller is upgraded unsuccessfully to the software module of controlling, controls described master controller and the software module of the needs upgrading of control is return back to the old AKU of operation before upgrading.
Preferably, as shown in Figure 6, this device further comprises:
Receiving element, for receiving and store described storage array that master controller sends new AKU used when current need to the upgrading;
Sequentially upgrade according to setting to the software module of the needs upgrading of controlling according to described new AKU in described upgrading unit;
Cleaning unit, for after the software module of the needs upgrading of controlling being upgraded successfully from controller, the deletion notice sending according to main control is deleted the old AKU of software module operation before upgrading of the described needs upgrading of controlling from controller; And,
After the old AKU of moving before returning back to upgrading in described master controller, the described software module of all controlling the needs upgrading of self controlling from controller, further delete described new AKU.
So far, complete the device shown in Fig. 6.
As can be seen from the above technical solutions, in the present invention, when storage array need to be upgraded, only upgrading needs the software module of upgrading, and, if broken down in escalation process, cause upgrading unsuccessfully, adopt the present invention can return back to fast the upgraded version moving before upgrading, business can not interrupted, return to as early as possible normal operating conditions.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.