A method, device and electronic device for obtaining a storage full link

By configuring the collection script on the storage link device, the configuration information of the storage device is automatically obtained, which solves the problem of low accuracy of link maintenance between the host and the SAN storage device, and achieves efficient storage full-link information acquisition and maintenance.

CN112579007BActive Publication Date: 2024-10-29CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011570097.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-26
Publication Date
2024-10-29
Estimated Expiration
2040-12-26

AI Technical Summary

Technical Problem

In the existing technology, the maintenance accuracy of the full storage link between the host and the SAN storage device is low. This is mainly due to the complexity of the link and frequent changes in information, which makes errors prone to occur when relying on manual maintenance.

Method used

By configuring collection scripts on storage devices, host edge switches, and storage edge switches, the configuration information of each device, including the device identification in the port attribute table, is collected to automatically obtain storage full-link information and reduce manual participation.

Benefits of technology

It realizes the acquisition of full-link information for any target storage port on the storage device without manual participation, improving the accuracy and maintenance efficiency of the full storage link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579007B_ABST
    Figure CN112579007B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and electronic device for obtaining a full storage link, the method comprising: obtaining respective configuration information of a storage device, a host edge switch, a storage edge switch and a host; an attribute table corresponding to a storage port in the configuration information of the storage device comprises a device identifier of a connected device and a port identifier of an associated host optical fiber port; an attribute table corresponding to a switch port in the configuration information of the host edge switch comprises a port identifier of a connected host optical fiber port; an attribute table corresponding to a switch port in the configuration information of the storage edge switch comprises a port identifier of a connected storage port; an attribute table corresponding to each host optical fiber port in the configuration information of the host comprises at least a device identifier of a connected device; and obtaining full storage link information for a target storage port on the storage device based at least on the respective configuration information of the storage device, the host edge switch, the storage edge switch and the host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device and electronic device for obtaining a full storage link. Background Art

[0002] At present, the host storage generally uses the storage area SAN (Storage Area Network) to realize data storage. Among them, the host is connected to the port of the host edge switch through the optical fiber port of the host bus adapter HBA (Host Bus Adapter), the host edge switch is connected to the storage edge switch through the core switch, and the port of the storage edge switch is connected to the port of the SAN storage device, so that the host can use the storage space in the SAN storage device for data storage.

[0003] In order to achieve the purpose of fault location, it is necessary to maintain the entire link between the host and the SAN storage device. In actual applications, the links between the host and the SAN storage device are relatively complex, and the information of these links changes a lot every day, including adding links, modifying links, and deleting links.

[0004] Since currently it usually relies on manual maintenance, there is a situation where the accuracy of the maintained storage full link is low. Summary of the invention

[0005] In view of this, the present application provides a method, device and electronic device for obtaining a storage full link, so as to solve the technical problem of low accuracy of the storage full link maintained in the prior art.

[0006] The present application provides a method for obtaining a storage full link, the method comprising:

[0007] Obtaining storage device configuration information collected by a collection script configured on the storage device, host edge switch configuration information collected by a collection script configured on the host edge switch, storage edge switch configuration information collected by a collection script configured on the storage edge switch, and host configuration information collected by a collection script configured on the host;

[0008] The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port;

[0009] The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port;

[0010] The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port;

[0011] The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host;

[0012] The storage full-link information for the target storage port on the storage device is obtained based on at least the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch and the configuration information of the host.

[0013] The above method preferably obtains storage full-link information for a target storage port on the storage device based on at least the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch, and the configuration information of the host, including:

[0014] According to the configuration information of the storage device, a target storage edge switch connected to the target storage port and a target host optical fiber port associated with the target storage port are obtained;

[0015] According to the configuration information of the target storage edge switch, obtaining a switch port in the target storage edge switch that is connected to the target storage port;

[0016] According to the configuration information of the host, obtaining the target host to which the optical fiber port of the target host belongs;

[0017] According to the configuration information of the host edge switch, the target host edge switch connected to the target host optical fiber port and the switch port in the target host edge switch connected to the target host optical fiber port are obtained;

[0018] The storage full-link information for the target storage port is obtained based at least on the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port.

[0019] The above method preferably obtains the target storage edge switch connected to the target storage port and the target host optical fiber port associated with the target storage port according to the configuration information of the storage device, including:

[0020] Obtaining, from the configuration information of the storage device, a property table corresponding to the target storage port in the storage device;

[0021] Obtaining a target storage edge switch connected to the target storage port according to a port identifier in a switch connected to the storage port contained in an attribute table corresponding to the target storage port;

[0022] According to the optical fiber port identifier of the host associated with the storage port contained in the attribute table corresponding to the target storage port, one or more target host optical fiber ports corresponding to the target storage port in the same attribute table are obtained.

[0023] The above method preferably obtains the target host to which the target host optical fiber port belongs according to the configuration information of the host, including:

[0024] In the configuration information of the host, the configuration information of the attribute table containing the port identification of the optical fiber port of the target host is searched to obtain the target host to which the optical fiber port of the target host belongs.

[0025] The above method preferably obtains the target host edge switch to which the target host optical fiber port is connected and the switch port in the target host edge switch connected to the target host optical fiber port according to the configuration information of the host edge switch, including:

[0026] In the configuration information of the host edge switch, searching for the configuration information of the attribute table containing the port identifier of the target host optical fiber port, so as to obtain the target host edge switch to which the target host optical fiber port is connected;

[0027] In the configuration information of the target host edge switch, an attribute table containing the port identifier of the target host optical port is searched to obtain a switch port in the target host edge switch connected to the target host optical port.

[0028] The above method preferably obtains the switch port connected to the target storage port in the target storage edge switch according to the configuration information of the target storage edge switch, including:

[0029] In the configuration information of the target storage edge switch, an attribute table containing the port identifier of the target storage port is searched to obtain a switch port in the target storage edge switch connected to the target storage port.

[0030] The above method preferably further comprises:

[0031] According to the configuration information of the target host edge switch and the configuration information of the target storage edge switch, obtaining a switch port in the target host edge switch connected to the target storage edge switch and a switch port in the target storage edge switch connected to the target host edge switch;

[0032] Wherein, obtaining storage full-link information for the target storage port according to at least the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host optical fiber port in the target host edge switch, and the target host optical fiber port includes:

[0033] According to the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target storage edge switch connected to the target host edge switch, the switch port in the target host edge switch connected to the target storage edge switch, the switch port in the target host edge switch connected to the target host fiber port, and the target host fiber port, storage full-link information for the target storage port is obtained.

[0034] The above method preferably obtains storage full-link information for the target storage port based on at least the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host optical fiber port in the target host edge switch, and the target host optical fiber port, including:

[0035] According to the connection order between the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host fiber port in the target host edge switch, and the target host fiber port, one or more storage full-link information are generated, and each storage full-link information includes one of the target storage port, one switch port in the target storage edge switch, one switch port in the target host edge switch, and one of the target host fiber port.

[0036] In the above method, preferably, the storage full-link information takes the target storage port as the starting point and the target host optical fiber port as the end point.

[0037] The present application also provides a storage full link acquisition device, the device comprising:

[0038] A configuration acquisition unit, configured to acquire configuration information of the storage device acquired by the acquisition script configured on the storage device, configuration information of the host edge switch acquired by the acquisition script configured on the host edge switch, configuration information of the storage edge switch acquired by the acquisition script configured on the storage edge switch, and configuration information of the host acquired by the acquisition script configured on the host;

[0039] The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port;

[0040] The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port;

[0041] The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port;

[0042] The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host;

[0043] A link acquisition unit is used to obtain storage full-link information for a target storage port on the storage device based on at least the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch and the configuration information of the host.

[0044] The present application also provides an electronic device, including:

[0045] A memory, used to store applications and data generated by the operation of the applications;

[0046] A processor, configured to execute the application program to implement:

[0047] Obtaining configuration information of the storage device collected by the collection script configured on the storage device, configuration information of the host edge switch collected by the collection script configured on the host edge switch, and configuration information of the storage edge switch collected by the collection script configured on the storage edge switch;

[0048] The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port;

[0049] The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port;

[0050] The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port;

[0051] The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host;

[0052] The storage full-link information for the target storage port on the storage device is obtained based on at least the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch and the configuration information of the host.

[0053] It can be seen from the above technical scheme that in a method, device and electronic device for obtaining a full storage link disclosed in the present application, by configuring collection scripts on various devices involved in the storage link, such as storage devices and various edge switches and hosts, these collection scripts can be used to obtain the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch and the configuration information of the host. Based on this, since the configuration information of each device contains the attribute table corresponding to each port in the device, and the attribute table contains the device identification of the device connected to the port, the storage full link information for any target storage port on the storage device can be obtained according to these configuration information. It can be seen that in the present application, by configuring the collection script for the device on the storage link, the storage full link for each storage port can be obtained according to the collected configuration information, without manual participation, thereby reducing the errors caused by manual maintenance of the link, thereby improving the accuracy of the storage full link. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 A flowchart of a method for obtaining a storage full link provided in Example 1 of the present application;

[0056] Figure 2 A partial flow chart of a method for obtaining a storage full link provided in Example 1 of the present application;

[0057] Figure 3 This is an example diagram of storing full-link information in an embodiment of the present application;

[0058] Figure 4 Another partial flow chart of a method for acquiring a storage full link provided in Embodiment 1 of the present application;

[0059] Figure 5 This is another example diagram of storing full-link information in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of the structure of a storage full-link acquisition device provided in Embodiment 2 of the present application;

[0061] Figure 7 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application;

[0062] Figure 8A schematic diagram of a link including a SAN storage device;

[0063] Figure 9-12 They are respectively related example diagrams of performing full-link storage calculation when the embodiments of the present application are applied to SAN storage devices. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] refer to Figure 1 , is a flowchart of a method for obtaining a storage full link provided in Embodiment 1 of the present application, which can be applied to electronic devices capable of data processing, such as any device in a storage link, or other devices different from devices in a storage link, such as computers or servers. The technical solution in this embodiment is mainly used to improve the accuracy of the storage full link.

[0066] Specifically, the method in this embodiment may include the following steps:

[0067] Step 101: Obtain the configuration information of the storage device collected by the collection script configured on the storage device, the configuration information of the host edge switch collected by the collection script configured on the host edge switch, the configuration information of the storage edge switch collected by the collection script configured on the storage edge switch, and the configuration information of the host collected by the collection script configured on the host.

[0068] Specifically, in this embodiment, the configuration information collected by the collection script can be received through the communication connection between the collection scripts configured on various devices on the storage link. For example, in this embodiment, the configuration information of the storage device collected and transmitted by the collection script can be received through the connection interface between the collection script configured on the storage device; the configuration information of the host edge switch collected and transmitted by the collection script can be received through the connection interface between the collection script configured on the host edge switch; the configuration information of the storage edge switch collected and transmitted by the collection script can be received through the connection interface between the collection script configured on the storage edge switch; the configuration information of the host collected and transmitted by the collection script can be received through the connection interface between the collection script configured on the host.

[0069] The configuration information of each device includes the port information of each port in the device and the device information of the device connected to the port, such as the device identification information of various devices connected to the port, such as storage devices, switches, host HBA, etc. The details are as follows:

[0070] The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least the port identifier in the switch to which the storage port is connected and the fiber port identifier of the host associated with the storage port, and may also include the port identifier of the storage port, such as the port name, etc. The port name of each storage port corresponds to the device identifier of the target device connected to the storage port, such as the storage edge switch, such as the globally unique identifier WWN (world wide number), etc.

[0071] It should be noted that the fiber port identifier of the host associated with each storage port refers to the port identifier of the fiber port on the host device in the storage full link corresponding to the storage port. The fiber port on the host device connected to the storage port is recorded in the attribute table corresponding to the storage port. Therefore, there is a logical connection between the device identifier contained in the attribute table corresponding to the storage port and the port identifier of the host fiber port in the same attribute table. Among them, the port identifier of the host fiber port can be the WWPN (world wide port number) number corresponding to the HBA of the host device.

[0072] In addition, the configuration information of the storage device also includes a port table, which may include port information of each storage port in the storage device. The port information may include configuration information such as the port identifier of the storage port such as the port name, the connection speed of the storage port, and the device identifier of the device connected to the storage port such as the WWN number.

[0073] It should be noted that the attribute tables corresponding to the storage ports in the storage device can form a general table as the configuration information.

[0074] The configuration information of the host edge switch includes an attribute table corresponding to each switch port in the host edge switch, and the attribute table corresponding to the switch port includes at least a device identifier of a device connected to the switch port, such as a port identifier of a host optical fiber port connected to the switch port, and another example is a switch identifier of a storage edge switch connected to the switch port. In addition, the attribute table corresponding to the switch port also includes a port identifier of the switch port, such as a port name. The port name corresponds to the device identifier of the device connected to the switch port in the attribute table, such as the port identifier of the host optical fiber port connected to the switch port or the switch identifier of the storage edge switch. The device identifier of the device connected to the switch port forms an information list corresponding to the port name. The switch port can be connected to one or more devices, such as a host or a storage edge switch. Therefore, the attribute table corresponding to the switch port can include one or more device identifiers to represent the identifier of the device connected to the switch port, such as a device WWN number.

[0075] In addition, the configuration information of the host edge switch also includes port identifiers of switch ports in the same cluster or group. For example, the configuration information of the host edge switch records the WWN numbers of switch ports in the same group.

[0076] The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a device identifier of a device connected to the switch port, such as a port identifier of a storage port connected to the switch port, and a switch identifier of a host edge switch connected to the switch port; in addition, the attribute table corresponding to the switch port also includes a port identifier of the switch port, such as a port name, and the port name corresponds to the device identifier of the device connected to the switch port in the attribute table, such as the port identifier of the storage port connected to the switch port or the switch identifier of the host edge switch. The device identifier of the device connected to the switch port forms an information list corresponding to the port name. The switch port can be connected to one or more devices. Therefore, the attribute table corresponding to the switch port can include one or more device identifiers, such as a storage device or a host edge switch, to represent the identifier of the device connected to the switch port, such as a device WWN number.

[0077] In addition, the configuration information of the storage edge switch also includes the port identifiers of the switch ports in the same cluster or the same group. For example, the configuration information of the host edge switch records the WWN numbers of the switch ports in the same group.

[0078] The configuration information of the host includes an attribute table corresponding to each host fiber optic port in the host, and the attribute table corresponding to the host fiber optic port at least includes the port identifier of the host fiber optic port, such as the port name, etc. The port name of each host fiber optic port corresponds to the device identifier of the target device connected to the host fiber optic port, such as the host edge switch, such as the globally unique identifier WWN, etc.

[0079] Step 102: Obtain storage full-link information for a target storage port on the storage device based at least on the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch, and the configuration information of the host.

[0080] That is to say, in this embodiment, any one or more target storage ports on the storage device are used as the starting point of the full storage link, and the full storage link information corresponding to each target storage port is obtained according to the configuration information of the storage device, the host and various edge switches.

[0081] Specifically, in this embodiment, the device identifier of the device connected to the storage port in the storage device, the port identifier of the host optical fiber port associated with the storage port, the device identifier of the device connected to each switch port in the host edge switch, and the device identifier of the device connected to each switch port in the storage edge switch can be parsed, so as to obtain the storage full-link information corresponding to any one or more target storage ports based on the connection relationship between the parsed ports and the devices.

[0082] It should be noted that the storage full link information corresponding to the target storage port includes the link between the target storage port and the target host optical fiber port.

[0083] It can be seen from the above scheme that in a method for obtaining a full storage link provided in the first embodiment of the present application, by configuring collection scripts on various devices involved in the storage link, such as storage devices, various edge switches, and hosts, these collection scripts can be used to obtain the configuration information of the storage devices, the configuration information of the host edge switches, and the configuration information of the storage edge switches and the configuration information of the host. Based on this, since the configuration information of each device contains the attribute table corresponding to each port in the device, and the attribute table contains the device identification of the device connected to the port, the storage full link information for any target storage port on the storage device can be obtained according to these configuration information. It can be seen that in this application, by configuring the collection script for the devices on the storage link, the storage full link for each storage port can be obtained according to the collected configuration information, without manual participation, thereby reducing the errors caused by manual maintenance of the link, thereby improving the accuracy of the full storage link.

[0084] In one implementation, when obtaining the storage full-link information for the target storage port on the storage device in step 102, it can be implemented in the following manner: Figure 2 As shown in:

[0085] Step 201: According to the configuration information of the storage device, a target storage edge switch connected to a target storage port and a target host optical fiber port associated with the target storage port are obtained.

[0086] Specifically, in this embodiment, the attribute table corresponding to the target storage port in the storage device can be first obtained from the configuration information of the storage device. For example, in the general table of the configuration information, an information list corresponding to the target storage port is obtained, that is, the attribute table corresponding to the target storage port, the attribute table including the device identifier of the device connected to the storage port and the port identifier of the host fiber port associated with the storage port. Based on this, in this embodiment, the target storage edge switch connected to the target storage port is obtained according to the port identifier in the switch connected to the storage port contained in the attribute table corresponding to the target storage port, such as obtaining the WWN number of the target storage edge switch, thereby determining the target storage edge switch, and the port identifier of one or more target host fiber ports corresponding to the target storage port in the same attribute table can be obtained according to the fiber port identifier of the host associated with the storage port contained in the attribute table corresponding to the target storage port, thereby determining the target host fiber port.

[0087] For example, in this embodiment, according to the port identifier of the target storage port 0, the row and column position of the attribute table corresponding to port 0 is located in the configuration information of the storage device, and then the attribute table view corresponding to port 0 is intercepted, which may include the port name port of port 0 and the port WWN number of the storage edge switch connected to port 0, etc., and may also include the WWPN number of the host HBA associated with port 0. Based on this, the port WWN number of the storage edge switch connected to port 0 can be found in the attribute table view, thereby determining the target storage edge switch connected to port 0, and the WWPN number of the host HBA associated with port 0 can be found in the attribute table view, thereby determining the host HBA associated with port 0.

[0088] Step 202: According to the configuration information of the target storage edge switch, a switch port in the target storage edge switch connected to the target storage port is obtained.

[0089] Specifically, in this embodiment, the attribute table containing the port identifier of the target storage port can be first searched in the configuration information of the target storage edge switch to obtain the switch port in the target storage edge switch to which the target storage port is connected. For example, the attribute table containing the port identifier of the target storage port can be first searched in the configuration information of the target storage edge switch determined in step 201. At this time, the switch port corresponding to the attribute table containing the port identifier of the target storage port is the switch port in the target storage edge switch connected to the target storage port.

[0090] For example, in this embodiment, according to the port identifier of the target storage port 0, the attribute table containing the port identifier of port 0 is searched in the configuration information of the target storage edge switch, and the switch port corresponding to the attribute table containing the port identifier of port 0 in the target storage edge switch is switch port 3 connected to port 0.

[0091] Step 203: According to the configuration information of the host, the target host to which the optical fiber port of the target host belongs is obtained.

[0092] Specifically, in this embodiment, the configuration information of multiple hosts can be searched for the configuration information of the attribute table corresponding to the target host optical port, and then the host to which the found configuration information belongs can be used as the target host to which the target host optical port belongs.

[0093] For example, in this embodiment, according to the port identifier of the target host optical fiber port 1, the configuration information of multiple hosts is searched for the configuration information including the port identifier of port 1, and the host corresponding to the configuration information including the port identifier of port 1 is the target host to which port 1 belongs.

[0094] Step 204: According to the configuration information of the host edge switch, the target host edge switch connected to the target host optical fiber port and the switch port in the target host edge switch connected to the target host optical fiber port are obtained.

[0095] Specifically, in this embodiment, the configuration information of the multiple host edge switches can be first searched for the configuration information of the attribute table of the target host optical fiber port, and then the host edge switch to which the found configuration information belongs can be used as the target host edge switch to which the target host optical fiber port is connected. Afterwards, the attribute table containing the port identifier of the target host optical fiber port is searched in the configuration information of the target host edge switch to obtain the switch port to which the target host optical fiber port is connected in the target host edge switch. For example, the attribute table containing the port identifier of the target host optical fiber port is first searched in the configuration information of the target host edge switch, and the switch port corresponding to the attribute table containing the port identifier of the target host optical fiber port is the switch port in the target host edge switch that is connected to the target host optical fiber port.

[0096] For example, in this embodiment, configuration information of an attribute table containing a port identifier of port 1 is searched in the configuration information of multiple host edge switches. Based on this, the switch identifier of the target host edge switch to which port 1 is connected can be obtained according to the attribute table, thereby determining the target host edge switch to which the target host is connected through port 1. Thereafter, according to the port identifier of the target host optical fiber port 1, the attribute table containing the port identifier of port 1 is searched in the configuration information of the target host edge switch, and the switch port corresponding to the attribute table containing the port identifier of port 1 in the target host edge switch is switch port 2 connected to port 1.

[0097] Step 205: Obtain storage full-link information for the target storage port based on at least the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host fiber port in the target host edge switch, and the target host fiber port.

[0098] Specifically, in this embodiment, one or more storage full-link information can be generated according to the connection order between the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host fiber port in the target host edge switch, and the target host fiber port. Each storage full-link information includes a target storage port, a switch port in the target storage edge switch, a switch port in the target host edge switch, and a target host fiber port, and the ports in the storage full-link information are connected in order. Figure 3 As shown in , the target storage port 0 is connected to the switch port 3 on the target storage edge switch. After the ports between the target storage edge switch and the target host edge switch are connected, the switch port 2 in the target host edge switch is connected to the target host fiber port 1, forming a storage full link information.

[0099] Furthermore, in this embodiment, before step 205, the following steps may also be included: Figure 4 As shown in:

[0100] Step 206: According to the configuration information of the target host edge switch and the configuration information of the target storage edge switch, obtain the switch port in the target host edge switch connected to the target storage edge switch and the switch port in the target storage edge switch connected to the target host edge switch.

[0101] Specifically, in this embodiment, the attribute table including the switch identifier of the target storage edge switch can be searched in the configuration information of the target host edge switch first, so as to obtain the switch port in the target host edge switch connected to the target storage edge switch. For example, in this embodiment, according to the switch identifier of the target storage edge switch, the attribute table including the switch identifier of the target storage edge switch is searched in the configuration information of the target host edge switch, and the switch port 4 corresponding to the attribute table including the switch identifier of the target storage edge switch is the switch port connecting the target host edge switch and the target storage edge switch.

[0102] In addition, in this embodiment, the attribute table including the switch identification of the target host edge switch can be searched in the configuration information of the target storage edge switch first, so as to obtain the switch port in the target storage edge switch connected to the target host edge switch. For example, in this embodiment, according to the switch identification of the target host edge switch, the attribute table including the switch identification of the target host edge switch is searched in the configuration information of the target storage edge switch, and the switch port 5 corresponding to the attribute table including the switch identification of the target host edge switch is the switch port connecting the target storage edge switch and the target host edge switch.

[0103] Based on this, when obtaining the storage full link information for the target storage port in step 205, it can be specifically implemented in the following manner:

[0104] According to the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host edge switch in the target storage edge switch, the switch port connected to the target storage edge switch in the target host edge switch, the switch port connected to the target host fiber port in the target host edge switch, and the target host fiber port, the storage full-link information for the target storage port is obtained.

[0105] Specifically, in this embodiment, one or more storage full-link information can be generated according to the connection order between the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target storage edge switch connected to the target host edge switch, the switch port in the target host edge switch connected to the target storage edge switch, the switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port. Each full-link information includes a target storage port, a switch port in the target storage edge switch connected to the target storage port and a switch port connected to the target host edge switch, a switch port in the target host edge switch connected to the target storage edge switch and a switch port connected to the target host optical fiber port, and also includes a target host optical fiber port. Figure 5 As shown in the figure, the target storage port 0 is connected to the switch port 3 on the target storage edge switch. After the switch port 5 in the target storage edge switch is connected to the switch port 4 in the target host edge switch, the switch port 2 in the target host edge switch is connected to the target host fiber port 1, forming a storage full link information.

[0106] In a specific implementation, the link in the storage full link information may start from the target storage port and end at the target host fiber port, such as Figure 3 or Figure 5 As shown, the storage full link information starts from the target storage port 0 and ends at the target host fiber port 1.

[0107] Furthermore, the storage full-link information may also include a storage device, a target storage edge switch, a target host edge switch, and a target host.

[0108] In one implementation, after obtaining the storage full-link information corresponding to each target storage port, the storage full-link information of one or more target storage ports can be output according to user needs, so that the user can view and use the storage full-link information, for example, to locate faults of storage devices and hosts, etc. Specifically, in this embodiment, by receiving the port identifier input by the user on the operation interface, which can be the port identifier of the storage port of the storage device, the switch port of the edge switch, or the optical fiber port, etc., the storage full-link information containing the port identifier can be screened out from the link set composed of the storage full-link information corresponding to multiple storage ports, and output.

[0109] refer to Figure 6, is a schematic diagram of the structure of a storage full link acquisition device provided in the second embodiment of the present application, which can be configured in an electronic device capable of data processing, such as any device in the storage link, or other devices different from the devices in the storage link, such as a computer or server. The technical solution in this embodiment is mainly used to improve the accuracy of the storage full link.

[0110] Specifically, the device in this embodiment may include the following units:

[0111] The configuration obtaining unit 601 is used to obtain the configuration information of the storage device collected by the collection script configured on the storage device, the configuration information of the host edge switch collected by the collection script configured on the host edge switch, the configuration information of the storage edge switch collected by the collection script configured on the storage edge switch, and the configuration information of the host collected by the collection script configured on the host;

[0112] The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port;

[0113] The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port;

[0114] The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port;

[0115] The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host;

[0116] The link acquisition unit 602 is used to obtain storage full link information for the target storage port on the storage device based on at least the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch and the configuration information of the host.

[0117] It can be seen from the above scheme that in a storage full-link acquisition device provided in the second embodiment of the present application, by configuring collection scripts on various devices involved in the storage link, such as storage devices, various edge switches, and hosts, these collection scripts can be used to obtain the configuration information of the storage devices, the configuration information of the host edge switches, and the configuration information of the storage edge switches and the configuration information of the host. Based on this, since the configuration information of each device contains the attribute table corresponding to each port in the device, and the attribute table contains the device identification of the device connected to the port, the storage full-link information for any target storage port on the storage device can be obtained according to these configuration information. It can be seen that in this application, by configuring the collection script for the devices on the storage link, the storage full link for each storage port can be obtained according to the collected configuration information, without manual participation, thereby reducing the errors caused by manual maintenance of the link, thereby improving the accuracy of the storage full link.

[0118] In one implementation, the link obtaining unit 602 is specifically configured to:

[0119] According to the configuration information of the storage device, a target storage edge switch connected to the target storage port and a target host optical fiber port associated with the target storage port are obtained;

[0120] According to the configuration information of the target storage edge switch, obtaining a switch port in the target storage edge switch that is connected to the target storage port;

[0121] According to the configuration information of the host, obtaining the target host to which the optical fiber port of the target host belongs;

[0122] According to the configuration information of the host edge switch, the target host edge switch connected to the target host optical fiber port and the switch port in the target host edge switch connected to the target host optical fiber port are obtained;

[0123] The storage full-link information for the target storage port is obtained based at least on the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port.

[0124] In one implementation, the link obtaining unit 602 obtains the target storage edge switch connected to the target storage port and the target host optical fiber port associated with the target storage port according to the configuration information of the storage device, specifically in the following manner:

[0125] Obtaining, from the configuration information of the storage device, a property table corresponding to the target storage port in the storage device;

[0126] Obtaining a target storage edge switch connected to the target storage port according to a port identifier in a switch connected to the storage port contained in an attribute table corresponding to the target storage port;

[0127] According to the optical fiber port identifier of the host associated with the storage port contained in the attribute table corresponding to the target storage port, one or more target host optical fiber ports corresponding to the target storage port in the same attribute table are obtained.

[0128] In one implementation, when the link obtaining unit 602 obtains the target host to which the target host optical fiber port belongs according to the configuration information of the host, it is specifically implemented in the following manner:

[0129] In the configuration information of the host, the configuration information of the attribute table containing the port identification of the optical fiber port of the target host is searched to obtain the target host to which the optical fiber port of the target host belongs.

[0130] In one implementation, the link obtaining unit 602 obtains the target host edge switch to which the target host optical fiber port is connected and the switch port in the target host edge switch connected to the target host optical fiber port according to the configuration information of the host edge switch, specifically in the following manner:

[0131] In the configuration information of the host edge switch, searching for the configuration information of the attribute table containing the port identifier of the target host optical fiber port, so as to obtain the target host edge switch to which the target host optical fiber port is connected;

[0132] In the configuration information of the target host edge switch, an attribute table containing the port identifier of the target host optical port is searched to obtain a switch port in the target host edge switch connected to the target host optical port.

[0133] In one implementation, when the link obtaining unit 602 obtains the switch port connected to the target storage port in the target storage edge switch according to the configuration information of the target storage edge switch, it is specifically implemented in the following manner:

[0134] In the configuration information of the target storage edge switch, an attribute table containing the port identifier of the target storage port is searched to obtain a switch port in the target storage edge switch connected to the target storage port.

[0135] In one implementation, before obtaining the storage full link information for the target storage port, the link obtaining unit 602 is further configured to:

[0136] According to the configuration information of the target host edge switch and the configuration information of the target storage edge switch, obtaining a switch port in the target host edge switch connected to the target storage edge switch and a switch port in the target storage edge switch connected to the target host edge switch;

[0137] Based on this, when the link obtaining unit 602 obtains the storage full link information for the target storage port, it can be implemented in the following manner:

[0138] According to the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target storage edge switch connected to the target host edge switch, the switch port in the target host edge switch connected to the target storage edge switch, the switch port in the target host edge switch connected to the target host fiber port, and the target host fiber port, storage full-link information for the target storage port is obtained.

[0139] In a specific implementation, when the link obtaining unit 602 obtains the storage full link information for the target storage port, it can be implemented in the following manner:

[0140] According to the connection order between the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host fiber port in the target host edge switch, and the target host fiber port, one or more storage full-link information are generated, and each storage full-link information includes one of the target storage port, one switch port in the target storage edge switch, one switch port in the target host edge switch, and one of the target host fiber port.

[0141] The storage full-link information starts from the target storage port and ends at the target host optical fiber port.

[0142] It should be noted that the specific implementation of each unit in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.

[0143] refer to Figure 7, is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application, and the electronic device may be an electronic device capable of data processing, such as any device in a storage link, or other devices different from the devices in a storage link, such as a computer or a server, etc. The technical solution in this embodiment is mainly used to improve the accuracy of the entire storage link.

[0144] Specifically, the electronic device in this embodiment may include the following structure:

[0145] The memory 701 is used to store the application and the data generated by the running of the application;

[0146] The processor 702 is configured to execute the application program to implement:

[0147] Obtaining configuration information of the storage device collected by the collection script configured on the storage device, configuration information of the host edge switch collected by the collection script configured on the host edge switch, and configuration information of the storage edge switch collected by the collection script configured on the storage edge switch;

[0148] The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port;

[0149] The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port;

[0150] The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port;

[0151] The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host;

[0152] The storage full-link information for the target storage port on the storage device is obtained based on at least the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch and the configuration information of the host.

[0153] It can be seen from the above scheme that in an electronic device provided in Example 3 of the present application, by configuring collection scripts on various devices involved in the storage link, such as storage devices, various edge switches, and hosts, these collection scripts can be used to obtain the configuration information of the storage devices, the configuration information of the host edge switches, and the configuration information of the storage edge switches and the configuration information of the host. Based on this, since the configuration information of each device contains the attribute table corresponding to each port in the device, and the attribute table contains the device identification of the device connected to the port, the storage full link information for any target storage port on the storage device can be obtained according to these configuration information. It can be seen that in this application, by configuring the collection script for the devices on the storage link, the storage full link for each storage port can be obtained according to the collected configuration information, without manual participation, thereby reducing the errors caused by manual maintenance of the link, thereby improving the accuracy of the storage full link.

[0154] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.

[0155] The following takes the storage device as a SAN storage device as an example to describe the technical solution of the present application in detail:

[0156] The inventor of this application found in the process of maintaining storage links that SAN storage is currently widely used for host storage. The host is connected to the port of the host edge switch through the HBA fiber port, the host edge switch is connected to the storage edge switch through the core switch, and the storage edge switch port is connected to the SAN storage front port, so that the host can use the SAN storage space. The entire link relationship is relatively complex, and this information changes a lot every day, including adding links, modifying links, deleting links, etc., so it becomes almost unrealistic to rely on manual maintenance, and the maintained data is inaccurate and unusable.

[0157] Moreover, when checking link information, you need to log in to the storage device and check the information through the command line. However, you can only check the information on this storage device at a time, and you cannot see all the storage information at once. When the host has a problem due to storage reasons, it is impossible to quickly locate the specific storage device. You need to log in to the storage device one by one to locate it, which greatly affects the emergency efficiency. Therefore, not only is the storage link you see incomplete, but you cannot locate the device in time according to the link you see. In addition, the host needs to pass through a switch to the storage. If the problem is caused by a switch failure, it is very difficult to troubleshoot it together, and you also need to log in to the device one by one to locate it.

[0158] Based on the above defects, the inventor of this application has proposed a solution for calculating the entire storage link after research. Not only does it not require manual maintenance of the storage link, but it can also output complete storage link information for users, so that users can view the entire storage link in a timely manner. The specific solution is as follows:

[0159] First, a complete link starts from the SAN storage device and ends at the host HBA, which should include at least four components, as follows:

[0160] SAN storage, storage edge switches, host edge switches, host HBAs.

[0161] These four parts are connected in pairs in the following order: the connection between the SAN storage device and the storage edge switch (san_switch connection), the connection between the storage edge switch and the host edge switch (switch_switch connection), and the connection between the host edge switch and the host HBA (switch_host).

[0162] The switch_switch connection is one-to-many, that is, a port of a storage edge switch may be connected to multiple ports of a host edge switch, and a port of a host edge switch may be connected to multiple ports of a storage edge switch. This also means that starting from a SAN storage port, multiple links can be found, such as Figure 8 The figure shown in the figure is an example diagram of an actual link.

[0163] Among them, port 2B of SAN storage device VSPF20750 is connected to port 4 / 36 of storage edge switch YQB-8510-S2F6SE2, and port 4 / 36 is connected to port 9 / 0 and port 9 / 8 of host edge switch YQBS2F4HE2 at the same time, among which port 9 / 0 is connected to HBA port fcd6 of host by18sddj4db1001, and port 9 / 8 is connected to HBA port fcd6 of host by18sddj4db1002. Thus, two complete links are formed from one port of SAN storage device.

[0164] In this application, link collection is performed in advance on each device involved in the link. Specifically, it is necessary to deploy a collection script on each device involved in the link in advance. The collection script collects information on the properties of each device and the connection status of the interface (also called port) to form the configuration information of each device and store it in a database. In this embodiment, the configuration information can be obtained in the database for reading, so as to generate a full storage link.

[0165] The main attributes in the configuration information of SAN storage devices are view and port.frontport. The structure of View is as follows Fig. 9As shown in . The view records the host HBA and SAN storage port associated with each SAN storage port in the storage device. The hostgroup.hosts attribute is a group of host HBA WWPN numbers, and the portgroup.ports attribute is a group of port names and the WWN numbers of the target devices connected to them. The device corresponding to the WWN number in the portgroup.ports in the view may have a logical connection with the host HBA recorded in the hostgroup.hosts of the same view. hostgroup.hosts is the WWPN number corresponding to the host HBA. The structure of port.frontportde is as follows Fig.10 As shown in , port.frontport records all ports of the current SAN storage device. Each port records three attributes: port name, connection speed, and target device port WWN number.

[0166] The main attributes in the switch configuration information are portAllInfo and zoneInfo.effectiveZone. The structure of portAllInfo is as follows: Fig.11 As shown in , portAllInfo is an array of port information, where each port contains the port name portName and the target device information list targetInfo connected to the port. targetInfo is also an array, that is, a switch port may be connected to multiple target devices, and each connected device records its port WWN number, with the attribute name targetWWNFormat. The structure of zoneInfo.effectiveZone is as follows Fig.12 As shown in , zone is a logical concept managed by the switch. Devices in the same zone can be considered to have logical connections. The main attribute in zoneInfo.effectiveZone is zoneMemberWWNFormat, which records the WWN number of the device port in the zone.

[0167] Based on the above, this application can build a full storage link in the database by following the steps below:

[0168] 1) Starting from a port of the SAN storage device, find the view name of the port, the WWN number of the port, and the hosts (WWPN number) of the host HBA in the same view as the port in its view attributes.

[0169] 2) The WWPN of the host HBA corresponds to the portAllInfo.targetWWNFormat of the switch device, and the host edge switch name and port corresponding to the host HBA are found.

[0170] 3) The WWN in the port.frontport of the SAN storage device corresponds to the portAllInfo.targetWWNFormat of the switch device, and the storage edge switch corresponding to the SAN storage is found.

[0171] 4) Connect the SAN storage, storage edge switch, host edge switch, and host HBA in the above three steps in series into one link.

[0172] It can be seen that the technical solution of the present application can digitize and automate the construction of stored full-link information, and can display the stored full-link information as a whole, which not only improves the accuracy of stored full-link information, but also makes it convenient for operation and maintenance personnel to see the overall information, thereby improving the efficiency of daily operation and maintenance emergencies.

[0173] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0174] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0175] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0176] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for acquiring a storage full link, characterized in that: The method comprises: Obtaining storage device configuration information collected by a collection script configured on the storage device, host edge switch configuration information collected by a collection script configured on the host edge switch, storage edge switch configuration information collected by a collection script configured on the storage edge switch, and host configuration information collected by a collection script configured on the host; The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port; The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port; The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port; The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host; Obtaining storage full-link information for a target storage port on the storage device based at least on configuration information of the storage device, configuration information of the host edge switch, configuration information of the storage edge switch, and configuration information of the host; Obtaining storage full-link information for a target storage port on the storage device based at least on the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch, and the configuration information of the host, including: According to the configuration information of the storage device, a target storage edge switch connected to the target storage port and a target host optical fiber port associated with the target storage port are obtained; According to the configuration information of the target storage edge switch, obtaining a switch port in the target storage edge switch that is connected to the target storage port; According to the configuration information of the host, obtaining the target host to which the optical fiber port of the target host belongs; According to the configuration information of the host edge switch, the target host edge switch connected to the target host optical fiber port and the switch port in the target host edge switch connected to the target host optical fiber port are obtained; The storage full-link information for the target storage port is obtained based at least on the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port.

2. The method according to claim 1, characterized in that According to the configuration information of the storage device, obtaining a target storage edge switch connected to the target storage port and a target host optical fiber port associated with the target storage port includes: Obtaining, from the configuration information of the storage device, a property table corresponding to the target storage port in the storage device; Obtaining a target storage edge switch connected to the target storage port according to a port identifier in a switch connected to the storage port contained in an attribute table corresponding to the target storage port; According to the optical fiber port identifier of the host associated with the storage port contained in the attribute table corresponding to the target storage port, one or more target host optical fiber ports corresponding to the target storage port in the same attribute table are obtained.

3. The method according to claim 1, characterized in that Obtaining the target host to which the target host optical fiber port belongs according to the configuration information of the host, including: In the configuration information of the host, the configuration information of the attribute table containing the port identification of the optical fiber port of the target host is searched to obtain the target host to which the optical fiber port of the target host belongs.

4. The method according to claim 1, characterized in that: According to the configuration information of the host edge switch, obtaining the target host edge switch to which the target host optical fiber port is connected and the switch port in the target host edge switch connected to the target host optical fiber port comprises: In the configuration information of the host edge switch, searching for the configuration information of the attribute table containing the port identifier of the target host optical fiber port, so as to obtain the target host edge switch to which the target host optical fiber port is connected; In the configuration information of the target host edge switch, an attribute table containing the port identifier of the target host optical port is searched to obtain a switch port in the target host edge switch connected to the target host optical port.

5. The method according to claim 1, characterized in that Obtaining, according to the configuration information of the target storage edge switch, a switch port in the target storage edge switch connected to the target storage port, comprising: In the configuration information of the target storage edge switch, an attribute table containing the port identifier of the target storage port is searched to obtain a switch port in the target storage edge switch connected to the target storage port.

6. The method according to claim 1, characterized in that Also includes: According to the configuration information of the target host edge switch and the configuration information of the target storage edge switch, obtaining a switch port in the target host edge switch connected to the target storage edge switch and a switch port in the target storage edge switch connected to the target host edge switch; Wherein, obtaining storage full-link information for the target storage port according to at least the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host optical fiber port in the target host edge switch, and the target host optical fiber port includes: According to the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target storage edge switch connected to the target host edge switch, the switch port in the target host edge switch connected to the target storage edge switch, the switch port in the target host edge switch connected to the target host fiber port, and the target host fiber port, storage full-link information for the target storage port is obtained.

7. The method according to claim 1 or 6, characterized in that: Obtaining storage full-link information for the target storage port at least according to the target storage port, a switch port in the target storage edge switch connected to the target storage port, a switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port, including: According to the connection order between the target storage port, the switch port connected to the target storage port in the target storage edge switch, the switch port connected to the target host fiber port in the target host edge switch, and the target host fiber port, one or more storage full-link information are generated, and each storage full-link information includes one of the target storage port, one switch port in the target storage edge switch, one switch port in the target host edge switch, and one of the target host fiber port.

8. A storage full link acquisition device, characterized in that: The device comprises: A configuration acquisition unit, configured to acquire configuration information of the storage device acquired by the acquisition script configured on the storage device, configuration information of the host edge switch acquired by the acquisition script configured on the host edge switch, configuration information of the storage edge switch acquired by the acquisition script configured on the storage edge switch, and configuration information of the host acquired by the acquisition script configured on the host; The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port; The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port; The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port; The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host; A link obtaining unit, configured to obtain storage full link information for a target storage port on the storage device according to at least configuration information of the storage device, configuration information of the host edge switch, configuration information of the storage edge switch and configuration information of the host; The link acquisition unit is specifically used for: According to the configuration information of the storage device, a target storage edge switch connected to the target storage port and a target host optical fiber port associated with the target storage port are obtained; According to the configuration information of the target storage edge switch, obtaining a switch port in the target storage edge switch that is connected to the target storage port; According to the configuration information of the host, obtaining the target host to which the optical fiber port of the target host belongs; According to the configuration information of the host edge switch, the target host edge switch connected to the target host optical fiber port and the switch port in the target host edge switch connected to the target host optical fiber port are obtained; The storage full-link information for the target storage port is obtained based at least on the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port.

9. An electronic device, characterized in that: include: A memory, used to store applications and data generated by the operation of the applications; A processor, configured to execute the application program to implement: Obtaining storage device configuration information collected by a collection script configured on the storage device, host edge switch configuration information collected by a collection script configured on the host edge switch, storage edge switch configuration information collected by a collection script configured on the storage edge switch, and host configuration information collected by a collection script configured on the host; The configuration information of the storage device includes an attribute table corresponding to each storage port in the storage device, and the attribute table corresponding to the storage port includes at least a port identifier in a switch connected to the storage port and an optical fiber port identifier of a host associated with the storage port; The configuration information of the host edge switch includes a property table corresponding to each switch port in the host edge switch, and the property table corresponding to the switch port includes at least a port identifier of the host optical fiber port connected to the switch port; The configuration information of the storage edge switch includes an attribute table corresponding to each switch port in the storage edge switch, and the attribute table corresponding to the switch port includes at least a port identifier of a storage port connected to the switch port; The configuration information of the host includes a property table corresponding to each host optical fiber port in the host, and the property table corresponding to the host optical fiber port at least includes a port identifier of the optical fiber port of the host; Obtaining storage full-link information for a target storage port on the storage device based at least on configuration information of the storage device, configuration information of the host edge switch, configuration information of the storage edge switch, and configuration information of the host; Obtaining storage full-link information for a target storage port on the storage device based at least on the configuration information of the storage device, the configuration information of the host edge switch, the configuration information of the storage edge switch, and the configuration information of the host, including: According to the configuration information of the storage device, a target storage edge switch connected to the target storage port and a target host optical fiber port associated with the target storage port are obtained; According to the configuration information of the target storage edge switch, obtaining a switch port in the target storage edge switch that is connected to the target storage port; According to the configuration information of the host, obtaining the target host to which the optical fiber port of the target host belongs; According to the configuration information of the host edge switch, the target host edge switch connected to the target host optical fiber port and the switch port in the target host edge switch connected to the target host optical fiber port are obtained; The storage full-link information for the target storage port is obtained based at least on the target storage port, the switch port in the target storage edge switch connected to the target storage port, the switch port in the target host edge switch connected to the target host optical fiber port, and the target host optical fiber port.

Citation Information

Patent Citations

  • Method for realizing full-link monitoring and alarming of process layer network

    CN110830327A

  • Port trunking at a fabric boundary

    US20100085981A1