Embodiment
The embodiment of the invention provides the management method and the host server of data transfer path, is applied to communication technical field.Storage manufacturer and storing software manufacturer can provide the multi-route management system or can carry the multi-route management system in operating system, utilize many data transfer paths between host services management and the storage array to help the user.And scsi interface is the multi-route management unit of host server and the command interface that storage array communicates, in order to improve the compatibility between host server and the storage array, the core concept that the embodiment of the invention proposed is: in the process of using, in host server, deposit corresponding scsi interface parameter in according to different storage arrays, and come data transfer path between management host server and the storage array by described scsi interface parameter.Below management method, system and the relevant device of the data transfer path of the embodiment of the invention is elaborated respectively.
The management method of embodiment one, a kind of data transfer path.
Host server is when the data transfer path of management and storage array, to be written into the scsi interface parameter corresponding earlier with the storage array of communicating by letter, as: the scsi interface command parameter of scsi interface identification parameter and correspondence thereof etc., wherein the interface identifier parameter is meant the address of interface or uniform resource locator URL (UniformResource Locators) etc., and the interface command parameter is meant the functional parameter of interface.These interface parameterss that are written into have standard interface that the parameter of privately owned interface is also arranged, and can pass through to obtain from miscellaneous equipment; Also can be that producer presets in the multi-route management unit of host server, in use host server can directly be written into.
The multi-route management unit of host server is according to the data transfer path between described interface parameters management and the storage array then.
Being written between the host server of scsi interface parameter and the storage array has very high compatibility, and when the data transfer path of management and storage array, the multi-route management unit of host server at first will be according to practical communication situation calling interface parameter.
For example: when transfer of data takes place to interrupt, the multi-route management unit of host server can call the interface identifier parameter of switching command in the interface parameters that is written into, and send switching command to the corresponding interface, I/O I/O (Input/Output) stream is switched on the backup path, after former main path is normal, the multi-route management software of host server can send the switchback order equally to corresponding interface, and at this moment I/O stream can be switched back again; Simultaneously, can on the path, I/O stream be carried out load sharing according to strategy and send, to improve the I/O access performance; Tong Xin storage array is active A/P (Active/Passive) pattern if desired, there is a preferred controller in logical block LUN (Logical Unit Number) on the storage array at this moment, synchronization can only have a controller to have control authority to this LUN, when all path fails on the preferred controller, the multi-route management software transfer relevant interface parameter of host server, and the privately owned storage array of ordering of SCSI of transmission switch operating controller.
Adopt the management method of the data transfer path of present embodiment, host server is according to the practical communication situation, only will need the scsi interface parameter of the storage array correspondence of communicating by letter to be written into, just there is not the skimble-scamble problem of privately owned interface between host server and the storage array like this, can well supports various storage arrays and different mode thereof that different vendor produces.Realized the unification of communication two ends scsi interfaces, overcome the not high shortcoming of compatibility between the host server and storage array in the prior art, thereby can bring into play the specific function of these storage arrays better, for the user provides better service.
The management method of embodiment two, a kind of data transfer path, flow chart comprise as shown in Figure 2:
Step 201, host server obtain the interface parameters of storage array correspondence;
Before being written into the scsi interface parameter of storage array correspondence, host server can obtain the scsi interface parameter at long-range network side server, obtains flow chart as shown in Figure 3, comprising:
The interface that 201A1, host server send storage array obtains request to network side server, and described interface obtains the information that comprises described storage array correspondence in the request, as the model of storage array, the production sequence number of storage array etc.
The information that is appreciated that the storage array correspondence here can be searched on storage array production firm website by host server and be obtained, and also can obtain from other approach, such as artificial input.Host server is after the information of the storage array correspondence that obtains communicating by letter, and the interface that structure carries described storage array corresponding informance obtains request, and the request of obtaining of this interface is sent to network side server.
Network side server is receiving after interface obtains request, and the information that obtains the storage array correspondence is resolved in the request of obtaining to this interface, obtains the scsi interface parameter of described storage array correspondence again according to the information of described storage array correspondence.
Be appreciated that network side server can be the server that has stored the interface parameters table of storage array correspondence, this interface parameters table has embodied the corresponding relation of interface identifier parameter and interface command parameter.At this moment, network side server if the information of obtaining the storage array correspondence in the request by interface as: model, produce sequence number etc., just can find the interface parameters of storage array correspondence.
For example, the information that obtains the storage array correspondence in parsing is: HP-UX
* * * *, network side server is then searched the interface parameters table of the storage array of preservation, finds HP-UX
* * * *The interface parameters table of the storage array of model, and extract corresponding scsi interface parameter in view of the above.As shown in table 1, embodied HP-UX
* * * *The interface identifier parameter of the storage array of model and the performed function of each interface are the corresponding relation of interface command parameter.
Table 1 HP-UX
* * * *The interface parameters table
Network side server will be searched the interface parameters table that obtains and turn back to host server.
Be appreciated that, network side server also can obtain and search interface parameters by other modes, find corresponding storage array as the information of obtaining the storage array correspondence in the request by interface, and analyze the scsi interface parameter of described storage array correspondence, last network side server turns back to host server with the scsi interface parameter that analysis obtains.
201A2, host server receive the scsi interface parameter of the storage array correspondence that described network side server returns.
In other alternate embodiments, obtaining except said method of scsi interface parameter can also obtain by following steps, flow chart as shown in Figure 4:
The total interface of storage array is arrived in 201B1, the order of host server transmission interface;
To be host server send to the total interface of the storage array that needs communication with interface command to the method for this acquisition interface parameters, and described interface command is the command function that scsi interface had of storage array.After storage array receives interface command, if described interface command is corresponding with interface, the interface of storage array will return interface command and respond to host server, if not corresponding, the interface of storage array just can not return interface and respond to host server.
201B2, host server receive the interface command response that described storage array returns, and record returns described interface command response corresponding interface parameter.
Be appreciated that it is the interface identifier parameter that record returns described interface command response that record returns described interface command response corresponding interface parameter, such as the URL1 in the table 1, URL2 etc.
For example: host server transmission interface order " toggle path " is to the total interface of storage array, after the URL2 of storage array interface receives this interface command, find that this interface command is consistent with the URL2 interface, the function that is the URL2 interface is " toggle path ", and then the URL2 interface returns the interface command response.Host server is noted the interface identifier parameter URL2 of toggle path correspondence after receiving the interface command response of returning as interface parameters.
Step 202, host server are written into the interface parameters of described storage array correspondence.
Preferably, host server can be earlier write a configuration file with the scsi interface parameter of the storage array correspondence that obtains, then the form of the scsi interface parameter of storage array with configuration file is written into, configuration file described here can comprise: types such as " * .conf ", " * .xml ", " * .ini ".
Be appreciated that being written into of above-mentioned scsi interface parameter also has other method, the present invention has just introduced some preferable methods, and this can not be construed as limiting the present invention.
Step 203, host server are according to the data transfer path of described interface parameters management with storage array.
As between the host server that has been written into interface parameters as described in the embodiment one and the storage array very high compatibility being arranged, when the data transfer path of management and storage array, host server at first will call the interface parameters in the configuration file.
Present embodiment is the specific implementation of the management method of embodiment one data transfer path, host server is according to the practical communication situation, the scsi interface parameter of the storage array correspondence of the needs communication form with configuration file is written into, and this configuration file is fairly simple, convenient.
Embodiment three, please refer to Fig. 5, the embodiment of the invention provides a kind of host server 300, comprising: interface is written into unit 31 and multi-route management unit 32, wherein:
It is the interface parameterss that are used to be written into the storage array correspondence that interface is written into unit 31;
Multi-route management unit 32 is to be used for being written into interface parameters that unit 31 is written into according to interface to manage data transfer path with storage array.
In the present embodiment, host server 300 has increased interface and has been written into unit 31 and multi-route management unit 32, can receive the interface parameters of storage array and according to the data transfer path between described interface parameters management host server 300 and the storage array, so that host server can be corresponding to multiple different storage array.
Embodiment four, please refer to Fig. 6, the embodiment of the invention provides a kind of host server 400, comprising: interface is written into unit 41 and multi-route management unit 42, wherein:
It is the interface parameterss that are used to be written into the storage array correspondence that interface is written into unit 41;
Preferably, interface is written into unit 41 and comprises: memory cell 410 and interface writing unit 411, memory cell 410 is to be used for the storage configuration file, and interface writing unit 411 is to be used for the interface parameters of storage array correspondence is written to the configuration file that memory cell 410 stores.
Multi-route management unit 42, the interface parameters that is used for calling the configuration file that memory cell 410 stores is managed the data transfer path with storage array.
In the present embodiment, the mode by configuration file is written into host server 400 with the scsi interface parameter of storage array correspondence, has realized the unification of host server 400 and storage array two ends scsi interface.
Embodiment five, please refer to Fig. 7, the embodiment of the invention provides a kind of host server 500, comprising: interface acquiring unit 51, interface are written into unit 52 and multi-route management unit 53, wherein:
Interface acquiring unit 51, be used to obtain the scsi interface parameter of storage array correspondence, and in the present embodiment, the interface acquiring unit 51 and the network side server 800 of host server 500 communicate to connect, and storage array is to be connected by network with host server 500, because network side server 800 has stored the interface parameters table of described storage array, then described interface acquiring unit 51 comprises that interface obtains request unit 510 and receiving element 511, interface obtains the interface that request unit 510 is used to send the storage array that comprises the storage array corresponding informance and obtains request to network side server 800, and receiving element 511 is used to receive the interface parameters that network side server 800 returns;
It is the interface parameterss that are used to be written into the storage array correspondence that receiving element 511 receives that interface is written into unit 52, in the present embodiment, interface is written into unit 52 and comprises: memory cell 520 and interface writing unit 521, memory cell 520 is to be used for the storage configuration file, interface writing unit 521 communicates to connect with described receiving element 511, is used for the interface parameters that receiving element 511 is received is written to the configuration file of memory cell 520.
Multi-route management unit 53 is that the interface parameters that is used for calling the configuration file that memory cell 520 stores is managed the data transfer path with storage array.
The host server 500 that present embodiment provides is to have added interface acquiring unit 51 on the host server basis that embodiment four provides, adopt the host server 500 of present embodiment, make the scsi interface parameter of storage array correspondence to obtain from network side server 800.This host server only needs to search the present interfaces parameter list by the webserver 800, and practical operation is got up fairly simple.
Embodiment six, please refer to Fig. 8, be depicted as the logical construction schematic diagram of the host server 600 that another embodiment of the present invention provides.Described host server 600 comprises that interface acquiring unit 61, interface are written into unit 62 and multi-route management unit 63.
Interface acquiring unit 61 is the scsi interface parameters that are used to obtain storage array 700 correspondences, in the present embodiment, 700 direct communications are connected host server 600 with storage array, and described interface acquiring unit 61 comprises command sending unit 610, response receiving element 611 and interface record cell 612, wherein:
Command sending unit 610 is used for the total interface of transmission interface order to described storage array 700, and described interface command is the command function that scsi interface had of storage array 700;
Response receiving element 611 be used to receive the interface command response that storage array 700 returns, and record returns the interface IP address of interface command response;
Interface record cell 612, the interface IP address of the return command response that command function that sends according to command sending unit 610 and response receiving element 612 are write down generates interface parameters and also notes.
Interface is written into unit 62, is used to be written into the interface parameters of the storage array correspondence of interface record cell 612 records.In the present embodiment, described interface is written into unit 62 and comprises: memory cell 620 and interface writing unit 621.Described memory cell 620 is to be used for the storage configuration file, described interface writing unit 621 is connected with interface record cell 612, is used for the interface parameters of the storage array correspondence of interface record cell 612 record is written to the configuration file that memory cell 610 stores.
Multi-route management unit 63, the interface parameters that is used for calling the configuration file that memory cell 620 stores is managed the data transfer path with storage array.
What the host server 600 that present embodiment provides was different with the host server that embodiment five provides is interface acquiring unit 61, adopt the host server 600 of present embodiment, make the storage array correspondence the scsi interface parameter can also by with the obtaining alternately of storage array 700.
Find out with host server from the management method of above-mentioned data transfer path: the communicating by letter of host server and storage array, only will need the scsi interface parameter of the storage array correspondence of communicating by letter to be written into, host server just can well be supported various storage arrays and the different mode thereof that different vendor produces like this, there is not the skimble-scamble problem of privately owned interface, improved host server and the compatibility between the multiple storage array not.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than the management method and the host server of the data transfer path that the embodiment of the invention provided is described in detail, used concrete 6 examples herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.