CN109150986A - Store access method, device and the storage medium of data under dual-active mode - Google Patents

Store access method, device and the storage medium of data under dual-active mode Download PDF

Info

Publication number
CN109150986A
CN109150986A CN201810844993.9A CN201810844993A CN109150986A CN 109150986 A CN109150986 A CN 109150986A CN 201810844993 A CN201810844993 A CN 201810844993A CN 109150986 A CN109150986 A CN 109150986A
Authority
CN
China
Prior art keywords
website
dual
access
attribute
storage
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
Application number
CN201810844993.9A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810844993.9A priority Critical patent/CN109150986A/en
Publication of CN109150986A publication Critical patent/CN109150986A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of access methods of data under storage dual-active mode, device and storage medium, wherein, this method is to the host in the same website, dual-active node and storage pool assign unified website attribute, when dual-active node receives when including the access request of website attribute of host transmission, if the website attribute is identical as the website attribute of itself, then access includes the storage pool of the website attribute, if the website attribute is not identical as the website attribute of itself, the access request is then sent to another dual-active node, so that the storage pool where another dual-active node visit in website.It can be seen that this method can guarantee that host and storage pool are in same website in access path, host and storage pool problem not too long in same website bring access path are effectively prevented, finally improves the efficiency of data transmission.In addition, the access mechanism and storage medium disclosed in this invention for storing data under dual-active mode, equally has above-mentioned beneficial effect.

Description

Store access method, device and the storage medium of data under dual-active mode
Technical field
The present invention relates to storage dual-active technical fields, more particularly to a kind of access side of data under storage dual-active mode Method, device and storage medium.
Background technique
With the development of information technology, the fast development including new technology cloud computing, big data, more and more enterprises handle Using, data, system focused on, also risk while data are largely concentrated, catastrophic emergency event occurs When how to ensure enterprise core business linear, i.e., core business 7*24 hours business run without interruption, and become enterprise pass The matter of utmost importance of note.
In the prior art, by storage dual-active mode guarantee enterprise core business linear.Fig. 1 provides for the prior art A kind of storage dual-active mode under website between working principle diagram.As shown in Figure 1, generally including two under storage dual-active mode A website, is the first website and the second website respectively, and it is all comprising master that the structure of the first website and the second website, which is identical, Machine, dual-active node and storage pool include multiple volumes (storage volume) in storage pool, such as include 3 in the first storage pool and deposit Storage volume is volume 1, volume 2 and volume 3 respectively, includes 3 storage volume in the second storage pool, is volume 1 ', volume 2 ' and volume 3 ' respectively.The The scheduling that a pair of movable joint point and the second dual-active node are responsible for respective website is synchronous with data.Due to the first dual-active node and second pair The data that movable joint point can be responsible for respective website are synchronous, thereby it is ensured that data in the first storage pool and the second storage pool It is synchronous.Such as first dual-active node when receiving the data access request of the first host A, it can be by accessing this website (first Website) the first storage pool respond the access request, access request can also be transmitted to the second dual-active node of the second website, The access request is responded by second the second storage pool of dual-active node visit.It can be seen that then may be used also even if some website is abnormal To realize data backup by another website, business is kept not interrupt with this.
But in the prior art, by which kind of access path access storage pool be it is random, therefore, which may cause Access path is longer, has seriously affected the efficiency of data transmission.
Summary of the invention
The object of the present invention is to provide access method, device and the storage mediums of data under a kind of storage dual-active mode, use In shortening the access path between host and storage pool, thus the efficiency of improve data transfer.
In order to solve the above technical problems, the present invention provides a kind of access method for storing data under dual-active mode, comprising:
It is pre-recorded itself, host in the station and the unified website attribute of storage pool three in the station;
When receiving access request, judge the targeted sites attribute for including in the access request whether the station with itself Point attribute is identical;
If it is, according to the access request access include the targeted sites attribute target storage pool;
If not, by the access request be sent to the dual-active node in another website with the storage pool to another website into Row access.
Preferably, in the dual-active node being sent to the access request in another website with the storage pool to another website Before accessing further include:
Judge whether the access request is to be sent by the dual-active node in another website;
If it is not, then the access request is sent to the dual-active node in another website to another website into described Storage pool the step of accessing;
If it is, accessing the storage pool in this website according to the access request.
Preferably, it is described according to the access request access include the targeted sites attribute target storage pool it Before further include:
Judge whether the target storage pool is normal;
If it is, being stored described in entering according to the target that access request access includes the targeted sites attribute Otherwise the step of pond, enters the dual-active node that the access request is sent in another website to deposit to another website The step of reservoir accesses.
Preferably, further includes:
Consistency group is added in this website storage volume corresponding with the same application in another website.
Preferably, further includes: monitor the operating status of the consistency group.
Preferably, further includes: when the operating status of the consistency group is failure state, alarm prompt.
Preferably, the targeted sites attribute is located at the head of the access request.
In order to solve the above technical problems, the present invention also provides a kind of access mechanisms of data under storage dual-active mode, comprising:
Logging modle, for it is pre-recorded itself, host in the station and storage pool three system in the station One website attribute;
Judgment module, the targeted sites attribute for when receiving access request, judging to include in the access request It is whether identical as the website attribute of itself, if it is, otherwise triggering access modules trigger sending module;
The access modules, for being stored according to the target that access request access includes the targeted sites attribute Pond;
Sending module, the dual-active node for the access request to be sent in another website is to deposit another website Reservoir accesses.
In order to solve the above technical problems, the present invention also provides a kind of access mechanisms of data under storage dual-active mode, including Memory, for storing computer program;
Processor realizes the visit of data under storage dual-active mode as described above when for executing the computer program The step of asking method.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable Computer program is stored on storage medium, the computer program realizes that storage as described above is double when being executed by processor Under mode living the step of the access method of data.
The access method of data under storage dual-active mode provided by the present invention, to host, the dual-active in the same website Node and storage pool assign unified website attribute, when dual-active node receive host transmission include website attribute access When request, if the website attribute is identical as the website attribute of itself, access includes the storage pool of the website attribute, if the station Point attribute is not identical as the website attribute of itself, then the access request is sent to another dual-active node, so that another dual-active section Storage pool where point access in website.It can be seen that this method can guarantee that host and storage pool are same in access path In website, host and storage pool problem not too long in same website bring access path are effectively prevented, is finally improved The efficiency of data transmission.
In addition, the access mechanism and storage medium provided by the present invention for storing data under dual-active mode, equally has upper State beneficial effect.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the working principle diagram between the website under a kind of storage dual-active mode that the prior art provides;
Fig. 2 is the flow chart of the access method of data under a kind of storage dual-active mode provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the access method of data under another storage dual-active mode provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the access method of data under another storage dual-active mode provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the access method of data under another storage dual-active mode provided in an embodiment of the present invention;
Fig. 6 is the structure chart of the access mechanism of data under a kind of storage dual-active mode provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other Embodiment belongs to the scope of the present invention.
Core of the invention is to provide a kind of access method, device and storage medium for storing data under dual-active mode, uses In shortening the access path between host and storage pool, thus the efficiency of improve data transfer.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Fig. 2 is the flow chart of the access method of data under a kind of storage dual-active mode provided in an embodiment of the present invention.It needs Illustrate, this method is described with the angle of the dual-active node in each website, and dual-active node is similar to controller, is had The function etc. of scheduling, can using dual-active node in the prior art and its function, as long as this method is applied thereon i.e. It can.As shown in Fig. 2, this method comprises:
S10: it is pre-recorded itself, host in the station and the unified website category of storage pool three in the station Property.
It should be noted that needing that unification is arranged for host, dual-active node and the storage pool in each website in advance Website attribute is more specifically host, dual-active node and the storage pool attribute having the same in the same website, different Website in equipment have different attributes.As shown in Figure 1, the first host, the first dual-active node in the first website and One storage pool has unified website attribute, for example, the first website attribute;The second host, the second dual-active section in second website Point and the second storage pool have unified website attribute, for example, the second website attribute, and the first website attribute and the second website category Property is different.In specific implementation, website attribute can realize that the present embodiment does not limit by forms such as number, character strings It is fixed.
S11: when receiving access request, judge the targeted sites attribute for including in access request whether the station with itself Point attribute is identical, if it is, otherwise entering S13 into S12.
In specific implementation, access request is sent by host, is that access request is not only wrapped unlike the prior art It also include the website attribute of host containing actual access request, that is to say, that host added certainly when sending access request The website attribute of body is distinguished for convenience, the describing mode of targeted sites attribute is used in this step, in fact targeted sites attribute Exactly send the website attribute of the host of access request.Due to host can dual-active node into this node send access and ask It asks, access request can also be sent to another dual-active node, it therefore, should for the dual-active node for receiving access request The targeted sites attribute that access request includes may be identical as the website attribute of itself, it is also possible to not identical.In step S10 In, due to dual-active node had recorded itself, the website attribute of the host in the website of place and memory node, this step In rapid when receiving access request, can be inferred that by targeted sites attribute send the access request host whether with from Body is to belong to the same website.
It is understood that may determine that whether the host for sending access request is same with itself place by website attribute One website, if in the same website, access access path corresponding to the storage pool in this website necessarily compared with Short.
In addition, in order to quickly read targeted sites attribute, it is preferable that targeted sites attribute can be set to access request Head.
S12: including the target storage pool of targeted sites attribute according to access request access.
Since the storage pool of each website has this website attribute, targeted sites attribute and itself station is being determined Point attribute it is identical when, so that it may directly access include targeted sites attribute storage pool, such mode so that storage pool, Host and dual-active node are in the same website, and corresponding access path is also shorter.
It should be noted that target storage pool is intended merely to distinguish with storage pool, because only two under storage dual-active mode A website, each website have a storage pool, and therefore, the storage pool for including targeted sites attribute is exactly target storage pool, separately One is then common storage pool.
S13: the dual-active node that access request is sent in another website is accessed with the storage pool to another website.
When website attribute difference of the targeted sites attribute with itself, illustrate master of the current access request from another website Machine, although the storage pool in website where accessing itself can also respond the access request, greatly, such access road Diameter can lengthen, and the efficiency for causing data to be transmitted reduces.It therefore, is by current access request in response to this in the present embodiment The dual-active node being sent in another website is accessed by storage pool of the dual-active node to website where it.It needs Access that is bright, being carried out by which dual-active node, then corresponding access data are also to be returned by which node, such as access Request specifically includes write operation requests or read operation request, and when being read operation, then the data read are still by directly accessing That dual-active node feeding back of storage pool is to host.
The access method of data under storage dual-active mode provided in this embodiment, to host, the dual-active in the same website Node and storage pool assign unified website attribute, when dual-active node receive host transmission include website attribute access When request, if the website attribute is identical as the website attribute of itself, access includes the storage pool of the website attribute, if the station Point attribute is not identical as the website attribute of itself, then the access request is sent to another dual-active node, so that another dual-active section Storage pool where point access in website.It can be seen that this method can guarantee that host and storage pool are same in access path In website, host and storage pool problem not too long in same website bring access path are effectively prevented, is finally improved The efficiency of data transmission.
Fig. 3 is the flow chart of the access method of data under another storage dual-active mode provided in an embodiment of the present invention.? On the basis of above-described embodiment, before S13 further include:
S20: judge whether access request is to be sent by the dual-active node in another website, if it is not, then into S13, such as Fruit is then to enter S21.
S21: the storage pool in this website is accessed according to access request.
In specific implementation, dual-active node can receive the access request of the host of this website, also can receive another station The access request of the host of point, naturally it is also possible to the access request that the dual-active node of another website is sent is received, if access is asked The dual-active node from another website is sought, then is likely to be that another website is abnormal (because if another website is not sent out It is raw abnormal, then can directly be searched according to website attribution rule include targeted sites attribute storage pool), leading to not response should Access request.For above situation, increase step S20 in the present embodiment, it is to be understood that when access request comes from another station The dual-active node of point then illustrates that another website is abnormal, needs to access the storage pool in this website, if not from another website Dual-active node, then the host necessarily from another website, therefore, it is necessary to another by the dual-active node visit in another website The storage pool of website responds the access request.
By increase step S20 can determine in time whether another website is abnormal when, and can determine it is another When website is abnormal, by access the storage pool in this website respond access request, thus guarantee data access it is normal into Row.
Fig. 4 is the flow chart of the access method of data under another storage dual-active mode provided in an embodiment of the present invention.Such as Shown in Fig. 4, on the basis of the above embodiments, before S12 further include:
S30: judge whether target storage pool is normal;
If it is, otherwise entering S13 into S12.
In the present embodiment, although having determined using target storage pool as final data source so that access path compared with It is short, but if target storage pool exception, and it is unable to complete access task.Therefore, in the present embodiment, pass through judgement Whether target storage pool normally determines whether real access target storage pool, if target storage pool is abnormal, by another The storage pool of website is realized, although access path is longer in this way, can complete access task.
Fig. 5 is the flow chart of the access method of data under another storage dual-active mode provided in an embodiment of the present invention.Such as Shown in Fig. 5, based on any of the above embodiments, the present invention also provides another embodiment, in the present embodiment further include:
S40: consistency group is added in this website storage volume corresponding with the same application in another website.
As shown in Figure 1, in specific implementation, when the first website storage pool failure can be switched to the storage of the second website of access Pond, can be from the second website synchrodata, if the second website also breaks down during synchronization, at this time after the first website restores later First website not yet synchronously completes, and the data of the first website and the second website are not to synchronize in fact at this time.In response to this, It can be solved using the advantages of consistency group.
It should be noted that the application in the present embodiment refers to that application program, each application program can correspond to storage pool In some storage volume or certain several storage volume, in the case where storing dual-active mode, the identical application of each website can also be corresponded to and be deposited Identical storage volume in reservoir, for example, as shown in Figure 1, be corresponding with storage volume 1 and storage volume 2 using A in the first website, In second website, it is corresponding with storage volume 1 ' and storage volume 2 ' using A, therefore for application A, just by storage volume 1, storage volume 2, consistency group is added in storage volume 1 ' and storage volume 2 '.
It is understood that since consistency group is added in above-mentioned storage volume, these storage volume ensure that this is answered All data time points being stored in dual-active volume are consistent, after restoring in face of site disasters not with another station The point scene that another website breaks down again when synchronously completing, also can guarantee the normal operation of business.
In addition, it is necessary to which explanation, has no strict sequence, Fig. 5 is only in itself between step S40 and S10-S13 It is a kind of concrete application scene.
On the basis of the above embodiments, further includes:
Monitor the operating status of consistency group.
In specific implementation, the operating status for monitoring consistency group can take various forms, such as pass through show Consistency_group general order inquiry, for details, reference can be made to the prior arts, and this embodiment is not limited.Pass through prison The operating status for surveying consistency group may insure the normal operation of consistency group, guarantee each number using in corresponding storage volume According to being consistency.
Preferably embodiment, further includes:
When the operating status of consistency group is failure state, alarm prompt.
It should be noted that there are many kinds of the modes of alarm prompt, can outputting alarm prompt information in the display interface, It can also realize that this embodiment is not limited by short message, the modes such as mail.
In order to allow the more clear technical solution provided by the present invention of those skilled in the art, with Fig. 1 institute in this specification The concrete application scene shown provides a kind of corresponding application scenarios embodiment, in fact, in application scenarios embodiment, corresponding skill Art scheme be above it is identical, be not described to if any content, refer to description above.
As shown in Figure 1, using the first website as this website in the above method, then the second website is exactly another website, Likewise, the first dual-active node is exactly this node, the second dual-active node is exactly the dual-active node in another website.
First dual-active nodes records have itself, and (first belongs to the unified website attribute of the first host and the first storage pool Property), if access request is sent to the first dual-active node by the first host, the first dual-active node when receiving access request, Judge whether the targeted sites attribute for including in the access request is identical as the website attribute of itself, it is obvious that the access request In include be the first host website attribute, targeted sites attribute at this time is exactly the first attribute, then judging result is just yes, Therefore the first dual-active node just directly accesses the first storage pool in this website (because the website attribute of the first storage pool is also the One attribute).In this scene, access path is exactly first host the-the first dual-active node the-the first storage pool the-the first dual-active section The-the first host of point, the path are a kind of shortest forms of access path.
On the contrary, if so, the first dual-active node receive the second host transmission access request, then wrapped in the access request Website attribute containing the second website, i.e. the second attribute, judging result is just no at this time, then the first dual-active node is just by the visit Ask that request is sent to the second dual-active node, so that the second dual-active node accesses to the second storage pool.In this scene, visit Diameter of asking the way is exactly second host the-the first dual-active node the-the second dual-active node the-the second host of the-the second storage pool, which is access Although path be not it is most short, it is shorter also relative to for.
In addition, when the first dual-active node judges that the website attribute for including in access request is the second attribute, i.e., second When the access request that host generates, further judge that the access request is by the transmission of the second host or the second dual-active node hair It send, if it is the former, then carries out, sent if it is the second dual-active node in a manner mentioned above, it may be possible to the Two dual-active nodes determine the second storage pool failure, so in this case, the first dual-active node would not be again to second pair Movable joint point sends the access request, but directly accesses the first storage pool.
In addition, being accessed when the website attribute that the first dual-active node includes in determining access request is the first attribute Before first storage pool, it is also necessary to determine whether the first storage pool is normal, if it is, directly accessing, if not, so Need for the access request to be sent to the second dual-active node, so that second the second storage pool of dual-active node visit is realized.
In the above-described embodiments, the access method of data under storage dual-active mode is described in detail, the present invention The corresponding embodiment of access mechanism of data under storage dual-active mode is also provided.It should be noted that the present invention is from two angles The embodiment of device part is described, one is the angle based on functional module, another kind is hardware based angle.
Fig. 6 is the structure chart of the access mechanism of data under a kind of storage dual-active mode provided in an embodiment of the present invention.Such as Fig. 6 Shown, which includes:
Logging modle 10, for it is pre-recorded itself, host in the station and storage pool three in the station Unified website attribute.
Judgment module 11, the targeted sites attribute for when receiving access request, judging to include in access request are It is no identical as the website attribute of itself, if it is, otherwise triggering access modules trigger sending module.
Access modules 12, for including the target storage pool of targeted sites attribute according to access request access.
Sending module 13, the dual-active node for being sent to access request in another website is with the storage to another website Pond accesses.
Wherein, the embodiment of the device part and the embodiment of the above method are corresponding, therefore the embodiment of device part The description of the embodiment of method part is referred to, wouldn't be repeated here.
The access mechanism of data under storage dual-active mode provided in this embodiment, to host, the dual-active in the same website Node and storage pool assign unified website attribute, when dual-active node receive host transmission include website attribute access When request, if the website attribute is identical as the website attribute of itself, access includes the storage pool of the website attribute, if the station Point attribute is not identical as the website attribute of itself, then the access request is sent to another dual-active node, so that another dual-active section Storage pool where point access in website.It can be seen that the present apparatus can guarantee that host and storage pool are same in access path In website, host and storage pool problem not too long in same website bring access path are effectively prevented, is finally improved The efficiency of data transmission.
In addition, the present invention also provides a kind of access mechanism of data under storage dual-active mode, including memory, for storing Computer program;
Processor realizes the access side of data under storage dual-active mode as described above when for executing computer program The step of method.
Since the embodiment of device part is corresponded to each other with the embodiment of method part, the embodiment of device part is asked Referring to the description of the embodiment of method part, wouldn't repeat here.In some embodiments of the invention, processor and memory It can be connected by bus or other means.
The access mechanism of data under storage dual-active mode provided in this embodiment, including memory and processor, processor When the computer program stored in executing memory, following method can be realized: to host, the dual-active section in the same website Point and storage pool assign unified website attribute, and receive host transmission when dual-active node includes that the access of website attribute is asked When asking, if the website attribute is identical as the website attribute of itself, access includes the storage pool of the website attribute, if the website Attribute is not identical as the website attribute of itself, then the access request is sent to another dual-active node, so that another dual-active node Storage pool where access in website.It can be seen that this method can guarantee that host and storage pool are at same station in access path In point, host and storage pool problem not too long in same website bring access path are effectively prevented, number is finally improved According to the efficiency of transmission.
Finally, also a kind of computer readable storage medium of the present invention, computer is stored on computer readable storage medium Program realizes the visit of data under the storage dual-active mode provided such as above-mentioned any embodiment when computer program is executed by processor The step of asking method.
It is understood that if the method in above-described embodiment is realized in the form of SFU software functional unit and as independence Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention Technical solution substantially all or part of the part that contributes to existing technology or the technical solution can be in other words It is expressed in the form of software products, which is stored in a storage medium, and it is each to execute the present invention The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk Etc. the various media that can store program code.
Since the present embodiment is corresponded to each other with the embodiment of method part, the embodiment of this part refers to method portion The description for the embodiment divided, wouldn't repeat here.
Computer-readable recording medium storage provided in this embodiment has the access method of data under storage dual-active mode, should Method can assign unified website attribute to host, dual-active node and the storage pool in the same website, when dual-active node connects When including the access request of website attribute of host transmission is received, if the website attribute is identical as the website attribute of itself, Access includes the storage pool of the website attribute, if the website attribute is not identical as the website attribute of itself, which is asked It asks and is sent to another dual-active node, so that the storage pool where another dual-active node visit in website.It can be seen that this method can To guarantee that host and storage pool are in same website in access path, host and storage pool are effectively prevented not in same website band The too long problem of the access path come, finally improves the efficiency of data transmission.
Access method, device and the storage medium of data under storage dual-active mode provided by the present invention are carried out above It is discussed in detail.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, Can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the protection scope of the claims in the present invention It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. the access method of data under a kind of storage dual-active mode characterized by comprising
It is pre-recorded itself, host in the station and the unified website attribute of storage pool three in the station;
When receiving access request, judge the targeted sites attribute for including in the access request whether the website category with itself Property is identical;
If it is, according to the access request access include the targeted sites attribute target storage pool;
If not, the dual-active node that the access request is sent in another website is visited with the storage pool to another website It asks.
2. the access method of data under storage dual-active mode according to claim 1, which is characterized in that by the access Before requesting the dual-active node being sent in another website to access with the storage pool to another website further include:
Judge whether the access request is to be sent by the dual-active node in another website;
If it is not, then into the dual-active node that the access request is sent in another website to be deposited to another website The step of reservoir accesses;
If it is, accessing the storage pool in this website according to the access request.
3. the access method of data under storage dual-active mode according to claim 1, which is characterized in that described according to institute State access request access include the targeted sites attribute target storage pool before further include:
Judge whether the target storage pool is normal;
If it is, enter it is described according to access request access include the targeted sites attribute target storage pool Otherwise the access request is sent to the dual-active node in another website into described with the storage pool to another website by step The step of accessing.
4. the access method of data under storage dual-active mode according to claim 1 to 3, which is characterized in that also Include:
Consistency group is added in this website storage volume corresponding with the same application in another website.
5. the access method of data under storage dual-active mode according to claim 3, which is characterized in that further include: monitoring The operating status of the consistency group.
6. the access method of data under storage dual-active mode according to claim 4, which is characterized in that further include: work as institute When the operating status for stating consistency group is failure state, alarm prompt.
7. the access method of data under storage dual-active mode according to claim 1, which is characterized in that the targeted sites Attribute is located at the head of the access request.
8. the access mechanism of data under a kind of storage dual-active mode characterized by comprising
Logging modle, for it is pre-recorded itself, host in the station and storage pool three in the station it is unified Website attribute;
Judgment module, whether the targeted sites attribute for when receiving access request, judging to include in the access request It is identical as the website attribute of itself, if it is, otherwise triggering access modules trigger sending module;
The access modules, for including the target storage pool of the targeted sites attribute according to access request access;
Sending module, the dual-active node for being sent to the access request in another website is with the storage pool to another website It accesses.
9. the access mechanism of data under a kind of storage dual-active mode, which is characterized in that including memory, for storing computer journey Sequence;
Processor realizes storage dual-active mode as described in any one of claim 1 to 7 when for executing the computer program The step of access method of lower data.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program are realized when being executed by processor under storage dual-active mode as described in any one of claim 1 to 7 The step of access method of data.
CN201810844993.9A 2018-07-27 2018-07-27 Store access method, device and the storage medium of data under dual-active mode Pending CN109150986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810844993.9A CN109150986A (en) 2018-07-27 2018-07-27 Store access method, device and the storage medium of data under dual-active mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810844993.9A CN109150986A (en) 2018-07-27 2018-07-27 Store access method, device and the storage medium of data under dual-active mode

Publications (1)

Publication Number Publication Date
CN109150986A true CN109150986A (en) 2019-01-04

Family

ID=64798356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810844993.9A Pending CN109150986A (en) 2018-07-27 2018-07-27 Store access method, device and the storage medium of data under dual-active mode

Country Status (1)

Country Link
CN (1) CN109150986A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858191A (en) * 2020-06-29 2020-10-30 广东浪潮大数据研究有限公司 Double-active storage control method, device, equipment and storage medium
CN115412486A (en) * 2022-08-26 2022-11-29 苏州浪潮智能科技有限公司 Path failure management method, device, equipment and medium in storage multipath

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860450A (en) * 2003-09-29 2006-11-08 国际商业机器公司 Method, system, and program for forming a consistency group
CN1906594A (en) * 2004-01-09 2007-01-31 国际商业机器公司 Maintaining consistency for remote copy using virtualization
CN104331254A (en) * 2014-11-05 2015-02-04 浪潮电子信息产业股份有限公司 Dual-active storage system design method based on dual-active logical volumes
CN105844178A (en) * 2016-04-21 2016-08-10 浪潮电子信息产业股份有限公司 Method for guaranteeing security of JBOD mass memory data
WO2017041616A1 (en) * 2015-09-08 2017-03-16 中兴通讯股份有限公司 Data reading and writing method and device, double active storage system and realization method thereof
CN107766003A (en) * 2017-10-31 2018-03-06 郑州云海信息技术有限公司 One kind storage dual-active method, apparatus, system and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860450A (en) * 2003-09-29 2006-11-08 国际商业机器公司 Method, system, and program for forming a consistency group
CN1906594A (en) * 2004-01-09 2007-01-31 国际商业机器公司 Maintaining consistency for remote copy using virtualization
CN104331254A (en) * 2014-11-05 2015-02-04 浪潮电子信息产业股份有限公司 Dual-active storage system design method based on dual-active logical volumes
WO2017041616A1 (en) * 2015-09-08 2017-03-16 中兴通讯股份有限公司 Data reading and writing method and device, double active storage system and realization method thereof
CN105844178A (en) * 2016-04-21 2016-08-10 浪潮电子信息产业股份有限公司 Method for guaranteeing security of JBOD mass memory data
CN107766003A (en) * 2017-10-31 2018-03-06 郑州云海信息技术有限公司 One kind storage dual-active method, apparatus, system and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IBM CORPORATION: "《SVC ESC and LHS架构交流》", 《HTTP://WWW.TALKWITHTREND.COM/DOCUMENT/DETAIL/TID/228651》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858191A (en) * 2020-06-29 2020-10-30 广东浪潮大数据研究有限公司 Double-active storage control method, device, equipment and storage medium
CN111858191B (en) * 2020-06-29 2024-02-09 广东浪潮大数据研究有限公司 Dual-active storage control method, device, equipment and storage medium
CN115412486A (en) * 2022-08-26 2022-11-29 苏州浪潮智能科技有限公司 Path failure management method, device, equipment and medium in storage multipath
CN115412486B (en) * 2022-08-26 2023-07-14 苏州浪潮智能科技有限公司 Method, device, equipment and medium for managing path failure in storage multipath

Similar Documents

Publication Publication Date Title
US11520770B2 (en) System and method for providing high availability data
US9372908B2 (en) Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN105975358B (en) A kind of fault-tolerance approach and system based on scsi device
CN110807064B (en) Data recovery device in RAC distributed database cluster system
CN107846321B (en) Interface monitoring method and device and electronic equipment
CN102611745B (en) On-line file moving method, device and system
CN105447046A (en) Distributed system data consistency processing method, device and system
US7609703B2 (en) Group communication system and method
CN108628717A (en) A kind of Database Systems and monitoring method
US8984332B2 (en) Active/passive database management across clusters
CN102158540A (en) System and method for realizing distributed database
US9984139B1 (en) Publish session framework for datastore operation records
CN103186554A (en) Distributed data mirroring method and data storage node
US20210326211A1 (en) Data backup method, apparatus, and system
CN105988901B (en) Data copy method and storage system
CN109902028A (en) Automated testing method, device, equipment and the storage medium of ACL characteristic
CN109150986A (en) Store access method, device and the storage medium of data under dual-active mode
CN109302445A (en) Host node state determines method, apparatus, host node and storage medium
CN110502581A (en) Distributed data base system monitoring method and device
CN105430314A (en) Video data storage and access control method and device
CN105205160A (en) Data write-in method and device
CN102855297B (en) A kind of method of control data transmission and connector
CN116541461A (en) Data processing method, device, equipment and storage medium applied to database
CN104793905A (en) Storage method of multi-server and multi-server

Legal Events

Date Code Title Description
PB01 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: 20190104