CN107526660A - A kind of more controls store implicit ALUA implementation method and device - Google Patents
A kind of more controls store implicit ALUA implementation method and device Download PDFInfo
- Publication number
- CN107526660A CN107526660A CN201710791698.7A CN201710791698A CN107526660A CN 107526660 A CN107526660 A CN 107526660A CN 201710791698 A CN201710791698 A CN 201710791698A CN 107526660 A CN107526660 A CN 107526660A
- Authority
- CN
- China
- Prior art keywords
- volume group
- master control
- control
- switching
- sums
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2089—Redundant storage control functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses the implementation method and device that a kind of more controls store implicit ALUA, this method includes:The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and it is total based on the IO that each volume group of IO Information Statistics corresponds to master control with secondary control receives, and wherein controller includes master control corresponding with each volume group respectively and pair control;If judging, the difference for the IO sums that the IO sums master control corresponding with the volume group that certain pair control corresponding to any volume group receives receives is more than predetermined threshold value, it is determined that the volume group is switching volume group;Secondary control that the difference of the IO sums received in secondary control corresponding to switching volume group and the IO sums of master control reception is more than to predetermined threshold value switches to the new master control for switching volume group, the work that the master control as corresponding to switching volume group is completed in the new master control should be completed.Above-mentioned technical proposal disclosed by the invention, IO is handled as far as possible by the master control of the volume group, reduce the decline of IO performances, improve IO performances.
Description
Technical field
The present invention relates to technical field of memory, more specifically to a kind of implicit ALUA of more control storages implementation method
And device.
Background technology
More control storages can realize the redundancy of controller, eliminate the Single Point of Faliure of controller.It is all in more control storages
Controller can physically realize the access to back-end physical equipment (such as disk), but logically, each controller pair
The access of back-end physical equipment is limited by the selection of front controller strategy.Wherein, front controller strategy is divided into AA
(Symmetric Active/Active, symmetrical activity/activity), AP (Active/Passive, activity/passive), ALUA
(Asymmetric Active/Active, asymmetric activity/activity) Three models.AA patterns are optimal pattern, still
Implement relatively difficult, ap mode can not play the efficiency of hardware device to greatest extent, and ALUA patterns are modern storage plants
A kind of main way of the business on controller multipath strategy.
ALUA implementation be generally divided into it is explicit and implicit, wherein, be implicitly transmission switch type based on port and
Internal logic unit accesses configuration and organized, it is not necessary to sends " REPORT TARGET PORT by client
" SET TARGET PORT GROUPS " orders are organized GROUPS " and, and perceive IO by storage end
(Input/Output, input/output) performance.For implicit ALUA, relative to one in multiple controllers of storage
All exist for Lun (Logic unit number, LUN, i.e., the logical volume after mapping) master control and secondary control (
I.e. non-master control), port set state is optimized (optimization) wherein corresponding to master control, and port set state corresponding to pair control is
Non-optimized (unoptimizable), IO can pass through the path that port set state is optimized and directly Lun conducted interviews,
And when IO conducts interviews by the path that port set state is non-optimized to Lun, corresponding secondary control can be by I/O request
The master control for being transmitted to the Lun is handled, and this will result in the decline of IO performances, makes the competitiveness of product reduce.
In summary, exist in the implicit ALUA of prior art and IO is transmitted to master control and handled and the property brought by pair control
The problem of failing.
The content of the invention
In view of this, it is an object of the invention to provide the implementation method and device that a kind of more controls store implicit ALUA, with solution
IO is controlled by pair present in certainly implicit ALUA and is transmitted to the problem of master control is handled and brings performance degradation.
To achieve these goals, the present invention provides following technical scheme:
A kind of more controls store implicit ALUA implementation method, including:
The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and it is each based on the IO Information Statistics
Volume group corresponds to the IO sums that master control and secondary control receive, wherein the controller include master control corresponding with each volume group respectively and
Pair control;
If judge the IO that the IO sums master control corresponding with the volume group that certain pair control corresponding to any volume group receives receives
The difference of sum is more than predetermined threshold value, it is determined that the volume group is switching volume group;
The difference for the IO sums that the IO sums received in secondary control corresponding to the switching volume group are received with master control is more than pre-
If the secondary control of the one of threshold value switches to the new master control of the switching volume group, the master control as corresponding to the switching volume group is completed in the new master control
The work that should be completed.
Preferably, the IO information for being sent to each volume group for obtaining each controller monitoring and obtaining, including:
The IO information for being sent to each volume group that the controller monitoring that each controller is sent obtains is obtained, wherein each
The IO information that what the controller monitoring obtained be sent to each volume group includes:What each controller monitoring obtained is presetting
The IO information of each volume group is sent in time interval.
Preferably, the IO information for being sent to each volume group for obtaining each controller monitoring and obtaining, including:
Obtain the IO letters for including each controller corresponding to each volume group and receiving that each controller monitoring obtains
Breath, wherein the IO information for including each controller corresponding to each volume group and receiving that each controller monitoring obtains
Including:Each controller monitoring is sent to the IO information of each volume group within a preset time interval, and with other institutes
State the IO information for interacting and being obtained after collecting that controller carries out IO information.
Preferably, the difference of the IO sums IO sums received corresponding to the switching volume group received with master control is more than pre-
If the secondary control of the one of threshold value switches to the new master control of the switching volume group, including:
When secondary control corresponding to the switching volume group is one, then pair control is switched to the new master of the switching volume group
Control;
When secondary control corresponding to the switching volume group is multiple, then by the IO sums received corresponding to the switching volume group most
Big secondary control switches to the new master control of the switching volume group.
Preferably, it is more than in the difference for the IO sums for receiving the IO sums received corresponding to the switching volume group with master control
Before the secondary control of the one of predetermined threshold value switches to the new master control of the switching volume group, in addition to:
Secondary control with the switching volume group does not switch to the corresponding master control of new master control foregoing description switching volume group to hold consultation,
After consulting successfully, determine that the difference for the IO sums that the IO sums received in the switching volume group receive with master control is more than default threshold
The secondary control of the one of value is the new master control for switching volume group.
Preferably, the corresponding master control of new master control foregoing description switching volume group is not switched in the secondary control with the switching volume group
After consulting successfully, in addition to:
The IO sums for receiving the IO sums received corresponding to the switching volume group with master control are sent to each controller
Difference be more than predetermined threshold value a secondary control switch to the switching volume group new master control message, to indicate each controller
The processing that IO information is corresponded to the switching volume group is realized based on the message.
Preferably, it is more than in the difference for the IO sums for receiving the IO sums received corresponding to the switching volume group with master control
After the secondary control of the one of predetermined threshold value switches to the new master control of the switching volume group, in addition to:
If explicit ALUA behavior is supported at All hosts end corresponding to the storage end where each controller, to every
The difference that the individual host side sends the IO sums for receiving the IO sums received corresponding to the switching volume group with master control is more than
The secondary control of the one of predetermined threshold value switches to the asynchronous notifications of the new master control of the switching volume group, so that each host side determines IO
Path to where the new master control to the switching volume group.
A kind of more controls store implicit ALUA realization device, including:
Acquisition module, it is used for:The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and based on described
The each volume group of IO Information Statistics corresponds to the IO sums that master control and secondary control receive, wherein the controller is included respectively at each volume
Master control corresponding to group and secondary control;
Determining module, it is used for:If judging, the IO sums that certain pair control corresponding to any volume group receives are corresponding with the volume group
The difference for the IO sums that master control receives is more than predetermined threshold value, it is determined that the volume group is switching volume group;
Handover module, it is used for:The IO sums and the IO of master control reception that are received in secondary control corresponding to the switching volume group is total
The secondary control that several differences is more than predetermined threshold value switches to the new master control for switching volume group, and the switching is completed by the new master control
The work that master control corresponding to volume group should be completed.
Preferably, the acquisition module includes:
First acquisition unit, it is used for:Obtain that the controller monitoring that each controller is sent obtains is sent to each volume
The IO information of group, wherein the IO information for being sent to each volume group that each controller monitoring obtains includes:Each control
What device processed monitored to obtain is sent to the IO information of each volume group within a preset time interval.
Preferably, the acquisition module includes:
Second acquisition unit, it is used for:Including of obtaining that each controller monitoring obtains is each described corresponding to each volume group
The IO information that controller receives, wherein each volume group that includes that each controller monitoring obtains is sent to each control
The IO information of device processed includes:Each controller monitoring is sent to the IO letters of each volume group within a preset time interval
Breath, and carry out with controller other described the IO information for interacting and obtaining after collecting of IO information.
A kind of more controls provided by the invention store implicit ALUA implementation method and device, and wherein this method includes:Obtain
What each controller monitoring obtained is sent to the IO information of each volume group, and corresponds to master control based on each volume group of the IO Information Statistics
The IO sums received with secondary control, wherein the controller includes master control corresponding with each volume group respectively and secondary control;If judge
The difference for taking the post as the IO sums that the IO sums master control corresponding with the volume group that certain pair control corresponding to a roll of group receives receives is more than
Predetermined threshold value, it is determined that the volume group is switching volume group;By the IO sums received in secondary control corresponding to the switching volume group and master control
The secondary control that the difference of the IO sums of reception is more than predetermined threshold value switches to the new master control for switching volume group, complete by the new master control
The work that should be completed into master control corresponding to the switching volume group.Above-mentioned technical proposal disclosed in the present application, by obtaining each control
The each volume group of IO Information Statistics for each volume group that what device monitored to obtain be sent to corresponds to the IO sums that master control and secondary control receive, when
It is pre- to judge that the IO sums that certain pair control corresponding to any volume group the receives difference total with the IO that corresponding master control receives is more than
If during threshold value, then the secondary control of IO sums and the difference of the IO sums of master control reception more than predetermined threshold value received the volume group is cut
It is changed to the new master control of the volume group so that IO is handled by the new master control of the volume group as far as possible, reduces the pair by volume group by IO
The IO performance degradations for being transmitted to master control and bringing are controlled, significantly improve IO performances, improve the competitiveness of product.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart for the implementation method that a kind of more controls provided in an embodiment of the present invention store implicit ALUA;
Fig. 2 is the structural representation for the realization device that a kind of more controls provided in an embodiment of the present invention store implicit ALUA.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 shows that a kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method
For flow chart, it is necessary to illustrate, the executive agent of the technical scheme provided in the embodiment of the present invention can be the corresponding present invention
A kind of more controls that embodiment provides store implicit ALUA realization devices, and the device can be arranged on depositing where controller
In Chu Duan some device.Therefore, the executive agent of above-mentioned technical proposal provided in an embodiment of the present invention can also be above-mentioned deposits
Chu Duan some device, such as storage end processor, carried out by storage end processor of executive agent in the embodiment of the present application
Explanation.The above method provided in an embodiment of the present invention can include:
S11:The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and it is each based on IO Information Statistics
Volume group corresponds to the IO sums that master control and secondary control receive, and wherein controller includes master control corresponding with each volume group and pair respectively
Control.
Each volume group of storage end has each master control corresponding to difference and secondary control, and volume group can pass through corresponding master control
Controlled with pair and receive IO information, corresponding master control and secondary control can monitor the IO information that corresponding volume group receives in real time, and monitor
Prefixed time interval can be set previously according to being actually needed, wherein, master control corresponding to each volume group and secondary control are receiving
During IO information, the IO information at current time can include all IO that identical control receives, i.e. current time IO letters
Breath can correspond to one or more IO.When each controller monitoring obtains being sent to the IO information of each volume group in prefixed time interval
Afterwards, the IO information that monitoring obtains is sent to storage end processor.
After what each controller monitoring of storage end processor acquisition obtained is sent to the IO information of each volume group, based on IO information
Each volume group is counted respectively and corresponds to the IO sums that master control and secondary control receive, and detailed process can be:It is corresponding for any volume group
Master control, is wrapped in the total and each IO information of IO information received in storage end processor statistics prefixed time interval
The IO number contained, IO number included in all IO information that master control corresponding to the obtained volume group is received are added,
IO that master control corresponding to obtaining the volume group receives sum, count the modes of the IO sums that secondary control corresponding to the volume group receives with
This principle is identical, untill having counted each volume group and having corresponded to the IO sums that master control and secondary control receive.It is of course also possible to there is it
His mode based on IO Information Statistics IO sums, these modes are within protection scope of the present invention.
S12:If judging, the IO sums master control corresponding with the volume group that certain pair control corresponding to any volume group receives receives
IO sum difference be more than predetermined threshold value, it is determined that the volume group for switch volume group.
After counting each volume group and corresponding to the IO sums that master control and secondary control receive, it can be determined that corresponding to each volume group
Whether the difference of the total IO sums received with corresponding master control of the IO that receives of pair control is more than setting previously according to being actually needed
A fixed positive-valued threshold or 0 (i.e. predetermined threshold value such as can be 0,1), and certain pair control connects corresponding to any volume group if judging
The difference for the IO sums that the IO sums master control corresponding with the volume group received receives is more than predetermined threshold value, then shows the now volume group
The IO sums that the control of the corresponding pair receives be greater than the volume group corresponding to the IO sums that receive of master control, and the quantity being more than is more
In predetermined threshold value, further demonstrate that the quantity that now IO is transmitted to master control by secondary control is relatively more, can now cause declining for IO performances
Move back, wherein representing the index of IO performances can be:IOPS (IO Per Second), i.e. I/O system performed I/O operation per second
Number;In order to reduce the decline of IO performances, it may be determined that the volume group is switching volume group, in order to subsequently be carried out to the switching volume group
Operate to reduce the decline of IO performances.
S13:The difference for switching the total IO sums received with master control of IO received in secondary control corresponding to volume group is more than in advance
If the secondary control of the one of threshold value switches to the new master control of switching volume group, what the master control as corresponding to switching volume group is completed in the new master control should be completed
Work.
After determining to switch volume group, the IO sums and the IO sums of master control reception that corresponding reception in volume group will be switched
Difference be more than a secondary control of predetermined threshold value and switch to the new master control of switching volume group, accordingly, the secondary control of switching volume group does not switch
To switch the new secondary control that master control (i.e. former master control) corresponding to volume group is just changed into switching volume group before new master control, if switching volume group is also
In the presence of other pair controls, then this new secondary control collectively forms each new secondary control of switching volume group with the secondary control of others, realizes storage end
The intelligence of major-minor control to switching volume group switches, the work that the master control as corresponding to switching volume group is completed in the new master control should be completed, meeting
The decline of IO performances is efficiently reduced, significantly improves IO performances, improves the competitiveness of product.
In technical scheme disclosed in the present application, the IO for being sent to each volume group obtained by obtaining each controller monitoring believes
Breath counts each volume group and correspond to the IO sums that master control and secondary control receive, when judging that certain secondary controls receives corresponding to any volume group
The difference of IO sums that receives with corresponding master control of IO sums when being more than predetermined threshold value, then by the IO of volume group reception it is total and
The pair that the difference for the IO sums that master control receives is more than predetermined threshold value controls the new master control for switching to the volume group so that IO is as far as possible
Handled by the new master control of the volume group, reduce the IO performance degradations that IO is transmitted to master control and brought by the secondary control of volume group, compared with
The earth improves IO performances, improves the competitiveness of product.
Herein it should be noted that for each controller of storage end, each controller have be attached thereto it is more
Individual port, and for each controller, there is corresponding multiple logical volumes, to reduce the difficulty of monitoring and management
Degree, port can be formed to port set, logical volume composition logical volume group (i.e. volume group), wherein, port set is connected with controller, IO
Need to realize the access to volume group by the path where port set corresponding to controller, and for any one volume group and
Speech, port set state is optimized corresponding to the master control of volume group, and now paths of the IO Jing Guo port set corresponding to master control is excellent
Change path;Port set state corresponding to pair control is non-optimized, and now paths of the IO by port set corresponding to secondary control is
Unoptimizable path.Moreover, when secondary control is changed into master control corresponding to some volume group, the state of corresponding port set is just by non-
Optimized is changed into optimized, and the pathway that IO passes through just is changed into path optimizing from unoptimizable path;When corresponding to the volume group
When master control is changed into secondary control, the state of corresponding port set is just changed into non-optimized, the path that IO passes through from optimized
Also unoptimizable path is changed into from path optimizing.
The IO information that monitoring obtains is sent to storage end processor by each controller, and storage end processor obtains each controller
Monitoring obtain within a preset time interval be sent to the IO information of each volume group after, the IO information of acquisition can be stored in number
According in structure, wherein, the content that IO information includes can be:The title of volume group, the mark of the controller of reception IO information, control
The state of port set corresponding to device, monitoring are received between the timing time started of IO information, the preset time for monitoring reception IO information
Every, monitoring prefixed time interval in receive IO information sum, and each controller monitoring when can keep monitoring
Time synchronized, that is, monitor IO information when can start simultaneously at, terminate simultaneously;Data structure is deposited for storage side controller herein
Storage, a kind of mode of tissue data, refer to the collection for the data element that one or more particular kind of relationships between the IO information of acquisition be present
Close, the IO information for being sent to each volume group that each controller monitoring obtains, the data structure are saved in the data structure
A kind of and embodiment of storage intelligence.Herein it should be noted that when the once startup of the system where storage end, each controller
The monitoring of IO information to being sent to each volume group also just starts therewith, and corresponding monitoring programme can turn into a prison of the system
Finger daemon is controlled, is constantly in the state of monitoring.
In addition, after what each controller monitoring of storage end processor acquisition obtained is sent to the IO information of each volume group,
It can be sorted according to the title of volume group or mark etc. are corresponding to volume group, then count each controller corresponding to each volume group successively
The IO sums received, to avoid the situation omitted IO and repeat to count IO from occurring, can such as claim ascending according to volumegroup name
Order it is ranked up, obtain volume group 1, volume group 2 ... the volume group n quantity of volume group (n represent), it is corresponding according to volume
Group 1 to volume group n finds out the IO information that each controller corresponding to each volume group receives successively, and then is realized according to such scheme
The statistics of IO sums.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method, obtain each controller monitoring and obtain
The IO information for being sent to each volume group, can include:
The IO information for being sent to each volume group that the controller monitoring that each controller is sent obtains is obtained, wherein each
The IO information that what controller monitoring obtained be sent to each volume group includes:Each controller monitoring obtain in prefixed time interval
Inside it is sent to the IO information of each volume group.
Each controller monitoring IO information that each volume group receives within a preset time interval in storage end, then each
The IO information for being sent to each volume group that monitoring obtains is sent to storage end processor by controller so that it obtains each control
What device monitored to obtain is sent to the IO information of each volume group, the content that wherein IO information is included and the above-mentioned IO information institute referred to
Comprising content it is identical, will not be repeated here.This IO for the being sent to each volume group letters for obtaining each controller monitoring and obtaining
The mode of breath is convenient and efficient, and will not cause the waste of resource.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method, obtain each controller monitoring and obtain
The IO information for being sent to each volume group, can include:
Obtain that each controller monitoring obtains include each volume group corresponding to the IO information that receives of each controller, its
In each controller monitoring obtain include each volume group corresponding to the IO information that receives of each controller include:Each control
Device monitors the IO information for being sent to each volume group within a preset time interval, and the friendship of IO information is carried out with other controllers
The IO information mutually and after collecting obtained.
Each controller monitoring IO information that each volume group receives within a preset time interval in storage end, each control
The IO information of the IO information of monitoring and other controller monitorings is interacted and collected by device, and so each controller just obtains
The IO information that each controller corresponding to including each volume group receives, then each controller it is corresponding will to include each volume group
The IO information that receives of each controller be sent to storage end processor, it is this obtain that each controller monitoring obtains include
The mode for the IO information that each controller corresponding to each volume group receives can not need storage end processor to carry out collecting place again
Reason, and obtained IO information be more parts, can using unnecessary information as back up, in order to avoid failure when part information can not
Normal use.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method, by reception corresponding to switching volume group
The difference of IO sums that is received with master control of IO sums be more than a secondary control of predetermined threshold value and switch to the new master control of switching volume group, can
With including:
When it is one to switch pair corresponding to volume group to control, then pair control is switched to the new master control of switching volume group;
When it is multiple to switch pair corresponding to volume group to control, then it will switch the pair control of the IO sum maximums received corresponding to volume group
Switch to the new master control of switching volume group.
Each volume group corresponding secondary control may be one, it is also possible to be multiple.When the secondary control of switching volume group is one
When, because the difference for the IO sums that the IO sums master control corresponding with the switching volume group that this pair control receives receives is more than default threshold
Value, then pair control is switched to the new master control of switching volume group;When the secondary control for switching volume group is multiple, because having what secondary control received
The difference for the IO sums that the master control corresponding with the switching volume group of IO sums receives is more than predetermined threshold value, then by corresponding to switching volume group
The secondary control that the IO sums of reception are maximum switches to the new master control for switching volume group.So be advantageous to exactly be switched to switching volume group
In corresponding new master control, in order to make the IO of the switching volume group be handled as far as possible by new master control, declining for IO performances is reduced
Move back.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method, will connect corresponding to switching volume group
A secondary control of the difference for the IO sums that the IO sums of receipts receive with master control more than predetermined threshold value switches to the new master control of switching volume group
Before, can also include:
Do not switched to the secondary control of switching volume group and switch the corresponding master control of volume group before new master control and hold consultation, consulted successfully
Afterwards, it is determined that the secondary control that the difference for the IO sums that the IO sums received in switching volume group receive with master control is more than predetermined threshold value is
Switch the new master control of volume group.
Storage end processor is big in the difference for the IO sums that will switch the IO sums and master control reception received corresponding to volume group
, it is necessary to not switch to new master with the secondary control of switching volume group before a secondary control of predetermined threshold value switches to the new master control of switching volume group
Master control (i.e. former master control) corresponding to switching volume group is held consultation before control.The detailed process of negotiation can be:Storage end processor
The former master control of switching volume group is found, and it is big to switch the IO sums received corresponding to volume group the difference total with the IO that master control receives
The former master control of switching volume group is informed in the IO sums that a secondary control of predetermined threshold value is received in the prefixed time interval of monitoring, by
Switch the former master control of volume group to decide whether to agree to switch over the major-minor control for switching volume group, after former master control is agreed to, then table
It is bright to consult successfully;If former master control disagrees, show to fail to consultations.Certainly, the concrete mode of negotiation can have many kinds, this
The concrete mode consulted a bit is within protection scope of the present invention.After consulting successfully, storage side controller determines switching
The secondary control that the difference for the IO sums that IO sums and the master control received in volume group receives is more than predetermined threshold value is the new of switching volume group
Master control, the master control and each secondary control for being so advantageous to switch volume group carry out Methodistic processing to IO;If failing to consultations, store
The master control of end processor acquiescence switching volume group does not send change, and now, storage end processor can indicate to switch corresponding to volume group
Pair control reduces the IO information received, the IO sums that each secondary control of switching volume group is transmitted to master control is also reduced accordingly, makes IO
The decline of energy reduces as far as possible.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method, in the secondary control with switching volume group not
Switch to after master control corresponding to switching volume group before new master control consults successfully, can also include:
The difference that the IO sums that will switch the IO sums and master control reception received corresponding to volume group are sent to each controller is big
The message of the new master control of switching volume group is switched in a secondary control of predetermined threshold value, to indicate that each controller is based on message realization pair
Switching volume group corresponds to the processing of IO information.
After storage end processor and former master control are consulted successfully, storage end processor sends to each controller and determines switching
The secondary control that the difference for the IO sums that IO sums and the master control received in volume group receives is more than predetermined threshold value is the new of switching volume group
The message of master control, after each controller receives the message, the IO that former master control corresponding to switching volume group will receive can be stopped
The IO included in information issues to switching volume group, or the forwarding of the secondary steering original master control of each original by switching volume group, as far as possible
Ground reduces the IO performance degradation problems that IO is transmitted to master control and brought by secondary control.
Then storage end processor implements switching to master control corresponding to switching volume group and secondary control, after switching is completed, to each
Controller is sent is more than predetermined threshold value by the difference for switching the IO sums of the IO sums and master control reception received corresponding to volume group
One secondary control switches to the message of the new master control of switching volume group, wherein, entrained content can also include in the message:Switching volume
The mark of the new master control of the title, switching volume group of group is clear to indicate each controller in the IO included in receiving IO information
Need IO being transmitted to which controller is handled, to reduce the decline of IO performances.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA implementation method, will switch the reception of volume group
After a secondary control of the difference for the IO sums that IO sums receive with master control more than predetermined threshold value switches to the new master control of switching volume group,
It can also include:
If explicit ALUA behavior is supported at All hosts end corresponding to the storage end where each controller, to each master
Generator terminal is sent is more than the one of predetermined threshold value by the difference for switching the IO sums of the IO sums and master control reception received corresponding to volume group
Pair control switch to switching volume group new master control asynchronous notifications, for each host side by IO be directed to switching volume group new master control
The path at place.
If All hosts end corresponding to the storage end where each controller is supported to show ALUA behavior, rolled up in switching
After group switching is completed, storing side controller can send to each host side and will switch the IO sums received corresponding to volume group and master
Control the asynchronous notifications that a secondary control of the total differences of the IO received more than predetermined threshold value switches to the new master control of switching volume group, it is desirable to
Host side can be according to the new path optimizing and Ge Fei where the secondary control determination IO of the new master control and Ge Xin that switch volume group after switching
The information of path optimizing, wherein, it is asynchronous to refer to a kind of communication modes, it is not necessary to which that storage end processor and host side have common
Clock, start to receive notice, it is necessary to include prompting host side in the notice when storage end processor sends notice
Information.
After host side receives above-mentioned asynchronous notifications, host side switches the new master of volume group by sending after reacquisition switches
Order " the REPORT of the information of new path optimizing and each unoptimizable path where the IO that control and each new secondary control are determined
TARGET PORT GROUPS " and " SET TARGET PORT GROUPS " give storage end, after storage end receives the order,
It can will switch former master control corresponding to volume group and each former secondary control switch to new optimization road after new master control and the secondary controls of Ge Xin where IO
The information in footpath and each unoptimizable path returns to host side, and host side is handled according to the information, determines to switch volume group
Path optimizing where new master control, wherein, IO mentioned herein refers to that those needs are carried out to major-minor control corresponding to volume group
The IO included in the IO information that corresponding volume group receives during switching, so can be more excellent by the IO of overwhelming majority path
Change, can more preferable improving performance.Certainly, if host side does not support explicit ALUA behavior, host side can be ignored
The asynchronous notifications stated.
The embodiment of the present invention additionally provides the realization device that a kind of more controls store implicit ALUA, as shown in Fig. 2 can wrap
Include:
Acquisition module 11, is used for:The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and is based on IO
The each volume group of Information Statistics corresponds to the IO sums that master control and secondary control receive, and wherein controller includes corresponding respectively at each volume group
Master control and secondary control;
Determining module 12, is used for:If judging, certain pair corresponding to any volume group controls the IO sums received and the volume group pair
The difference for the IO sums that master control receives is answered to be more than predetermined threshold value, it is determined that the volume group is switches volume group;
Handover module 13, is used for:The total IO sums received with master control of IO received in secondary control corresponding to volume group will be switched
Difference be more than a secondary control of predetermined threshold value and switch to the new master control of switching volume group, as corresponding to switching volume group is completed in the new master control
The work that master control should be completed.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA realization device, and acquisition module can include:
First acquisition unit, it is used for:Obtain that the controller monitoring that each controller is sent obtains is sent to each volume
The IO information of group, wherein the IO information for being sent to each volume group that each controller monitoring obtains includes:Each controller monitoring
What is obtained is sent to the IO information of each volume group within a preset time interval.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA realization device, and acquisition module can include:
Second acquisition unit, it is used for:Including of obtaining that each controller monitoring obtains respectively controls corresponding to each volume group
The IO information that device receives, wherein each volume group that includes that each controller monitoring obtains is sent to the IO information of each controller
Including:Each controller monitoring is sent to the IO information of each volume group within a preset time interval, and with other controllers
Carry out the IO information for interacting and being obtained after collecting of IO information.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA realization device, and handover module can include:
When it is one to switch pair corresponding to volume group to control, then pair control is switched to the new master control of switching volume group;
When it is multiple to switch pair corresponding to volume group to control, then it will switch the pair control of the IO sum maximums received corresponding to volume group
Switch to the new master control of switching volume group.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA realization device, can also include:
Negotiation module, it is used for:In the difference total with the IO that master control receives by the IO sums received corresponding to volume group are switched
Before a secondary control more than predetermined threshold value switches to the new master control of switching volume group, the secondary control with switching volume group does not switch to new master control
Master control corresponding to switching volume group before is held consultation, after consulting successfully, it is determined that the IO sums received in switching volume group and master control
The secondary control that the difference of the IO sums of reception is more than predetermined threshold value is the new master control of switching volume group.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA realization device, can also include:
Sending module, it is used for:Switch the corresponding master control of volume group before the secondary control with switching volume group does not switch to new master control
After consulting successfully, the difference of the IO sums of the IO sums and master control reception received corresponding to volume group will be switched by being sent to each controller
Value is more than the secondary message for controlling the new master control for switching to switching volume group of predetermined threshold value, to indicate that it is real that each controller is based on the message
The processing of IO information is now corresponded to switching volume group.
A kind of more controls provided in an embodiment of the present invention store implicit ALUA realization device, can also include:
Notification module, it is used for:In the difference total with the IO that master control receives by the IO sums received corresponding to volume group are switched
After a secondary control more than predetermined threshold value switches to the new master control of switching volume group, if corresponding to storage end where each controller
Explicit ALUA behavior is supported at All hosts end, then sent to each host side will switch the IO sums that are received corresponding to volume group with
The difference for the IO sums that master control receives is more than the secondary asynchronous notifications for controlling the new master control for switching to switching volume group of predetermined threshold value, with
For each host side by IO be directed to switching volume group new master control where path.
The explanation of relevant portion please join in a kind of implicit ALUA of more control storages provided in an embodiment of the present invention realization device
See the detailed description of corresponding part in a kind of implicit ALUA of more control storages provided in an embodiment of the present invention implementation method, herein not
Repeat again.In addition, with corresponding to technical scheme realization principle in the prior art in above-mentioned technical proposal provided in an embodiment of the present invention
Consistent part is simultaneously unspecified, in order to avoid excessively repeat.
The foregoing description of the disclosed embodiments, those skilled in the art are enable to realize or using the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
The embodiments shown herein is formed on, and is to fit to consistent with principles disclosed herein and features of novelty most wide
Scope.
Claims (10)
1. a kind of more controls store implicit ALUA implementation method, it is characterised in that including:
The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and is based on each volume group of the IO Information Statistics
The IO sums that corresponding master control and secondary control receive, wherein the controller includes master control corresponding with each volume group and pair respectively
Control;
If judge the IO sums that the IO sums master control corresponding with the volume group that certain pair control corresponding to any volume group receives receives
Difference be more than predetermined threshold value, it is determined that the volume group for switching volume group;
The difference for the IO sums that the IO sums received in secondary control corresponding to the switching volume group are received with master control is more than default threshold
The secondary control of the one of value switches to the new master control of the switching volume group, and the master control as corresponding to the switching volume group is completed in the new master control should be complete
Into work.
2. according to the method for claim 1, it is characterised in that what each controller monitoring of acquisition obtained is sent to each
The IO information of volume group, including:
The IO information for being sent to each volume group that the controller monitoring that each controller is sent obtains is obtained, wherein each described
The IO information that what controller monitoring obtained be sent to each volume group includes:Each controller monitoring obtain in preset time
The IO information of each volume group is sent in interval.
3. according to the method for claim 1, it is characterised in that what each controller monitoring of acquisition obtained is sent to each
The IO information of volume group, including:
The IO information for including each controller corresponding to each volume group and receiving that each controller monitoring obtains is obtained, its
In the obtained IO information that each controller corresponding to each volume group receives that includes of each controller monitoring include:
Each controller monitoring is sent to the IO information of each volume group within a preset time interval, and with control other described
Device carries out the IO information for interacting and being obtained after collecting of IO information.
4. according to the method for claim 1, it is characterised in that by the IO sums received corresponding to the switching volume group and master
A secondary control of the difference more than predetermined threshold value for controlling the IO sums received switches to the new master control of the switching volume group, including:
When secondary control corresponding to the switching volume group is one, then pair control is switched to the new master control of the switching volume group;
When pair control corresponding to the switching volume group is multiple, then by the IO sum maximums received corresponding to the switching volume group
Pair control switches to the new master control of the switching volume group.
5. according to the method for claim 4, it is characterised in that will it is described switching volume group corresponding to receive IO sum with
Before a secondary control of the difference for the IO sums that master control receives more than predetermined threshold value switches to the new master control of the switching volume group, also wrap
Include:
Secondary control with the switching volume group does not switch to the corresponding master control of new master control foregoing description switching volume group to hold consultation, and consults
After success, determine that the difference for the IO sums that the IO sums received in the switching volume group receive with master control is more than predetermined threshold value
One secondary control is the new master control for switching volume group.
6. according to the method for claim 5, it is characterised in that do not switch to new master control in the secondary control with the switching volume group
After master control corresponding to foregoing description switching volume group is consulted successfully, in addition to:
The difference for the IO sums for receiving the IO sums received corresponding to the switching volume group with master control is sent to each controller
Value is more than the secondary message for controlling the new master control for switching to the switching volume group of predetermined threshold value, to indicate that each controller is based on
The message realizes the processing that IO information is corresponded to the switching volume group.
7. according to the method for claim 1, it is characterised in that will it is described switching volume group corresponding to receive IO sum with
After a secondary control of the difference for the IO sums that master control receives more than predetermined threshold value switches to the new master control of the switching volume group, also wrap
Include:
If explicit ALUA behavior is supported at All hosts end corresponding to the storage end where each controller, to each institute
State host side and send the difference by the IO sums for switching the IO sums and master control reception received corresponding to volume group more than default
The secondary control of the one of threshold value switches to the asynchronous notifications of the new master control of the switching volume group, so that IO is directed to by each host side
Path where the new master control of the switching volume group.
8. a kind of more controls store implicit ALUA realization device, it is characterised in that including:
Acquisition module, it is used for:The IO information for being sent to each volume group that each controller monitoring obtains is obtained, and is believed based on the IO
Breath counts each volume group and corresponds to the IO sums that master control and secondary control receive, wherein the controller is included respectively at each volume group pair
The master control and secondary control answered;
Determining module, it is used for:If judge the IO sums master control corresponding with the volume group that certain pair control corresponding to any volume group receives
The difference of the IO sums received is more than predetermined threshold value, it is determined that the volume group is switching volume group;
Handover module, it is used for:The IO sums that the IO sums received in secondary control corresponding to the switching volume group are received with master control
The secondary control that difference is more than predetermined threshold value switches to the new master control for switching volume group, and the switching volume group is completed by the new master control
The work that corresponding master control should be completed.
9. device according to claim 8, it is characterised in that the acquisition module includes:
First acquisition unit, it is used for:Obtain that the controller monitoring that each controller is sent obtains is sent to each volume group
IO information, wherein the IO information for being sent to each volume group that each controller monitoring obtains includes:Each controller
Monitor the obtained IO information for being sent to each volume group within a preset time interval.
10. device according to claim 8, it is characterised in that the acquisition module includes:
Second acquisition unit, it is used for:Obtain that each controller monitoring obtains includes each control corresponding to each volume group
The IO information that device receives, wherein each volume group that includes that each controller monitoring obtains is sent to each controller
IO information include:Each controller monitoring is sent to the IO information of each volume group within a preset time interval, and
The IO information for interacting and obtaining after collecting of IO information is carried out with controller other described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710791698.7A CN107526660A (en) | 2017-09-05 | 2017-09-05 | A kind of more controls store implicit ALUA implementation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710791698.7A CN107526660A (en) | 2017-09-05 | 2017-09-05 | A kind of more controls store implicit ALUA implementation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107526660A true CN107526660A (en) | 2017-12-29 |
Family
ID=60683636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710791698.7A Pending CN107526660A (en) | 2017-09-05 | 2017-09-05 | A kind of more controls store implicit ALUA implementation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107526660A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124793A (en) * | 2018-11-01 | 2020-05-08 | 中国移动通信集团浙江有限公司 | Method and system for detecting performance abnormity of disk array controller |
CN111782139A (en) * | 2020-06-17 | 2020-10-16 | 杭州宏杉科技股份有限公司 | Path switching method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130246705A1 (en) * | 2012-03-15 | 2013-09-19 | Aboubacar Diare | Balancing logical units in storage systems |
CN104991874A (en) * | 2015-07-22 | 2015-10-21 | 浪潮(北京)电子信息产业有限公司 | SCST (SCSI target subsystem for Linux) based multi-controller storage device ALUA (asymmetrical logical unit access) configuration method |
-
2017
- 2017-09-05 CN CN201710791698.7A patent/CN107526660A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130246705A1 (en) * | 2012-03-15 | 2013-09-19 | Aboubacar Diare | Balancing logical units in storage systems |
CN104991874A (en) * | 2015-07-22 | 2015-10-21 | 浪潮(北京)电子信息产业有限公司 | SCST (SCSI target subsystem for Linux) based multi-controller storage device ALUA (asymmetrical logical unit access) configuration method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124793A (en) * | 2018-11-01 | 2020-05-08 | 中国移动通信集团浙江有限公司 | Method and system for detecting performance abnormity of disk array controller |
CN111782139A (en) * | 2020-06-17 | 2020-10-16 | 杭州宏杉科技股份有限公司 | Path switching method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8612561B2 (en) | Virtual network storage system, network storage device and virtual method | |
CN100396065C (en) | A method for implementing iSCSI memory system | |
US9219701B2 (en) | Distributed method and system for implementing link aggregation control protocol (LACP) standard state machines | |
US20190222649A1 (en) | Data Processing System and Method, and Corresponding Apparatus | |
JP6004299B2 (en) | Method and apparatus for matching flow tables and switch | |
JP4511936B2 (en) | System with multiple transmission line failover, failback and load balancing | |
US8429452B2 (en) | Failover and load balancing | |
US7558883B1 (en) | Fast transaction commit | |
CN100589408C (en) | A communication network connection method and its device | |
US20100290472A1 (en) | Achieving about an equal number of active links across chassis in a virtual port-channel environment | |
EP3075101B1 (en) | Dynamically optimized many tree multicast networks | |
CN101019355A (en) | Storage switch traffic bandwidth control | |
CN107526660A (en) | A kind of more controls store implicit ALUA implementation method and device | |
EP2541852A1 (en) | Method and device for converging layer 2 multicast network | |
CA2342091A1 (en) | Modular switch with dynamic bus | |
CN104484134A (en) | Method and device for allocating distributed type storage magnetic discs | |
CN102148751B (en) | Method and device as well as network equipment for managing logical interface | |
CN109684048A (en) | The method and device of affairs is handled in affairs submission system | |
KR100563658B1 (en) | Link-aggregation device and method | |
WO2022206231A1 (en) | Kubernetes cluster load balance handling method and apparatus, and storage medium | |
WO2002082230A2 (en) | Automatic testing of redundant switching element and automatic switchover | |
CN106354436A (en) | Storage system based on distributed IPSAN | |
CN110134541A (en) | Switching method, system, equipment and the storage medium of the configuration information of storage cluster | |
CN107256184A (en) | A kind of data disaster backup method and device based on storage pool | |
CN102368711A (en) | Communication system facing parallel file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171229 |