CN105260330B - A kind of disk array based on exchange network finds method, host bus adaptor and disk frame - Google Patents

A kind of disk array based on exchange network finds method, host bus adaptor and disk frame Download PDF

Info

Publication number
CN105260330B
CN105260330B CN201410336814.2A CN201410336814A CN105260330B CN 105260330 B CN105260330 B CN 105260330B CN 201410336814 A CN201410336814 A CN 201410336814A CN 105260330 B CN105260330 B CN 105260330B
Authority
CN
China
Prior art keywords
disk
hba
exchange network
frame
disk frame
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.)
Active
Application number
CN201410336814.2A
Other languages
Chinese (zh)
Other versions
CN105260330A (en
Inventor
陈亚军
常胜
崔英利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410336814.2A priority Critical patent/CN105260330B/en
Publication of CN105260330A publication Critical patent/CN105260330A/en
Application granted granted Critical
Publication of CN105260330B publication Critical patent/CN105260330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of disk array based on exchange network finds method, host bus adaptor and disk frame.This method includes:HBA broadcasts heartbeat broadcast packet by exchange network, and heartbeat broadcast packet includes the exchange network address of HBA;HBA receives the heartbeat response bag that at least one disk frame is sent, and heartbeat response bag includes the disk array information of at least one disk frame, obtains the disk array information of at least one disk frame;Wherein, the disk array information of disk frame includes the exchange network address of disk frame.Also disclose corresponding host bus adaptor and disk frame.HBA is by broadcasting heartbeat broadcast packet in the embodiment of the present invention, so that by the disk frame that exchange network is connected with HBA after the heartbeat broadcast packet of HBA broadcast is received, heartbeat response bag is sent to host bus adaptor, heartbeat response bag includes the disk array information of disk frame, so as to simply and effectively complete the disk array discovery procedure based on exchange network.

Description

A kind of disk array based on exchange network find method, host bus adaptor and Disk frame
Technical field
The present invention relates to technical field of memory more particularly to a kind of disk array based on exchange network to find method, master Machine bus adapter and disk frame.
Background technology
With the development of memory technology, the biography that the large-scale high performance disc array system of high power capacity is conducive to big data is built Defeated and storage.As shown in Figure 1 for traditional disc array system Organization Chart, including master control, expander (including divide row expander and Edge expander), host bus adaptor (Host Bus Adapter, HBA) and terminal installation (end device), the terminal Device includes several disks, such as including serial connecting small computer system interface (Serial Attached Small Computer System Interface, SAS), the extension of disk size is realized by expander (expander) technology. In system as shown in Figure 1, the equipment under master control has specific attaching relation with master control, generally by the magnetic in master control discovery system Disk array, structure disk topology, specific method are:Master control actively initiate " SMP REPORT GENERAL request " order to The equipment such as expander, terminal installation, host bus adaptor under topological structure, these equipment are by replying " SMP REPORT GENERAL Response " order to inform master control self information, so as to complete the process of disk discovery, build disk and open up It flutters.
However, since the transmission range between the disk of support SRS agreements and master control is shorter, it is typically only capable within 6 meters, And extension storage capacity is also required to based on expander so that transmission range and memory capacity are restricted, traditional disk array System cannot meet application demand gradually.With the development of big data, to disk array memory capacity and transmission range It is required that being also continuously improved, the demand of storage device networking is come into being.In the disc array system based on exchange network In, master control and storage device equality in exchange network, without expander, memory capacity theoretically can infinitely expand Exhibition, master control do not have specific attaching relation with disk array.However, because the isolation of exchange network, management software power on initially Position and the number of disk frame can not be explicitly learnt during change, traditional disk finds that scheme is not suitable for new applied field Scape.In a conventional manner down tube reason software one-to-one can not actively say the word reading magnetic disk information complete disk array find mistake Journey.
The content of the invention
An embodiment of the present invention provides a kind of disk array based on exchange network find method, host bus adaptor and Disk frame can simply and effectively find the disk array based on exchange network.
In a first aspect, providing a kind of disk array based on exchange network finds method, host bus adaptor HBA and At least one disk frame is connected by the exchange network, and the disk in the disk frame forms the disk array;The side Method includes:
The HBA broadcasts the first heartbeat broadcast packet by the exchange network, and the first heartbeat broadcast packet includes described The exchange network address of HBA;
The HBA receives the first heartbeat response bag that at least one disk frame is sent, the first heartbeat response bag Include the disk array information of at least one disk frame, obtain the disk array information of at least one disk frame;Its In, the disk array information of the disk frame includes the exchange network address of the disk frame.
In the first possible implementation, the method further includes:
The disk array information of at least one disk frame of the acquisition is recorded in the disk array by the HBA In information table.
The possible realization method of with reference to first aspect the first, in second of possible realization method, the disk The disk array information of frame further includes the home address of the disk in the disk frame;Then the HBA by the acquisition at least The disk array information of one disk frame is recorded in the disk array information table, including:
The exchange network address of at least one disk frame is recorded in the disk array information table by the HBA;
The HBA is using the exchange network address of at least one disk frame as index, by least one disk frame In the home address of disk be recorded in the disk array information table.
Second of possible realization method of the possible realization method of with reference to first aspect the first or first aspect, In the third possible realization method, the method further includes:
The HBA broadcasts the second heartbeat broadcast packet by the exchange network, and the second heartbeat broadcast packet includes described The exchange network address of HBA;
The HBA receives the second heartbeat response bag that at least one disk frame is sent, the second heartbeat response bag Include the disk array information of the disk frame;
The second heartbeat response bag that the HBA is received according to, determines whether there is magnetic in the exchange network The disk array information of disk frame updates;
If the disk array information for having disk frame in the exchange network updates, the HBA connects according to The the second heartbeat response bag received, the disk array information of the disk frame to being recorded in the disk array information table carry out Update.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method, the HBA roots According to the second heartbeat response bag received, determine whether there is the disk array information of disk frame in the exchange network It updates;If the disk array information for having disk frame in the exchange network updates, the HBA connects according to The the second heartbeat response bag received, the disk array information of the disk frame to being recorded in the disk array information table carry out Update, including:
The HBA second heartbeat of the reception is responded in disk frame disk array information and the disk The information recorded in array information table is compared;
If the disk frame in second heartbeat response of the reception is not recorded in the disk array information table Disk array information, then the HBA determine there is the disk array information of disk frame to update in the exchange network;
The disk array information of disk frame in second heartbeat response of the reception is recorded in described by the HBA In disk array information table.
The third possible realization method with reference to first aspect, in the 5th kind of possible realization method, the HBA roots According to the second heartbeat response bag received, determine whether there is the disk array information of disk frame in the exchange network It updates;If the disk array information for having disk frame in the exchange network updates, the HBA connects according to The the second heartbeat response bag received, the disk array information of the disk frame to being recorded in the disk array information table carry out Update, including:
The HBA second heartbeat of the reception is responded in disk frame disk array information and the disk The information recorded in array information table is compared;
If the disk frame in second heartbeat response of the reception is had recorded in the disk array information table Exchange network address, but with the friendship of the disk frame in second heartbeat response of the reception in the disk array information table The home address of the disk in the disk frame of index corresponding record is in switching network address, second heartbeat sound with the reception The home address of the disk in disk frame in answering is inconsistent, then the HBA determines the magnetic for having disk frame in the exchange network Disk array information updates;
The home address of disk in disk frames of the HBA in second heartbeat of reception response, with The exchange network address of disk frame in the second heartbeat response is index, updates what is recorded in the disk array information table The home address of disk in disk frame.
Second of possible realization method of the possible realization method of with reference to first aspect the first or first aspect, In 6th kind of possible realization method, the method further includes:
The HBA periodically broadcasts the second heartbeat broadcast packet by the exchange network;
The HBA determines whether that exchange network chain rupture occurs for disk frame according to the second heartbeat response bag received;
If there is exchange network chain rupture occurs for disk frame, then the HBA deletes what is recorded in the disk array information table The disk array information of the disk frame of exchange network chain rupture occurs.
With reference to first aspect or second of the first possible realization method of first aspect or first aspect possible Realization method, in the 7th kind of possible realization method, the exchange network is Ethernet;Then the first heartbeat broadcast packet and The first heartbeat response bag is ether network packet.
Second aspect provides a kind of disk array based on exchange network and finds method, host bus adaptor HBA and Disk frame is connected by the exchange network, and the disk in the disk frame forms the disk array;The described method includes:
The disk frame receives the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, the heartbeat broadcast packet Exchange network address including the HBA;
The disk frame sends heartbeat response bag, the heartbeat according to the exchange network address of the HBA to the HBA Response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes the disk The exchange network address of frame.
In the first possible implementation, the method further includes:
The disk frame records the exchange network address of the HBA.
With reference to the first possible realization method of second aspect, in second of possible realization method, the method It further includes:
If the disk frame determines that exchange network chain rupture, the generation exchange network of deletion record occurs with the HBA The exchange network address of the HBA of chain rupture.
Second with reference to the possible realization method of the first of second aspect or second aspect or second aspect is possible Realization method, in the third possible realization method, the exchange network is Ethernet;The then heartbeat broadcast packet and described Heartbeat response bag is ether network packet.
The third aspect, provides a kind of host bus adaptor HBA, and the HBA and at least one disk frame pass through exchange Network connection, the disk in the disk frame form disk array;The HBA includes:
Radio unit, for broadcasting the first heartbeat broadcast packet, the first heartbeat broadcast packet bag by the exchange network Include the exchange network address of the HBA;
Receiving unit, for receiving the first heartbeat response bag that at least one disk frame is sent, first heartbeat Response bag includes the disk array information of at least one disk frame, obtains the disk array letter of at least one disk frame Breath;Wherein, the disk array information of the disk frame includes the exchange network address of the disk frame.
In the first possible implementation, the HBA is further included:
First recording unit, for the disk array information of at least one disk frame of the acquisition to be recorded in institute It states in disk array information table.
With reference to the first possible realization method of the third aspect, in second of possible realization method, the disk The disk array information of frame further includes the home address of the disk in the disk frame;Then first recording unit includes:
Disk frame address recording unit, for the exchange network address of at least one disk frame to be recorded in the magnetic In disk array information table;
Disk address recording unit, for using the exchange network address of at least one disk frame as index, will at least The home address of disk in one disk frame is recorded in the disk array information table.
With reference to the first possible realization method of the third aspect or second of possible realization method of the third aspect, In the third possible realization method:
The radio unit is additionally operable to broadcast the second heartbeat broadcast packet, the second heartbeat broadcast by the exchange network Include the exchange network address of the HBA;
The receiving unit is additionally operable to receive the second heartbeat response bag that at least one disk frame is sent, and described second Heartbeat response bag includes the disk array information of the disk frame;
The HBA is further included:
Updating block, for the second heartbeat response bag for receiving according to, determine be in the exchange network The no disk array information for having disk frame updates;And
If the disk array information that the updating block is additionally operable to have disk frame in the exchange network updates, According to the second heartbeat response bag received, the disk battle array to the disk frame recorded in the disk array information table Column information is updated.
With reference to the third possible realization method of the third aspect, in the 4th kind of possible realization method, the update Unit includes:
First comparing unit, for by second heartbeat of the reception respond in disk frame disk array information Compared with the information recorded in the disk array information table;
Second determination unit, if for not recording second heartbeat of the reception in the disk array information table The disk array information of disk frame in response, it is determined that the disk array information for having disk frame in the exchange network occurs more Newly;
Second recording unit, for by second heartbeat of the reception respond in disk frame disk array information It is recorded in the disk array information table.
With reference to the third possible realization method of the third aspect, in the 5th kind of possible realization method, the update Unit includes:
Second comparing unit, for by second heartbeat of the reception respond in disk frame disk array information Compared with the information recorded in the disk array information table;
Second determination unit, if for having recorded second heartbeat of the reception in the disk array information table The exchange network address of disk frame in response, but rung in the disk array information table with second heartbeat of the reception The exchange network address of disk frame in answering is indexes the home address of the disk in the disk frame of corresponding record, with the reception Second heartbeat response in disk frame in disk home address it is inconsistent, it is determined that have magnetic in the exchange network The disk array information of disk frame updates;
Disk home address updating block, in the disk frame in second heartbeat of reception response The home address of disk, the exchange network address of the disk frame in being responded using second heartbeat update the disk as index The home address of disk in the disk frame recorded in array information table.
With reference to the first possible realization method of the third aspect or second of possible realization method of the third aspect, In 6th kind of possible realization method:
The radio unit is additionally operable to periodically broadcast the second heartbeat broadcast packet by the exchange network;
The HBA is further included:
3rd determination unit, for determining whether that switching network occurs for disk frame according to the second heartbeat response bag received Network chain rupture;
Unit is deleted, for exchange network chain rupture to occur if there is disk frame, is then deleted in the disk array information table The disk array information of the disk frame of the generation exchange network chain rupture of record.
Second with reference to the possible realization method of the first of the third aspect or the third aspect or the third aspect is possible Realization method, in the 7th kind of possible realization method, the exchange network is Ethernet;Then the first heartbeat broadcast packet and The first heartbeat response bag is ether network packet.
Fourth aspect, provides a kind of disk frame, and host bus adaptor HBA and the disk frame are connected by exchange network It connects, the disk in the disk frame forms disk array;The disk frame includes:
Receiving unit, for receiving the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, the heartbeat broadcast Include the exchange network address of the HBA;
For the exchange network address according to the HBA, heartbeat response bag, the heart are sent to the HBA for transmitting element Jumping response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes the magnetic The exchange network address of disk frame.
In the first possible implementation, the disk frame further includes:
Recording unit, for recording the exchange network address of the HBA.
With reference to the first possible realization method of fourth aspect, in second of possible realization method, the disk Frame further includes:
Unit is deleted, if determining that exchange network chain rupture occurs with the HBA for the disk frame, deletion record The exchange network address of the HBA of exchange network chain rupture occurs.
Second with reference to the possible realization method of the first of fourth aspect or fourth aspect or fourth aspect is possible Realization method, in the third possible realization method, the exchange network is Ethernet;The then heartbeat broadcast packet and described Heartbeat response bag is ether network packet.
As it can be seen that HBA is by broadcasting heartbeat broadcast packet in the embodiment of the present invention so that is connected by exchange network with HBA Disk frame sends heartbeat response bag to host bus adaptor, heartbeat response bag after the heartbeat broadcast packet of HBA broadcast is received Include the disk array information of disk frame, found so as to simply and effectively complete the disk array based on exchange network Journey.
Description of the drawings
It 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 attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is traditional disc array system Organization Chart;
Fig. 2 is the disc array system Organization Chart based on exchange network of the embodiment of the present invention;
Fig. 3 is the flow chart that a kind of disk array based on exchange network provided in an embodiment of the present invention finds method;
Fig. 4 is the flow chart that another disk array based on exchange network provided in an embodiment of the present invention finds method;
Fig. 5 is the flow chart that another disk array based on exchange network provided in an embodiment of the present invention finds method;
Fig. 6 is the flow chart that another disk array based on exchange network provided in an embodiment of the present invention finds method;
Fig. 7 is a kind of structure diagram of host bus adaptor provided in an embodiment of the present invention;
Fig. 8 is the structure diagram of another host bus adaptor provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram of disk frame provided in an embodiment of the present invention;
Figure 10 is the structure diagram of another disk frame provided in an embodiment of the present invention;
Figure 11 is the structure diagram of another host bus adaptor provided in an embodiment of the present invention;
Figure 12 is the structure diagram of another disk frame provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution 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, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment belongs to the scope of protection of the invention.
With the development of big data, transmission range is limited between by disk array memory capacity and disk and master control, is passed The disc array system of system cannot meet application demand gradually, and the demand of storage device networking is come into being.Such as Fig. 2 The shown disc array system Organization Chart based on exchange network, HBA sides pass through exchange network and disk frame (Just a Bunch Of Disks, JBOD) connection, wherein, the exchange network for telecommunication network component (telecommunication network further include access net and Transmission network), exchange network may include Circuit Switching Network, message switching network, the packet switching network, in embodiments of the present invention, the friendship Switching network can be specifically Ethernet (Ethernet) etc., and each HBA sides include HBA, master control and upper layer software (applications) in exchange network, Several disks are hung under each disk frame and form a disk array, disk array can be SAS disk arrays or PCIE disk arrays etc., several HBA are in several JBOD equalitys in exchange network, i.e. disk under HBA and JBOD Array does not have specific attaching relation, and forming one theoretically can be with the storage system of infinite expanding.The embodiment of the present invention is exactly It to complete disk discovery procedure of each master control to each disk in each JBOD in such a system, perform the disk The main body of discovery procedure can be the HBA cards in master control.
Referring to Fig. 3, the stream of method is found for a kind of disk array based on exchange network provided in an embodiment of the present invention Cheng Tu, HBA are connected at least one disk frame by the exchange network, and the disk in the disk frame forms the disk battle array Row, this method comprise the following steps:
Step S101, HBA broadcast the first heartbeat broadcast packet by exchange network, and the first heartbeat broadcast packet includes described The exchange network address of HBA.
In the present embodiment, in disc array system framework as shown in Figure 2, the one side of exchange network includes one or more HBA, opposite side then include one or more disk frames.It after each HBA is connected to exchange network, is powered on, completes initialization, HBA obtains the exchange network address of itself, such as in ethernet networks, HBA obtains the MAC Address of itself, the exchange network address Can also other similar with unique lock or the information of HBA can be found.HBA broadcasts heartbeat broadcast packet, which does not have Specific target object, HBA and disk frame in the exchange network can receive the broadcast packet, which includes The exchange network address of HBA, after only other HBA receive the broadcast packet of the HBA, by the class for identifying the heartbeat broadcast packet Type will not carry out heartbeat response.
Step S102, the HBA receive the first heartbeat response bag that at least one disk frame is sent, and first heartbeat is rung It should include the disk array information of at least one disk frame, obtain the disk array letter of at least one disk frame Breath;Wherein, the disk array information of the disk frame includes the exchange network address of the disk frame.
Multiple HBA in Fig. 2 are connected by exchange network with multiple disk frames, and one or more magnetic are hung under disk frame Disk, the one or more disk form disk array, disk frame may also without connecting any disk, this multiple HBA with it is multiple Disk frame equality is in exchange network, i.e. HBA does not have specific attaching relation with the disk array under disk frame.Switching network After any one disk frame in network receives the heartbeat broadcast packet of HBA, heartbeat response can be carried out, according to the exchange network of HBA Address sends heartbeat response bag to HBA.The heartbeat response bag includes the disk array information of the disk frame, the magnetic of the disk frame Disk array information includes the exchange network address of the disk frame, for example, by taking Ethernet as an example, the exchange network address of disk frame is The MAC Address of disk frame, the exchange network address can also other similar with unique lock or can find the letter of disk frame Breath.HBA broadcasts heartbeat broadcast packet by all devices into exchange network, and the disk frame of exchange network opposite side can connect The heartbeat broadcast packet is received, thus heartbeat broadcast packet is responded, the heartbeat response bag that then HBA reception of magnetic disc frame is sent, The disk array information of the disk frame of exchange network opposite side can be obtained, so as to complete the discovery procedure of disk array
As it can be seen that a kind of disk array based on exchange network provided according to embodiments of the present invention finds method, HBA passes through Broadcast heartbeat broadcast packet so that the heartbeat broadcast packet of HBA broadcast is being received by the disk frame that exchange network is connected with HBA Afterwards, heartbeat response bag is sent to host bus adaptor, and heartbeat response bag includes the disk array information of disk frame, so as to letter The disk array discovery procedure based on exchange network is singly effectively completed.
Referring to Fig. 4, find method for another disk array based on exchange network provided in an embodiment of the present invention Flow chart, HBA and at least one disk frame are connected by the exchange network, and the disk in the disk frame forms the disk Array, this method comprise the following steps:
Step S201, HBA broadcast the first heartbeat broadcast packet by exchange network, and the first heartbeat broadcast packet includes described The exchange network address of HBA.
Step S202, the HBA receive the first heartbeat response bag that at least one disk frame is sent, and first heartbeat is rung It should include the disk array information of at least one disk frame, obtain the disk array letter of at least one disk frame Breath;Wherein, the disk array information of the disk frame is included in the exchange network address and the disk frame of the disk frame The home address of disk.
Step S201 and step S202 is identical with the step S101 and step S102 difference of embodiment illustrated in fig. 3, herein not It repeats again.
It should be noted that in the present embodiment, heartbeat broadcast packet and heartbeat response bag are the agreement according to exchange network The privately owned message of definition.The embodiment of the present invention does not include specific privately owned message definition, but needed in message it is special comprising some Field or content.For example, exchange network is Ethernet;Then the first heartbeat broadcast packet and the first heartbeat response bag are Ethernet Message.
In the present embodiment, the home address of the disk in disk frame is further included in the disk array information of the disk frame, For example, lower hang is SAS disks in disk frame, the home address of the disk in the disk frame refers to SAS Address, this Address is that disk is good once producing configuration, and each disk is different, and user is not required subsequently to set.When So, one or more disks, the disk number or zero of lower extension, if the disk number of lower extension can be hung in disk frame down It is zero, then the home address of the disk in the disk frame is sky.
The exchange network address of at least one disk frame is recorded in disk array information by step S203, the HBA In table.
Step S204, the HBA are using the exchange network address of at least one disk frame as index, by least one institute The home address for stating the disk in disk frame is recorded in the disk array information table.
After the heartbeat response bag that the disk frame in exchange network is sent is received in step S202, heartbeat response bag is extracted In disk frame exchange network address and disk frame in disk home address, the disk array letter being recorded in inside HBA It ceases in table, as shown in table 1.
1 disk array information table of table
During disk array information table is established, first, the exchange network address of each disk frame is recorded in magnetic In disk array information table, in table 1, the first row that the exchange network address mac0-macN of disk frame is respectively written into table 1, Then, due to that may have the home address of multiple disks under each disk frame, with the exchange network address of each disk frame For index, the home address of each disk in the disk frame is recorded in the disk array information table, until completing all The record of the home address of disk, so as to form such a complete disk array information table of table 1, so as to the friendship of disk frame Switching network address is index so that by the exchange network address of disk frame, can find the disk array information of the disk frame. It should be noted that the home address of each disk in the exchange network address of recording disc frame and disk frame can also not have Sequencing can record simultaneously.
Such a disk array information table is established in HBA, in subsequent operation, HBA can be according to the disk array The a certain disk that information table is given in a certain disk frame sends specific task dispatching.
Step S205, the HBA broadcast the second heartbeat broadcast packet, the second heartbeat broadcast packet by the exchange network Exchange network address including the HBA.
Step S206, the HBA receive the second heartbeat response bag that at least one disk frame is sent, second heart Jumping response bag includes the disk array information of the disk frame.
Since HBA is periodic broadcast heartbeat broadcast packet, so HBA is broadcasting heartbeat broadcast packet and is completing to exchange for the first time After the discovery procedure of disk array in network, broadcast heartbeat broadcast packet is also may proceed to, and continues to disk frame transmission Heartbeat response bag, the heartbeat broadcast packet broadcasted every time still can carry the exchange network address of HBA, and heartbeat response bag still can wrap Include the disk array information of disk frame.Herein, " first " and " second " in the first and second heartbeat broadcast/response bag is Show the temporal priority of broadcast/reception, there is no other particular meanings, the form of heartbeat broadcast/response bag etc. or phases With.Certainly, new disk frame may be extended in exchange network, hot plug may also can occur for the disk in original disk frame Or heat addition, therefore, the content of each heartbeat response bag may be different, exactly because as such, it is desirable to disk to foundation Array information table is updated.
Step S207, the HBA believe the disk array of the disk frame in the second heartbeat response bag of the reception Breath is compared with the information recorded in the disk array information table.
Whether HBA determines to have in exchange network the disk array of disk frame to believe according to the second heartbeat response bag received Breath updates, specifically by the disk array information and disk array information of the disk frame in the second heartbeat response bag of reception The information recorded in table is compared, if the disk array information for having disk frame in exchange network updates, HBA according to The the second heartbeat response bag received, the disk array information of the disk frame to being recorded in disk array information table carry out more Newly.It is specific relatively as follows with renewal process:
Step S208, if in not recording the second heartbeat response bag of the reception in the disk array information table Disk frame disk array information, then the HBA determine the disk array information for having disk frame in the exchange network Update.
Step S209, the HBA believe the disk array of the disk frame in the second heartbeat response bag of the reception Breath is recorded in the disk array information table.
After the discovery procedure of disk array is completed, new disk frame may be extended in exchange network, by that will receive The second heartbeat response bag in disk frame disk array information compared with the information recorded in disk array information table, If do not have completely there are the disk array information of the disk frame in Unrecorded second heartbeat response bag in disk array information table There is record, be the new disk frame of extension, it is determined that the disk array information for having disk frame in exchange network updates, will The disk array information is recorded in disk array information table, and the information of record is with including the exchange network of the disk frame of the extension The home address of disk in location and disk frame.
Step S210, if had recorded in the disk array information table in the second heartbeat response bag of the reception Disk frame exchange network address, but in the second heartbeat response bag of the reception in the disk array information table Disk frame exchange network address for index corresponding record disk frame in disk home address, the institute with the reception State that the home address of the disk in the disk frame in the second heartbeat response bag is inconsistent, then the HBA determines the exchange network In have disk frame disk array information update.
The disk of step S211, the HBA in the disk frame in the second heartbeat response bag of the reception Home address using the exchange network address of the disk frame in the second heartbeat response bag as index, updates the disk array The home address of disk in the disk frame recorded in information table.
After the discovery procedure of disk array is completed, disk in original disk frame it is possible that can be added or be removed, HBA periodically sends heartbeat broadcast packet, and HBA is believed by the disk array of the disk frame in the second heartbeat response bag that will receive Breath is compared with the information recorded in disk array information table, if having recorded second heart of reception in disk array information table The exchange network address of the disk frame in response bag is jumped, but in the second heartbeat response bag of reception in disk array information table The exchange network address of disk frame for index corresponding record disk frame in disk home address, described second with reception The home address of the disk in disk frame in heartbeat response bag is inconsistent, then HBA determines there is disk frame in the exchange network Disk array information update, disks of the HBA in the disk frame in the second heartbeat response bag of the reception Home address, using the exchange network address of the disk frame in the second heartbeat response bag as index, update disk array information table The home address of disk in the disk frame of middle record.
After step S212, the HBA periodically broadcast the second heartbeat broadcast packet by the exchange network, according to The the second heartbeat response bag received determines whether that exchange network chain rupture occurs for disk frame.
Step S213, if there is exchange network chain rupture occurs for disk frame, then the HBA deletes the disk array information table The disk array information of the disk frame of the generation exchange network chain rupture of middle record.
Disk frame is also required to be updated disk array information table there is a situation where exchange network chain rupture, i.e.,:The HBA cycles Property broadcast heartbeat broadcast packet, every time broadcast heartbeat broadcast packet when, the disk frame in disk array information table can be swapped Network chain rupture detects, and detects a certain disk frame chain rupture, relevant entries is just deleted, so as to update the disk array in time Information table.Wherein, chain rupture detection mode is flexible, such as sets chain rupture and detect number as m, when certain heartbeat broadcast packet is not received It to the heartbeat response of the JBOD frames of mac0, is denoted as 1 time, the continuous m times heartbeat response for not receiving mac0 is treated as JBOD frames hair Exchange network chain rupture event is given birth to.
As it can be seen that a kind of disk array based on exchange network provided according to embodiments of the present invention finds method, HBA passes through Broadcast heartbeat broadcast packet so that the heartbeat broadcast packet of HBA broadcast is being received by the disk frame that exchange network is connected with HBA Afterwards, heartbeat response bag is sent to host bus adaptor, and heartbeat response bag includes the disk array information of disk frame, so as to letter The disk array discovery procedure based on exchange network is singly effectively completed;And by establishing and safeguarding disk array information table, HBA can obtain the newer disk array information of disk frame in real time.
Referring to Fig. 5, find method for another disk array based on exchange network provided in an embodiment of the present invention Flow chart, HBA and disk frame are connected by the exchange network, and the disk in the disk frame forms the disk array, should Method comprises the following steps:
Step S301, disk frame receive the heartbeat broadcast packet that HBA is broadcasted by exchange network, and the heartbeat broadcast packet includes The exchange network address of the HBA.
In the present embodiment, in disc array system framework as shown in Figure 2, the one side of exchange network includes one or more HBA, opposite side then include one or more disk frames.It after each disk frame is connected to exchange network, is powered on, is completed initial Change, process decoupling, here, process decoupling refer to disk frame during initialization, the process that disk frame is initialized at oneself In a series of similar operation shaken hands on some that be done of disk initialization SAS protocols is completed with disk.
Meanwhile disk frame needs active collection is all under it to complete to add, identified operation (link reset Sequence the disc information of disk), the disc information include the home address of disk.
Disk frame receives the heartbeat broadcast packet that any one HBA is broadcasted in exchange network, which broadcasts the friendship for including HBA Switching network address.The exchange network address refers to that with unique lock or the information of HBA can be found, such as in ethernet networks, refers to HBA MAC Address.
Step S302, the disk frame send heartbeat response bag according to the exchange network address of the HBA to the HBA, The heartbeat response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes The exchange network address of the disk frame.
Disk frame may hang with down one or more disks, and the plurality of disk forms disk array, the magnetic hung under disk frame Disk number may also be zero.After the disk frame receives the heartbeat broadcast packet of HBA, according to the type of heartbeat broadcast packet, it can carry out Heartbeat responds, and sending heartbeat response bag according to the exchange network address of HBA gives the HBA.The heartbeat response bag includes the disk The exchange network address of frame is for example, by taking Ethernet as an example, and the exchange network address of disk frame is the MAC Address of disk frame, the friendship Switching network address can also other similar with unique lock or can find the information of disk frame.HBA passes through into exchange network All devices broadcast heartbeat broadcast packet, the disk frame of exchange network opposite side can receive the heartbeat broadcast packet, so as to Heartbeat broadcast packet is responded, so that the heartbeat response bag that HBA reception of magnetic disc frame is sent, it is another can to obtain exchange network The disk array information of the disk frame of side, so as to complete the discovery procedure of disk array
As it can be seen that a kind of disk array based on exchange network provided according to embodiments of the present invention finds method, by connecing The heartbeat broadcast packet of the host bus adaptor broadcast in exchange network is received, sends heartbeat response bag to host bus adaptor, Heartbeat response bag includes the disk array information of disk frame, so as to simply and effectively complete the disk battle array based on exchange network Row discovery procedure.
Referring to Fig. 6, find method for another disk array based on exchange network provided in an embodiment of the present invention Flow chart, HBA and disk frame are connected by the exchange network, and the disk in the disk frame forms the disk array, should Method comprises the following steps:
Step S401, disk frame receive the heartbeat broadcast packet that HBA is broadcasted by exchange network, and the heartbeat broadcast packet includes The exchange network address of the HBA.
Step S402, the disk frame send heartbeat response bag according to the exchange network address of the HBA to the HBA, The heartbeat response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes The exchange network address of the disk frame and the home address of the disk in the disk frame.
Step S401 and step S402 is identical with the step S301 and step S302 difference of embodiment illustrated in fig. 5, herein not It repeats again.
It should be noted that in the present embodiment, heartbeat broadcast packet and heartbeat response bag are the agreement according to exchange network The privately owned message of definition.The embodiment of the present invention does not include specific privately owned message definition, but needed in message it is special comprising some Field or content.For example, exchange network is Ethernet;Then the first heartbeat broadcast packet and the first heartbeat response bag are Ethernet Message.
In the present embodiment, the home address of the disk in disk frame is further included in the disk array information of the disk frame, For example, lower hang is SAS disks in disk frame, the home address of the disk in the disk frame refers to SAS Address, this Address is that disk is good once producing configuration, and each disk is different, and user is not required subsequently to set.When So, one or more disks, the disk number or zero of lower extension, if the disk number of lower extension can be hung in disk frame down It is zero, then the home address of the disk in the disk frame is sky.
Step S403, the disk frame record the exchange network address of the HBA.
The exchange network address of the HBA included in the heartbeat broadcast packet for each HBA broadcast that disk frame record receives, As shown in table 2.Record HBA exchange network address, be in order to understand in real time the information of the HBA of exchange network opposite side and The multiple tasks of each HBA of the disk frame to receiving is facilitated to be distributed and reply, that is, complete disk array discovery procedure Afterwards, each disk frame is also possible to receive the multiple tasks that one or more HBA are sent, and disk frame stores the friendship of HBA in table 2 Correspondence between switching network address and task number (tag), disk frame are distributed and reply according to tag, and when a certain All tag bags of mac addresses HBA are all handled finish after just discharge the list item resource of the HBA.
The exchange network address of 2 HBA of table and the mapping table of task number
HBA periodically broadcasts heartbeat broadcast packet, and disk frame is in real time according to the heartbeat broadcast packet newly received to record The exchange network address of HBA be updated, so as to can be safeguarded in subsequent process the exchange network address of HBA and task number it Between correspondence, task is replied according to the correspondence.Due to that may newly increase HBA in exchange network, HBA weeks Heartbeat broadcast packet is broadcasted to phase property, after disk frame receives the heartbeat broadcast packet of new HBA broadcast, can record new HBA's Exchange network address.
Step S404, if the disk frame determines that exchange network chain rupture, the generation of deletion record occurs with the HBA The exchange network address of the HBA of exchange network chain rupture.
When disk frame receives heartbeat broadcast packet every time, network chain rupture detection can be swapped to the HBA of record, is detected A certain HBA chain ruptures just delete relevant entries, so as to update the record in time.Wherein, chain rupture detection mode is flexible, example It such as sets chain rupture and detects number as m, certain that corresponding HBA is sent when the exchange network address for not receiving some HBA is once Heartbeat broadcast packet is denoted as 1 time, the continuous m times heartbeat broadcast packet for not receiving the HBA, is treated as the HBA exchange network has occurred breaking Chain event.
Herein it should be noted that the heartbeat broadcast packet and heartbeat response bag mentioned in step S401 and step S402, With the heartbeat broadcast packet mentioned in step S403 and step S404 and the temporal elder generation of heartbeat response bag, only reception/transmission After distinguish, there is no other particular meanings, the form of heartbeat broadcast/response bag etc. or identical.
As it can be seen that a kind of disk array based on exchange network provided according to embodiments of the present invention finds method, by connecing The heartbeat broadcast packet of the host bus adaptor broadcast in exchange network is received, sends heartbeat response bag to host bus adaptor, Heartbeat response bag includes the disk array information of disk frame, so as to simply and effectively complete the disk battle array based on exchange network Row discovery procedure;And record and safeguard the exchange network address of HBA, be conducive to disk frame and obtain HBA in exchange network in real time Information.
Referring to Fig. 7, be a kind of structure diagram of host bus adaptor provided in an embodiment of the present invention, host bus Adapter is connected at least one disk frame by exchange network, and the disk in the disk frame forms disk array, the host Bus adapter 1000 includes:
Radio unit 11, for broadcasting the first heartbeat broadcast packet, the first heartbeat broadcast packet by the exchange network Exchange network address including the HBA.
In the present embodiment, in disc array system framework as shown in Figure 2, the one side of exchange network includes one or more HBA, opposite side then include one or more disk frames.It after each HBA is connected to exchange network, is powered on, completes initialization, HBA obtains the exchange network address of itself, such as in ethernet networks, HBA obtains the MAC Address of itself, the exchange network address Can also other similar with unique lock or the information of HBA can be found.Radio unit 11 broadcasts heartbeat broadcast packet, the broadcast No specific target object is wrapped, the HBA and disk frame in the exchange network can receive the broadcast packet, the broadcast packet Include the exchange network address of HBA, after only other HBA receive the broadcast packet of the HBA, by identifying that the heartbeat is broadcasted The type of bag will not carry out heartbeat response.
Receiving unit 12, for receiving the first heartbeat response bag that at least one disk frame is sent, first heart Jumping response bag includes the disk array information of at least one disk frame, obtains the disk array of at least one disk frame Information;Wherein, the disk array information of the disk frame includes the exchange network address of the disk frame.
Multiple HBA in Fig. 2 are connected by exchange network with multiple disk frames, and one or more magnetic are hung under disk frame Disk, the one or more disk form disk array, disk frame may also without connecting any disk, this multiple HBA with it is multiple Disk frame equality is in exchange network, i.e. HBA does not have specific attaching relation with the disk array under disk frame.Switching network After any one disk frame in network receives the heartbeat broadcast packet of HBA, heartbeat response can be carried out, according to the exchange network of HBA Address sends heartbeat response bag to HBA.Receiving unit 12 receives the heartbeat response bag, which includes the disk frame Disk array information, the disk array information of the disk frame includes the exchange network address of the disk frame, for example, with Ethernet Exemplified by, the exchange network address of disk frame is the MAC Address of disk frame, the exchange network address can also be it is other it is similar can With unique lock or find the information of disk frame.HBA broadcasts heartbeat broadcast packet by all devices into exchange network, exchanges The disk frame of network opposite side can receive the heartbeat broadcast packet, and so as to be responded to heartbeat broadcast packet, then HBA connects The heartbeat response bag that disk frame is sent is received, the disk array information of the disk frame of exchange network opposite side can be obtained, so as to complete Into the discovery procedure of disk array
As it can be seen that a kind of HBA provided according to embodiments of the present invention, the HBA is by broadcasting heartbeat broadcast packet so that passes through friendship The disk frame that switching network is connected with HBA sends heartbeat response bag to host bus after the heartbeat broadcast packet of HBA broadcast is received Adapter, heartbeat response bag include the disk array information of disk frame, so as to simply and effectively complete based on exchange network Disk array discovery procedure.
Referring to Fig. 8, being the structure diagram of another host bus adaptor provided in an embodiment of the present invention, host is total Line adapter is connected at least one disk frame by exchange network, and the disk in the disk frame forms disk array, the master Machine bus adapter 2000 includes:
Radio unit 21, for broadcasting the first heartbeat broadcast packet, the first heartbeat broadcast packet by the exchange network Exchange network address including the HBA.
Receiving unit 22, for receiving the first heartbeat response bag that at least one disk frame is sent, first heart Jumping response bag includes the disk array information of at least one disk frame, obtains the disk array of at least one disk frame Information;Wherein, the disk array information of the disk frame is included in the exchange network address and the disk frame of the disk frame Disk home address.
The radio unit 11 of the function and embodiment illustrated in fig. 7 of radio unit 21 and receiving unit 22 and receiving unit 12 Function difference is identical, and details are not described herein.
It should be noted that in the present embodiment, heartbeat broadcast packet and heartbeat response bag are the agreement according to exchange network The privately owned message of definition.The embodiment of the present invention does not include specific privately owned message definition, but needed in message it is special comprising some Field or content.For example, exchange network is Ethernet;Then the first heartbeat broadcast packet and the first heartbeat response bag are Ethernet Message.
In the present embodiment, the home address of the disk in disk frame is further included in the disk array information of the disk frame, For example, lower hang is SAS disks in disk frame, the home address of the disk in the disk frame refers to SAS Address, this Address is that disk is good once producing configuration, and each disk is different, and user is not required subsequently to set.When So, one or more disks, the disk number or zero of lower extension, if the disk number of lower extension can be hung in disk frame down It is zero, then the home address of the disk in the disk frame is sky.
First recording unit 23, for the disk array information of at least one disk frame of the acquisition to be recorded in In disk array information table.
In the present embodiment, the first recording unit 23 includes:Disk frame address recording unit 231 and disk address record Member 232.
Disk frame address recording unit 231, for the exchange network address of at least one disk frame to be recorded in institute It states in disk array information table.
Disk address recording unit 232, for using the exchange network address of at least one disk frame as index, it is near The home address of disk in a few disk frame is recorded in the disk array information table.
After the heartbeat response bag sent in the disk frame during receiving unit 22 receives exchange network, heartbeat response bag is extracted In disk frame exchange network address and disk frame in disk home address, the disk array letter being recorded in inside HBA It ceases in table, as shown in table 1.
During disk array information table is established, first, the exchange network address of each disk frame is recorded in magnetic In disk array information table, in table 1, the first row that the exchange network address mac0-macN of disk frame is respectively written into table 1, Then, due to that may have the home address of multiple disks under each disk frame, with the exchange network address of each disk frame For index, the home address of each disk in the disk frame is recorded in the disk array information table, until completing all The record of the home address of disk, so as to form such a complete disk array information table of table 1, so as to the friendship of disk frame Switching network address is index so that by the exchange network address of disk frame, can find the disk array information of the disk frame. It should be noted that the home address of each disk in the exchange network address of recording disc frame and disk frame can also not have Sequencing can record simultaneously.
Such a disk array information table is established in HBA, in subsequent operation, HBA can be according to the disk array The a certain disk that information table is given in a certain disk frame sends specific task dispatching.
Radio unit 21 is additionally operable to broadcast the second heartbeat broadcast packet, the second heartbeat broadcast packet by the exchange network Exchange network address including the HBA.
Receiving unit 22 is additionally operable to receive the second heartbeat response bag that at least one disk frame is sent, second heart Jumping response bag includes the disk array information of the disk frame.
Since radio unit 21 is periodic broadcast heartbeat broadcast packet, so radio unit 21 is wide in broadcast heartbeat for the first time After broadcasting bag and completing the discovery procedure of the disk array in exchange network, broadcast heartbeat broadcast packet is also may proceed to, and receives list Member 22 continues to the heartbeat response bag of disk frame transmission, and the heartbeat broadcast packet broadcasted every time still can carry the switching network of HBA Network address, heartbeat response bag still can include the disk array information of disk frame.Herein, the first and second heartbeat broadcast/sound " first " and " second " in should wrapping simply indicates that the temporal priority of broadcast/reception, and there is no other particular meanings, heartbeats Form of broadcast/response bag etc. is still identical.Certainly, new disk frame, original disk frame may be extended in exchange network In disk hot plug or heat addition may also can occur, therefore, the content of each heartbeat response bag may be different, is exactly Because of this, it needs to be updated the disk array information table of foundation.
Updating block 24 for the second heartbeat response bag received according to, is determined in the exchange network The disk array information for whether having disk frame updates.
If the disk array information that updating block 24 is additionally operable to have disk frame in the exchange network updates, root According to the second heartbeat response bag received, the disk array to the disk frame recorded in the disk array information table Information is updated.
Updating block 24 determines whether there is the disk of disk frame in exchange network according to the second heartbeat response bag received Array information updates, specifically by the disk array information of the disk frame in the second heartbeat response bag of reception and disk battle array The information recorded in column information table is compared, if the disk array information for having disk frame in exchange network updates, HBA believes according to the second heartbeat response bag received, the disk array of the disk frame to being recorded in disk array information table Breath is updated.
Updating block 24 includes the first comparing unit 241, the second determination unit 242 and the second recording unit 243.
First comparing unit 241, for the disk battle array of the disk frame in the second heartbeat response bag by the reception Column information is compared with the information recorded in the disk array information table.
Second determination unit 242, if for not recording described the second of the reception in the disk array information table The disk array information of disk frame in heartbeat response bag, it is determined that have the disk array information of disk frame in the exchange network It updates.
Second recording unit 243, for the disk battle array of the disk frame in the second heartbeat response bag by the reception Column information is recorded in the disk array information table.
After the discovery procedure of disk array is completed, new disk frame may be extended in exchange network, first is relatively more single Member 241 by will receive the second heartbeat response bag in disk frame disk array information with being recorded in disk array information table Information be compared, if there are the disks of the disk frame in Unrecorded second heartbeat response bag in disk array information table Array information does not record completely, is the new disk frame of extension, then the second determination unit 242 determines have in exchange network The disk array information of disk frame updates, which is recorded in disk array and believed by the second recording unit 243 It ceases in table, the information of record includes the exchange network address of disk frame of the extension and the home address of the disk in disk frame.
It is single that updating block 24 may also include the second comparing unit 244, the second determination unit 245 and the update of disk home address Member 246.
Second comparing unit 244, for the disk battle array of the disk frame in the second heartbeat response bag by the reception Column information is compared with the information recorded in the disk array information table.
Second determination unit 245, if for having recorded described the second of the reception in the disk array information table The exchange network address of disk frame in heartbeat response bag, but with described the second of the reception in the disk array information table The exchange network address of disk frame in heartbeat response bag is the home address of the disk in the disk frame of index corresponding record, with The home address of the disk in disk frame in the second heartbeat response bag of the reception is inconsistent, it is determined that the exchange The disk array information for having disk frame in network updates.
Disk home address updating block 246, for the disk in the second heartbeat response bag according to the reception The home address of disk in frame, using the exchange network address of the disk frame in the second heartbeat response bag as index, update The home address of disk in the disk frame recorded in the disk array information table.
After the discovery procedure of disk array is completed, disk in original disk frame it is possible that can be added or be removed, Radio unit 21 periodically sends heartbeat broadcast packet, and the second comparing unit 244 passes through in the second heartbeat response bag that will receive Disk frame disk array information compared with the information recorded in disk array information table, if disk array information table In have recorded the exchange network address of disk frame in the second heartbeat response bag of reception, but to receive in disk array information table The second heartbeat response bag in disk frame exchange network address for index corresponding record disk frame in disk inside The home address of the disk in disk frame in address, with the second heartbeat response bag of reception is inconsistent, then second determines Unit 245 determines have the disk array information of disk frame to update in the exchange network, disk home address updating block The home address of 246 disk in the disk frame in the second heartbeat response bag of the reception, is rung with the second heartbeat The exchange network address of disk frame in should wrapping is to index, the disk in the disk frame recorded in update disk array information table Home address.
Radio unit 21 is additionally operable to periodically broadcast the second heartbeat broadcast packet by the exchange network.
3rd determination unit 25, for determining whether that disk frame exchanges according to the second heartbeat response bag received Network chain rupture.
Unit 26 is deleted, for exchange network chain rupture to occur if there is disk frame, then deletes the disk array information table The disk array information of the disk frame of the generation exchange network chain rupture of middle record.
Disk frame is also required to be updated disk array information table there is a situation where exchange network chain rupture, i.e.,:Broadcast is single Member 21 periodically broadcasts heartbeat broadcast packet, and when broadcasting heartbeat broadcast packet every time, the 3rd determination unit 25 can believe disk array Disk frame in breath table swaps network chain rupture detection, detects a certain disk frame chain rupture, deletes unit 26 and just deletes correlation List item, so as to update the disk array information table in time.Wherein, chain rupture detection mode is flexible, such as setting chain rupture inspection Survey number be m, when certain heartbeat broadcast packet do not receive the JBOD frames of mac0 heartbeat response, be denoted as 1 time, continuous m times is not The heartbeat response of mac0 is received, the JBOD frames is treated as and exchange network chain rupture event has occurred.
As it can be seen that a kind of HBA provided according to embodiments of the present invention, the HBA is by broadcasting heartbeat broadcast packet so that passes through friendship The disk frame that switching network is connected with HBA sends heartbeat response bag to host bus after the heartbeat broadcast packet of HBA broadcast is received Adapter, heartbeat response bag include the disk array information of disk frame, so as to simply and effectively complete based on exchange network Disk array discovery procedure;And by establishing and safeguarding disk array information table, HBA can obtain the update of disk frame in real time Disk array information.
Referring to Fig. 9, be a kind of structure diagram of disk frame provided in an embodiment of the present invention, host bus adaptor HBA is connected with the disk frame by exchange network, and the disk in the disk frame forms disk array, which wraps It includes:
Receiving unit 31, for receiving the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, the heartbeat is wide Broadcasting includes the exchange network address of the HBA.
In the present embodiment, in disc array system framework as shown in Figure 2, the one side of exchange network includes one or more HBA, opposite side then include one or more disk frames.It after each disk frame is connected to exchange network, is powered on, is completed initial Change, process decoupling, here, process decoupling refer to disk frame during initialization, the process that disk frame is initialized at oneself In a series of similar operation shaken hands on some that be done of disk initialization SAS protocols is completed with disk.
Meanwhile disk frame needs active collection is all under it to complete to add, identified operation (link reset Sequence the disc information of disk), the disc information include the home address of disk.
Receiving unit 31 receives the heartbeat broadcast packet that any one HBA is broadcasted in exchange network, and heartbeat broadcast includes HBA Exchange network address.The exchange network address refers to that with unique lock or the information of HBA can be found, such as in ethernet networks, Refer to the MAC Address of HBA.
For the exchange network address according to the HBA, heartbeat response bag is sent to the HBA for transmitting element 32, described Heartbeat response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes described The exchange network address of disk frame.
Disk frame may hang with down one or more disks, and the plurality of disk forms disk array, the magnetic hung under disk frame Disk number may also be zero.Receiving unit 31 is after the heartbeat broadcast packet of HBA is received, and transmitting element 32 is according to heartbeat broadcast packet Type, heartbeat response can be carried out, according to the exchange network address of HBA send heartbeat response bag give the HBA.The heartbeat response bag Include the exchange network address of the disk frame for example, by taking Ethernet as an example, the exchange network address of disk frame is disk frame MAC Address, the exchange network address can also other similar with unique lock or can find the information of disk frame.HBA passes through All devices broadcast heartbeat broadcast packet into exchange network, the disk frame of exchange network opposite side can receive the heartbeat Broadcast packet, so as to be responded to heartbeat broadcast packet, so that the heartbeat response bag that HBA reception of magnetic disc frame is sent, can obtain The disk array information of the disk frame of exchange network opposite side, so as to complete the discovery procedure of disk array
As it can be seen that a kind of disk frame provided according to embodiments of the present invention, is fitted by the host bus received in exchange network The heartbeat broadcast packet of orchestration broadcast sends heartbeat response bag to host bus adaptor, and heartbeat response bag includes disk frame Disk array information, so as to simply and effectively complete the disk array discovery procedure based on exchange network.
Referring to Fig. 10, be the structure diagram of another disk frame provided in an embodiment of the present invention, host bus adapter Device HBA is connected with the disk frame by exchange network, and the disk in the disk frame forms disk array, the disk frame 4000 Including:
Receiving unit 41, for receiving the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, the heartbeat is wide Broadcasting includes the exchange network address of the HBA.
For the exchange network address according to the HBA, heartbeat response bag is sent to the HBA for transmitting element 42, described Heartbeat response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes described The exchange network address of disk frame and the home address of the disk in the disk frame.
Receiving unit 31 and transmitting element 32 in the function and embodiment illustrated in fig. 9 of receiving unit 41 and transmitting element 42 Function difference it is identical, details are not described herein.
It should be noted that in the present embodiment, heartbeat broadcast packet and heartbeat response bag are the agreement according to exchange network The privately owned message of definition.The embodiment of the present invention does not include specific privately owned message definition, but needed in message it is special comprising some Field or content.For example, exchange network is Ethernet;Then the first heartbeat broadcast packet and the first heartbeat response bag are Ethernet Message.
In the present embodiment, the home address of the disk in disk frame is further included in the disk array information of the disk frame, For example, lower hang is SAS disks in disk frame, the home address of the disk in the disk frame refers to SAS Address, this Address is that disk is good once producing configuration, and each disk is different, and user is not required subsequently to set.When So, one or more disks, the disk number or zero of lower extension, if the disk number of lower extension can be hung in disk frame down It is zero, then the home address of the disk in the disk frame is sky.
Recording unit 43, for recording the exchange network address of the HBA.
Recording unit 43 is with recording the exchange network of the HBA included in the heartbeat broadcast packet of each HBA broadcast received Location, as shown in table 2.Recording unit 43 records the exchange network address of HBA, is to understand exchange network opposite side in real time The information of HBA and the multiple tasks of each HBA of the disk frame to receiving is facilitated to be distributed and reply, that is, complete magnetic After disk array discovery procedure, each disk frame is also possible to receive the multiple tasks that one or more HBA are sent, and disk frame is in table The correspondence between the exchange network address of HBA and task number (tag) is stored in 2, disk frame is distributed and returns according to tag Again, and after all tag bags of a certain mac addresses HBA are all handled and finished the list item resource of the HBA is just discharged.
HBA periodically broadcasts heartbeat broadcast packet, and disk frame is in real time according to the heartbeat broadcast packet newly received to record The exchange network address of HBA be updated, so as to can be safeguarded in subsequent process the exchange network address of HBA and task number it Between correspondence, task is replied according to the correspondence.Due to that may newly increase HBA in exchange network, HBA weeks Heartbeat broadcast packet is broadcasted to phase property, after disk frame receives the heartbeat broadcast packet of new HBA broadcast, can record new HBA's Exchange network address.
Unit 44 is deleted, if determining that exchange network chain rupture, deletion record occurs with the HBA for the disk frame Generation exchange network chain rupture the HBA exchange network address.
When disk frame receives heartbeat broadcast packet every time, network chain rupture detection can be swapped to the HBA of record, is detected A certain HBA chain ruptures delete unit 44 and just delete relevant entries, so as to update the record in time.Wherein, chain rupture detection side Formula is flexible, such as sets chain rupture and detect number as m, and when the exchange network address for not receiving some HBA, corresponding HBA is sent Certain heartbeat broadcast packet, be denoted as 1 time, the continuous m times heartbeat broadcast packet for not receiving the HBA is treated as the HBA and is handed over Switching network chain rupture event.
As it can be seen that a kind of disk frame provided according to embodiments of the present invention, is fitted by the host bus received in exchange network The heartbeat broadcast packet of orchestration broadcast sends heartbeat response bag to host bus adaptor, and heartbeat response bag includes disk frame Disk array information, so as to simply and effectively complete the disk array discovery procedure based on exchange network;And it records and safeguards The exchange network address of HBA is conducive to disk frame and obtains HBA information in exchange network in real time.
1 is please referred to Fig.1, for the structure diagram of another host bus adaptor provided in an embodiment of the present invention, the master Machine bus adapter 5000 includes:Processor 51, memory 52, input equipment 53, output equipment 54 and bus system 55, HBA is connected at least one disk frame by the exchange network, and the disk in the disk frame forms the disk array, In:
Processor 51 controls the operation of host bus adaptor 5000, and processor 51 can also be known as central processing unit (Central Processing Unit, CPU).Processor 51 may be a kind of IC chip, have the processing energy of signal Power.Processor 51 can also be general processor, digital signal processor (Digital Signal Processing, DSP), Application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor Logical device, discrete hardware components.General processor can be microprocessor or the processor can also be any conventional Processor etc..
Memory 52 can include read-only memory and random access memory, and provide instruction sum number to processor 51 According to.The a part of of memory 52 can also include nonvolatile RAM (NVRAM).
The various components of host bus adaptor 5000 are coupled by bus system 55, which can be industry Standard architecture (Industry Standard Architecture, ISA) bus, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..The bus can be one or more physical circuit, when being a plurality of object Address bus, data/address bus, controlling bus etc. can be divided into during lineation road.In some other embodiment of the present invention, processing Device 51, memory 52 and input equipment 53, output equipment 54 can also be directly connected to by communication line.
Wherein, processor 51 reads the computer program in memory 52 to perform following steps:
First heartbeat broadcast packet is broadcasted by the exchange network, the first heartbeat broadcast packet includes the friendship of the HBA Switching network address;
The first heartbeat response bag that at least one disk frame is sent is received, the first heartbeat response bag is included at least The disk array information of one disk frame obtains the disk array information of at least one disk frame;Wherein, the magnetic The disk array information of disk frame includes the exchange network address of the disk frame.
As a kind of embodiment, processor 51 is additionally operable to perform following steps:
The disk array information of at least one disk frame of the acquisition is recorded in the disk array information table In.
As another embodiment, the disk array information of the disk frame further includes the disk in the disk frame Home address;Then processor 51 performs the HBA and remembers the disk array information of at least one disk frame of the acquisition The step in the disk array information table is recorded, including:
The exchange network address of at least one disk frame is recorded in the disk array information table;
Using the exchange network address of at least one disk frame as index, by the disk at least one disk frame Home address be recorded in the disk array information table.
As another embodiment, processor 51 is additionally operable to perform following steps:
Second heartbeat broadcast packet is broadcasted by the exchange network, the second heartbeat broadcast packet includes the friendship of the HBA Switching network address;
The second heartbeat response bag that at least one disk frame is sent is received, the second heartbeat response bag includes described The disk array information of disk frame;
According to the second heartbeat response bag received, determine whether there is the magnetic of disk frame in the exchange network Disk array information updates;
If the disk array information for having disk frame in the exchange network updates, the institute that receives according to The second heartbeat response bag is stated, the disk array information of the disk frame to being recorded in the disk array information table is updated.
Wherein, processor 51 performs the second heartbeat response bag received described in the basis, determines the exchange The disk array information for whether having disk frame in network updates;If there is the disk array of disk frame in the exchange network Information updates, then the second heartbeat response bag that the HBA is received according to, to the disk array information table The step of disk array information of the disk frame of middle record is updated, including:
The HBA second heartbeat of the reception is responded in disk frame disk array information and the disk The information recorded in array information table is compared;
If the disk frame in second heartbeat response of the reception is not recorded in the disk array information table Disk array information, then the HBA determine there is the disk array information of disk frame to update in the exchange network;
The disk array information of disk frame in second heartbeat response of the reception is recorded in described by the HBA In disk array information table.
Wherein, processor 51 performs the second heartbeat response bag received described in the basis, determines the exchange The disk array information for whether having disk frame in network updates;If there is the disk array of disk frame in the exchange network Information updates, then the second heartbeat response bag that the HBA is received according to, to the disk array information table The step of disk array information of the disk frame of middle record is updated, including:
The disk array information of disk frame during second heartbeat of the reception is responded is believed with the disk array The information recorded in breath table is compared;
If the disk frame in second heartbeat response of the reception is had recorded in the disk array information table Exchange network address, but with the friendship of the disk frame in second heartbeat response of the reception in the disk array information table The home address of the disk in the disk frame of index corresponding record is in switching network address, second heartbeat sound with the reception The home address of the disk in disk frame in answering is inconsistent, it is determined that the disk array for having disk frame in the exchange network is believed Breath updates;
The home address of the disk in disk frame in being responded according to second heartbeat of the reception, with described second The exchange network address of disk frame in heartbeat response is index, is updated in the disk frame recorded in the disk array information table Disk home address.
As another embodiment, processor 51 is additionally operable to perform following steps:
The second heartbeat broadcast packet is periodically broadcasted by the exchange network;
The second heartbeat response bag according to receiving determines whether that exchange network chain rupture occurs for disk frame;
If there is exchange network chain rupture occurs for disk frame, then delete to record in the disk array information table and exchange The disk array information of the disk frame of network chain rupture.
Wherein, the exchange network is Ethernet;Then the first heartbeat broadcast packet and the first heartbeat response bag are Ether network packet.
As it can be seen that a kind of host bus adaptor provided according to embodiments of the present invention, HBA by broadcasting heartbeat broadcast packet, So that by the disk frame that exchange network is connected with HBA after the heartbeat broadcast packet of HBA broadcast is received, heartbeat response bag is sent To host bus adaptor, heartbeat response bag includes the disk array information of disk frame, so as to simply and effectively complete base In the disk array discovery procedure of exchange network.
2 are please referred to Fig.1, for the structure diagram of another disk frame provided in an embodiment of the present invention, the disk frame 6000 Including:Processor 61, memory 62, input equipment 63, output equipment 64 and bus system 65, HBA and disk frame pass through friendship Switching network connects, and the disk in disk frame forms disk array, wherein:
Processor 61 controls the operation of disk frame 6000, and processor 61 can also be known as central processing unit (Central Processing Unit, CPU).Processor 61 may be a kind of IC chip, have the processing capacity of signal.Processor 61 can also be general processor, digital signal processor (Digital Signal Processing, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.General processor can be microprocessor or the processor can also be any conventional processor etc..
Memory 62 can include read-only memory and random access memory, and provide instruction sum number to processor 61 According to.The a part of of memory 62 can also include nonvolatile RAM (NVRAM).
The various components of disk frame 6000 are coupled by bus system 65, which can be Industry Standard Architecture Structure (Industry Standard Architecture, ISA) bus, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..The bus can be one or more physical circuit, when being a plurality of object Address bus, data/address bus, controlling bus etc. can be divided into during lineation road.In some other embodiment of the present invention, processing Device 61, memory 62 and input equipment 63, output equipment 64 can also be directly connected to by communication line.
Wherein, processor 61 reads the computer program in memory 62 to perform following steps:
The disk frame receives the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, the heartbeat broadcast packet Exchange network address including the HBA;
The disk frame sends heartbeat response bag, the heartbeat according to the exchange network address of the HBA to the HBA Response bag includes the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes the disk The exchange network address of frame.
As a kind of embodiment, processor 61 is additionally operable to perform following steps:
The disk frame records the exchange network address of the HBA.
As another embodiment, processor 61 is additionally operable to perform following steps:
If the disk frame determines that exchange network chain rupture, the generation exchange network of deletion record occurs with the HBA The exchange network address of the HBA of chain rupture.
Wherein, the exchange network is Ethernet;Then the heartbeat broadcast packet and the heartbeat response bag are Ethernet report Text.
As it can be seen that a kind of disk frame provided according to embodiments of the present invention, is fitted by the host bus received in exchange network The heartbeat broadcast packet of orchestration broadcast sends heartbeat response bag to host bus adaptor, and heartbeat response bag includes disk frame Disk array information, so as to simply and effectively complete the disk array discovery procedure based on exchange network.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because According to the present invention, some steps may be employed other orders or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with It is realized with hardware realization or firmware realization or combination thereof mode.It when implemented in software, can be by above-mentioned function It is stored in computer-readable medium or is transmitted as one or more instructions on computer-readable medium or code.Meter Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes being convenient for from a place to another Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With Exemplified by this but it is not limited to:Computer-readable medium can include random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used in Carry or storage with instruction or data structure form desired program code simultaneously can by computer access any other Medium.In addition.Any connection can be suitably become computer-readable medium.For example, if software is using coaxial cable, light Fine optical cable, twisted-pair feeder, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio and The wireless technology of microwave etc is transmitted from website, server or other remote sources, then coaxial cable, optical fiber cable, double The wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc be included in belonging to medium it is fixing in.Such as this hair Used in bright, disk (Disk) and dish (disc) include compressing optical disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), Floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical replicate data.Group above Conjunction should also be as being included within the protection domain of computer-readable medium.
In short, the foregoing is merely the preferred embodiments of technical solution of the present invention, it is not intended to limit the present invention's Protection domain.Within the spirit and principles of the invention, any modifications, equivalent replacements and improvements are made should be included in Within protection scope of the present invention.

Claims (24)

1. a kind of disk array based on exchange network finds method, which is characterized in that host bus adaptor HBA and at least one A disk frame is connected by the exchange network, and the disk in the disk frame forms the disk array;The described method includes:
The HBA broadcasts the first heartbeat broadcast packet by the exchange network, and the first heartbeat broadcast packet includes the HBA's Exchange network address;
The HBA receives the first heartbeat response bag that at least one disk frame is sent, and the first heartbeat response bag includes The disk array information of at least one disk frame obtains the disk array information of at least one disk frame;Wherein, institute Stating the disk array information of disk frame includes the exchange network address of the disk frame.
2. the method as described in claim 1, which is characterized in that further include:
The disk array information of at least one disk frame of the acquisition is recorded in disk array information table by the HBA In.
3. method as claimed in claim 2, which is characterized in that the disk array information of the disk frame further includes the disk The home address of disk in frame;Then the HBA remembers the disk array information of at least one disk frame of the acquisition It records in the disk array information table, including:
The exchange network address of at least one disk frame is recorded in the disk array information table by the HBA;
The HBA, will be at least one disk frame using the exchange network address of at least one disk frame as index The home address of disk is recorded in the disk array information table.
4. method as claimed in claim 2 or claim 3, which is characterized in that further include:
The HBA broadcasts the second heartbeat broadcast packet by the exchange network, and the second heartbeat broadcast packet includes the HBA's Exchange network address;
The HBA receives the second heartbeat response bag that at least one disk frame is sent, and the second heartbeat response bag includes The disk array information of the disk frame;
The second heartbeat response bag that the HBA is received according to, determines whether there is disk frame in the exchange network Disk array information update;
If the disk array information for having disk frame in the exchange network updates, the HBA is received according to The second heartbeat response bag, the disk array information of disk frame recorded in the disk array information table is carried out more Newly.
5. method as claimed in claim 4, which is characterized in that second heartbeat that the HBA is received according to is rung It should wrap, the disk array information for determining whether to have disk frame in the exchange network updates;If in the exchange network The disk array information for having disk frame updates, then the second heartbeat response bag that the HBA is received according to, right The disk array information of the disk frame recorded in the disk array information table is updated, including:
The HBA is by the disk array information of the disk frame in the second heartbeat response bag of the reception and the disk battle array The information recorded in column information table is compared;
If the magnetic of the disk frame in the second heartbeat response bag of the reception is not recorded in the disk array information table Disk array information, then the HBA determine there is the disk array information of disk frame to update in the exchange network;
The disk array information of disk frame in the second heartbeat response bag of the reception is recorded in the magnetic by the HBA In disk array information table.
6. method as claimed in claim 4, which is characterized in that second heartbeat that the HBA is received according to is rung It should wrap, the disk array information for determining whether to have disk frame in the exchange network updates;If in the exchange network The disk array information for having disk frame updates, then the second heartbeat response bag that the HBA is received according to, right The disk array information of the disk frame recorded in the disk array information table is updated, including:
The HBA is by the disk array information of the disk frame in the second heartbeat response bag of the reception and the disk battle array The information recorded in column information table is compared;
If the friendship of the disk frame in the second heartbeat response bag of the reception is had recorded in the disk array information table Switching network address, but with the friendship of the disk frame in the second heartbeat response bag of the reception in the disk array information table The home address of the disk in the disk frame of index corresponding record is in switching network address, second heartbeat sound with the reception The home address of the disk in disk frame in should wrapping is inconsistent, then the HBA determines there is disk frame in the exchange network Disk array information updates;
The home address of disks of the HBA in the disk frame in the second heartbeat response bag of the reception, with institute The exchange network address of the disk frame in the second heartbeat response bag is stated as index, updates what is recorded in the disk array information table The home address of disk in disk frame.
7. method as claimed in claim 2 or claim 3, which is characterized in that further include:
The HBA periodically broadcasts the second heartbeat broadcast packet by the exchange network;
The HBA determines whether that exchange network chain rupture occurs for disk frame according to the second heartbeat response bag received;
If there is exchange network chain rupture occurs for disk frame, then the HBA deletes the generation recorded in the disk array information table The disk array information of the disk frame of exchange network chain rupture.
8. according to claim 1-3 any one of them methods, which is characterized in that the exchange network is Ethernet;It is then described First heartbeat broadcast packet and the first heartbeat response bag are ether network packet.
9. a kind of disk array based on exchange network finds method, which is characterized in that host bus adaptor HBA and disk frame It is connected by the exchange network, the disk in the disk frame forms the disk array;The described method includes:
The disk frame receives the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, and the heartbeat broadcast packet includes The exchange network address of the HBA;
The disk frame sends heartbeat response bag, the heartbeat response according to the exchange network address of the HBA to the HBA Include the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes the disk frame Exchange network address.
10. method as claimed in claim 9, which is characterized in that further include:
The disk frame records the exchange network address of the HBA.
11. method as claimed in claim 10, which is characterized in that further include:
If the disk frame determines that exchange network chain rupture, the generation exchange network chain rupture of deletion record occurs with the HBA The HBA exchange network address.
12. the method as described in claim 9-11 any one, which is characterized in that the exchange network is Ethernet;Then institute It is ether network packet to state heartbeat broadcast packet and the heartbeat response bag.
13. a kind of host bus adaptor HBA, which is characterized in that the HBA and at least one disk frame are connected by exchange network It connects, the disk in the disk frame forms disk array;The HBA includes:
Radio unit, for broadcasting the first heartbeat broadcast packet by the exchange network, the first heartbeat broadcast packet includes institute State the exchange network address of HBA;
Receiving unit, for receiving the first heartbeat response bag that at least one disk frame is sent, the first heartbeat response Include the disk array information of at least one disk frame, obtain the disk array information of at least one disk frame; Wherein, the disk array information of the disk frame includes the exchange network address of the disk frame.
14. HBA as claimed in claim 13, which is characterized in that further include:
First recording unit, for the disk array information of at least one disk frame of the acquisition to be recorded in the magnetic In disk array information table.
15. HBA as claimed in claim 14, which is characterized in that the disk array information of the disk frame further includes the magnetic The home address of disk in disk frame;Then first recording unit includes:
Disk frame address recording unit, for the exchange network address of at least one disk frame to be recorded in the disk battle array In column information table;
Disk address recording unit, for using the exchange network address of at least one disk frame as index, will be at least one The home address of disk in the disk frame is recorded in the disk array information table.
16. the HBA as described in claims 14 or 15, it is characterised in that:
The radio unit is additionally operable to broadcast the second heartbeat broadcast packet, the second heartbeat broadcast packet bag by the exchange network Include the exchange network address of the HBA;
The receiving unit is additionally operable to receive the second heartbeat response bag that at least one disk frame is sent, second heartbeat Response bag includes the disk array information of the disk frame;
The HBA is further included:
Updating block for the second heartbeat response bag received according to, determines whether have in the exchange network The disk array information of disk frame updates;And
If the disk array information that the updating block is additionally operable to have disk frame in the exchange network updates, basis The the second heartbeat response bag received, the disk array of the disk frame to being recorded in the disk array information table are believed Breath is updated.
17. HBA as claimed in claim 16, which is characterized in that the updating block includes:
First comparing unit, for the disk frame in the second heartbeat response bag by the reception disk array information with The information recorded in the disk array information table is compared;
Second determination unit, if for not recording second heartbeat of reception response in the disk array information table The disk array information of disk frame in bag, it is determined that the disk array information for having disk frame in the exchange network occurs more Newly;
Second recording unit is remembered for the disk array information of the disk frame in the second heartbeat response bag by the reception Record is in the disk array information table.
18. HBA as claimed in claim 16, which is characterized in that the updating block includes:
Second comparing unit, for the disk frame in the second heartbeat response bag by the reception disk array information with The information recorded in the disk array information table is compared;
Second determination unit, if for having recorded second heartbeat of reception response in the disk array information table The exchange network address of disk frame in bag, but responded in the disk array information table with second heartbeat of the reception The exchange network address of disk frame in bag is indexes the home address of the disk in the disk frame of corresponding record, with the reception The second heartbeat response bag in disk frame in disk home address it is inconsistent, it is determined that have in the exchange network The disk array information of disk frame updates;
Disk home address updating block, for the magnetic in the disk frame in the second heartbeat response bag according to the reception The home address of disk using the exchange network address of the disk frame in the second heartbeat response bag as index, updates the disk The home address of disk in the disk frame recorded in array information table.
19. the HBA as described in claims 14 or 15, it is characterised in that:
The radio unit is additionally operable to periodically broadcast the second heartbeat broadcast packet by the exchange network;
The HBA is further included:
3rd determination unit is broken for determining whether that exchange network occurs for disk frame according to the second heartbeat response bag received Chain;
Unit is deleted, for exchange network chain rupture to occur if there is disk frame, then deletes and is recorded in the disk array information table Generation exchange network chain rupture the disk frame disk array information.
20. according to claim 13-15 any one of them HBA, which is characterized in that the exchange network is Ethernet;Then institute It is ether network packet to state the first heartbeat broadcast packet and the first heartbeat response bag.
21. a kind of disk frame, which is characterized in that host bus adaptor HBA is connected with the disk frame by exchange network, institute The disk stated in disk frame forms disk array;The disk frame includes:
Receiving unit, for receiving the heartbeat broadcast packet that the HBA is broadcasted by the exchange network, the heartbeat broadcast packet bag Include the exchange network address of the HBA;
Transmitting element for the exchange network address according to the HBA, sends heartbeat response bag, the heartbeat is rung to the HBA It should include the disk array information of the disk frame;Wherein, the disk array information of the disk frame includes the disk frame Exchange network address.
22. disk frame as claimed in claim 21, which is characterized in that further include:
Recording unit, for recording the exchange network address of the HBA.
23. disk frame as claimed in claim 22, which is characterized in that further include:
Unit is deleted, if determining that exchange network chain rupture, the generation of deletion record occurs with the HBA for the disk frame The exchange network address of the HBA of exchange network chain rupture.
24. the disk frame as described in claim 21-23 any one, which is characterized in that the exchange network is Ethernet;Then The heartbeat broadcast packet and the heartbeat response bag are ether network packet.
CN201410336814.2A 2014-07-15 2014-07-15 A kind of disk array based on exchange network finds method, host bus adaptor and disk frame Active CN105260330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410336814.2A CN105260330B (en) 2014-07-15 2014-07-15 A kind of disk array based on exchange network finds method, host bus adaptor and disk frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410336814.2A CN105260330B (en) 2014-07-15 2014-07-15 A kind of disk array based on exchange network finds method, host bus adaptor and disk frame

Publications (2)

Publication Number Publication Date
CN105260330A CN105260330A (en) 2016-01-20
CN105260330B true CN105260330B (en) 2018-06-05

Family

ID=55100028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410336814.2A Active CN105260330B (en) 2014-07-15 2014-07-15 A kind of disk array based on exchange network finds method, host bus adaptor and disk frame

Country Status (1)

Country Link
CN (1) CN105260330B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107852344B (en) 2016-04-29 2021-03-30 华为技术有限公司 Storage network element discovery method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030980A (en) * 2007-04-05 2007-09-05 中兴通讯股份有限公司 Wide-band terminal identifier based on Ethernet and its identifying method
CN101321131A (en) * 2008-07-22 2008-12-10 杭州华三通信技术有限公司 Method for transmitting detection response message when scanning wireless network, and wireless access point
CN101729507A (en) * 2008-10-14 2010-06-09 中兴通讯股份有限公司 Method and device for discovering and recognizing network devices
CN103078713A (en) * 2013-01-24 2013-05-01 东莞宇龙通信科技有限公司 Communication equipment and data communication method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI334714B (en) * 2006-12-10 2010-12-11 Cameo Communications Inc Discovery method for network devices
US20080140815A1 (en) * 2006-12-12 2008-06-12 The Lincoln Electric Company Network Device Location and Configuration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030980A (en) * 2007-04-05 2007-09-05 中兴通讯股份有限公司 Wide-band terminal identifier based on Ethernet and its identifying method
CN101321131A (en) * 2008-07-22 2008-12-10 杭州华三通信技术有限公司 Method for transmitting detection response message when scanning wireless network, and wireless access point
CN101729507A (en) * 2008-10-14 2010-06-09 中兴通讯股份有限公司 Method and device for discovering and recognizing network devices
CN103078713A (en) * 2013-01-24 2013-05-01 东莞宇龙通信科技有限公司 Communication equipment and data communication method

Also Published As

Publication number Publication date
CN105260330A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN104602289B (en) The method, apparatus and system and intelligent terminal of self- recoverage MPP nodes
CN106161163B (en) High-integration-level multimedia intelligent home gateway, management system and television box
CN103795768B (en) The method and apparatus of remote access
CN108989164A (en) Intelligent home furnishing control method, intelligent home control system and mobile terminal
CN104885407A (en) Network function virtualisation NFV fault management apparatus, device, and method
CN104639348B (en) The network equipment and its configuration method
CN103828440A (en) Providing communication path information in hybrid networks
CN104618312A (en) Remote registration method, device and system for M2M (Machine-to-Machine) application
CN105389278B (en) A kind of slave serial communication method based on CAN bus
US11463376B2 (en) Resource distribution method and apparatus in Internet of Things, device, and storage medium
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
CN106453030A (en) Method and device for getting social relationship chain
CN105260330B (en) A kind of disk array based on exchange network finds method, host bus adaptor and disk frame
CN103929475B (en) The hard disk storage system and hard disc data operating method of a kind of Ethernet architecture
CN109391508A (en) The computer implemented method of data center resource is automatically composed in data center
US8725089B2 (en) First hub and second hub communicating by temporal connection between different wireless body area networks (WBANs) and communication method thereof
CN105493444A (en) Fault management apparatus, device and method for network function virtualization (nfv)
CN110971533A (en) Method, server apparatus, client apparatus, and medium for data communication
WO2024001163A1 (en) Attribute data conversion method and apparatus, storage medium, and electronic device
CN107241245A (en) A kind of equipment connection method and data transfer equipment
CN108768807B (en) Virtual-real interconnection method and device for cloud platform
TWI767427B (en) Monitoring server and equipment resource monitoring method
US10172021B2 (en) Communication method, non-transitory computer-readable recording medium, and communication system
CN109067865A (en) Establish the method and device of storage system partnership
CN106712995B (en) A kind of acquisition methods and device of multi-hop neighbor node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant