Summary of the invention
The present invention provides the management method of a kind of network store system, applies on virtual arbitration device, institute
State virtual arbitration device to be deployed on third party device, said method comprising the steps of:
Obtain the first status information and second status information of the second storage system of the first storage system;
The first status information and the second status information is utilized to determine the failure condition of network store system;
When described failure condition be described network store system there is fault time, then utilize described failure condition
Determine that the current storage system providing data request service is the first storage system or the second storage system.
Described acquisition first stores the first status information and second status information of the second storage system of system
Process, specifically include: described virtual arbitration device with described first storage system set up be connected after,
Receive the first state letter that described first storage system is periodically synchronized to described virtual arbitration device
Breath, and described first status information is saved in Installed System Memory;At described virtual arbitration device and described the
Two storage systems are set up after connecting, and receive described second storage system periodically to described virtual arbitration
The second status information that device is synchronized, and described second status information is saved in Installed System Memory;Or,
After described virtual arbitration device is connected with described first storage system foundation, periodically to described
First storage system request the first status information, is returned the first status information by the first storage system, and will
Described first status information is saved in Installed System Memory;In described virtual arbitration device and described second storage system
After the vertical connection of construction in a systematic way, periodically to described second storage system request the second status information, deposited by second
Storage system returns the second status information, and described second status information is saved in Installed System Memory;Or,
If not receiving the first status information from described first storage system in Preset Time, then
Update the first status information of described first storage system;If do not received from institute in Preset Time
State the second status information of the second storage system, then update the second status information of described second storage system.
Described utilize described failure condition to determine the current storage system providing data request service is first to deposit
Storage system or the process of the second storage system, specifically include:
When described failure condition is the first storage system jam, utilizes described failure condition to determine and work as
Premise is described second storage system for the storage system of data request service, and notifies described second storage
Systems with data request service, and refuse to be synchronized to request of data described first storage system;Or,
When described failure condition is the second storage system jam, utilizes described failure condition to determine and work as premise
Storage system for data request service is described first storage system, and notifies described first storage system
Data request service is provided, and request of data is synchronized to described second storage system by refusal;Or,
When described failure condition is that the mirror-image channels between the first storage system and the second storage system occurs event
During barrier, the current storage system providing data request service is the first storage to utilize described failure condition to determine
System, and notify described first storage systems with data request service, and request of data is synchronized by refusal
To described second storage system, and notify that described second storage system halt provides data request service;Or
Person, the current storage system providing data request service is the second storage system to utilize described failure condition to determine
System, and notify described second storage systems with data request service, and request of data is synchronized to by refusal
Described first storage system, and notify that described first storage system halt provides data request service;Or,
When described failure condition is that the mirror-image channels between the first storage system and the second storage system occurs event
During barrier, if the path fails between the first storage system and virtual arbitration device, then utilize described
Failure condition determines that the current storage system providing data request service is the second storage system, and notifies institute
State the second storage systems with data request service, and request of data is synchronized to described first storage by refusal
System;If the path fails between the second storage system and virtual arbitration device, then utilize described
Failure condition determines that the current storage system providing data request service is the first storage system, and notifies institute
State the first storage systems with data request service, and request of data is synchronized to described second storage by refusal
System;Wherein, when first stores the path fails between system and virtual arbitration device, described
First storage system can provide data request service by automatic pause;At the second storage system and virtual arbitration dress
During path fails between putting, described second storage system can provide data request service by automatic pause.
Described method also includes:
When described network store system exists fault, generate alarm information, and send described alarm information;
Wherein, the fault of described network store system includes: described first storage system jam, or institute
State the second storage system jam, or described first storage system and described second storage system occur
Mirror-image channels between fault, or described first storage system and described second storage system breaks down.
Described first status information includes the health status of described first storage system, mirror image data consistent
Sexual state;Described second status information includes the health status of described second storage system, mirror image data
Coherency state;Described first storage system is main storage system, and described second storage system is from storage
System;Or, described first storage system is that the second storage system is main storage system from storage system.
The present invention provides a kind of virtual arbitration device for network store system management, described virtual arbitration
Device is deployed on third party device, and described virtual arbitration device specifically includes:
Acquisition module, for obtaining the of first storage the first status information of system and the second storage system
Two-state information;Determine module, be used for utilizing described first status information and described second status information true
Determine the failure condition of network store system;Processing module, is used for when described failure condition is that described network is deposited
When storage system exists fault, then described failure condition is utilized to determine the current storage providing data request service
System is described first storage system or described second storage system.
Described acquisition module, specifically for depositing in the first status information and second obtaining the first storage system
During second status information of storage system, in described virtual arbitration device and described first storage system
Set up after connecting, receive described first storage system and periodically synchronized to described virtual arbitration device
The first status information, and described first status information is saved in Installed System Memory;In described virtual arbitration
Device with described second storage system set up be connected after, receive described second storage system periodically to
The second status information that described virtual arbitration device is synchronized, and described second status information is saved in is
System internal memory;Or, after described virtual arbitration device is connected with described first storage system foundation, week
Phase property, to described first storage system request the first status information, is returned the first state by the first storage system
Information, and described first status information is saved in Installed System Memory;At described virtual arbitration device with described
Second storage system is set up after connecting, periodically to described second storage system request the second status information,
Returned the second status information by the second storage system, and described second status information is saved in Installed System Memory;
Or, if not receiving the first status information from described first storage system in Preset Time,
Update the first status information of described first storage system;If do not received from institute in Preset Time
State the second status information of the second storage system, update the second status information of described second storage system.
Described processing module, specifically for utilizing described failure condition to determine current offer request of data clothes
During the storage system of business is described first storage system or described second storage system,
When described failure condition is the first storage system jam, utilizes described failure condition to determine and work as
Premise is described second storage system for the storage system of data request service, and notifies described second storage
Systems with data request service, and refuse to be synchronized to request of data described first storage system;Or,
When described failure condition is the second storage system jam, utilizes described failure condition to determine and work as premise
Storage system for data request service is described first storage system, and notifies described first storage system
Data request service is provided, and request of data is synchronized to described second storage system by refusal;Or,
When described failure condition is that the mirror-image channels between the first storage system and the second storage system occurs event
During barrier, the current storage system providing data request service is the first storage to utilize described failure condition to determine
System, and notify described first storage systems with data request service, and request of data is synchronized by refusal
To described second storage system, and notify that described second storage system halt provides data request service;Or
Person, the current storage system providing data request service is the second storage system to utilize described failure condition to determine
System, and notify described second storage systems with data request service, and request of data is synchronized to by refusal
Described first storage system, and notify that described first storage system halt provides data request service;Or,
When described failure condition is that the mirror-image channels between the first storage system and the second storage system occurs event
During barrier, if the path fails between the first storage system and virtual arbitration device, then utilize described
Failure condition determines that the current storage system providing data request service is the second storage system, and notifies institute
State the second storage systems with data request service, and request of data is synchronized to described first storage by refusal
System;If the path fails between the second storage system and virtual arbitration device, then utilize described
Failure condition determines that the current storage system providing data request service is the first storage system, and notifies institute
State the first storage systems with data request service, and request of data is synchronized to described second storage by refusal
System;Wherein, when first stores the path fails between system and virtual arbitration device, described
First storage system can provide data request service by automatic pause;At the second storage system and virtual arbitration dress
During path fails between putting, described second storage system can provide data request service by automatic pause.
Described processing module, is additionally operable to when described network store system exists fault, then generate alarm and disappear
Breath, and send described alarm information;Wherein, the fault of described network store system includes: described first
Storage system jam, or, described second storage system jam, or, described first deposits
Storage system and described second storage system jam, or, described first storage system and described second
Mirror-image channels between storage system breaks down.
Described first status information includes the health status of described first storage system, mirror image data consistent
Sexual state;Described second status information includes the health status of described second storage system, mirror image data
Coherency state;Described first storage system is main storage system, and described second storage system is from storage
System;Or, described first storage system is that the second storage system is main storage system from storage system.
Based on technique scheme, in the embodiment of the present invention, virtual secondary by disposing on third party device
Cut out device, virtual arbitration device determine that the current storage system providing data request service is the first storage
System or the second storage system, thus when network store system breaks down, one can be selected to deposit
Storage system provides data request service, in the same time, does not haves two storage systems and is application
Server provides the problem of data request service, does not also have two storage systems the most not for application service
The problem that device provides data request service.Therefore, under aforesaid way, it is not necessary to manually suspend primary storage
System or the data request service from storage system, it is to avoid business is interrupted, reduce manual operation,
Avoid erroneous human's behavior that manual operation brings.Furthermore, it is possible to the Schizencephaly problem in solution Remote Switched Port Analyzer,
There is provided the fault recovery function of automatization, it is provided that the duplicate protection that business is not interrupted, data are not lost.
Detailed description of the invention
In terminology used in the present invention merely for the sake of describing the purpose of specific embodiment, and the unrestricted present invention.
" a kind of ", " described " and " being somebody's turn to do " also purport of singulative used in the present invention and claims
Including most form, unless context clearly shows that other implication.It is also understood that used herein
Term "and/or" refer to comprise any or all of one or more project of listing being associated may combination.
Although should be appreciated that may use term first, second, third, etc. to describe various letter in the present invention
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information district each other
Separately.Such as, without departing from the present invention, the first information can also be referred to as the second information,
Similarly, the second information can also be referred to as the first information.Depend on linguistic context, additionally, the word used
" if " can be construed to " ... time " or " when ... time " or " in response to determining ".
For problems of the prior art, the embodiment of the present invention proposes a kind of network store system
Management method, the method can be applied on virtual arbitration device, and this virtual arbitration device is permissible
It is deployed on third party device.Application scenarios schematic diagram with Fig. 2 as the embodiment of the present invention, then the method
Can apply to include application server, the first storage system, the second storage system and third party device
In network store system, and this virtual arbitration device can be deployed on this third party device.
Application server is the processing server of customer service, can be Database Systems, file system,
Virtual machines etc., are responsible for analysis and the process of customer service, it is possible to accessed by network or update first
User data in storage system or the second storage system.Wherein, application server can be by the
One storage system or the second storage system send data write request, to store system or second first
Storage system writes data.Application server can be by the first storage system or the second storage system
System sends data read request, to read data from the first storage system or the second storage system.
First storage system is main storage system, and the second storage system is from storage system;Or, first
Storage system is that the second storage system is main storage system from storage system.Wherein, main storage system is
Under normal circumstances, the storage system that application server mainly accesses, for preserving a pair of user data
Notebook data, is the storage system of another copy data preserving user data from storage system.At this base
On plinth, application server is visited by main path (i.e. path between application server and main storage system)
Ask main storage system, and by backup path (i.e. application server and the path between storage system)
Access from storage system.Under normal circumstances, the request of data of application server (read by data write request/data
Request) main storage system, in the case of main path is obstructed, application server can be accessed by main path
Request of data (data write request/data read request) can by backup path access from storage system.
There is also mirror-image channels at main storage system and between storage system, this mirror-image channels is to synchronize pair
The designated lane of notebook data.Such as, main storage system receives the data write request that application server is initiated
After, in locally stored corresponding data, and by this mirror-image channels, data write request is synchronized to from storage
System.From storage system receive main storage system synchronize data write request, locally stored accordingly
Data, and synchronously completed by this mirror-image channels notice main storage system.Main storage system determines master
Storage system and after storage system all completes data write request, will confirm that and return to application server.
Issue as it is shown on figure 3, virtual arbitration device itself is pure software, it is not necessary to persistent storage is situated between
Matter, may be mounted on third party device.Third party device is the host system of virtual arbitration device, can
To be arranged on third party device by virtual arbitration device, the third party being used as Remote Switched Port Analyzer exists,
Third party device itself can be server, it is also possible to be virtual machine, it is also possible to be high availability cluster.
Wherein, by using virtual arbitration device to obtain the status information of main storage system and from storage system
Status information, and cache in Installed System Memory main storage system status information and from storage system shape
State information, therefore, when when main storage system and Schizencephaly problem occurring between storage system, can be from
The status information of main storage system and the status information from storage system is got on three method, apparatus, thus can
To make correct ruling, it is achieved the fault recovery of automatization, it is possible to guarantee business is not interrupted.
Wherein, owing to virtual arbitration device itself is that pure software is issued, therefore, virtual arbitration device is permissible
It is deployed in flexibly on various types of third party device, as virtual arbitration device can be deployed in High Availabitity
In property cluster (such as linux HA).When virtual arbitration device is deployed in high availability cluster, it becomes possible to
Well utilize the characteristic of high availability cluster so that virtual arbitration device itself has high availability.
Wherein, owing to virtual arbitration device can be deployed on third party device, therefore, virtual arbitration dress
Put and there is active process ability, such as program capability and computing capability etc., and, virtual arbitration device preserves
There is the status information of storage system.Based on this, virtual arbitration device can be by analyzing the shape of storage system
State information, the function of extension itself, to provide more third party's function, such as auto-alarming etc..
Wherein, virtual arbitration device also has stateless characteristic.Concrete, virtual arbitration device can delay
Deposit the status information of main storage system and the status information from storage system, but not these primary storages of persistence
The status information of system and the status information from storage system, therefore, when virtual arbitration device restarts
Time, virtual arbitration device can obtain and cache the status information of main storage system and again from storage system
Status information.Therefore, virtual arbitration device itself is stateless, and the status information of all cachings is all
It is derived from main storage system and from storage system, does not haves the problem that status information is inconsistent.
Based on above-mentioned application scenarios, the management method of the network store system of proposition in the embodiment of the present invention,
Can apply on virtual arbitration device, and this virtual arbitration device can be deployed on third party device,
As shown in Figure 4, the management method of this network store system specifically may comprise steps of:
Step 401, obtains the first status information and second shape of the second storage system of the first storage system
State information.Wherein, this first status information can include but not limited to the health status of the first storage system,
The coherency state of mirror image data.This second status information can include but not limited to the second storage system
Health status, the coherency state of mirror image data.Further, the health status of the first storage system can
Think the first storage system health, or the first storage system is unhealthy.The healthy shape of the second storage system
State can be the second storage system health, or the second storage system is unhealthy.The concordance of mirror image data
State can be: the mirror image data between the first storage system and the second storage system is consistent or inconsistent.
In the embodiment of the present invention, the first status information and second obtaining the first storage system stores system
The process of the second status information, specifically can include but not limited to following manner:
Mode one, virtual arbitration device and first storage system set up connect after, virtual arbitration device
Can receive the first storage system periodically (the transmission cycle arbitrarily can select according to practical experience) to
The first status information that virtual arbitration device is synchronized, and this first status information is saved in Installed System Memory.
Additionally, set up after connecting at virtual arbitration device and the second storage system, virtual arbitration device can connect
Receive the second storage system periodically (the transmission cycle arbitrarily can select according to practical experience) to virtual secondary
Cut out the second status information that device is synchronized, and this second status information is saved in Installed System Memory.
Mode two, virtual arbitration device and first storage system set up connect after, virtual arbitration device
Can periodically (the transmission cycle arbitrarily can select according to practical experience) to the first storage system request the
One status information, is returned this first status information by the first storage system;Virtual arbitration device receives first
This first status information that storage system returns, and this first status information is saved in Installed System Memory.This
Outward, setting up after connecting at virtual arbitration device and the second storage system, virtual arbitration device can the cycle
Property (the transmission cycle arbitrarily can select according to practical experience) to second storage system request the second state letter
Breath, is returned this second status information by the second storage system;Virtual arbitration device receives the second storage system
This second status information returned, and this second status information is saved in Installed System Memory.
Mode three, on the basis of mode one or mode two, if virtual arbitration device is at Preset Time
The first state letter from the first storage system is not received according to practical experience in (can be configured)
Breath, then can update the first status information of the first storage system, such as the first shape by the first storage system
It is unhealthy that state information is revised as the first storage system.If virtual arbitration device does not receives in Preset Time
To the second status information from the second storage system, then can update the second state of the second storage system
Information, as unhealthy in the second status information of the second storage system is revised as the second storage system.
Step 402, utilizes the first status information and the second status information to determine the fault of network store system
Situation.Such as, when the health status in the first status information be the first storage system unhealthy time, the most really
Determine the first storage system jam in network store system.Health status in the second status information
Be the second storage system unhealthy time, it is determined that in network store system second storage system jam.
When the health status in the first status information is the first storage system health, and being good in the second status information
Health state is the second storage system health, and the first storage system reports and cannot perceive the second storage system
Information, when the second storage system also reports the information that cannot perceive the first storage system, it is determined that
Mirror-image channels between one storage system and the second storage system breaks down.
Step 403, when failure condition be network store system there is fault time, then utilize this failure condition
Determine that the current storage system providing data request service is the first storage system or the second storage system.
In the embodiment of the present invention, failure condition is utilized to determine the current storage system providing data request service
It is the first storage system or the process of the second storage system, specifically can include but not limited to following situation:
Situation one, when failure condition is the first storage system jam, the most virtual arbitration device is permissible
The current storage system providing data request service is the second storage system to utilize this failure condition to determine, and
Notify the second storage systems with data request service, and request of data is synchronized to the first storage system by refusal
System.Or, when failure condition is the second storage system jam, the most virtual arbitration device can be in order to
Determine that the current storage system providing data request service is the first storage system with failure condition, and notify
First storage systems with data request service, and refuse to be synchronized to request of data the second storage system.
Situation two, when failure condition be that the mirror-image channels between the first storage system and the second storage system is sent out
During raw fault, the most virtual arbitration device can utilize failure condition to determine current offer data request service
Storage system is the first storage system, and notifies the first storage systems with data request service, and refusal
Request of data is synchronized to the second storage system, and notifies that the second storage system halt provides request of data clothes
Business.Or, when failure condition is that the mirror-image channels between the first storage system and the second storage system occurs
During fault, the most virtual arbitration device can utilize failure condition to determine depositing of current offer data request service
Storage system is the second storage system, and notifies the second storage systems with data request service, and refusal will
Request of data is synchronized to the first storage system, and notifies that the first storage system halt provides data request service.
Situation three, when failure condition be that the mirror-image channels between the first storage system and the second storage system is sent out
During raw fault, if also breaking down in the path between the first storage system and virtual arbitration device, then empty
Plan arbitration device can utilize failure condition to determine, and the current storage system providing data request service is second
Storage system, and notify this second storage systems with data request service, and refusal is same by request of data
Walk the first storage system.Or, when failure condition is between the first storage system and the second storage system
Mirror-image channels when breaking down, if the path between the second storage system and virtual arbitration device is also sent out
Raw fault, the most virtual arbitration device can utilize failure condition to determine depositing of current offer data request service
Storage system is the first storage system, and notifies the first storage systems with data request service, and refusal will
Request of data is synchronized to the second storage system.Further, at the first storage system and virtual arbitration device
Between path fails time, then first storage system also can automatic pause provide data request service,
I.e. hang up the first storage system;Path fails between the second storage system and virtual arbitration device
Time, the second storage system also can provide data request service by automatic pause, i.e. hang up the second storage system.
In the embodiment of the present invention, when network store system exists fault, virtual arbitration device can also be given birth to
Become alarm information, and send alarm information;Wherein, the fault of network store system includes: the first storage
System jam, or second storage system jam, or first storage system and second storage
Mirror-image channels between system jam, or the first storage system and the second storage system breaks down.
Based on technique scheme, in the embodiment of the present invention, virtual secondary by disposing on third party device
Cut out device, virtual arbitration device determine that the current storage system providing data request service is the first storage
System or the second storage system, thus when network store system breaks down, one can be selected to deposit
Storage system provides data request service, in the same time, does not haves two storage systems and is application
Server provides the problem of data request service, does not also have two storage systems the most not for application service
The problem that device provides data request service.Therefore, under aforesaid way, it is not necessary to manually suspend primary storage
System or the data request service from storage system, it is to avoid business is interrupted, reduce manual operation,
Avoid erroneous human's behavior that manual operation brings.Furthermore, it is possible to the Schizencephaly problem in solution Remote Switched Port Analyzer,
There is provided the fault recovery function of automatization, it is provided that the duplicate protection that business is not interrupted, data are not lost.
Below in conjunction with concrete application scenarios, the technique scheme of the embodiment of the present invention is carried out specifically
Bright.Describe for convenience, in follow-up several application scenarios of the embodiment of the present invention, all with the first storage
System is main storage system, and the second storage system is for illustrate as a example by storage system.
Application scenarios 1, main storage system sends self according to cycle regular hour to virtual arbitration device
Status information, this status information can be that main storage system is healthy, and mirror image data is consistent.Additionally,
From storage system according to cycle regular hour to the status information of virtual arbitration device transmission self, this shape
State information can be from storage system health, and mirror image data is consistent.Virtual arbitration device is receiving arrival
Primary storage system and from storage system status information after, status information can be saved in Installed System Memory,
Form the status log of storage system.When a failure occurs it, virtual arbitration device just can be by analyzing shape
State daily record, obtains the current state of network store system, i.e. can know and where a fault occurs.
Application scenarios 2, as it is shown in figure 5, the schematic diagram broken down for main storage system.
When main storage system breaks down, virtual arbitration device will be unable to receive in Preset Time and arrives
The status information of primary storage system, therefore, the status information of main storage system is repaiied by virtual arbitration device
Change main storage system into unhealthy.And, when main storage system breaks down, main storage system and from
Communication between storage system also can be interrupted, from storage system determine main storage system with from storage system it
Between mirror-image channels unavailable, and to virtual arbitration device send inquiry main storage system state message.
Virtual arbitration device is after the message receiving inquiry main storage system state, based in Installed System Memory
Status log, owing to the status information of main storage system is that main storage system is unhealthy, the most virtual secondary
Cut out device and determine that the main storage system in network store system breaks down.Afterwards, virtual arbitration device
Failure condition can be utilized to determine, and the current storage system providing data request service is from storage system, and
Notify from storage systems with data request service, and request of data is synchronized to main storage system by refusal.
From storage system when knowing that main storage system breaks down, determine and data request service is currently provided
Storage system be this from storage system, and provide data request service, and request of data synchronized by refusal
To main storage system.Additionally, status information is synchronized to virtual arbitration device from storage system, at this shape
In state information, health status is from storage system health, but the coherency state of mirror image data is mirror image
Data are inconsistent.Virtual arbitration device is receiving after the status information of storage system, will be from depositing
The state information updating of storage system is in Installed System Memory.In subsequent processes, virtual arbitration device can
Not consistent with the mirror image data from storage system to know the mirror image data of main storage system.
Application scenarios 3, as shown in Figure 6, the schematic diagram broken down for mirror-image channels.
When main storage system and the mirror-image channels between storage system break down, main storage system
Health status is healthy, is healthy from the health status of storage system, but owing to main storage system cannot
To from storage system synchronization data, and from storage system cannot be to main storage system synchrodata, therefore,
Main storage system reports the information that cannot perceive from storage system, and also reporting from storage system cannot perception
Information to main storage system.Based on this, it is at enlivening shape due to main storage system with from storage system
State, but data can not synchronize (mirror-image channels disconnection), and therefore, virtual arbitration device can determine that
Main storage system and the mirror-image channels between storage system break down.
Based on this, virtual arbitration device can utilize failure condition to determine current offer data request service
Storage system is main storage system, and notifies that main storage system provides data request service, and notice hosts
Request of data is synchronized to from storage system by storage system refusal.Additionally, virtual arbitration device also needs to notice
There is provided data request service from storage system halt, hung up this from storage system by from storage system.
Main storage system is knowing that main storage system and the mirror-image channels between storage system break down
Time, determine that the current storage system providing data request service is main storage system, and request of data is provided
Service, and refuse to be synchronized to from storage system request of data.Status information is synchronized to by main storage system
Virtual arbitration device, in this status information, health status is that main storage system is healthy, but mirror image number
According to coherency state be that mirror image data is inconsistent.Virtual arbitration device is receiving primary storage system
Status information after, by the state information updating of main storage system to Installed System Memory.In subsequent treatment mistake
Cheng Zhong, can know that the mirror image data of main storage system is not consistent with the mirror image data from storage system.
Knowing that main storage system and the mirror-image channels between storage system break down from storage system
Time, determine that the current storage system providing data request service is main storage system, and offer data are provided
Request service, hangs up this from storage system.Further, from storage system, status information is synchronized to void
Intending arbitration device, in this status information, health status is from storage system health, but mirror image data
Coherency state be that mirror image data is inconsistent.Virtual arbitration device is receiving since storage system
After status information, by from the state information updating of storage system to Installed System Memory.In subsequent processes
In, can know that the mirror image data of main storage system is not consistent with the mirror image data from storage system.
Application scenarios 4, as it is shown in fig. 7, the schematic diagram broken down for mirror-image channels and arbitration path.
When main storage system and the mirror-image channels between storage system break down, main storage system
Health status is healthy, is healthy from the health status of storage system, but owing to main storage system cannot
To from storage system synchronization data, and from storage system cannot be to main storage system synchrodata, therefore,
Main storage system reports the information that cannot perceive from storage system, and also reporting from storage system cannot perception
Information to main storage system.Based on this, it is at enlivening shape due to main storage system with from storage system
State, but data can not synchronize (mirror-image channels disconnection), and therefore, virtual arbitration device can determine that
Main storage system and the mirror-image channels between storage system break down.
If the arbitration path between main storage system and virtual arbitration device breaks down, the most virtual arbitration
Device can perceive this arbitration path and break down.Based on this, virtual arbitration device can utilize fault
Situation determines that the current storage system providing data request service is from storage system, and notifies from storage system
System provides data request service, and request of data is synchronized to main storage system from storage system refusal by notice.
Knowing that main storage system and the mirror-image channels between storage system break down from storage system
Time, determine that the current storage system providing data request service is from storage system, and request of data is provided
Service, and refuse request of data is synchronized to main storage system.From storage system, status information is synchronized to
Virtual arbitration device, in this status information, health status is from storage system health, but mirror image number
According to coherency state be that mirror image data is inconsistent.Virtual arbitration device is receiving since storage system
Status information after, by the state information updating from storage system in Installed System Memory.In subsequent treatment mistake
Cheng Zhong, can know that the mirror image data of main storage system is not consistent with the mirror image data from storage system.
Owing to main storage system can not communicate with virtual arbitration device, can not with from storage system communication,
Therefore, main storage system can suspend offer data request service, and hangs up this main storage system voluntarily.
Under above-mentioned each application scenarios, data request service may include that the service of data write request and data
Read request services, and request of data may include that data write request and data read request.
Application scenarios 5, as shown in Figure 8, for the deployment schematic diagram of virtual arbitration device.Virtual arbitration dress
Putting itself is a software, by network and main storage system/interact from storage system.Wherein, empty
Plan arbitration device can be adopted and dispose in various manners, and virtual secondary by disposing on high availability cluster
Cut out device, it becomes possible to well utilize cluster features, make virtual arbitration device itself have high availability.
Application scenarios 6, as it is shown in figure 9, be the schematic diagram of the alarm function of virtual arbitration device extension.
Intending arbitration device itself is software mode, possesses program capability and computing capability, therefore, virtual arbitration dress
Put except as third party, preserve the status information of main storage system and status information from storage system it
Outward, it is also possible to utilize the active computing capability of virtual arbitration device self, extend the merit of virtual arbitration device
Energy.Such as, when when main storage system and all breaking down from storage system, whole network store system is
Through paralysis, owing to virtual arbitration device can perceive main storage system in time and all occurs from storage system
Fault, therefore, it can generate alarm information, and notifies attendant in the mode such as mail or note,
So that attendant is instantly obtained the message of the storage system failure, the very first time takes counter-measure.
Based on technique scheme, in the embodiment of the present invention, virtual secondary by disposing on third party device
Cut out device, virtual arbitration device determine that the current storage system providing data request service is the first storage
System or the second storage system, thus when network store system breaks down, one can be selected to deposit
Storage system provides data request service, in the same time, does not haves two storage systems and is application
Server provides the problem of data request service, does not also have two storage systems the most not for application service
The problem that device provides data request service.Therefore, under aforesaid way, it is not necessary to manually suspend primary storage
System or the data request service from storage system, it is to avoid business is interrupted, reduce manual operation,
Avoid erroneous human's behavior that manual operation brings.Furthermore, it is possible to the Schizencephaly problem in solution Remote Switched Port Analyzer,
There is provided the fault recovery function of automatization, it is provided that the duplicate protection that business is not interrupted, data are not lost.
Based on the inventive concept as said method, the embodiment of the present invention additionally provide a kind of for net
The virtual arbitration device of network system management memory, this virtual arbitration device can be deployed on third party device,
This virtual arbitration device can be realized by software, it is also possible to by the way of hardware or software and hardware combining
Realize.As a example by implemented in software, as the device on a logical meaning, it is the 3rd by its place
Computer program instructions corresponding in nonvolatile memory is read in internal memory and transports by the processor of method, apparatus
Row is formed.For hardware view, as shown in Figure 10, the virtual arbitration device institute proposed for the present invention
A kind of hardware structure diagram of third party device, except the processor shown in Figure 10, network interface, interior
Depositing and outside nonvolatile memory, third party device can also include other hardware, processes report as responsible
The forwarding chip etc. of literary composition;From the point of view of from hardware configuration, this third party device it is also possible that distributed apparatus,
Potentially include multiple interface card, in order to carry out the extension of Message processing at hardware view.
As shown in figure 11, the virtual arbitration device for network store system management proposed for the present invention
Structure chart, described virtual arbitration device is deployed on third party device, and described virtual arbitration device includes:
Acquisition module 11, stores system for obtaining first status information and second of the first storage system
Second status information;Determine module 12, be used for utilizing described first status information and described second state letter
Breath determines the failure condition of network store system;Processing module 13, is used for when described failure condition is described
When network store system exists fault, then utilizing described failure condition to determine currently provides data request service
Storage system be described first storage system or described second storage system.
Described acquisition module 11, specifically in the first status information and second obtaining the first storage system
The process of the second status information of storage system, in described virtual arbitration device and described first storage system
Set up after connecting, receive described first storage system and periodically synchronized to described virtual arbitration device
The first status information, and described first status information is saved in Installed System Memory;In described virtual arbitration
Device with described second storage system set up be connected after, receive described second storage system periodically to
The second status information that described virtual arbitration device is synchronized, and described second status information is saved in is
System internal memory;Or, after described virtual arbitration device is connected with described first storage system foundation, week
Phase property, to described first storage system request the first status information, is returned the first state by the first storage system
Information, and described first status information is saved in Installed System Memory;At described virtual arbitration device with described
Second storage system is set up after connecting, periodically to described second storage system request the second status information,
Returned the second status information by the second storage system, and described second status information is saved in Installed System Memory;
Or, if not receiving the first status information from described first storage system in Preset Time,
Update the first status information of described first storage system;If do not received from institute in Preset Time
State the second status information of the second storage system, update the second status information of described second storage system.
Described processing module 13, specifically for providing request of data utilizing described failure condition to determine currently
During the storage system of service is described first storage system or described second storage system,
When described failure condition is the first storage system jam, utilizes described failure condition to determine and work as
Premise is described second storage system for the storage system of data request service, and notifies described second storage
Systems with data request service, and refuse to be synchronized to request of data described first storage system;Or,
When described failure condition is the second storage system jam, utilizes described failure condition to determine and work as premise
Storage system for data request service is described first storage system, and notifies described first storage system
Data request service is provided, and request of data is synchronized to described second storage system by refusal;Or,
When described failure condition is that the mirror-image channels between the first storage system and the second storage system occurs event
During barrier, the current storage system providing data request service is the first storage to utilize described failure condition to determine
System, and notify described first storage systems with data request service, and request of data is synchronized by refusal
To described second storage system, and notify that described second storage system halt provides data request service;Or
Person, the current storage system providing data request service is the second storage system to utilize described failure condition to determine
System, and notify described second storage systems with data request service, and request of data is synchronized to by refusal
Described first storage system, and notify that described first storage system halt provides data request service;Or,
When described failure condition is that the mirror-image channels between the first storage system and the second storage system occurs event
During barrier, if the path fails between the first storage system and virtual arbitration device, then utilize described
Failure condition determines that the current storage system providing data request service is the second storage system, and notifies institute
State the second storage systems with data request service, and request of data is synchronized to described first storage by refusal
System;If the path fails between the second storage system and virtual arbitration device, then utilize described
Failure condition determines that the current storage system providing data request service is the first storage system, and notifies institute
State the first storage systems with data request service, and request of data is synchronized to described second storage by refusal
System;Wherein, when first stores the path fails between system and virtual arbitration device, described
First storage system can provide data request service by automatic pause;At the second storage system and virtual arbitration dress
During path fails between putting, described second storage system can provide data request service by automatic pause.
In the embodiment of the present invention, described processing module 13, it is additionally operable to when described network store system exists event
During barrier, then generate alarm information, and send described alarm information;Wherein, described network store system
Fault includes: described first storage system jam, or, described second storage system jam,
Or, described first storage system and described second storage system jam, or, described first deposits
Mirror-image channels between storage system and described second storage system breaks down.
Described first status information includes the health status of described first storage system, mirror image data consistent
Sexual state;Described second status information includes the health status of described second storage system, mirror image data
Coherency state;Described first storage system is main storage system, and described second storage system is from storage
System;Or, described first storage system is that the second storage system is main storage system from storage system.
Wherein, the modules of apparatus of the present invention can be integrated in one, it is also possible to separates and disposes.Above-mentioned
Module can merge into a module, it is also possible to is further split into multiple submodule.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this
Bright can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware,
But the former is more preferably embodiment in the case of a lot.Based on such understanding, technical scheme
The part contributed prior art the most in other words can embody with the form of software product,
This computer software product is stored in a storage medium, including some instructions with so that a calculating
Machine equipment (can be personal computer, server, or the network equipment etc.) performs the present invention, and each is real
Execute the method described in example.It will be appreciated by those skilled in the art that accompanying drawing is the signal of a preferred embodiment
Figure, module or flow process in accompanying drawing are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in the device in embodiment can describe according to embodiment
Carry out being distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than the one of the present embodiment
In individual or multiple device.The module of above-described embodiment can merge into a module, it is possible to splits further
Become multiple submodule.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
The several specific embodiments being only the present invention disclosed above, but, the present invention is not limited to this,
The changes that any person skilled in the art can think of all should fall into protection scope of the present invention.