CN106372030A - Method and device for data synchronization of dual controller storage system - Google Patents
Method and device for data synchronization of dual controller storage system Download PDFInfo
- Publication number
- CN106372030A CN106372030A CN201610956754.3A CN201610956754A CN106372030A CN 106372030 A CN106372030 A CN 106372030A CN 201610956754 A CN201610956754 A CN 201610956754A CN 106372030 A CN106372030 A CN 106372030A
- Authority
- CN
- China
- Prior art keywords
- opposite terminal
- terminal controller
- locking
- controller
- itself
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/173—Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
- G06F15/17306—Intercommunication techniques
- G06F15/17325—Synchronisation; Hardware support therefor
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a method and device for data synchronization of a dual controller storage system. The method comprises the steps of receiving a read-write command for a first object; sending a locking request for the first object to an opposite end controller; determining whether the opposite end controller has been locked successfully according to a first response message returned by the opposite end controller; if the opposite end controller has been locked successfully, and if a locking operation is performed on the first object, responding to the read-write command. By applying the technical scheme, when a first end controller performs the read-write command on the first object, the opposite end controller is in a locked state, no other read-write operation is performed on the first object, and data consistency of the controllers at the two ends can be maintained.
Description
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of double controller storage system data syn-chronization side
Method and device.
Background technology
In double controller storage system, need between dual controller to carry out substantial amounts of data communication and synchronizing information.
Existing method of data synchronization is, a side controller is internally deposited after object etc. is written and read operation, by change
Data message is sent to opposite terminal controller, and opposite terminal controller is modified to correspondence memory object, so that in two side controllers
Data is consistent.
This method cannot always be to maintain the concordance of data in the controller of two ends.Such as, the first side controller is to a certain
While object carries out write operation, the second side controller carries out read operation to this object, and the second side controller does not also receive
The data synchronization information that one side controller sends, in this case, the data in two side controllers is inconsistent, the second side controller
Read to as if update before object, read error may be led to.Seriously inconsistent may result in of data carries to user
Carry out larger data degradation.
Content of the invention
It is an object of the invention to provide a kind of double controller storage system method of data synchronization and device, to keep double control
The concordance of data in device.
For solving above-mentioned technical problem, the present invention following technical scheme of offer:
A kind of double controller storage system method of data synchronization, comprising:
Receive the read write command for the first object;
Send the locking request for described first object to opposite terminal controller;
The first response message being returned according to described opposite terminal controller, determines whether described opposite terminal controller locks successfully;
If it is, and itself described first object is being carried out lock operation, then respond described read write command.
In a kind of specific embodiment of the present invention, send for described first object to opposite terminal controller described
Before locking request, also include:
Determine the working condition of described opposite terminal controller;
If described opposite terminal controller is in normal operating conditions, executes described transmission to described opposite terminal controller and be directed to
The step of the locking request of described first object.
In a kind of specific embodiment of the present invention, also include:
If described opposite terminal controller is not in normal operating conditions, directly itself described first object is being carried out adding
Lock operation, and respond described read write command.
In a kind of specific embodiment of the present invention, send for described first object to opposite terminal controller described
Before locking request, also include:
According to default locking priority, determine whether itself is preferentially to lock controller;
If it is, first itself carrying out to described first object locking operation, then execute and described send out to opposite terminal controller
The step sending the locking request for described first object;
If it is not, then first carrying out the described step sending the locking request for described first object to opposite terminal controller,
After determining that described opposite terminal controller locks success, then itself described first object is being carried out locking operation.
In a kind of specific embodiment of the present invention, after the described read write command of described response, also include:
When determination completes to described first object read-write, send for described first object to described opposite terminal controller
Unlocking request;
If receiving the unblock successful respond message that described opposite terminal controller returns, described first object is solved
Lock operation.
In a kind of specific embodiment of the present invention, also include:
In the locking request receiving that described opposite terminal controller sends for the second object, at itself to described second
Object carries out locking operation;
Return to described opposite terminal controller by carrying the second response message locking successful information.
In a kind of specific embodiment of the present invention, receiving that described opposite terminal controller sends for the described
During the locking request of two objects, after itself described second object being carried out locking operation, also include:
If please setting the unblock for described second object not receiving described opposite terminal controller transmission in duration
Ask, then at itself, operation is unlocked to described second object.
A kind of double controller storage system data synchronization unit, comprising:
Read write command receiver module, for receiving the read write command for the first object;
Locking request sending module, for sending the locking request for described first object to opposite terminal controller;
Lock successfully determining module, for the first response message returning according to described opposite terminal controller, it is described right to determine
Whether side controller locks successfully;
Read write command respond module, for determining that described opposite terminal controller locks successfully, and at itself to described first
When object has carried out locking operation, respond described read write command.
In a kind of specific embodiment of the present invention, also include:
Working condition determining module, in the described locking request sending to opposite terminal controller for described first object
Before, determine the working condition of described opposite terminal controller;If described opposite terminal controller is in normal operating conditions, trigger institute
State locking request sending module.
In a kind of specific embodiment of the present invention, described working condition determining module, it is additionally operable to:
When described opposite terminal controller is not in normal operating conditions, directly at itself, described first object is locked
Operation, and respond described read write command.
In a kind of specific embodiment of the present invention, also include:
Preferential locking determining module, in the described locking request sending to opposite terminal controller for described first object
Before, according to default locking priority, determine whether itself is preferentially to lock controller;If it is, it is first right at itself
Described first object carries out locking operation, then triggers described locking request sending module;If it is not, then first trigger described locking please
Seek sending module, after determining that described opposite terminal controller locks success, then itself described first object is being carried out locking operation.
In a kind of specific embodiment of the present invention, also include:
Unlocking request sending module, for when determination completes to described first object read-write, to described opposite terminal controller
Send the unlocking request for described first object;
Unblock operation executing module, for when receiving the unblock successful respond message that described opposite terminal controller returns,
Operation is unlocked to described first object.
In a kind of specific embodiment of the present invention, also include:
Lock operation executing module, for asking in the locking for the second object receiving described opposite terminal controller transmission
When asking, itself described second object is being carried out locking operation;
Response message returns module, for returning to the control of described opposite end by carrying the second response message locking successful information
Device processed.
In a kind of specific embodiment of the present invention, also include:
Timing module, in the locking request receiving that described opposite terminal controller sends for the second object,
After itself described second object being carried out locking operation, if not receiving described opposite terminal controller transmission in duration setting
The unlocking request for described second object, then at itself, operation is unlocked to described second object.
The technical scheme that the application embodiment of the present invention is provided, the first side controller receives the read-write for the first object
After instruction, can send, to opposite terminal controller, the locking request being directed to the first object, and determine whether opposite terminal controller locks into
Work(is if it is determined that opposite terminal controller locks successfully, and itself the first object is being carried out locking operation, then can respond this reading
Write command, executes corresponding read-write operation to the first object, when the first side controller executes read-write operation to the first object, right
Side controller is in the lock state, and will not execute other read-write operations again to the first object, can keep in two side controllers
Data concordance.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of double controller storage system method of data synchronization in the embodiment of the present invention;
Fig. 2 is another kind of implementing procedure figure of double controller storage system method of data synchronization in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of double controller storage system data synchronization unit in the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiment is only a part of embodiment of the present invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of double controller storage system method of data synchronization, can apply to first end control
Device processed, this first side controller can be any one side controller in dual controller.
Shown in Figure 1, a kind of double controller storage system method of data synchronization of being provided by the embodiment of the present invention
Implementing procedure figure, the method may comprise steps of:
S110: receive the read write command for the first object.
In actual applications, when manager or other system need the first end in double controller storage system is controlled
When object in device is written and read operation, read write command can be sent to this side controller.
After first side controller receives the read write command for the first object, the operation of step s120 can be continued executing with.
S120: send the locking request for the first object to opposite terminal controller.
After first side controller receives the read write command for the first object, can send for the to opposite terminal controller
The locking request of one object.Specifically, this side controller can extract the identification information needing the first object locking,
Plus type of message, it is packaged, generate the locking request for the first object, and this locking request is sent to opposite end control
Device.
S130: the first response message being returned according to opposite terminal controller, determines whether opposite terminal controller locks successfully.
In embodiments of the present invention, opposite terminal controller receives locking request, if carried out to the first object at itself
Lock operation, then can return to the first side controller by carrying the first response message locking successful information.If opposite end is controlled
Device processed currently cannot itself carry out to the first object locking operation, then can carry to the first side controller return and lock unsuccessfully
First response message of information.
The first response message that first side controller returns according to opposite terminal controller, you can determine whether opposite terminal controller adds
Lock successfully.If carrying locking successful information in the first response message, can determine that opposite terminal controller is directed to the first object and adds
Locking successfully, if carrying the information locking failure in the first response message, can determine that opposite terminal controller is directed to the first object
Lock unsuccessfully.
S140: if it is determined that opposite terminal controller locks successfully, and itself the first object is being carried out locking operation, then ringing
Answer read write command.
In embodiments of the present invention, the first side controller is after receiving the read write command for the first object, Ke Yili
Itself the first object is being carried out locking operation with mutual exclusion lock mutex_lock.First side controller can be right to first at itself
While as carrying out locking operation, send the locking request for the first object to opposite terminal controller, or, the first side controller
Can be after itself the first object being carried out locking operation, then the locking sending for the first object to opposite terminal controller please
Ask, or, the first side controller in the locking request being directed to the first object to opposite terminal controller transmission, and can determine that opposite end is controlled
After device processed locks success, itself the first object is being carried out locking operation.
First side controller determines that opposite terminal controller locks successfully, and itself the first object is being carried out locking operation
Afterwards, read write command can be responded, corresponding read-write operation is executed to the first object, and after the completion of read-write operation, will be related same
Step information is sent to opposite terminal controller, so that the data in two side controllers is consistent.
The method that the application embodiment of the present invention is provided, the first side controller receives the read write command for the first object
Afterwards, can send, to opposite terminal controller, the locking request being directed to the first object, and determine whether opposite terminal controller locks successfully, such as
Fruit determines that opposite terminal controller locks successfully, and itself the first object is being carried out locking operation, then can respond this read-write and refer to
Order, executes corresponding read-write operation to the first object, and when the first side controller executes read-write operation to the first object, opposite end is controlled
Device processed is in the lock state, and will not execute other read-write operations again to the first object, can keep the number in two side controllers
According to concordance.
In one embodiment of the invention, before step s120, the method can also comprise the following steps:
Step one: determine the working condition of opposite terminal controller;
Step 2: if opposite terminal controller is in normal operating conditions, the operation of execution step s120.
For ease of description, above-mentioned two step is combined and illustrates.
First side controller, after receiving the read write command for the first object, sends for the to opposite terminal controller
Before the locking request of one object, can first determine the working condition of opposite terminal controller.Specifically, can send out to opposite terminal controller
Send handshake information, if opposite terminal controller returns corresponding handshake information, can determine that opposite terminal controller is in normal work
State, otherwise it may be determined that opposite terminal controller is not in normal operating conditions.
If it is determined that opposite terminal controller is in normal operating conditions, then can direct execution step s120 operation, if
Determine that opposite terminal controller is not in normal operating conditions, then can directly itself the first object is carried out lock operation, and ring
Answer read write command.
The first side controller so can be avoided to be sent to after opposite terminal controller by locking request, at opposite terminal controller
In normal operating conditions it is impossible to return corresponding first response message, and lead to the first side controller to wait as long for first and answer
Answer the problem of message.
In a kind of specific embodiment of the present invention, before step s120, the method can also comprise the following steps:
According to default locking priority, determine whether itself is preferentially to lock controller;
If it is, first itself carrying out to the first object locking operation, then execute and send for the to opposite terminal controller
The step of the locking request of one object;
If it is not, then first carrying out the step sending the locking request for the first object to opposite terminal controller, right determining
After side controller locks success, then itself the first object is being carried out locking operation.
In actual applications, if the mode of locking is improper, may result in the generation of deadlock.
For example, when two controller sc0 and sc1, sc0 prepare to sc1 transmission locking request, the basis to sc0 at once
Ground object is locked, and meanwhile, sc1 is ready for sending locking request to sc0, then, the native object of sc1 is carried out adding at once
Lock, and attempt opposite terminal controller sc0 is locked, now, sc0 has been lockable, and sc1 cannot obtain the lock of sc0, thus entering
Row waits, and equally, sc0 also cannot obtain the lock of sc1 and be waited, and this two controllers will infinitely wait stays, and leads to
The generation of deadlock.
For avoiding above-mentioned this situation to occur, in embodiments of the present invention, locking priority can be preset, such as, often
Secondary is all that sc0 first locks, sc1 locks again.
Before the first side controller sends the locking request for the first object to opposite terminal controller, can be according to default
Locking priority, determine itself to be whether preferential locking controller.
If it is determined that locking controller from as preferential, then first itself carrying out to the first object locking operation, then execute
The step sending the locking request for the first object to opposite terminal controller.
If it is determined that itself non-preferential locks controller, then can first carry out and send for the first object to opposite terminal controller
Locking request step, determine opposite terminal controller lock success after, then itself the first object is being carried out lock operation.
As such, it is possible to be prevented effectively from the generation of deadlock.
In one embodiment of the invention, after response read write command, the method can also comprise the following steps:
First step: when determination completes to the first object read-write, send for the first object to opposite terminal controller
Unlocking request;
Second step: if receiving the unblock successful respond message of opposite terminal controller return, the first object is entered
Row unblock operation.
For ease of description, above-mentioned two step is combined and illustrates.
First side controller response read write command after, determine to first object read-write complete when, can be to opposite end
Controller sends the unlocking request for the first object.
After opposite terminal controller receives the unlocking request for the first object, the first object execution unblock can be operated,
And return unblock successful respond message to the first side controller.
If the first side controller receives the unblock successful respond message of opposite terminal controller return, can be right to first
As being unlocked operation.
So, double ended controller can continue to the read write command for other objects.
In one embodiment of the invention, the method can also comprise the following steps:
Step one: when receiving the locking request for the second object of opposite terminal controller transmission, at itself to second
Object carries out locking operation;
Step 2: return to opposite terminal controller by carrying the second response message locking successful information.
For ease of description, above-mentioned two step is combined and illustrates.
First side controller is any one controller in two side controllers, and the first side controller can also receive opposite end
The locking request that controller sends.
First side controller when receiving the locking request for the second object of opposite terminal controller transmission, can from
Body carries out locking operation to the second object, and returns to opposite terminal controller by carrying the second response message locking successful information.
Further, the first side controller is receiving the locking request for the second object of opposite terminal controller transmission
When, after itself two objects being carried out locking operation, timing can be started, if not receiving opposite end control setting in duration
The unlocking request for the second object that device sends, then can be unlocked operation at itself to the second object.
Timing and time-out can utilize the work queue mechanism of linux to realize.Concrete methods of realizing may be referred to following retouching
State:
The variable of (a) delayed_work type defined in the structure of needs locking, and in suitable place
By init_delayed_work (), it is initialized;
B () sc0 obtains the mutual exclusion lock of sc1 after, immediately pass through schedule_delayed_work () function and start to count
When;
Once c () sc0 normally releases the mutual exclusion lock on sc1, then call cancel_delayed_work_sync at once
() function, stops and cancels timing;
If d the machine of delaying in () sc0, do not discharge the mutual exclusion lock on sc1 more than 10s, then can automatically call init_
The related fn function defining during delayed_work (), the mutual exclusion lock on release sc1.
The Deadlock that the controller of holder lock so can be avoided to delay machine and cause.
Shown in Figure 2, taking sc0 and sc1 as a example a kind of specific embodiment of the present invention is described in detail:
After sc1 receives read-write requests, first determine the working condition of opposite terminal controller sc0, if sc0 is in normal work
State, then sc1 can be to sc0 transmission locking request, and sc0 carries out locking operation, and starts timing thread, and sc1 is locally being carried out
Lock operation, respond read-write requests, carry out corresponding read-write operation, read-write completes, send unlocking request to sc0, sc0 unlocks into
Work(, cancels timing, and sc1 is locally being unlocked operation.
Corresponding to above method embodiment, it is same that the embodiment of the present invention additionally provides a kind of double controller storage system data
Step device, a kind of double controller storage system data synchronization unit described below and a kind of above-described dual controller storage
System data synchronizing method can be mutually to should refer to.
Shown in Figure 3, this device includes with lower module:
Read write command receiver module 310, for receiving the read write command for the first object;
Locking request sending module 320, for sending the locking request for the first object to opposite terminal controller;
Lock successfully determining module 330, for the first response message returning according to opposite terminal controller, determine opposite end control
Whether device locks successfully;
Read write command respond module 340, for locking successfully in determination opposite terminal controller, and enters to the first object at itself
When locking of having gone operates, respond read write command.
The device that the application embodiment of the present invention is provided, the first side controller receives the read write command for the first object
Afterwards, can send, to opposite terminal controller, the locking request being directed to the first object, and determine whether opposite terminal controller locks successfully, such as
Fruit determines that opposite terminal controller locks successfully, and itself the first object is being carried out locking operation, then can respond this read-write and refer to
Order, executes corresponding read-write operation to the first object, and when the first side controller executes read-write operation to the first object, opposite end is controlled
Device processed is in the lock state, and will not execute other read-write operations again to the first object, can keep the number in two side controllers
According to concordance.
In a kind of specific embodiment of the present invention, also include:
Working condition determining module, for opposite terminal controller send for the first object locking request before, really
Determine the working condition of opposite terminal controller;If opposite terminal controller is in normal operating conditions, trigger locking request sending module
320.
In a kind of specific embodiment of the present invention, working condition determining module, it is additionally operable to:
When opposite terminal controller is not in normal operating conditions, directly itself the first object is carried out lock operation, and
Response read write command.
In a kind of specific embodiment of the present invention, also include:
Preferential lock determining module, for before send the locking request for the first object to opposite terminal controller, root
According to default locking priority, determine whether itself is preferentially to lock controller;If it is, first at itself to the first object
Carry out locking operation, then trigger locking request sending module 320;If it is not, then first triggering locking request sending module 320,
After determining that opposite terminal controller locks success, then itself the first object is being carried out locking operation.
In a kind of specific embodiment of the present invention, also include:
Unlocking request sending module, for when determination completes to the first object read-write, sending to opposite terminal controller and being directed to
The unlocking request of the first object;
Unblock operation executing module, for when receiving the unblock successful respond message of opposite terminal controller return, to the
One object is unlocked operation.
In a kind of specific embodiment of the present invention, also include:
Lock operation executing module, in the locking request for the second object receiving opposite terminal controller transmission
When, itself the second object is being carried out locking operation;
Response message returns module, for returning to opposite end control by carrying the second response message locking successful information
Device.
In a kind of specific embodiment of the present invention, also include:
Timing module, in the locking request receiving that described opposite terminal controller sends for the second object,
After itself described second object being carried out locking operation, if not receiving, setting, the pin that opposite terminal controller sends in duration
Unlocking request to the second object, then be unlocked operation at itself to the second object.
In this specification, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment same or similar partly mutually referring to.Fill for disclosed in embodiment
For putting, because it corresponds to the method disclosed in Example, so description is fairly simple, referring to method part in place of correlation
Illustrate.
Professional further appreciates that, in conjunction with the unit of each example of the embodiments described herein description
And algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes composition and the step of each example in the above description according to function.These
Function to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.Specialty
Technical staff can use different methods to each specific application realize described function, but this realization should
Think beyond the scope of this invention.
The step of the method in conjunction with the embodiments described herein description or algorithm can directly be held with hardware, processor
The software module of row, or the combination of the two is implementing.Software module can be placed in random access memory (ram), internal memory, read-only deposit
Reservoir (rom), electrically programmable rom, electrically erasable rom, depositor, hard disk, moveable magnetic disc, cd-rom or technology
In known any other form of storage medium in field.
Specific case used herein is set forth to the principle of the present invention and embodiment, the saying of above example
Bright it is only intended to help and understands technical scheme and its core concept.It should be pointed out that it is common for the art
For technical staff, under the premise without departing from the principles of the invention, the present invention can also be carried out with some improvement and modify, these
Improve and modify and also fall in the protection domain of the claims in the present invention.
Claims (14)
1. a kind of double controller storage system method of data synchronization is it is characterised in that include:
Receive the read write command for the first object;
Send the locking request for described first object to opposite terminal controller;
The first response message being returned according to described opposite terminal controller, determines whether described opposite terminal controller locks successfully;
If it is, and itself described first object is being carried out lock operation, then respond described read write command.
2. double controller storage system method of data synchronization according to claim 1 is it is characterised in that described to opposite end
Before controller sends the locking request for described first object, also include:
Determine the working condition of described opposite terminal controller;
If described opposite terminal controller is in normal operating conditions, executes and described send for described to described opposite terminal controller
The step of the locking request of the first object.
3. double controller storage system method of data synchronization according to claim 2 is it is characterised in that also include:
If described opposite terminal controller is not in normal operating conditions, directly itself described first object is being carried out locking behaviour
Make, and respond described read write command.
4. double controller storage system method of data synchronization according to claim 1 is it is characterised in that described to opposite end
Before controller sends the locking request for described first object, also include:
According to default locking priority, determine whether itself is preferentially to lock controller;
If it is, first itself carrying out to described first object locking operation, then execute and described send pin to opposite terminal controller
Step to the locking request of described first object;
If it is not, then first carrying out the described step sending the locking request for described first object to opposite terminal controller, true
After fixed described opposite terminal controller locks success, then itself described first object is being carried out locking operation.
5. the double controller storage system method of data synchronization according to any one of Claims 1-4 it is characterised in that
After the described read write command of described response, also include:
When determination completes to described first object read-write, send the unblock for described first object to described opposite terminal controller
Request;
If receiving the unblock successful respond message that described opposite terminal controller returns, behaviour is unlocked to described first object
Make.
6. double controller storage system method of data synchronization according to claim 1 is it is characterised in that also include:
In the locking request receiving that described opposite terminal controller sends for the second object, at itself to described second object
Carry out locking operation;
Return to described opposite terminal controller by carrying the second response message locking successful information.
7. double controller storage system method of data synchronization according to claim 6 is it is characterised in that receiving described
During the locking request for the second object sending to described opposite terminal controller, itself described second object is being carried out locking behaviour
After work, also include:
If not receiving, setting in duration, the unlocking request for described second object that described opposite terminal controller sends,
At itself, operation is unlocked to described second object.
8. a kind of double controller storage system data synchronization unit is it is characterised in that include:
Read write command receiver module, for receiving the read write command for the first object;
Locking request sending module, for sending the locking request for described first object to opposite terminal controller;
Lock successfully determining module, for the first response message returning according to described opposite terminal controller, determine the control of described opposite end
Whether device processed locks successfully;
Read write command respond module, for locking successfully in the described opposite terminal controller of determination, and at itself to described first object
When having carried out locking operation, respond described read write command.
9. double controller storage system data synchronization unit according to claim 8 is it is characterised in that also include:
Working condition determining module, for described to opposite terminal controller send for described first object locking request it
Before, determine the working condition of described opposite terminal controller;If described opposite terminal controller is in normal operating conditions, triggering is described
Locking request sending module.
10. double controller storage system data synchronization unit according to claim 9 is it is characterised in that described work shape
State determining module, is additionally operable to:
When described opposite terminal controller is not in normal operating conditions, directly itself described first object is being carried out locking behaviour
Make, and respond described read write command.
11. double controller storage system data synchronization units according to claim 8 are it is characterised in that also include:
Preferential lock determining module, for described to opposite terminal controller send for described first object locking request it
Before, according to default locking priority, determine whether itself is preferentially to lock controller;If it is, first at itself to institute
State the first object to carry out locking operation, then trigger described locking request sending module;If it is not, then first triggering described locking request
Sending module, after determining that described opposite terminal controller locks success, then itself is carrying out to described first object locking operation.
12. double controller storage system data synchronization units described according to Claim 8 to 11 any one it is characterised in that
Also include:
Unlocking request sending module, for when determination completes to described first object read-write, sending to described opposite terminal controller
Unlocking request for described first object;
Unblock operation executing module, for when receiving the unblock successful respond message that described opposite terminal controller returns, to institute
State the first object and be unlocked operation.
13. double controller storage system data synchronization units according to claim 8 are it is characterised in that also include:
Lock operation executing module, for receiving the locking request for the second object that described opposite terminal controller sends
When, itself described second object is being carried out locking operation;
Response message returns module, for returning to the control of described opposite end by carrying the second response message locking successful information
Device.
14. double controller storage system data synchronization units according to claim 13 are it is characterised in that also include:
Timing module, in the locking request receiving that described opposite terminal controller sends for the second object, at itself
After described second object being carried out lock operation, if not receiving, setting, the pin that described opposite terminal controller sends in duration
Unlocking request to described second object, then be unlocked operation at itself to described second object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610956754.3A CN106372030A (en) | 2016-10-27 | 2016-10-27 | Method and device for data synchronization of dual controller storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610956754.3A CN106372030A (en) | 2016-10-27 | 2016-10-27 | Method and device for data synchronization of dual controller storage system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106372030A true CN106372030A (en) | 2017-02-01 |
Family
ID=57892661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610956754.3A Pending CN106372030A (en) | 2016-10-27 | 2016-10-27 | Method and device for data synchronization of dual controller storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106372030A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547329A (en) * | 2017-09-07 | 2018-01-05 | 郑州云海信息技术有限公司 | A kind of dual control data transmission method and system based on NTB |
CN111930038A (en) * | 2020-07-31 | 2020-11-13 | 福建省三星电气股份有限公司 | Intelligent switch cabinet online measurement and control device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706802A (en) * | 2009-11-24 | 2010-05-12 | 成都市华为赛门铁克科技有限公司 | Method, device and sever for writing, modifying and restoring data |
CN103248667A (en) * | 2012-02-14 | 2013-08-14 | 阿里巴巴集团控股有限公司 | Resource access method and system for distributed system |
CN104268024A (en) * | 2014-09-24 | 2015-01-07 | 浪潮(北京)电子信息产业有限公司 | Method and device for achieving process mutual exclusion |
CN104461705A (en) * | 2014-11-17 | 2015-03-25 | 华为技术有限公司 | Service access method, storage controllers and cluster storage system |
CN104486328A (en) * | 2014-12-10 | 2015-04-01 | 小米科技有限责任公司 | Access control method and device |
CN105243101A (en) * | 2015-09-17 | 2016-01-13 | 浪潮(北京)电子信息产业有限公司 | Method and system for multiple controllers to perform concurrent access to same data compressed file |
CN106033437A (en) * | 2015-03-13 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Method and system for processing distributed transaction |
-
2016
- 2016-10-27 CN CN201610956754.3A patent/CN106372030A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706802A (en) * | 2009-11-24 | 2010-05-12 | 成都市华为赛门铁克科技有限公司 | Method, device and sever for writing, modifying and restoring data |
CN103248667A (en) * | 2012-02-14 | 2013-08-14 | 阿里巴巴集团控股有限公司 | Resource access method and system for distributed system |
CN104268024A (en) * | 2014-09-24 | 2015-01-07 | 浪潮(北京)电子信息产业有限公司 | Method and device for achieving process mutual exclusion |
CN104461705A (en) * | 2014-11-17 | 2015-03-25 | 华为技术有限公司 | Service access method, storage controllers and cluster storage system |
CN104486328A (en) * | 2014-12-10 | 2015-04-01 | 小米科技有限责任公司 | Access control method and device |
CN106033437A (en) * | 2015-03-13 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Method and system for processing distributed transaction |
CN105243101A (en) * | 2015-09-17 | 2016-01-13 | 浪潮(北京)电子信息产业有限公司 | Method and system for multiple controllers to perform concurrent access to same data compressed file |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547329A (en) * | 2017-09-07 | 2018-01-05 | 郑州云海信息技术有限公司 | A kind of dual control data transmission method and system based on NTB |
CN111930038A (en) * | 2020-07-31 | 2020-11-13 | 福建省三星电气股份有限公司 | Intelligent switch cabinet online measurement and control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017063521A1 (en) | Coroutine monitoring method and apparatus | |
CN110647511A (en) | Data synchronization method, computing device and computer storage medium | |
CN106844014A (en) | The implementation method and device of the anti-suspension of distributed transaction | |
CN105653406A (en) | Method for managing distributed storage system and distributed storage system | |
CN110362515A (en) | Driver to driver storage system, memory driver and storing data method | |
CN106034120B (en) | method and system for multi-process access to trusted application | |
CN106372030A (en) | Method and device for data synchronization of dual controller storage system | |
CN106331081B (en) | Information synchronization method and device | |
US6295602B1 (en) | Event-driven serialization of access to shared resources | |
CN109670807A (en) | It withholds control method, device, equipment and readable storage medium storing program for executing | |
CN115543643A (en) | Distributed lock reentry execution method, device, equipment and readable storage medium | |
CN108170511A (en) | A kind of docker mirror images acquisition methods, device, equipment and storage medium | |
CN107239238A (en) | A kind of I/O operation method and device of the storage based on distributed lock | |
CN110990116B (en) | Method, device and system for transmitting data between intelligent network card and virtual machine | |
EP3499373B1 (en) | Method and apparatus for processing process | |
US20090313622A1 (en) | Synchronizing queued data access between multiple gpu rendering contexts | |
EP4390852A1 (en) | Scene rendering method and apparatus, device and system | |
CN105740065A (en) | Method and device for controlling execution of asynchronous tasks | |
US20040040024A1 (en) | System and method for a process shutdown interface | |
US9852154B2 (en) | Methods for transferring reserves when moving virtual machines across systems | |
CN105550362B (en) | A kind of the index data restorative procedure and storage system of storage system | |
CN111261206B (en) | Read-write method and device, electronic equipment and readable storage medium | |
US8918798B2 (en) | Shared object lock under state machine control | |
CN110928827B (en) | Optimized method and device for accessing PCIe device | |
CN113342511A (en) | Distributed task management system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170201 |