Summary of the invention
The present invention provides a kind of management method of network store system, applies on virtual arbitration device, described virtual secondary
It cuts out device to be deployed on third party device, the described method comprises the following steps:
Obtain the first state information of the first storage system and the second status information of the second storage system;
The fault condition of network store system is determined using first state information and the second status information;
When the fault condition is that the network store system is current there are when failure, then utilizing the fault condition to determine
The storage system for providing data request service is the first storage system or the second storage system.
The process of second status information of the first state information for obtaining the first storage system and the second storage system,
It specifically includes: after the virtual arbitration device and first storage system establish connection, receiving first storage system
The first state information that system is periodically synchronized to the virtual arbitration device, and be by the first state information preservation
System memory;After the virtual arbitration device and second storage system establish connection, second storage system is received
The second status information periodically synchronized to the virtual arbitration device, and second status information is stored in system
Memory;Alternatively,
After the virtual arbitration device and first storage system establish connection, periodically to first storage
System request first state information returns to first state information by the first storage system, and by the first state information preservation
In Installed System Memory;After the virtual arbitration device and second storage system establish connection, periodically to described second
Storage system requests the second status information, returns to the second status information by the second storage system, and by second status information
It is stored in Installed System Memory;Alternatively,
If not receiving the first state information from first storage system within a preset time, described in update
The first state information of first storage system;If not receiving second from second storage system within a preset time
Status information then updates the second status information of second storage system.
It is described to determine that the current storage system for providing data request service is the first storage system using the fault condition
Or second storage system process, specifically include:
When the fault condition is that the first storage system breaks down, current offer number is determined using the fault condition
Storage system according to request service is second storage system, and second storage system is notified to provide request of data clothes
Business, and refuse request of data being synchronized to first storage system;Alternatively, when the fault condition is the second storage system hair
When raw failure, determine that the current storage system for providing data request service is that first storage is using the fault condition
System, and notify first storage system to provide data request service, and refuse for request of data to be synchronized to second storage
System;Alternatively,
When mirror-image channels of the fault condition between the first storage system and the second storage system break down, benefit
It determines that the current storage system for providing data request service is the first storage system with the fault condition, and notifies described first
Storage system provides data request service, and refuses request of data being synchronized to second storage system, and notifies described the
The pause of two storage systems provides data request service;Alternatively, determining current offer data request service using the fault condition
Storage system be the second storage system, and notify second storage system to provide data request service, and refuse data
Request is synchronized to first storage system, and the first storage system pause is notified to provide data request service;Alternatively,
When mirror-image channels of the fault condition between the first storage system and the second storage system break down, such as
Path fails between the first storage system of fruit and virtual arbitration device then determine current provide using the fault condition
The storage system of data request service is the second storage system, and second storage system is notified to provide data request service,
And request of data is synchronized to first storage system by refusal;If the road between the second storage system and virtual arbitration device
Diameter breaks down, then determines that the current storage system for providing data request service is the first storage system using the fault condition
System, and notify first storage system to provide data request service, and refuse for request of data to be synchronized to second storage
System;Wherein, when path fails between the first storage system and virtual arbitration device, the first storage system meeting
Automatic pause provides data request service;When path fails between the second storage system and virtual arbitration device, institute
Stating the second storage system can automatic pause offer data request service.
The method also includes:
When the network store system is there are when failure, alarm information is generated, and send the alarm information;Wherein, institute
State network store system failure include: first storage system break down or second storage system occur therefore
Barrier perhaps first storage system and second storage system break down or first storage system with it is described
Mirror-image channels between second storage system break down.
The first state information includes the health status of first storage system, the coherency state of mirror image data;
Second status information includes the health status of second storage system, the coherency state of mirror image data;Described first
Storage system is main storage system, and second storage system is from storage system;Alternatively, first storage system is from depositing
Storage system, the second storage system are main storage system.
The present invention provides a kind of virtual arbitration device for network store system management, the virtual arbitration device deployment
On third party device, the virtual arbitration device is specifically included:
Module is obtained, for obtaining the first state information of the first storage system and the second state letter of the second storage system
Breath;Determining module, for determining the failure of network store system using the first state information and second status information
Situation;Processing module, for when the fault condition is the network store system there are when failure, then utilizing the failure feelings
Condition determines that the current storage system for providing data request service is first storage system or second storage system.
The acquisition module, specifically in the first state information and the second storage system for obtaining the first storage system
During second status information, after the virtual arbitration device and first storage system establish connection, institute is received
State the first state information that the first storage system is periodically synchronized to the virtual arbitration device, and by the first state
Information preservation is in Installed System Memory;After the virtual arbitration device and second storage system establish connection, described in reception
The second status information that second storage system is periodically synchronized to the virtual arbitration device, and second state is believed
Breath is stored in Installed System Memory;Alternatively, after the virtual arbitration device and first storage system establish connection, periodically
First state information is requested to first storage system, first state information is returned to by the first storage system, and by described the
One status information is stored in Installed System Memory;After the virtual arbitration device and second storage system establish connection, week
Phase property requests the second status information to second storage system, returns to the second status information by the second storage system, and by institute
It states the second status information and is stored in Installed System Memory;Alternatively, if not received within a preset time from first storage system
The first state information of system updates the first state information of first storage system;If do not received within a preset time
The second status information from second storage system updates the second status information of second storage system.
The processing module, specifically in the storage for determining current offer data request service using the fault condition
During system is first storage system or second storage system,
When the fault condition is that the first storage system breaks down, current offer number is determined using the fault condition
Storage system according to request service is second storage system, and second storage system is notified to provide request of data clothes
Business, and refuse request of data being synchronized to first storage system;Alternatively, when the fault condition is the second storage system hair
When raw failure, determine that the current storage system for providing data request service is that first storage is using the fault condition
System, and notify first storage system to provide data request service, and refuse for request of data to be synchronized to second storage
System;Alternatively,
When mirror-image channels of the fault condition between the first storage system and the second storage system break down, benefit
It determines that the current storage system for providing data request service is the first storage system with the fault condition, and notifies described first
Storage system provides data request service, and refuses request of data being synchronized to second storage system, and notifies described the
The pause of two storage systems provides data request service;Alternatively, determining current offer data request service using the fault condition
Storage system be the second storage system, and notify second storage system to provide data request service, and refuse data
Request is synchronized to first storage system, and the first storage system pause is notified to provide data request service;Alternatively,
When mirror-image channels of the fault condition between the first storage system and the second storage system break down, such as
Path fails between the first storage system of fruit and virtual arbitration device then determine current provide using the fault condition
The storage system of data request service is the second storage system, and second storage system is notified to provide data request service,
And request of data is synchronized to first storage system by refusal;If the road between the second storage system and virtual arbitration device
Diameter breaks down, then determines that the current storage system for providing data request service is the first storage system using the fault condition
System, and notify first storage system to provide data request service, and refuse for request of data to be synchronized to second storage
System;Wherein, when path fails between the first storage system and virtual arbitration device, the first storage system meeting
Automatic pause provides data request service;When path fails between the second storage system and virtual arbitration device, institute
Stating the second storage system can automatic pause offer data request service.
The processing module is also used to then generate alarm information, and send when the network store system is there are when failure
The alarm information;Wherein, the failure of the network store system includes: that first storage system breaks down, alternatively, institute
The second storage system is stated to break down, alternatively, first storage system and second storage system break down, alternatively,
Mirror-image channels between first storage system and second storage system break down.
The first state information includes the health status of first storage system, the coherency state of mirror image data;
Second status information includes the health status of second storage system, the coherency state of mirror image data;Described first
Storage system is main storage system, and second storage system is from storage system;Alternatively, first storage system is from depositing
Storage system, the second storage system are main storage system.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, by disposing virtual arbitration device on third party device, by
Virtual arbitration device determines that the current storage system for providing data request service is the first storage system or the second storage system,
To can choose a storage system to provide data request service, in same a period of time when network store system breaks down
Between, it is the problem of application server provides data request service there is no two storage systems, there will not be two and deposit
Not the problem of storage system for application server does not provide data request service.Therefore, it under aforesaid way, does not need manually to suspend
Main storage system or data request service from storage system, avoid business from interrupting, and reduce manual operation, avoid artificial
Operate bring erroneous human behavior.Furthermore, it is possible to solve the problems, such as the fissure in Remote Switched Port Analyzer, the fault recovery of automation is provided
Function, the duplicate protection that the business that provides is not interrupted, data are not lost.
Specific embodiment
In terminology used in the present invention merely for the sake of for the purpose of describing particular embodiments, it is not intended to limit the present invention.This hair
The "an" of singular used in bright and claims, " described " and "the" are also intended to including most forms, unless
Context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one or more
Associated any or all of project listed may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, in addition, used word " if " can be construed to " ... when " or " when ... "
Or " in response to determination ".
Aiming at the problems existing in the prior art, a kind of manager of network store system is proposed in the embodiment of the present invention
Method, this method can be applied on virtual arbitration device, and the virtual arbitration device can be deployed on third party device.With
Fig. 2 is the application scenarios schematic diagram of the embodiment of the present invention, then this method can be applied to include application server, the first storage system
In the network store system of system, the second storage system and third party device, and the virtual arbitration device can be deployed in the third
On method, apparatus.
Application server is the processing server of customer service, can be Database Systems, file system, virtual machine etc.,
It is responsible for the analysis and processing of customer service, and the first storage system or the second storage system can be accessed or updated by network
User data in system.Wherein, application server can be by sending data to the first storage system or the second storage system
Write request, data are written in the first storage system or the second storage system.Application server can be by depositing to first
Perhaps the second storage system sends data read request to read number from the first storage system or the second storage system to storage system
According to.
First storage system is main storage system, and the second storage system is from storage system;Alternatively, the first storage system is
From storage system, the second storage system is main storage system.Wherein, main storage system is application server master under normal circumstances
The storage system to be accessed is the another of preservation user data from storage system for saving a copy data of user data
The storage system of one copy data.On this basis, application server passes through main path (i.e. application server and primary storage system
Path between system) access main storage system, and pass through backup path (i.e. application server and from the road between storage system
Diameter) it accesses from storage system.Under normal conditions, the request of data (data write request/data read request) of application server can lead to
Main path access main storage system is crossed, in the case where main path is obstructed, the request of data of application server (data write request/
Data read request) it can be accessed by backup path from storage system.
In main storage system and from, there is also mirror-image channels, which is synchronization counterpart data between storage system
Designated lane.For example, corresponding number is being locally stored after main storage system receives the data write request that application server is initiated
According to, and data write request is synchronized to from storage system by the mirror-image channels.It is same that main storage system is received from storage system
The data write request of step is being locally stored corresponding data, and is notifying main storage system synchronized complete by the mirror-image channels
At.After main storage system determines main storage system and completes data write request from storage system, it will confirm that and return to using clothes
Business device.
As shown in figure 3, virtual arbitration device itself is pure software publication, persistent storage medium, Ke Yian are not needed
On third party device.Third party device is the host system of virtual arbitration device, virtual arbitration device can be mounted on
On third party device, the third party for being used as Remote Switched Port Analyzer exists, and third party device itself can be server, be also possible to
Virtual machine is also possible to high availability cluster.
Wherein, the status information of main storage system is obtained by using virtual arbitration device and believed from the state of storage system
Breath, and in Installed System Memory therefore the status information of caching main storage system and the status information from storage system work as primary storage
System and from when occurring fissure problem between storage system, can be got from third party device main storage system state believe
Breath and the status information from storage system so as to make correct ruling realize the fault recovery of automation, and can protect
Card business is not interrupted.
Wherein, since virtual arbitration device itself is pure software publication, virtual arbitration device can be disposed flexibly
On various types of third party devices, such as virtual arbitration device can be deployed on high availability cluster (such as linux HA).
When virtual arbitration device is deployed in high availability cluster, it will be able to the characteristic for utilizing high availability cluster well, so that empty
Quasi- arbitration device itself has high availability.
Wherein, since virtual arbitration device can be deployed on third party device, virtual arbitration device has actively
Processing capacity, such as program capability and computing capability, moreover, virtual arbitration device preserves the status information of storage system.Base
In this, virtual arbitration device can extend the function of itself, by analyzing the status information of storage system to provide more the
Tripartite's function, such as auto-alarming etc..
Wherein, virtual arbitration device also has ill-mannered step response.Specifically, virtual arbitration device can cache primary storage system
The status information of system and status information from storage system, but the not status information of these main storage systems of persistence and from storage
The status information of system, therefore, when the restarting of virtual arbitration device, virtual arbitration device can obtain again and cache master
The status information of storage system and status information from storage system.Therefore, virtual arbitration device itself is stateless, is owned
The status information of caching is all derived from main storage system and from storage system, is not in the inconsistent problem of status information.
Based on above-mentioned application scenarios, the management method of the network store system proposed in the embodiment of the present invention can be applied
On virtual arbitration device, and the virtual arbitration device can be deployed on third party device, as shown in figure 4, the network storage
The management method of system can specifically include following steps:
Step 401, the first state information of the first storage system and the second status information of the second storage system are obtained.Its
In, which can include but is not limited to the health status of the first storage system, the coherency state of mirror image data.
Second status information can include but is not limited to the health status of the second storage system, the coherency state of mirror image data.Into
One step, the health status of the first storage system can be unhealthy for the first storage system health or the first storage system.The
The health status of two storage systems can be unhealthy for the second storage system health or the second storage system.Mirror image data
Coherency state can be with are as follows: 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 state information of the first storage system and the second state of the second storage system are obtained
The process of information can specifically include but be not limited to such as under type:
Mode one, after virtual arbitration device and the first storage system establish connection, virtual arbitration device can receive
First storage system periodically (sending cycle can be selected arbitrarily based on practical experience) is synchronized to virtual arbitration device
First state information, and by the first state information preservation in Installed System Memory.In addition, being in virtual arbitration device and the second storage
After the vertical connection of construction in a systematic way, virtual arbitration device can receive the second storage system, and periodically (sending cycle can be according to practical warp
Test any selection) the second status information synchronized to virtual arbitration device, and second status information is stored in system
Memory.
Mode two, after virtual arbitration device and the first storage system establish connection, virtual arbitration device can be with the period
Property (sending cycle can be selected arbitrarily based on practical experience) to the first storage system request first state information, by first storage
System returns to the first state information;Virtual arbitration device receives the first state information that the first storage system returns, and will
The first state information preservation is in Installed System Memory.In addition, after virtual arbitration device and the second storage system establish connection, it is empty
Quasi- arbitration device can periodically (sending cycle can be selected arbitrarily based on practical experience) to the second storage system request second
Status information returns to second status information by the second storage system;Virtual arbitration device receives what the second storage system returned
Second status information, and second status information is stored in Installed System Memory.
Mode three, on the basis of mode one or mode two, if virtual arbitration device (can basis in preset time
Practical experience is configured) in do not receive the first state information from the first storage system, then can update the first storage
It is unhealthy to be such as revised as the first storage system by the first state information of system for the first state information of first storage system.Such as
The virtual arbitration device of fruit does not receive the second status information from the second storage system within a preset time, then can update
Second status information of the second storage system is such as revised as the second storage system and is not good for by the second status information of two storage systems
Health.
Step 402, the fault condition of network store system is determined using first state information and the second status information.Example
Such as, when the health status in first state information is that the first storage system is unhealthy, it is determined that the in network store system
One storage system breaks down.When the health status in the second status information is that the second storage system is unhealthy, it is determined that net
The second storage system in network storage system breaks down.When the health status in first state information is strong for the first storage system
Health, and the health status in the second status information is the second storage system health, and the first storage system is reported and can not be perceived
The information of second storage system, when the second storage system also reports the information that can not perceive the first storage system, it is determined that the
Mirror-image channels between one storage system and the second storage system break down.
Step 403, when fault condition is that there are when failure, then utilize the fault condition to determine to work as premise for network store system
Storage system for data request service is the first storage system or the second storage system.
In the embodiment of the present invention, determine that the current storage system for providing data request service is first to deposit using fault condition
The process of storage system or the second storage system can specifically include but be not limited to following situation:
Situation one, when fault condition be the first storage system break down when, then virtual arbitration device can use the event
Hinder situation and determine that the current storage system for providing data request service is the second storage system, and the second storage system is notified to provide
Data request service, and refuse request of data being synchronized to the first storage system.Alternatively, when fault condition is the second storage system
When breaking down, then virtual arbitration device can use fault condition and determine that the current storage system for providing data request service is
First storage system, and notify the first storage system to provide data request service, and request of data is synchronized to second and deposited by refusal
Storage system.
Situation two breaks down when mirror-image channels of the fault condition between the first storage system and the second storage system
When, then virtual arbitration device can use fault condition and determine that the current storage system for providing data request service is the first storage
System, and notify the first storage system to provide data request service, and refuse request of data being synchronized to the second storage system, and
The pause of the second storage system is notified to provide data request service.Alternatively, when fault condition is the first storage system and the second storage
When mirror-image channels between system break down, then virtual arbitration device can use fault condition and determine that the current data that provide are asked
The storage system for asking service is the second storage system, and notifies the second storage system to provide data request service, and refusal will count
It is synchronized to the first storage system according to request, and the pause of the first storage system is notified to provide data request service.
Situation three breaks down when mirror-image channels of the fault condition between the first storage system and the second storage system
When, if the path between the first storage system and virtual arbitration device is also broken down, virtual arbitration device be can use
Fault condition determines that the current storage system for providing data request service is the second storage system, and notifies second storage system
Data request service is provided, and refuses request of data being synchronized to the first storage system.Alternatively, when fault condition is the first storage
When mirror-image channels between system and the second storage system break down, if between the second storage system and virtual arbitration device
Path also break down, then virtual arbitration device, which can use fault condition and determine, current provides the storage of data request service
System is the first storage system, and notifies the first storage system to provide data request service, and request of data is synchronized to by refusal
Second storage system.Further, when path fails between the first storage system and virtual arbitration device, then first
Storage system can also automatic pause provide data request service, that is, hang up the first storage system;In the second storage system and virtually
When path fails between arbitration device, the second storage system can also automatic pause data request service is provided, that is, hang up
Second storage system.
In the embodiment of the present invention, when network store system is there are when failure, virtual arbitration device can also generate alarm and disappear
Breath, and send alarm information;Wherein, the failure of network store system includes: that the first storage system breaks down or second deposits
Storage system breaks down perhaps the first storage system and the second storage system breaks down or the first storage system and second
Mirror-image channels between storage system break down.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, by disposing virtual arbitration device on third party device, by
Virtual arbitration device determines that the current storage system for providing data request service is the first storage system or the second storage system,
To can choose a storage system to provide data request service, in same a period of time when network store system breaks down
Between, it is the problem of application server provides data request service there is no two storage systems, there will not be two and deposit
Not the problem of storage system for application server does not provide data request service.Therefore, it under aforesaid way, does not need manually to suspend
Main storage system or data request service from storage system, avoid business from interrupting, and reduce manual operation, avoid artificial
Operate bring erroneous human behavior.Furthermore, it is possible to solve the problems, such as the fissure in Remote Switched Port Analyzer, the fault recovery of automation is provided
Function, the duplicate protection that the business that provides is not interrupted, data are not lost.
Below in conjunction with specific application scenarios, the above-mentioned technical proposal of the embodiment of the present invention is described in detail.In order to
Facilitate description, in subsequent several application scenarios of the embodiment of the present invention, using the first storage system as main storage system, and the
Two storage systems are to be illustrated for storage system.
Application scenarios 1, main storage system are believed according to period regular hour to the state that virtual arbitration device sends itself
Breath, which can be main storage system health, and mirror image data is consistent.In addition, from storage system according to it is certain when
Between the period send itself status information to virtual arbitration device, which can be for from storage system health, and mirror image
Data are consistent.Virtual arbitration device, can be by state after receiving and coming primary storage system and status information from storage system
Information preservation forms the status log of storage system in Installed System Memory.When a failure occurs it, virtual arbitration device can pass through
Status log is analyzed, the current state of network store system is obtained, it can knows a failure where occurs.
Application scenarios 2, as shown in figure 5, the schematic diagram to break down for main storage system.
When main storage system breaks down, virtual arbitration device will be unable to receive within a preset time to carry out autonomic storage
The status information of system, therefore, it is unhealthy that the status information of main storage system is revised as main storage system by virtual arbitration device.
It moreover, when main storage system breaks down, main storage system and can also be interrupted from the communication between storage system, be from storage
It unites and determines main storage system and unavailable from the mirror-image channels between storage system, and send inquiry main memory to virtual arbitration device
The message of storage system state.
Virtual arbitration device is after the message for receiving inquiry main storage system state, based on the state day in Installed System Memory
Will, since the status information of main storage system is that main storage system is unhealthy, virtual arbitration device determines network storage
Main storage system in system breaks down.Later, virtual arbitration device can use fault condition and determine current offer data
The storage system of request service is and to notify to provide data request service from storage system, and refuse data from storage system
Request is synchronized to main storage system.
From storage system when knowing that main storage system breaks down, the storage system of current offer data request service is determined
System is this from storage system, and provides data request service, and refuses request of data being synchronized to main storage system.In addition, from
Status information is synchronized to virtual arbitration device by storage system, in the status information, health status be from storage system health,
But the coherency state of mirror image data is that mirror image data is inconsistent.Virtual arbitration device is being received since storage system
After status information, by from the state information updating of storage system into Installed System Memory.In subsequent processes, virtual arbitration dress
Setting can know that the mirror image data of main storage system and the mirror image data from storage system are not consistent.
Application scenarios 3, as shown in fig. 6, the schematic diagram to break down for mirror-image channels.
When main storage system and when breaking down from the mirror-image channels between storage system, the health status of main storage system
Be health from the health status of storage system for health, but due to main storage system without normal direction from storage system synchrodata,
And from storage system without normal direction main storage system synchrodata, therefore, main storage system, which reports, can not be perceived from storage system
Information, the information that can not perceive main storage system is also reported from storage system.Based on this, due to main storage system and from depositing
Storage system is at active state, but data cannot synchronize (mirror-image channels disconnection), and therefore, virtual arbitration device can determine
It main storage system and breaks down out from the mirror-image channels between storage system.
Based on this, virtual arbitration device can use the storage system that fault condition determines current offer data request service
It is main storage system, and main storage system is notified to provide data request service, and notifies main storage system refusal by request of data
It is synchronized to from storage system.In addition, virtual arbitration device, which also needs to notify to suspend from storage system, provides data request service, by
This is hung up from storage system from storage system.
Main storage system when knowing main storage system and breaking down from the mirror-image channels between storage system, work as by determination
The preceding storage system for providing data request service is main storage system, and provides data request service, and is refused request of data
It is synchronized to from storage system.Status information is synchronized to virtual arbitration device by main storage system, in the status information, healthy shape
State is main storage system health, but the coherency state of mirror image data is that mirror image data is inconsistent.Virtual arbitration device is connecing
It receives after carrying out the status information of primary storage system, by the state information updating of main storage system into Installed System Memory.Subsequent
In treatment process, it can know that the mirror image data of main storage system and the mirror image data from storage system are not consistent.
From storage system when knowing main storage system and breaking down from the mirror-image channels between storage system, determination is worked as
The preceding storage system for providing data request service is main storage system, and suspends offer data request service, hangs up this from storage
System.Further, it is synchronized to virtual arbitration device from storage system by status information, in the status information, health status
It is healthy from storage system, but the coherency state of mirror image data is that mirror image data is inconsistent.Virtual arbitration device is receiving
Arrive after the status information of storage system, by from the state information updating of storage system into Installed System Memory.At subsequent place
During reason, it can know that the mirror image data of main storage system and the mirror image data from storage system are not consistent.
Application scenarios 4, as shown in fig. 7, the schematic diagram to break down for mirror-image channels and arbitration path.
When main storage system and when breaking down from the mirror-image channels between storage system, the health status of main storage system
Be health from the health status of storage system for health, but due to main storage system without normal direction from storage system synchrodata,
And from storage system without normal direction main storage system synchrodata, therefore, main storage system, which reports, can not be perceived from storage system
Information, the information that can not perceive main storage system is also reported from storage system.Based on this, due to main storage system and from depositing
Storage system is at active state, but data cannot synchronize (mirror-image channels disconnection), and therefore, virtual arbitration device can determine
It main storage system and breaks down out from the mirror-image channels between storage system.
If the arbitration path between main storage system and virtual arbitration device breaks down, virtual arbitration device can be with
The arbitration path is perceived to break down.Based on this, virtual arbitration device can use fault condition and determine current offer data
The storage system of request service is and to notify to provide data request service from storage system, and notify from storage from storage system
Request of data is synchronized to main storage system by system refusal.
From storage system when knowing main storage system and breaking down from the mirror-image channels between storage system, determination is worked as
The preceding storage system for providing data request service is and to provide data request service from storage system, and refuse request of data
It is synchronized to main storage system.It is synchronized to virtual arbitration device from storage system by status information, in the status information, healthy shape
State is healthy from storage system, but the coherency state of mirror image data is that mirror image data is inconsistent.Virtual arbitration device is connecing
Receive after the status information of storage system, by from the state information updating of storage system into Installed System Memory.Subsequent
In treatment process, it can know that the mirror image data of main storage system and the mirror image data from storage system are not consistent.
Since main storage system cannot be communicated with virtual arbitration device, can not be communicated with from storage system, therefore, main memory
Storage system can suspend offer data request service, and voluntarily hang up this main storage system.
Under above-mentioned each application scenarios, data request service may include: the service of data write request and data read request clothes
Business, and request of data may include: data write request and data read request.
Application scenarios 5, as shown in figure 8, being the deployment schematic diagram of virtual arbitration device.Virtual arbitration device itself is a
Software is interacted by network and main storage system/from storage system.Wherein, virtual arbitration device can use various sides
Formula deployment, and by disposing virtual arbitration device on high availability cluster, it will be able to cluster features are utilized well, make void
Quasi- arbitration device itself has high availability.
Application scenarios 6, as shown in figure 9, the schematic diagram of the alarm function for the extension of virtual arbitration device.Quasi- arbitration device sheet
Body is software mode, has program capability and computing capability, and therefore, virtual arbitration device is in addition to saving main memory as third party
The status information of storage system and except the status information of storage system can also utilize the active meter of virtual arbitration device itself
Calculation ability extends the function of virtual arbitration device.For example, when main storage system and when breaking down from storage system, entirely
Network store system has been paralysed, and can be perceived main storage system in time due to virtual arbitration device and be sent out from storage system
Therefore alarm information can be generated, and notify maintenance personnel in a manner of mail or short message etc., so that maintenance personnel in raw failure
It is instantly obtained the message of storage system failure, takes counter-measure at the first time.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, by disposing virtual arbitration device on third party device, by
Virtual arbitration device determines that the current storage system for providing data request service is the first storage system or the second storage system,
To can choose a storage system to provide data request service, in same a period of time when network store system breaks down
Between, it is the problem of application server provides data request service there is no two storage systems, there will not be two and deposit
Not the problem of storage system for application server does not provide data request service.Therefore, it under aforesaid way, does not need manually to suspend
Main storage system or data request service from storage system, avoid business from interrupting, and reduce manual operation, avoid artificial
Operate bring erroneous human behavior.Furthermore, it is possible to solve the problems, such as the fissure in Remote Switched Port Analyzer, the fault recovery of automation is provided
Function, the duplicate protection that the business that provides is not interrupted, data are not lost.
Based on inventive concept same as the above method, additionally provided in the embodiment of the present invention a kind of for network storage system
The virtual arbitration device of reason under the overall leadership, the virtual arbitration device can be deployed on third party device, which can be with
By software realization, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, it is patrolled as one
Device in volume meaning is by the processor of the third party device where it by computer corresponding in nonvolatile memory
Program instruction is read into memory what operation was formed.It is proposed by the present invention virtual secondary as shown in Figure 10 for hardware view
Cut out device where third party device a kind of hardware structure diagram, in addition to processor shown in Fig. 10, network interface, memory and
Outside nonvolatile memory, third party device can also include other hardware, such as be responsible for the forwarding chip of processing message;From hard
From part structure, which is also possible to be distributed apparatus, may include multiple interface cards, so as in hardware view
Carry out the extension of Message processing.
It as shown in figure 11, is the structure chart of the virtual arbitration device proposed by the present invention for network store system management,
The virtual arbitration device is deployed on third party device, and the virtual arbitration device includes:
Module 11 is obtained, for obtaining the first state information of the first storage system and the second state of the second storage system
Information;Determining module 12, for determining network store system using the first state information and second status information
Fault condition;Processing module 13, for when the fault condition is the network store system there are when failure, then using described
Fault condition determines that the current storage system for providing data request service is first storage system or second storage
System.
The acquisition module 11, specifically in the first state information and the second storage system for obtaining the first storage system
The process of the second status information receive institute after the virtual arbitration device and first storage system establish connection
State the first state information that the first storage system is periodically synchronized to the virtual arbitration device, and by the first state
Information preservation is in Installed System Memory;After the virtual arbitration device and second storage system establish connection, described in reception
The second status information that second storage system is periodically synchronized to the virtual arbitration device, and second state is believed
Breath is stored in Installed System Memory;Alternatively, after the virtual arbitration device and first storage system establish connection, periodically
First state information is requested to first storage system, first state information is returned to by the first storage system, and by described the
One status information is stored in Installed System Memory;After the virtual arbitration device and second storage system establish connection, week
Phase property requests the second status information to second storage system, returns to the second status information by the second storage system, and by institute
It states the second status information and is stored in Installed System Memory;Alternatively, if not received within a preset time from first storage system
The first state information of system updates the first state information of first storage system;If do not received within a preset time
The second status information from second storage system updates the second status information of second storage system.
The processing module 13, specifically for determining depositing for current offer data request service using the fault condition
During storage system is first storage system or second storage system,
When the fault condition is that the first storage system breaks down, current offer number is determined using the fault condition
Storage system according to request service is second storage system, and second storage system is notified to provide request of data clothes
Business, and refuse request of data being synchronized to first storage system;Alternatively, when the fault condition is the second storage system hair
When raw failure, determine that the current storage system for providing data request service is that first storage is using the fault condition
System, and notify first storage system to provide data request service, and refuse for request of data to be synchronized to second storage
System;Alternatively,
When mirror-image channels of the fault condition between the first storage system and the second storage system break down, benefit
It determines that the current storage system for providing data request service is the first storage system with the fault condition, and notifies described first
Storage system provides data request service, and refuses request of data being synchronized to second storage system, and notifies described the
The pause of two storage systems provides data request service;Alternatively, determining current offer data request service using the fault condition
Storage system be the second storage system, and notify second storage system to provide data request service, and refuse data
Request is synchronized to first storage system, and the first storage system pause is notified to provide data request service;Alternatively,
When mirror-image channels of the fault condition between the first storage system and the second storage system break down, such as
Path fails between the first storage system of fruit and virtual arbitration device then determine current provide using the fault condition
The storage system of data request service is the second storage system, and second storage system is notified to provide data request service,
And request of data is synchronized to first storage system by refusal;If the road between the second storage system and virtual arbitration device
Diameter breaks down, then determines that the current storage system for providing data request service is the first storage system using the fault condition
System, and notify first storage system to provide data request service, and refuse for request of data to be synchronized to second storage
System;Wherein, when path fails between the first storage system and virtual arbitration device, the first storage system meeting
Automatic pause provides data request service;When path fails between the second storage system and virtual arbitration device, institute
Stating the second storage system can automatic pause offer data request service.
In the embodiment of the present invention, the processing module 13 is also used to then give birth to when the network store system is there are when failure
At alarm information, and send the alarm information;Wherein, the failure of the network store system includes: first storage system
System breaks down, alternatively, second storage system breaks down, alternatively, first storage system and second storage
System jam, alternatively, the mirror-image channels between first storage system and second storage system break down.
The first state information includes the health status of first storage system, the coherency state of mirror image data;
Second status information includes the health status of second storage system, the coherency state of mirror image data;Described first
Storage system is main storage system, and second storage system is from storage system;Alternatively, first storage system is from depositing
Storage system, the second storage system are main storage system.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close
And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which is stored in a storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment,
Module or process in attached drawing are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.The embodiments of the present invention
Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability
What the technical staff in domain can think variation should all fall into protection scope of the present invention.