CN1704904A - Snapshot handling method for memory system - Google Patents

Snapshot handling method for memory system Download PDF

Info

Publication number
CN1704904A
CN1704904A CN 200410037141 CN200410037141A CN1704904A CN 1704904 A CN1704904 A CN 1704904A CN 200410037141 CN200410037141 CN 200410037141 CN 200410037141 A CN200410037141 A CN 200410037141A CN 1704904 A CN1704904 A CN 1704904A
Authority
CN
China
Prior art keywords
controller
snapshot
agent
state
responsible
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200410037141
Other languages
Chinese (zh)
Other versions
CN100337208C (en
Inventor
张巍
张国彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100371417A priority Critical patent/CN100337208C/en
Publication of CN1704904A publication Critical patent/CN1704904A/en
Application granted granted Critical
Publication of CN100337208C publication Critical patent/CN100337208C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

This invention relates to a snapshot process method in a storage system. When a pair of controllers are turned off, the snapshot control information is stored at a definite position, when it is turned on, the controller examines its own state separately then initializes the snapshot program according to the controller state or the request of the opposite controller and then designs if said data stored by the assigned position should be processed and if the mark position of the assigned position data is imaged to fetch and image data of the assigned position based on the designed mark position and begin the snapshot, the controller can begin receiving the required orders from the host. When the memory system is off suddenly, this invention can keep snapshot data of the source file at a time point so as to continue after the system is turned on.

Description

Snap processing method in a kind of storage system
Technical field
The present invention relates to technical field of data storage, relate in particular to the snap processing method in a kind of storage system.
Background technology
Along with the develop rapidly of science and technology and the widespread usage of computer technology, the increasing sharply and Development of E-business of internet information, enterprise information system is day by day in occupation of the principal status of public economy of enterprise competitive advantage.The magnanimity of data increases, and makes enterprise than whenever all depend on data more in the past.Therefore, protected data safety realizes that the storage backup of data is capturing the position that highlights further in enterprise application system.Present network data must guarantee 24 hours every days, 7 days weekly, annual 365 days to be in ready state, and therefore, backup procedure requires not ISR business, requires to reduce as much as possible the influence to the data access performance.The application of storage array snapping technique solves these problems well, has realized data backup easily, and can also realize online data acquisition and test by snapshot.
Snapshot is about in the disk data of certain time point and all intactly preserves, and just as taking a picture, " photograph " is the data rather than the scenery in certain moment only here.The method that snapshot is realized is a lot, such as writing preceding copy, tearing the mirror image equity open, but all must guarantee in any case: after user's snapshot command is assigned, the data of given area in the disk (such as D dish) can not be again because of the renewal of user's new data changes, and user's new data can not be lost in snapshot processes or make a mistake.
Generally speaking, for guaranteeing that snapshot can not cause losing of snapshot data because of the inefficacy of source book place controller (being referred to as master controller) in the snapshot processes, the capital is mirrored to the control information of snapshot side controller (is referred to as assistant controller, this controller only is used for receiving the SNAPSHOT INFO that the snapshot processes master controller sends over, under normal circumstances be not used in the control source book and finish snapshot), when losing efficacy with convenient master controller, assistant controller can be taken over the snapshot of source book.If but in snapshot processes, run into unexpected power down (external power supply such as memory device is lost), so that when storage system can only rely on the of short duration power supply of ups power, because snapshot often is a very long process, ups power is difficult to support to snapshot to be finished, at this moment, existing a lot of equipment, such as EMC4700 etc., direct this snapshot of termination just.Because remain permission in the snapshot processes source book is carried out read-write operation, therefore, the consequence that stops snapshot is exactly source book is lost at the snapshot data of certain time point, and irrecoverable, so just the safety of protected data effectively.
Summary of the invention
Technical matters to be solved by this invention is: overcome prior art when the unexpected power down of storage system, the shortcoming that source book is lost at the snapshot data of certain time point, snap processing method in a kind of storage system is provided, thereby after the unexpected power down of storage system, can be under the snapshot data of certain time point be preserved with source book, so that after system re-powers, snapshot can continue.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
When the snap processing method in this storage system, the pair of control device snapshot in the storage system are electric down, the snapshot control information is kept at assigned address; When controller powers on, read the snapshot control information from described assigned address as required, and between described two controllers, make mirror image processing as required, may further comprise the steps:
A1, controller are checked controller state separately respectively;
A2, require the initial snapshot program according to controller state or to side controller;
A3, be provided with whether to handle the data that described assigned address is preserved as required, and the zone bit of the described assigned address data of mirror image whether; And read data with the described assigned address of mirror image according to set zone bit;
A4, beginning snapshot, after snapshot began, controller can begin to receive the host requests order.
If down during electricity, one in the pair of control device be master controller, i.e. the affiliated controller of source book, another is an assistant controller, promptly with the corresponding mirror image controller of master controller; Perhaps described two controller states all are master controller and assistant controller dual state; And when powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
B1, two controller inspections controller state separately if controller state is not a Common Controller, illustrate to have uncompleted snapshot last time when electric down;
B2, two controllers be separately according to the state initial snapshot program of controller, and zone bit is set, and illustrates that two controllers all need to fetch data to described assigned address, and all need not to opposite end mirror snapshot control information;
After B3, snapshot program initialization are finished, Take Snapshot control information in the described assigned address;
B4, after the snapshot of certain controller is finished reading of assigned address data, the notice can begin snapshot to side controller:
B5, after snapshot begins, then notify two controllers can begin to receive host requests.
If when electric down, one in the pair of control device is person in charge's controller, and another controller lost efficacy or state is pseudo-assistant controller; And when powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
C1, person in charge's controller are checked controller state;
C2, person in charge's controller require side controller with assistant controller form initial snapshot to side controller is sent request; Be responsible for controller zone bit is set, illustrate that person in charge's controller need be to opposite end controller image snapshot control information; Side controller is provided with zone bit according to the request of being responsible for controller, illustrates that the snapshot program to side controller need not to handle the assigned address data;
C3, person in charge's controller are responsible for the controller snapshot with the initialization of master controller form;
After C4, the program initialization of person in charge's controller snapshot are finished, get the snapshot control information in the assigned address;
C5, after program initialization is finished to the side controller snapshot, according to zone bit, directly notice is responsible for controller and can be begun snapshot;
After C6, person in charge's controller snapshot were finished the assigned address data processing, according to the zone bit requirement, the mirror snapshot control information was arrived side controller;
C7, when be responsible for controller receive side controller received the response of SNAPSHOT INFO after, notice is responsible for controller and is begun snapshot;
C8, after snapshot begins, then notify two controllers can begin to receive host requests.
If down during electricity, one in the pair of control device is agent controller, another inefficacy or be pseudo-master controller; When powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
D1, agent controller are checked controller state;
D2, agent controller require side controller with master controller form initial snapshot to side controller is sent request; Agent controller is provided with zone bit, illustrates that agent controller need be to opposite end controller image snapshot control information; Request is provided with zone bit according to agent controller to side controller, illustrates that the snapshot to side controller need not to handle described assigned address data;
D3, agent controller are with assistant controller form initialization agent controller snapshot;
After D4, the program initialization of agent controller snapshot are finished, get the snapshot control information in the described assigned address;
D5, side controller snapshot program finished with the initialization of master controller form after, according to zone bit, directly the notification agent controller can begin snapshot;
After D6, agent controller snapshot were finished described assigned address data processing, according to zone bit, the mirror snapshot control information was arrived side controller; After side controller finished the snapshot control information and receive, the notification agent controller, and start snapshot;
D7, after acting on behalf of the notified response that the side controller snapshot is received SNAPSHOT INFO of controller, begin snapshot with the assistant controller form, receive the snapshot control information that master controller sends;
D8, after snapshot begins, then notify two controllers can begin to receive host requests.
If when electric down, one in the pair of control device is person in charge's controller and agent controller, and another controller lost efficacy or state is pseudo-assistant controller and pseudo-master controller; And when powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
E1, the person in charge and agent controller are checked controller state;
E2, the person in charge and agent controller are to side controller is sent request, requirement to side controller with master controller form initial snapshot, the person in charge and agent controller are provided with zone bit, illustrate that the person in charge and agent controller need be to opposite end controller image snapshot control informations; Side controller is provided with zone bit, illustrates that the snapshot to side controller will need not to get described assigned address data;
E3, the person in charge and agent controller are with the master controller form initialization person in charge and agent controller snapshot;
After E4, the person in charge and the program initialization of agent controller snapshot are finished,, get the snapshot control information in the assigned address according to zone bit;
E5, after program initialization is finished to the side controller snapshot, according to zone bit, directly notice is responsible for and agent controller can begin snapshot;
After E6, the person in charge and agent controller snapshot were finished the assigned address data processing, according to zone bit, the mirror snapshot control information was to side controller, and after side controller was finished SNAPSHOT INFO and received, notice was responsible for and agent controller, and starts snapshot;
E7, when be responsible for and the notified response that the side controller snapshot is received SNAPSHOT INFO of agent controller after, start snapshot;
E8, after snapshot begins, then notify two controllers can begin to receive host requests.
If when electric down, a state in the pair of control device is a master controller, another state is an assistant controller; When powering on, master controller lost efficacy, and assistant controller is normal, then finish described assigned address data processing, when master controller transmission request can begin snapshot, the assistant controller state is switched to agent controller by assistant controller when assistant controller, proceed initialization, and report critical alarm; After initialization is finished, start snapshot, after acting on behalf of controller startup snapshot, can begin to receive host requests by the notification agent controller.
If when electric down, a state in the pair of control device is a master controller, another state is an assistant controller; When powering on, master controller is normal, and assistant controller lost efficacy, then finish the assigned address data processing, when assistant controller transmission request can begin snapshot, the master controller state is switched to person in charge's controller by master controller when master controller, and report critical alarm, start snapshot simultaneously; After being responsible for controller startup snapshot, can notify person in charge's controller can begin to receive host requests.
If when electric down, a state in the pair of control device is for being responsible for controller, and another state was for losing efficacy or pseudo-assistant controller; When powering on, it is normal to be responsible for controller, and the opposite end controller lost efficacy, then finish the assigned address data processing, in the time can beginning snapshot, will be responsible for controller state and switch to person in charge's controller by master controller to side controller transmission request when being responsible for controller, and report critical alarm, start snapshot simultaneously; After being responsible for controller startup snapshot, can notify person in charge's controller can begin to receive host requests.
If when electric down, a state in the pair of control device is an agent controller, another state was for losing efficacy or pseudo-master controller; When powering on, agent controller is normal, another controller lost efficacy, then ought act on behalf of controller and finish described assigned address data processing, in the time can beginning snapshot to side controller transmission request, the agent controller state is switched to agent controller by assistant controller, proceed beginningization, and report critical alarm; After initialization is finished, start snapshot; After acting on behalf of controller startup snapshot, promptly the notification agent controller can begin to receive host requests.
If when electric down, a state in the pair of control device is for being responsible for controller and agent controller, and another state was for losing efficacy or pseudo-master controller and pseudo-assistant controller; When powering on, the person in charge and agent controller are normal, another inefficacy, then work as the person in charge and agent controller and finish the assigned address data processing, in the time can beginning snapshot to side controller transmission request, to be responsible for the agent controller state and switch to the person in charge and agent controller, and report critical alarm, start snapshot simultaneously by master controller; Behind the person in charge and agent controller startup snapshot, promptly the notice person in charge and agent controller can begin to receive host requests.
Beneficial effect of the present invention is: the invention provides the snap processing method in a kind of storage system, in when electricity under the controller snapshot, the snapshot control information is kept at assigned address such as disk; When controller powers on, from assigned address, read the snapshot control information as required, and between two controllers, make mirror image processing as required, the snapshot control information can be preserved like this, so that after system re-powered, snapshot can continue.The present invention has carried out detailed classification with the state of controller, concludes and sums up on the basis of these classification then, and the various possible situation when powering on is classified, and adopts the different treatment schemees that powers on for different states.So to greatest extent snapshot data is preserved, overcome prior art and can't preserve snapshot data, and the deficiency that can't utilize the snapshot data of preservation when powering on, to recover.Utilize the present invention, after the unexpected power down of storage system, can be under the snapshot data of certain time point be preserved with source book, so that after system re-powered, snapshot can continue, and has very high practicality.
Embodiment
According to embodiment the present invention is described in further detail below:
The present invention is divided into following several state with the controller in the snapshot processes:
1, Common Controller: promptly snapshot finishes, or does not have snapshot, or snapshot is because of the asynchronous controller of being abandoned of snapshot control information;
2, Failure Control device: the controller that promptly breaks down;
3, master controller: i.e. controller under the source book;
4, assistant controller: promptly with the corresponding mirror image controller of master controller, the snapshot control information of assistant controller certainty is synchronous with master controller;
5, pseudo-master controller: after promptly master controller lost efficacy and to recover again, not synchronous fully as yet on the snapshot control information on the master controller before taking over assistant controller again, this moment master controller and the assistant controller;
6, pseudo-assistant controller: promptly assistant controller lost efficacy recover not only or the mirror image link failure but recover after, the assistant controller before the snapshot control information on the master controller not being come fully synchronously as yet;
7, be responsible for controller: i.e. master controller when assistant controller inefficacy back or opposite end controller state are " pseudo-assistant controller ";
8, agent controller: i.e. assistant controller when master controller inefficacy back or opposite end controller state are " pseudo-master controller ".
In the snapshot processes, a controller may have dual state, as master controller and assistant controller state, is responsible for controller and agent controller state, pseudo-master controller and pseudo-assistant controller state.This is because the state of controller depends primarily on the controller and the current state (quality) of controller at snapshot source book place, like this for " a pair of " controller (CTRL0, CTRL1), if the snapshot source book is at CTRL0, then CTRL0 is a master controller, and CTRL1 is an assistant controller; Otherwise, if the snapshot source book at CTRL1, then CTRL1 is a master controller, CTRL0 is an assistant controller.Which controller the snapshot source book is positioned at actually, then is decided by user's selection.
The present invention if snapshot finishes as yet, then is saved in the state of controller assigned address (, be referred to as " proof box " such as disk, promptly be used for maintaining system data and various control informations when under the system during electricity) when following electricity, so that inquire about when powering on.When preserving the snapshot control information, the snapshot program only need write disk incident appointed positions with certain form with the control information of snapshot in the internal memory and get final product after receiving that electricity instructs under the storage system.If following electricity the time is not preserved the snapshot control information, when restarting next time etc. system, just can not be according to the snapshot control information recovery snapshot data of preserving, and allow snapshot proceed.
Though be normal electricity down or urgent electricity down (so-called normal electricity down, promptly the user in a planned way closes storage system; So-called down urgent, refer to that then system's external power supply loses suddenly, and have no alternative but to adopt the UPS power supply), with the snapshot control information according to the controller current state, be saved in assigned address (such as disk): outside promptly only the SNAPSHOT INFO of master controller, assistant controller, person in charge's controller, agent controller must be preserved, the snapshot control information in the controller of other state all can not preserved.
When controller powers on, if controller is a dual state, preferentially according to master controller mode initial snapshot program.If get nowhere according to main or the initialization of assistant controller state, the state of preserving when then reverting to down electricity, and according to this state initial snapshot program;
All more or less can do a little initialized work during any one program start, such as to resource of system's application necessity etc.For snapshot, then mainly finish to system's application and preserve the required memory source of snapshot control information, create background copy thread (master controller end), receive the daemon thread (assistant controller end) of snapshot control information etc.The snapshot program depends on other basic services module, need during such as the snapshot program work constantly mutual with buffer memory Cache, to determine how user's given " volume " is carried out snapshot; Such as snapshot is to utilize disk array RAID module to read and write data of user's given " volume " or the like.When controller powered on, the initialization of snapshot must can begin after all initialization is finished in other basic services module (as Cache, RAID), and in the snapshot initialization procedure, did not allow controller to receive host requests.
Snapshot during below respectively to the various different conditions of the controller flow process that powers on is introduced:
CTRL0 is a master controller during 1, as if following electricity, and CTRL1 is an assistant controller; When powering on, CTRL0, CTRL1 are normal, and then the snapshot flow process that powers on is as follows:
1., CTRL0, CTRL1 check controller state because controller state is not a Common Controller, illustrate to have uncompleted snapshot last time when electric down;
2., CTRL0, CTRL1 are separately according to the state initial snapshot program of this controller; CTRL0, CTRL1 are provided with zone bit, illustrate that CTRL0, CTRL1 need to fetch data to proof box, and all need not to opposite end mirror snapshot control information;
3., after the snapshot program initialization finishes, Take Snapshot control information in the proof box;
4., after the snapshot of certain controller is finished reading of proof box data, the notice can begin snapshot to side controller:
I, the request of before master controller CTRL0 finishes the processing of proof box data, receiving assistant controller CTRL1, wait for that then master controller finishes the processing of proof box data, and correctly send the proof box data processing finish the request to behind the assistant controller, just can directly begin snapshot (being background copy);
II, the request of before assistant controller CTRL1 finishes the processing of proof box data, receiving master controller CTRL0, wait for that then assistant controller finishes the processing of proof box data, and correctly send the proof box data processing finish the request to behind the master controller, master controller just can begin snapshot (being background copy);
5., after snapshot begins, then notify two controllers can begin to receive host requests.
CTRL0, CTRL1 state are " master controller and assistant controller " (dual state) during 2, as if following electricity; When powering on, CTRL0, CTRL1 are normal, and then power on flow process and the 1st kind of situation of snapshot is similar, no longer describes in detail.
3, if down the CTRL0 state is for being responsible for controller during electricity, CTRL1 lost efficacy; When powering on, CTRL0, CTRL1 are normal, and then the snapshot flow process that powers on is as follows:
1., CTRL0 checks controller state because controller state is to be responsible for controller, illustrate to have uncompleted snapshot during electricity down last time, and last time down during electricity CTRL1 be in and lost efficacy or the pseudo-state of assisting, promptly will not have the snapshot control information in the CTRL1 proof box;
2., CTRL0 sends request to CTRL1, requires CTRL1 with assistant controller form initial snapshot.CTRL0 is provided with zone bit, illustrates that CTRL0 need be to the control information of CTRL1 mirror snapshot; CTRL1 is provided with zone bit according to the request of CTRL0, illustrates that the snapshot program of CTRL1 need not to handle the proof box data;
3., CTRL0 is with master controller form initialization CTRL0 snapshot;
4., after the program initialization of CTRL0 snapshot finishes, get the snapshot control information in the proof box;
5., after the program initialization of CTRL1 snapshot finishes,, directly notify CTRL0 can begin snapshot according to zone bit;
6., after the CTRL0 snapshot finishes the proof box data processing, according to the zone bit requirement, the mirror snapshot control information is to CTRL1;
7., after CTRL0 receives that CTRL1 receives the response of SNAPSHOT INFO, notice CTRL0 begins snapshot;
8., after snapshot begins, then notify two controllers can begin to receive host requests.
The CTRL0 state is an agent controller during 4, as if following electricity, and CTRL1 lost efficacy; When powering on, CTRL0, CTRL1 are normal, and then the snapshot flow process that powers on is as follows:
1., CTRL0 checks controller state because controller state is an agent controller, illustrate to have uncompleted snapshot during electricity down last time, and last time down during electricity CTRL1 be in inefficacy or pseudo-major state, promptly will not have the snapshot control information in the CTRL1 proof box;
2., CTRL0 sends request to CTRL1, requires CTRL1 with master controller form initial snapshot.CTRL0 is provided with zone bit, illustrates that CTRL0 need be to the control information of CTRL1 mirror snapshot; Request is provided with zone bit to CTRL1 according to CTRL0, illustrates that the snapshot of CTRL1 need not to handle the proof box data;
3., CTRL0 is with assistant controller form initialization CTRL0 snapshot;
4., after the program initialization of CTRL0 snapshot finishes, get the snapshot control information in the proof box;
5., after CTRL1 snapshot program finishes with the initialization of master controller form,, directly notify CTRL0 can begin snapshot according to zone bit;
6., after the CTRL0 snapshot finishes the proof box data processing, according to zone bit, the mirror snapshot control information is to CTRL1.After CTRL1 finishes snapshot control information reception, notice CTRL0, and start snapshot;
7., receive the response of SNAPSHOT INFO when the notified CTRL1 snapshot of CTRL0 after, begin snapshot (promptly receiving the snapshot control information that master controller sends) with the assistant controller form;
8., after snapshot begins, then notify two controllers can begin to receive host requests.
5, if down during electricity the CTRL0 state be " being responsible for controller and agent controller ", the CTRL1 inefficacy; When powering on, CTRL0, CTRL1 are normal, and then the snapshot flow process that powers on is as follows:
1., CTRL0 checks controller state, because controller state is to be responsible for controller and agent controller, illustrate down to have uncompleted snapshot during electricity last time, and last time down during electricity CTRL1 be in and lost efficacy or the puppet pseudo-auxilliary state of advocating peace, promptly will not have the snapshot control information in the CTRL1 proof box;
2., CTRL0 sends request to CTRL1, requires CTRL1 with master controller form initial snapshot.CTRL0 is provided with zone bit, illustrates that CTRL0 need be to the control information of CTRL1 mirror snapshot; CTRL1 is provided with zone bit, illustrates that the snapshot of CTRL1 will need not to get the proof box data;
3., CTRL0 is with master controller form initialization CTRL0 snapshot;
4., after the program initialization of CTRL0 snapshot finishes,, get the snapshot control information in the proof box according to zone bit;
5., after the program initialization of CTRL1 snapshot finishes,, directly notify CTRL0 can begin snapshot according to zone bit;
6., after the CTRL0 snapshot finishes the proof box data processing, according to zone bit, the mirror snapshot control information is to CTRL1.After CTRL1 finishes the SNAPSHOT INFO reception, notice CTRL0, and start snapshot;
7., receive the response of SNAPSHOT INFO when the notified CTRL1 snapshot of CTRL0 after, start snapshot;
8., after snapshot begins, then notify two controllers can begin to receive host requests.
6, if down the CTRL0 state is for being responsible for controller during electricity, the CTRL1 state is pseudo-assistant controller; When powering on, CTRL0, CTRL1 are normal, and then power on flow process and the 3rd kind of situation of snapshot is similar, no longer describes in detail.
The CTRL0 state is an agent controller during 7, as if following electricity, and the CTRL1 state is pseudo-master controller; When powering on, CTRL0, CTRL1 are normal, and then power on flow process and the 4th kind of situation of snapshot is similar, no longer describes in detail.
8, if down the CTRL0 state is for being responsible for controller and agent controller during electricity, the CTRL1 state is pseudo-assistant controller and pseudo-master controller; When powering on, CTRL0, CTRL1 are normal, and then power on flow process and the 5th kind of situation of snapshot is similar, no longer describes in detail.
The CTRL0 state is a master controller during 9, as if following electricity, and the CTRL1 state is an assistant controller; When powering on, master controller (CTRL0) lost efficacy, and assistant controller (CTRL1) is normal, and then the snapshot flow process that powers on is as follows:
Because in the power up or before powering on, master controller lost efficacy, then work as assistant controller and finish the proof box data processing, can't be successful when master controller transmission request can begin snapshot, so the assistant controller switching state is an agent controller by assistant controller, the initialization of not carrying out when continuing to finish (mainly being to start snapshot background copy thread) with the initialization of assistant controller form, and report critical alarm.After initialization is finished, start snapshot.
Can notify CTRL1 can begin to receive host requests this moment after CTRL1 starts snapshot.
The CTRL0 state is a master controller during 10, as if following electricity, and the CTRL1 state is an assistant controller; When powering on, master controller (CTRL0) is normal, and assistant controller (CTRL1) lost efficacy, and then the snapshot flow process that powers on is as follows:
Because in the power up or before powering on, assistant controller lost efficacy, then work as master controller and finish the proof box data processing, can't be successful when assistant controller transmission request can begin snapshot, so the master controller switching state is to be responsible for controller by master controller, and report critical alarm, start snapshot simultaneously.
Can notify CTRL0 can begin to receive host requests this moment after CTRL0 starts snapshot.
11, if down the CTRL0 state is for being responsible for controller during electricity, the CTRL1 state was for losing efficacy or pseudo-assistant controller; When powering on, CTRL0 is normal, and CTRL1 lost efficacy, and then the snapshot flow process that powers on is as follows:
Because in the power up or before powering on, CTRL1 lost efficacy, then work as CTRL0 and finish the proof box data processing, can't be successful when CTRL1 transmission request can begin snapshot, so the CTRL0 switching state is to be responsible for controller (because of CTRL0 starts with the master controller state) by master controller, and report critical alarm, start snapshot simultaneously.
Can notify CTRL0 can begin to receive host requests this moment after CTRL0 starts snapshot.
12, if down during electricity the CTRL0 state be agent controller, the CTRL1 state was for losing efficacy or pseudo-master controller; When powering on, CTRL0 is normal, and CTRL1 lost efficacy, and then the snapshot flow process that powers on is as follows:
Because in the power up or before powering on, CTRL1 lost efficacy, then work as CTRL0 and finish the proof box data processing, can't be successful when CTRL1 transmission request can begin snapshot, so the CTRL0 switching state is an agent controller by assistant controller, the initialization of not carrying out when continuing to finish (mainly being to start snapshot background copy thread) with the initialization of assistant controller form, and report critical alarm.After initialization is finished, start snapshot.
Can notify CTRL0 can begin to receive host requests this moment after CTRL0 starts snapshot.
13, if down the CTRL0 state is for being responsible for controller and agent controller during electricity, the CTRL1 state was for losing efficacy or pseudo-master controller and pseudo-assistant controller; When powering on, CTRL0 is normal, and CTRL1 lost efficacy, and then the snapshot flow process that powers on is as follows:
Because in the power up or before powering on, CTRL1 lost efficacy, then work as CTRL0 and finish the proof box data processing, can't be successful when CTRL1 transmission request can begin snapshot, so the CTRL0 switching state is to be responsible for controller and agent controller (controller state of preserving when recovering electric down) by master controller, and report critical alarm, start snapshot simultaneously.
Can notify CTRL0 can begin to receive host requests this moment after CTRL0 starts snapshot.
14, (the CTRL0 state is for being responsible for controller during such as following electricity, and the CTRL1 state was for losing efficacy or pseudo-assistant controller for other situation; When powering on, CTRL0 lost efficacy, and CTRL1 is normal), then snapshot can't continue.
The present invention is after the unexpected power down of storage system, can be under the snapshot data of certain time point be preserved with source book, so that after system re-powered, snapshot can continue, and has guaranteed the safety of data in the storage system.

Claims (10)

1, the snap processing method in a kind of storage system is characterized in that: when the pair of control device snapshot in the storage system is electric down, the snapshot control information is kept at assigned address; When controller powers on, read the snapshot control information from described assigned address as required, and between described two controllers, make mirror image processing as required, may further comprise the steps:
A1, controller are checked controller state separately respectively;
A2, require the initial snapshot program according to controller state or to side controller;
A3, be provided with whether to handle the data that described assigned address is preserved as required, and the zone bit of the described assigned address data of mirror image whether; And read data with the described assigned address of mirror image according to set zone bit;
A4, beginning snapshot, after snapshot began, controller can begin to receive the host requests order.
2, the snap processing method in the storage system according to claim 1, it is characterized in that: during as if following electricity, one in the pair of control device is master controller, and another is an assistant controller, and perhaps described two controller states all are master controller and assistant controller dual state; And when powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
B1, two controller inspections controller state separately if controller state is not a Common Controller, illustrate to have uncompleted snapshot last time when electric down;
B2, two controllers be separately according to the state initial snapshot program of controller, and zone bit is set, and illustrates that two controllers all need to fetch data to described assigned address, and all need not to opposite end mirror snapshot control information;
After B3, snapshot program initialization are finished, Take Snapshot control information in the described assigned address;
B4, after the snapshot of certain controller is finished reading of assigned address data, the notice can begin snapshot to side controller:
B5, after snapshot begins, notify two controllers can begin to receive host requests.
3, the snap processing method in the storage system according to claim 1 is characterized in that: if down during electricity, one in the pair of control device for being responsible for controller, and another controller lost efficacy or was pseudo-assistant controller; And when powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
C1, person in charge's controller are checked controller state;
C2, person in charge's controller require side controller with assistant controller form initial snapshot to side controller is sent request; Be responsible for controller zone bit is set, illustrate that person in charge's controller need be to opposite end controller image snapshot control information; Side controller is provided with zone bit according to the request of being responsible for controller, illustrates that the snapshot program to side controller need not to handle the assigned address data;
C3, person in charge's controller are responsible for the controller snapshot with the initialization of master controller form;
After C4, the program initialization of person in charge's controller snapshot are finished, get the snapshot control information in the assigned address;
C5, after program initialization is finished to the side controller snapshot, according to zone bit, directly notice is responsible for controller and can be begun snapshot;
After C6, person in charge's controller snapshot were finished the assigned address data processing, according to the zone bit requirement, the mirror snapshot control information was arrived side controller;
C7, when be responsible for controller receive side controller received the response of SNAPSHOT INFO after, notice is responsible for controller and is begun snapshot;
C8, after snapshot begins, notify two controllers can begin to receive host requests.
4, the snap processing method in the storage system according to claim 1 is characterized in that: if down during electricity, one in the pair of control device is agent controller, another inefficacy or be pseudo-master controller; When powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
D1, agent controller are checked controller state;
D2, agent controller require side controller with master controller form initial snapshot to side controller is sent request; Agent controller is provided with zone bit, illustrates that agent controller need be to opposite end controller image snapshot control information; Request is provided with zone bit according to agent controller to side controller, illustrates that the snapshot to side controller need not to handle described assigned address data;
D3, agent controller are with assistant controller form initialization agent controller snapshot;
After D4, the program initialization of agent controller snapshot are finished, get the snapshot control information in the described assigned address;
D5, side controller snapshot program finished with the initialization of master controller form after, according to zone bit, directly the notification agent controller can begin snapshot;
After D6, agent controller snapshot were finished described assigned address data processing, according to zone bit, the mirror snapshot control information was arrived side controller; After side controller finished the snapshot control information and receive, the notification agent controller, and start snapshot;
D7, after acting on behalf of the notified response that the side controller snapshot is received SNAPSHOT INFO of controller, begin snapshot with the assistant controller form, receive the snapshot control information that master controller sends;
D8, after snapshot begins, notify two controllers can begin to receive host requests.
5, the snap processing method in the storage system according to claim 1 is characterized in that: if down during electricity, one in the pair of control device for being responsible for controller and agent controller, and another controller lost efficacy or was pseudo-assistant controller and pseudo-master controller; And when powering on, two controllers are all normal, and then the snapshot flow process that powers on is as follows:
E1, the person in charge and agent controller are checked controller state;
E2, the person in charge and agent controller are to side controller is sent request, requirement to side controller with master controller form initial snapshot, the person in charge and agent controller are provided with zone bit, illustrate that the person in charge and agent controller need be to opposite end controller image snapshot control informations; Side controller is provided with zone bit, illustrates that the snapshot to side controller will need not to get described assigned address data;
E3, the person in charge and agent controller are with the master controller form initialization person in charge and agent controller snapshot;
After E4, the person in charge and the program initialization of agent controller snapshot are finished,, get the snapshot control information in the assigned address according to zone bit;
E5, after program initialization is finished to the side controller snapshot, according to zone bit, directly notice is responsible for and agent controller can begin snapshot;
After E6, the person in charge and agent controller snapshot were finished the assigned address data processing, according to zone bit, the mirror snapshot control information was to side controller, and after side controller was finished SNAPSHOT INFO and received, notice was responsible for and agent controller, and starts snapshot;
E7, when be responsible for and the notified response that the side controller snapshot is received SNAPSHOT INFO of agent controller after, start snapshot;
E8, after snapshot begins, notify two controllers can begin to receive host requests.
6, the snap processing method in the storage system according to claim 1 and 2 is characterized in that: during as if following electricity, a state in the pair of control device is a master controller, and another state is an assistant controller; When powering on, master controller lost efficacy, and assistant controller is normal, then finish described assigned address data processing, when master controller transmission request can begin snapshot, the assistant controller state is switched to agent controller by assistant controller when assistant controller, proceed initialization, and report critical alarm; After initialization is finished, start snapshot, after acting on behalf of controller startup snapshot, the notification agent controller can begin to receive host requests.
7, the snap processing method in the storage system according to claim 1 and 2 is characterized in that: during as if following electricity, a state in the pair of control device is a master controller, and another state is an assistant controller; When powering on, master controller is normal, and assistant controller lost efficacy, then finish the assigned address data processing, when assistant controller transmission request can begin snapshot, the master controller state is switched to person in charge's controller by master controller when master controller, and report critical alarm, start snapshot simultaneously; After being responsible for controller startup snapshot, notice is responsible for controller can begin to receive host requests.
8, according to the snap processing method in claim 1 or the 3 described storage systems, it is characterized in that: if down during electricity, a state in the pair of control device is for being responsible for controller, and another state was for losing efficacy or pseudo-assistant controller; When powering on, it is normal to be responsible for controller, and the opposite end controller lost efficacy, then finish the assigned address data processing, in the time can beginning snapshot, will be responsible for controller state and switch to person in charge's controller by master controller to side controller transmission request when being responsible for controller, and report critical alarm, start snapshot simultaneously; After being responsible for controller startup snapshot, notice is responsible for controller can begin to receive host requests.
9, according to the snap processing method in claim 1 or the 4 described storage systems, it is characterized in that: if down during electricity, a state in the pair of control device is an agent controller, and another state was for losing efficacy or pseudo-master controller; When powering on, agent controller is normal, another controller lost efficacy, then ought act on behalf of controller and finish described assigned address data processing, in the time can beginning snapshot to side controller transmission request, the agent controller state is switched to agent controller by assistant controller, proceed beginningization, and report critical alarm; After initialization is finished, start snapshot; After acting on behalf of controller startup snapshot, the notification agent controller can begin to receive host requests.
10, the snap processing method in the storage system according to claim 1 or 5, it is characterized in that: during as if following electricity, a state in the pair of control device is for being responsible for controller and agent controller, and another state was for losing efficacy or pseudo-master controller and pseudo-assistant controller; When powering on, the person in charge and agent controller are normal, another inefficacy, then work as the person in charge and agent controller and finish the assigned address data processing, in the time can beginning snapshot to side controller transmission request, to be responsible for the agent controller state and switch to the person in charge and agent controller, and report critical alarm, start snapshot simultaneously by master controller; Behind the person in charge and agent controller startup snapshot, notice is responsible for and agent controller can begin to receive host requests.
CNB2004100371417A 2004-06-03 2004-06-03 Snapshot handling method for memory system Expired - Fee Related CN100337208C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100371417A CN100337208C (en) 2004-06-03 2004-06-03 Snapshot handling method for memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100371417A CN100337208C (en) 2004-06-03 2004-06-03 Snapshot handling method for memory system

Publications (2)

Publication Number Publication Date
CN1704904A true CN1704904A (en) 2005-12-07
CN100337208C CN100337208C (en) 2007-09-12

Family

ID=35577207

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100371417A Expired - Fee Related CN100337208C (en) 2004-06-03 2004-06-03 Snapshot handling method for memory system

Country Status (1)

Country Link
CN (1) CN100337208C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777056B (en) * 2009-12-31 2012-01-04 成都市华为赛门铁克科技有限公司 Data storage method and device
CN101140536B (en) * 2007-05-21 2012-09-05 中兴通讯股份有限公司 Snapshot system supporting cascades snapshot and snapshot processing method thereof
CN102834811A (en) * 2010-05-25 2012-12-19 国际商业机器公司 Multiple cascaded backup process
CN105117165A (en) * 2015-07-17 2015-12-02 浪潮(北京)电子信息产业有限公司 Dual-controller snapshot taking-over and switching-back method and apparatus
CN105159802A (en) * 2015-09-15 2015-12-16 浪潮(北京)电子信息产业有限公司 Controller switching method and device
CN109388549A (en) * 2018-10-31 2019-02-26 北京羽扇智信息科技有限公司 Storage method, storage system, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119208A (en) * 1997-04-18 2000-09-12 Storage Technology Corporation MVS device backup system for a data processor using a data storage subsystem snapshot copy capability
US7363633B1 (en) * 2000-04-24 2008-04-22 Microsoft Corporation Registering and storing dependencies among applications and objects in a computer system and communicating the dependencies to a recovery or backup service
US6668264B1 (en) * 2001-04-03 2003-12-23 Network Appliance, Inc. Resynchronization of a target volume with a source volume

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140536B (en) * 2007-05-21 2012-09-05 中兴通讯股份有限公司 Snapshot system supporting cascades snapshot and snapshot processing method thereof
CN101777056B (en) * 2009-12-31 2012-01-04 成都市华为赛门铁克科技有限公司 Data storage method and device
CN102834811A (en) * 2010-05-25 2012-12-19 国际商业机器公司 Multiple cascaded backup process
CN102834811B (en) * 2010-05-25 2015-08-19 国际商业机器公司 Multi-cascade backup procedure
CN105117165A (en) * 2015-07-17 2015-12-02 浪潮(北京)电子信息产业有限公司 Dual-controller snapshot taking-over and switching-back method and apparatus
CN105159802A (en) * 2015-09-15 2015-12-16 浪潮(北京)电子信息产业有限公司 Controller switching method and device
CN105159802B (en) * 2015-09-15 2019-09-24 浪潮(北京)电子信息产业有限公司 A kind of controller switching method and device
CN109388549A (en) * 2018-10-31 2019-02-26 北京羽扇智信息科技有限公司 Storage method, storage system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN100337208C (en) 2007-09-12

Similar Documents

Publication Publication Date Title
CN100351801C (en) Backup system and method, restore system and method, and transfer system and method
CN1740949A (en) Information processor, starting method thereof
JP5865931B2 (en) Platform independent power management
CN1648876A (en) Data management apparatus and method of flash memory
CN104486523B (en) The data processing equipment and its control method of power supply can be controlled
CN101034364A (en) Method, device and system for implementing RAM date backup
CN1521625A (en) Fault-tolerant computer system, re-synchronization method thereof and re-synchronization program thereof
CN1892534A (en) Information processing apparatus and power control method
CN1786921A (en) Copy controller and method thereof
CN1908907A (en) A method for improving writing data efficiency and subsystem and system implementing the same
CN100337208C (en) Snapshot handling method for memory system
CN1658145A (en) Scalable print spooler
JP2011028430A5 (en)
CN101055611A (en) Authentication method, authentication apparatus and authentication program storage medium
CN101042546A (en) Image forming apparatus allowing setting item to be changed in power-saving mode
CN1848070A (en) Data storage device, reconstruction controlling device, reconstruction controlling method, and storage medium
CN1572530A (en) Printing device, printing system and printing control method
CN1279455C (en) LUN cache method for FC-SAN memory system
CN1658194A (en) File system control apparatus and file system control method
US9232101B2 (en) Data processing apparatus and control method for shifting between standby, suspended, and power-off states
CN1584833A (en) Bios for saving and restoring operational state in the absence of AC power
CN1728643A (en) Information processing device, control method thereof, and program
US10057433B2 (en) Image forming apparatus, operation control method and non-transitory computer-readable storage medium storing operation control program
CN1619525A (en) Electronic control unit
CN100342336C (en) Method for on-line upgrade of based input and output system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070912

Termination date: 20180603

CF01 Termination of patent right due to non-payment of annual fee