CN106708445A - Link selection method and device - Google Patents
Link selection method and device Download PDFInfo
- Publication number
- CN106708445A CN106708445A CN201710046622.1A CN201710046622A CN106708445A CN 106708445 A CN106708445 A CN 106708445A CN 201710046622 A CN201710046622 A CN 201710046622A CN 106708445 A CN106708445 A CN 106708445A
- Authority
- CN
- China
- Prior art keywords
- link
- target
- hard disk
- identification code
- measurement period
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- 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/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0635—Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0658—Controller construction arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
Abstract
The invention provides a link selection method and device. The method includes the steps: determining states and the current usage frequency of links; determining a chain line with a normal working state and the lowest current usage frequency to serve as a target chain line; transmitting data to be transmitted to a target hard disk according to the target chain line. By the aid of the method, error-tolerant rate can be increased, the use rate and the transmission rate of the chain lines are increased, and overall reading and writing performances of a storage server are effectively improved.
Description
Technical field
The application is related to the communications field, more particularly to a kind of link selecting method and device.
Background technology
Storage server is a kind of server that can provide very big memory space, and it must have quick process chip,
Larger RAM (Random Access Memory, random access memory), and very big internal disk space, so as to
The application allotment demand that reply terminal user is likely to occur at any time.
In storage server, mainboard is typically a core for storage server design.The frame of storage server mainboard
In structure, CPU can be by SAS (Serial Attached SCSI, Serial Attached SCSI (SAS) technology) controller, FPGA (Field-
Programmable Gate Array, field programmable gate array), and SAS expander and RAID array set up and be connected, and
And can have multilink between FPGA and SAS expander.When reading and writing data is carried out, CPU will be received from I/O functional areas
Read/write I/O Request is issued to FPGA by SAS controller, and afterwards, FPGA removes FPGA according to the EIC equipment identification code mould of target hard disk
The quantity of link between SAS expander, using result of calculation as link identification, to determine Target Link, afterwards, FPGA passes through
The read/write I/O Request that the Target Link will be received is sent to SAS expander, then is issued to RAID array by SAS expander, is come
Complete corresponding read-write operation.
In above-mentioned Target Link selection course, because resulting link identification is unique, i.e., resulting target
Link is unique, and so as to when Target Link breaks down, will be unable to complete read-write operation, serious forgiveness is relatively low;In addition, passing through
Above-mentioned mould determines Target Link except algorithm, it is likely that when appearance is written and read operation to each hard disk, by same target
Link issues the situation of read/write I/O Request, so as to cause the utilization rate of link relatively low, also, in that case, due to all
Read/write I/O Request be all transmitted by same Target Link, so as to influence link transmission rate.
The content of the invention
In view of this, the application provides a kind of link selecting method and device, to realize improving serious forgiveness, and improves chain
The utilization rate and transmission rate on road, so as to effectively lift the overall readwrite performance of storage server.
Specifically, the application is achieved by the following technical solution:
According to the first aspect of the embodiment of the present application, there is provided a kind of link selecting method, methods described includes:
The Link State for determining link and the currently used frequency for determining the link;
Link State is represented can the normal work and minimum link of the currently used frequency is defined as Target Link;
Data to be transmitted is sent to target hard disk by the Target Link.
Optionally, methods described also includes:
If the Link State of the link represent can normal work, and the currently used frequency of the link is identical,
Then the EIC equipment identification code according to target hard disk determines link identification;
Link corresponding to the link identification is defined as Target Link.
Optionally, methods described also includes:
In default measurement period, determine after Target Link, acquisition takes the target in the measurement period
The EIC equipment identification code of the hard disk of link;
The equipment identification of the target hard disk is searched in the EIC equipment identification code of the hard disk for taking the Target Link
Code;
If not finding setting for the target hard disk in the EIC equipment identification code of the hard disk for taking the Target Link
Standby identification code, then by the Target Link, corresponding frequency of usage adds 1 in the measurement period, and by the target hard disk
EIC equipment identification code is recorded in the EIC equipment identification code of the hard disk for taking the Target Link, wherein, every link exists
Corresponding frequency of usage is default default value in the measurement period.
Optionally, the currently used frequency for determining the link includes:
If being currently first measurement period, the currently used frequency of the link is the default value;
If current is not first measurement period, by the link, corresponding frequency of usage is true in a upper measurement period
It is set to the currently used frequency of the link.
Optionally, methods described also includes:
After monitoring that the link breaks down, by the Link State of the link be revised as can not normal work, and
The link is repaired;
After to link repair success, the Link State of the link is revised as can normal work.
According to the second aspect of the embodiment of the present application, there is provided a kind of link selection device, it is characterised in that described device bag
Include:
State determining module, for determining the Link State of link and determining the currently used frequency of the link;
Target determination module, can the normal work and minimum link of the currently used frequency is true for Link State to be represented
It is set to Target Link;
Processing module, for being sent to target hard disk data to be transmitted by the Target Link.
Optionally, described device also includes:
Mark determining module, if represent can normal work, and the link for the Link State of the link
The currently used frequency is identical, then the EIC equipment identification code according to target hard disk determines link identification;
The target determination module is additionally operable to:Link corresponding to the link identification is defined as Target Link.
Optionally, described device also includes:
Acquisition module, in default measurement period, determining Target Link after, obtain in the measurement period
Take the EIC equipment identification code of the hard disk of the Target Link;
Searching modul, it is hard for searching the target in the EIC equipment identification code of the hard disk for taking the Target Link
The EIC equipment identification code of disk;
Statistical module, if described for not found in the EIC equipment identification code of the hard disk for taking the Target Link
The EIC equipment identification code of target hard disk, then by the Target Link, corresponding frequency of usage adds 1 in the measurement period, and by institute
The EIC equipment identification code record of target hard disk is stated in the EIC equipment identification code of the hard disk for taking the Target Link, wherein, often
The corresponding frequency of usage in the measurement period of link described in bar is default default value.
Optionally, the state determining module includes:
First determination sub-module, if for being currently first measurement period, the currently used frequency of the link is institute
State default value;
Second determination sub-module, if for not being currently first measurement period, by the link in upper one statistics week
Corresponding frequency of usage is defined as the currently used frequency of the link in phase.
Optionally, described device also includes:
Repair module, for after monitoring that the link breaks down, the Link State of the link being revised as not
Can normal work, and the link is repaired;
Status modifier module, for after to link repair success, the Link State of the link is revised as can
Normal work.
As seen from the above-described embodiment, by determining the Link State of link and determining the currently used frequency of link, will
Link State represent can the normal work and minimum link of the currently used frequency is defined as Target Link, will by Target Link
Data to be transmitted is sent to target hard disk;Because SAS controller is according to the actual use state selection target link of link, can be with
Selection faulty link is effectively prevented from as Target Link, serious forgiveness is improved;And can be effectively prevented from continually selecting same
One Target Link, such that it is able to improve the utilization rate and transmission rate of link, so as to effectively lift the whole of storage server
Body readwrite performance.
Brief description of the drawings
Fig. 1 is the mainboard configuration diagram of storage server;
Fig. 2 is one embodiment flow chart of the application link selecting method;
Fig. 3 is one embodiment block diagram of the application link selection device.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from
In the case of the application scope, 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 linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 is referred to, is the mainboard configuration diagram of storage server.
As shown in figure 1, in the mainboard framework of storage server, generally include business I/O port, CPU, SAS controller,
FPGA, SAS expander and RAID array.
Wherein, CPU is responsible for the work that operating system, RAID algorithm and all Business Processings calculate correlation.Business I/O port
To support the chipset of CPU, it is responsible for providing some low-speed interfaces;For example, management network port, button and serial ports etc..SAS is controlled
Device, is responsible for providing SAS protocol conversion, and the treatment that associated storage is instructed, and SAS controller can be obtained by SMP frames
The information of hard disk in RAID array, and be each hard disk distributing equipment identification code, then by the EIC equipment identification code of each hard disk and
Corresponding relation between hard disk address is sent to FPGA.FPGA, is responsible for storage SAS controller by the hard disk in RAID array point
Corresponding relation between the EIC equipment identification code matched somebody with somebody and hard disk address, and the forward process of associated storage instruction is provided.SAS extends
Device, is responsible for expanding the port number of SAS controller, equivalent to an interchanger.RAID array, is having of being made up of independent disk
The array of redundant ability, RAID array can be the huge magnetic of a capacity being combined into by the less expensive disk of many prices
Disk group, so as to lift the efficiency of whole disk system;For example, RAID array can be by the SATA of compatible SAS protocol
(Serial Advanced Technology Attachment, Serial Advanced Technology Attachment) hard disk or SAS hard disks.
In above-mentioned mainboard framework, the read-write operation of data is mainly responsible for treatment by CPU.
In the prior art, when the read-write operation of data is carried out, read/write I/O Request enters CPU to CPU from business I/O port,
The read/write I/O Request is issued to SAS controller by CPU after the read/write I/O Request is received, and SAS controller is by read/write IO
Request is encapsulated as a SAS frame, and the EIC equipment identification code that SAS controller is target hard disk distribution is carried in the SAS frames, it
Afterwards, the SAS frames are issued to FPGA by SAS controller, and FPGA parsing SAS frames obtain read/write I/O Request and EIC equipment identification code, it
Afterwards, using EIC equipment identification code mould except the quantity of link between FPGA and SAS expander, the result that will be calculated is used as chain road sign
Know, the link corresponding to the link identification is then defined as Target Link, afterwards, please by read/write IO by the Target Link
Ask and be issued to SAS expander, then the target hard disk in RAID array is handed down to by SAS expander, to complete corresponding read-write
Operation.
From foregoing description, during selection target link, FPGA uses target determined by EIC equipment identification code
Link is unique, so as to when identified Target Link breaks down, will be unable to complete read-write operation;Also, FPGA makes
Determine Target Link with EIC equipment identification code, it is likely that during appearing in selection target link each time, identified target
Link is identical, for example, it is assumed that being laid with 4 links between FPGA and SAS expander, the link identification of 4 links is respectively
0th, 1,2,3, there are 4 hard disks in disk array RAID array, SAS controller is the EIC equipment identification code difference of 4 hard disk distribution
It is 0,4,8,12, then, number of links is removed using 4 EIC equipment identification code moulds, resulting link identification is 0, so that institute
The Target Link all same of determination, so as to the utilization rate of link will be caused relatively low;Simultaneously as all of read/write I/O Request is equal
It is transmitted by same Target Link, so as to influence the transmission rate of link.
In view of this, the application proposes a kind of link selecting method and device, and the execution of the method is with the master exemplified by Fig. 1
Based on type structure, in the method, SAS controller can record the currently used of the link between FPGA and SAS expander
State, the currently used state according to link is read/write I/O Request selection target link to be issued.
Because SAS controller is according to the actual use state selection target link of link, selection event can be effectively prevented from
Barrier link improves serious forgiveness as Target Link;And can be effectively prevented from continually selecting same Target Link, so that
The utilization rate and transmission rate of link can be improved, so as to effectively lift the overall readwrite performance of storage server.
The application is described below by specific embodiment and with reference to specific application scenarios.
Fig. 2 is referred to, is one embodiment flow chart of the application link selecting method, the method can include following step
Suddenly:
Step S201:The Link State for determining link and the currently used frequency for determining link.
Step S202:Link State is represented can the normal work and minimum link of the currently used frequency is defined as target
Link.
Step S203:Data to be transmitted is sent to target hard disk by Target Link.
Illustrate first, in above-mentioned steps S201 to the link described in step S203, and it is described below in link
It is the link between FPGA and SAS expander.For example, as shown in fig. 1, there are four links between FPGA and SAS expander,
The link identification of four links is respectively 0,1,2,3, and RAID array includes 4 hard disks, it is assumed that SAS controller is should
The EIC equipment identification code of 4 hard disk distribution is respectively 0,4,8,12.
In this application, SAS controller can record the use state of each of the links, and " use state " mentioned here can
With including Link State and the currently used frequency, wherein, Link State can be used to indicate that whether link can normal work, example
Such as, Link State can be " can not normal work ", or " can normal work ";The currently used frequency can represent that current occupancy should
Link is written and read the hard disk number of operation, the current link that takes can also be recorded accordingly, in SAS controller and is written and read operation
Hard disk EIC equipment identification code, for example, as shown in table 1 below, by the use state of each of the links that SAS controller is recorded:
Table 1
Link | Link identification | Link State | Frequency of usage | EIC equipment identification code |
1 | 0 | Can normal work | 0 | |
2 | 1 | Can normal work | 1 | 0 |
3 | 2 | Can normal work | 1 | 4 |
4 | 3 | Can normal work | 1 | 12 |
It should be noted that in this application, measurement period can be preset, such as 5 minutes, then SAS controller can be
In each measurement period, statistics draws the use state of each of the links, specifically, in a measurement period, SAS controller is true
Set the goal after link, can be obtained in the measurement period according to the use state of each of the links exemplified by table 1, take
The EIC equipment identification code of the hard disk of the Target Link;Afterwards, mesh is searched in the EIC equipment identification code of the hard disk of the occupancy Target Link
Mark the EIC equipment identification code of hard disk;If the equipment that target hard disk is found in the EIC equipment identification code of the hard disk of the occupancy Target Link
Identification code, then by Target Link, corresponding frequency of usage adds 1 in the measurement period, and the EIC equipment identification code of target hard disk is remembered
Record in the EIC equipment identification code of the hard disk of the occupancy Target Link, wherein, in a measurement period, the use frequency of each of the links
Secondary initial value is default default value, such as 0.
It will be appreciated by persons skilled in the art that can just be passed because larger data file may need the long period
Completion is sent, therefore in this application, it is larger that above-mentioned described measurement period can be set, such as 5 minutes, 10 minutes, with
Avoid SAS controller from continually updating the use state of each of the links, cause the use state of link not very accurate.
On the basis of foregoing description, in addition it is also necessary to explanation, if currently be first measurement period, each of the links work as
Preceding frequency of usage is default default value, for example, 0, also, in the first measurement period, take the hard disk of each of the links
EIC equipment identification code is sky;If current is not first measurement period, the currently used frequency of link is that the link is united at upper one
Corresponding frequency of usage in the meter cycle.Based on this, SAS controller, then can be according in measurement period every a measurement period
Statistics, update the use state of the link exemplified by above-mentioned table 1.
Based on foregoing description, hard disk of the SAS controller in RAID array issues data to be transmitted, such as read/write IO
During request, the link use state for currently being recorded can be checked first, such as current table 1 obtains Link State according to table 1
Represent can normal work link, including link 1, link 2, link 3, link 4, afterwards, continuing can normal work at this 4
In link, the minimum link of the currently used frequency is selected, as shown in table 1, the frequency of usage of link 1 is 0, then can be by link
1 is defined as Target Link.
Furthermore, it is necessary to explanation, if the quantity of the minimum link of the currently used frequency is more than 1, and less than link
Total quantity, for example, it is assumed that in table 1, the corresponding frequency of usage of link 1 is 2, then the minimum link of the currently used frequency is link
2nd, link 3 and link 4, at this point it is possible to randomly choose a link from 3 links as Target Link.
In addition it is also necessary to explanation, if represent can normal work, and 4 links for 4 Link States of link
The currently used frequency it is identical, now, then link identification can be determined according to the EIC equipment identification code of target hard disk.For example, can be with
Using target hard disk EIC equipment identification code mould remove number of links, the result that will be drawn as link identification, by the link identification institute
Corresponding link is defined as Target Link.
Determine after Target Link, data to be transmitted, such as read/write I/O Request can be encapsulated as SAS by SAS controller
Frame, and the link identification of identified Target Link is carried in the SAS frames, afterwards, SAS controller sends the SAS frames
To FPGA.
The equipment that FPGA parses the SAS frames, acquisition data to be transmitted, the link identification of Target Link, and target hard disk
Identification code, afterwards, FPGA is according to the EIC equipment identification code, the corresponding pass between the EIC equipment identification code for pre-saving and hard disk address
The corresponding hard disk address of the EIC equipment identification code is got in system, afterwards, be encapsulated as data to be transmitted and hard disk address by FPGA
Open frames, according to the link identification of Target Link, the Open frames are sent to SAS expander from Target Link.
SAS expander parses the Open frames, obtains data to be transmitted and hard disk address, will be to be passed according to the hard disk address
Transmission of data sends the target hard disk into RAID array.
In addition it is also necessary to explanation, if SAS controller by data to be transmitted by Target Link be issued to FPGA it
Afterwards, in preset duration, the data that target hard disk is responded are not received, then SAS controller can consider that Target Link occurs
Failure, now, SAS controller can change the use state of the link exemplified by above-mentioned table 1, by the chain corresponding to Target Link
Line state is revised as " can not normal work ", meanwhile, SAS controller can also be repaired to the Target Link for breaking down.
For example, SAS controller can encapsulate a TASK frame first, the link identification of Target Link is carried in the TASK frames, to repair
Target Link;If reparation is unsuccessful, SAS controller can also continue to encapsulate a SMP frame, target be carried in the SMP frames hard
The hard disk address of disk, to repair the link between SAS expander and RAID array;If repairing still unsuccessful, SAS controller may be used also
It is whole FPGA layers to be resetted by smbus.
Additionally, after repairing successfully, SAS controller can be revised as with the Link State of Target Link " can normal work
Make ".
As seen from the above-described embodiment, by determining the Link State of link and determining the currently used frequency of link, will
Link State represent can the normal work and minimum link of the currently used frequency is defined as Target Link, will by Target Link
Data to be transmitted is sent to target hard disk;Because SAS controller is according to the actual use state selection target link of link, can be with
Selection faulty link is effectively prevented from as Target Link, serious forgiveness is improved;And can be effectively prevented from continually selecting same
One Target Link, such that it is able to improve the utilization rate and transmission rate of link, so as to effectively lift the whole of storage server
Body readwrite performance.
Embodiment with foregoing link selecting method is corresponding, present invention also provides the embodiment of link selection device.
Fig. 3 is refer to, is one embodiment block diagram of the application link selection device, the device can include:State is true
Cover half block 31, target determination module 32, processing module 33.
Wherein, the state determining module 31, is determined for the Link State of link and determines working as the link
Preceding frequency of usage;
The target determination module 32, can be used for representing Link State can the normal work and currently used frequency is minimum
Link be defined as Target Link;
The processing module 33, can be used for sending to target hard disk data to be transmitted by the Target Link.
In one embodiment, described device can also include (not showed that in Fig. 3):
Mark determining module, if represent can normal work, and the chain for the Link State that can be used for the link
The currently used frequency on road is identical, then the EIC equipment identification code according to target hard disk determines link identification;
The target determination module 32 can be also used for:Link corresponding to the link identification is defined as object chain
Road.
In one embodiment, described device can also include (not showed that in Fig. 3):
Acquisition module, can be used in default measurement period, determine after Target Link, obtain in the statistics week
The EIC equipment identification code of the hard disk of the Target Link is taken in phase;
Searching modul, can be used for searching the mesh in the EIC equipment identification code of the hard disk for taking the Target Link
Mark the EIC equipment identification code of hard disk;
Statistical module, if can be used for not found in the EIC equipment identification code of the hard disk for taking the Target Link
The EIC equipment identification code of the target hard disk, then by the Target Link, corresponding frequency of usage adds 1 in the measurement period, and
By the EIC equipment identification code record of the target hard disk in the EIC equipment identification code of the hard disk for taking the Target Link, its
In, the every link corresponding frequency of usage in the measurement period is default default value.
In one embodiment, the state determining module 31 can include (not showed that in Fig. 3):
First determination sub-module, if it is currently first measurement period, the currently used frequency of the link that can be used for
It is the default value;
Second determination sub-module, if can be used for current is not first measurement period, by the link in upper one system
Corresponding frequency of usage is defined as the currently used frequency of the link in the meter cycle.
In one embodiment, described device can also include (not showed that in Fig. 3):
Repair module, can be used for after monitoring that the link breaks down, and the Link State of the link is changed
For can not normal work, and the link is repaired;
Status modifier module, can be used for after to link repair success, and the Link State of the link is changed
For can normal work.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.
Claims (10)
1. a kind of link selecting method, it is characterised in that methods described includes:
The Link State for determining link and the currently used frequency for determining the link;
Link State is represented can the normal work and minimum link of the currently used frequency is defined as Target Link;
Data to be transmitted is sent to target hard disk by the Target Link.
2. method according to claim 1, it is characterised in that methods described also includes:
If the Link State of the link represent can normal work, and the currently used frequency of the link is identical, then root
EIC equipment identification code according to target hard disk determines link identification;
Link corresponding to the link identification is defined as Target Link.
3. method according to claim 1, it is characterised in that methods described also includes:
In default measurement period, determine after Target Link, acquisition takes the Target Link in the measurement period
Hard disk EIC equipment identification code;
The EIC equipment identification code of the target hard disk is searched in the EIC equipment identification code of the hard disk for taking the Target Link;
If the equipment that the target hard disk is not found in the EIC equipment identification code of the hard disk for taking the Target Link is known
Other code, then by the Target Link, corresponding frequency of usage adds 1 in the measurement period, and by the equipment of the target hard disk
Identification code recording in the EIC equipment identification code of the hard disk for taking the Target Link, wherein, every link is described
Corresponding frequency of usage is default default value in measurement period.
4. method according to claim 3, it is characterised in that the currently used frequency of the determination link includes:
If being currently first measurement period, the currently used frequency of the link is the default value;
If current is not first measurement period, by the link, corresponding frequency of usage is defined as in a upper measurement period
The currently used frequency of the link.
5. method according to claim 1, it is characterised in that methods described also includes:
After monitoring that the link breaks down, by the Link State of the link be revised as can not normal work, and to institute
Link is stated to be repaired;
After to link repair success, the Link State of the link is revised as can normal work.
6. a kind of link selection device, it is characterised in that described device includes:
State determining module, for determining the Link State of link and determining the currently used frequency of the link;
Target determination module, for by Link State represent can normal work and the minimum link of the currently used frequency be defined as
Target Link;
Processing module, for being sent to target hard disk data to be transmitted by the Target Link.
7. device according to claim 6, it is characterised in that described device also includes:
Mark determining module, if for the link Link State represent can normal work, and the link is current
Frequency of usage is identical, then the EIC equipment identification code according to target hard disk determines link identification;
The target determination module is additionally operable to:Link corresponding to the link identification is defined as Target Link.
8. device according to claim 6, it is characterised in that described device also includes:
Acquisition module, in default measurement period, determining Target Link after, obtain and taken in the measurement period
The EIC equipment identification code of the hard disk of the Target Link;
Searching modul, for searching the target hard disk in the EIC equipment identification code of the hard disk for taking the Target Link
EIC equipment identification code;
Statistical module, if for not finding the target in the EIC equipment identification code of the hard disk for taking the Target Link
The EIC equipment identification code of hard disk, then by the Target Link, corresponding frequency of usage adds 1 in the measurement period, and by the mesh
The EIC equipment identification code record of hard disk is marked in the EIC equipment identification code of the hard disk for taking the Target Link, wherein, every institute
It is default default value to state link corresponding frequency of usage in the measurement period.
9. device according to claim 8, it is characterised in that the state determining module includes:
First determination sub-module, if for being currently first measurement period, the currently used frequency of the link is described silent
Recognize value;
Second determination sub-module, if for being not currently first measurement period, by the link in a upper measurement period
Corresponding frequency of usage is defined as the currently used frequency of the link.
10. device according to claim 6, it is characterised in that described device also includes:
Repair module, for after monitoring that the link breaks down, the Link State of the link is revised as can not be just
Often work, and the link is repaired;
Status modifier module, for after to link repair success, the Link State of the link is revised as can be normal
Work.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710046622.1A CN106708445B (en) | 2017-01-19 | 2017-01-19 | Link selecting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710046622.1A CN106708445B (en) | 2017-01-19 | 2017-01-19 | Link selecting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106708445A true CN106708445A (en) | 2017-05-24 |
CN106708445B CN106708445B (en) | 2019-09-17 |
Family
ID=58910152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710046622.1A Active CN106708445B (en) | 2017-01-19 | 2017-01-19 | Link selecting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708445B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595269A (en) * | 2018-04-26 | 2018-09-28 | 北京腾凌科技有限公司 | A kind of data processing method, command generating device and data read-write equipment |
CN110998509A (en) * | 2018-07-16 | 2020-04-10 | 华为技术有限公司 | Method, equipment and system for acquiring optical module link negotiation information |
CN116360675A (en) * | 2022-11-29 | 2023-06-30 | 无锡众星微系统技术有限公司 | SAS frame routing method and device in wide port scene |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016751A1 (en) * | 2000-08-01 | 2007-01-18 | Hitachi, Ltd. | File system |
CN104423889A (en) * | 2013-08-26 | 2015-03-18 | 国际商业机器公司 | Multi-path management method and system |
-
2017
- 2017-01-19 CN CN201710046622.1A patent/CN106708445B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016751A1 (en) * | 2000-08-01 | 2007-01-18 | Hitachi, Ltd. | File system |
CN104423889A (en) * | 2013-08-26 | 2015-03-18 | 国际商业机器公司 | Multi-path management method and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595269A (en) * | 2018-04-26 | 2018-09-28 | 北京腾凌科技有限公司 | A kind of data processing method, command generating device and data read-write equipment |
CN108595269B (en) * | 2018-04-26 | 2020-10-09 | 北京腾凌科技有限公司 | Data processing method, instruction generation device and data read-write device |
CN110998509A (en) * | 2018-07-16 | 2020-04-10 | 华为技术有限公司 | Method, equipment and system for acquiring optical module link negotiation information |
CN110998509B (en) * | 2018-07-16 | 2021-11-09 | 华为技术有限公司 | Method, equipment and system for acquiring optical module link negotiation information |
US11256635B2 (en) | 2018-07-16 | 2022-02-22 | Huawei Technolgoies Co., Ltd. | Optical module link negotiation information obtaining method, device, and system |
CN116360675A (en) * | 2022-11-29 | 2023-06-30 | 无锡众星微系统技术有限公司 | SAS frame routing method and device in wide port scene |
CN116360675B (en) * | 2022-11-29 | 2023-10-24 | 无锡众星微系统技术有限公司 | SAS frame routing method and device in wide port scene |
Also Published As
Publication number | Publication date |
---|---|
CN106708445B (en) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10725692B2 (en) | Data storage method and apparatus | |
KR101196547B1 (en) | A method for deterministic sas discovery and configuration | |
CN107911249B (en) | Method, device and equipment for sending command line of network equipment | |
CN103534688B (en) | Data reconstruction method, memory device and storage system | |
CN103136243A (en) | File system duplicate removal method and device based on cloud storage | |
CN103164523A (en) | Inspection method, device and system of data consistency inspection | |
CN102282544A (en) | Storage system | |
CN103631721A (en) | Method and system for isolating bad blocks in internal storage | |
CN102929748A (en) | Method and device for data backup | |
CN104461390A (en) | Method and device for writing data into imbricate magnetic recording SMR hard disk | |
CN108153622A (en) | The method, apparatus and equipment of a kind of troubleshooting | |
CN108540315A (en) | Distributed memory system, method and apparatus | |
CN109934712B (en) | Account checking method and account checking device applied to distributed system and electronic equipment | |
CN106708445B (en) | Link selecting method and device | |
CN103370113A (en) | Data storage method and data storage system | |
CN103034567A (en) | Device and method for finding and repairing corrupted data | |
CN112000513A (en) | Computer and VPD data operation method, device and storage medium thereof | |
CN105573872A (en) | Hardware maintenance method and device of data storage system | |
CN113051428B (en) | Method and device for back-up storage at front end of camera | |
CN102393838A (en) | Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server | |
CN112559291A (en) | Resource monitoring method and device, electronic equipment and storage medium | |
CN104407806B (en) | The amending method and device of RAID group hard disc information | |
CN116501259A (en) | Disk group dual-activity synchronization method and device, computer equipment and storage medium | |
CN111142787A (en) | Storage-layered data exchange testing method, system, terminal and storage medium | |
CN116382582A (en) | RAID remapping method, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |