Storage link setting method and device of FC-SAN (Fiber Channel Storage Area Network) and electronic equipment
Through the automated FC-SAN storage link setting method and device, the problem of low storage link setting efficiency and misjudgment in FC-SAN is solved, efficient and reliable automatic storage link configuration is realized, and the risk of errors caused by manual intervention is reduced. .
Patent Information
- Application Number
- CN202410063070.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-10-18
AI Technical Summary
The storage link settings between hosts and storage devices in existing FC-SAN rely on manual work, resulting in low efficiency and prone to misjudgments, leading to incorrect redundancy planning.
An automated FC-SAN storage link setting method and device is proposed. By determining the networking requirements of the target host, matching the available storage devices, and automatically setting the storage link according to the networking configuration, it avoids redundancy planning caused by manual negligence. mistake.
It realizes efficient automatic setting of storage links in FC-SAN, reduces labor costs, improves the reliability and redundancy of storage links, and reduces the risk of errors caused by manual intervention.
Smart Images

Figure CN118802965A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic device for setting a storage link of an FC-SAN. Background Art
[0002] Fibre Channel Storage Area Network (FC-SAN) is a storage architecture that connects storage devices and application servers through a network. This network is dedicated to the solution between the host and the storage device. When there is a need to access data, the data can be transmitted at high speed between the server and the back-end storage device through the storage area network.
[0003] Currently, the storage link between the host and the storage device in FC-SAN is set up manually, which is not only time-consuming, but also the redundancy planning of the device port usage relies on experience, which may cause misjudgment. Summary of the invention
[0004] The embodiments of the present application provide a task processing method, device, electronic device and storage medium, which can solve the problems of low efficiency and prone to misjudgment in planning of storage links in manual setting of FC-SAN.
[0005] To solve the above technical problems, the embodiments of the present application are implemented as follows:
[0006] In a first aspect, a storage link setting method of FC-SAN is proposed, comprising:
[0007] Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN;
[0008] Determine the networking configuration of the FC-SAN;
[0009] According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
[0010] In a second aspect, a storage link setting device for FC-SAN is proposed, comprising:
[0011] A storage device matching module determines available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN;
[0012] A network configuration determination module, which determines the network configuration of the FC-SAN;
[0013] A storage link setting module is configured to set a storage link of the target host to the available storage device in the FC-SAN according to the networking configuration.
[0014] In a third aspect, an electronic device is provided, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor performs the following operations:
[0015] Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN;
[0016] Determine the networking configuration of the FC-SAN;
[0017] According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
[0018] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device performs the following operations:
[0019] Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN;
[0020] Determine the networking configuration of the FC-SAN;
[0021] According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
[0022] When it is necessary to set up a storage link for a target host in an FC-SAN, the present application finds a matching available storage device in the FC-SAN according to the networking requirements of the target host; thereafter, according to the current networking configuration of the FC-SAN, the storage link of the target host for the available storage device is automatically set, thereby replacing the manual method and avoiding the problem of incorrectly planned storage link redundancy due to human negligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 This is a schematic diagram of a first flow chart of a method for setting storage links of an FC-SAN according to an embodiment of the present application.
[0025] Figure 2 This is a second flow chart of the storage link setting method of the FC-SAN according to an embodiment of the present application.
[0026] Figure 3 It is a structural diagram of a storage link setting device for FC-SAN according to an embodiment of the present application.
[0027] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] FC-SAN mainly includes the following components:
[0029] Hosts: Hosts are computer systems that run applications and operating systems. In an FC-SAN environment, hosts are connected to storage devices through Fibre Channel Host Bus Adapters (FC HBAs).
[0030] Storage Devices: Storage devices refer to hardware devices used to store and manage data, such as storage arrays, disk arrays, tape libraries, etc. Storage devices are connected to the host through a Fibre Channel interface.
[0031] SAN Switches (Fibre Channel Switches): Fibre Channel switches are network devices used to build storage networks. They provide high-speed Fibre Channel connections and are responsible for routing data flows and managing access control. Fibre Channel switches allow direct connections between hosts and storage devices, while supporting parallel transmission between multiple devices.
[0032] Fibre Channel: Fibre Channel is a high-speed, high-bandwidth network protocol used to transmit data in an FC-SAN environment. It is based on fiber optic cables, supports point-to-point and multipoint connections, and provides low latency, high reliability, and high performance data transmission.
[0033] Fibre Channel Media: Fibre Channel media refers to the optical fiber cable used to transmit Fibre Channel signals. It has high bandwidth and anti-interference capabilities and can support long-distance data transmission.
[0034] Fibre Channel Protocol: Fibre Channel Protocol is a network protocol used to transmit data in FC-SAN environment. It defines the format and specifications of data transmission and control messages to ensure the integrity, reliability and security of data.
[0035] In FC-SAN, the World Wide Port Name is used to uniquely identify the host and storage device. Each host adapter and storage device has a unique WWN.
[0036] In addition, the switch zone is a logical partition that defines which hosts can access which storage devices. By configuring the switch zone, you can limit the access rights between hosts and storage devices. The switch zone configuration process includes: a1. Create one or more zone sets according to requirements. b1. Add hosts and storage devices to zones: Add hosts and storage devices to the corresponding zones based on WWN information. c1. Configure zone membership: Ensure that the zone membership between hosts and storage devices is correctly configured. This means associating specific WWNs with specific zones to establish appropriate access control.
[0037] Currently, in the FC-SAN (Fibre Channel Storage Area Network) networking environment, host and storage WWN information is manually collected and switch zones are configured. Then, mapping relationships are added to the storage to allocate storage to ensure correct connections and access rights between hosts and storage devices, thereby achieving effective management of data transmission and storage.
[0038] If the above-mentioned process of collecting host and storage WWN information, configuring switch zones, and then adding mapping relationships to the storage to allocate storage is completed manually, it will not only be time-consuming and costly, but the redundancy planning of device ports will rely entirely on manual experience to check the configuration, which may lead to omissions.
[0039] In view of this, the present application is directed to FC-SAN and aims to propose an automated storage link setting solution.
[0040] In order to make the purpose, technical solutions and advantages of this document clearer, the technical solutions of this application will be clearly and completely described below in combination with the specific embodiments of this application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this document, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this document.
[0041] On the one hand, an embodiment of the present application provides a storage link configuration method for FC-SAN. Figure 1 is a flow chart of the storage link setting method, comprising:
[0042] S102: Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN.
[0043] Specifically, this embodiment can analyze the storage devices in the FC-SAN based on the networking requirements of the target host in the FC-SAN and based on at least one dimension of storage capacity, performance, throughput, redundancy, compatibility, operability and scalability to determine the available storage devices that meet the networking requirements.
[0044] S104, determine the networking configuration of the FC-SAN.
[0045] Specifically, the networking configuration of this embodiment may include: the Fibre Channel World Wide Port Name (WWPN) of the target host, the switch information of the FC-SAN, and the Fibre Channel WWPN of the available storage device.
[0046] S106: According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
[0047] Here, the networking configuration includes: the Fibre Channel World Wide Port Name (WWPN) of the target host, the switch information of the FC-SAN, and the Fibre Channel WWPN of the available storage device as an example.
[0048] This embodiment can determine an available switch in the FC-SAN to which the target host can connect based on the WWPN of the target host and the switch information of the FC-SAN. Then, based on the WWPN of the fiber channel of the target host and the WWPN of the fiber channel of the available storage device, a logical area that allows the target host to access the available storage device is set in the available switch to generate a storage link for the target host to the available storage device.
[0049] In addition, if the redundancy of the switch is further considered, on the basis of the above, one of the multiple available switches that can be connected to multiple FC front-end card ports of the available storage device and is configured with a redundant path control protocol can be determined as the target available switch; then, based on the WWPN of the fiber channel of the target host and the WWPN of the fiber channel of the available storage device, a logical area that allows the target host to access the available storage device is configured in the target available switch.
[0050] After configuring the storage link, you can further perform relevant performance verification on the storage link, and when problems occur in the verification, manual access is performed in a timely manner.
[0051] For example, determine the total performance of all FC front-end card ports of available storage devices and the total performance of the fiber channel of the target host, and initiate a manual intervention alarm when the total performance of all FC front-end card ports of available storage devices is less than or equal to the total performance of the fiber channel of the target host.
[0052] For another example, reliability detection is performed on the fiber channel of the available storage device and / or the target available switch, and a manual intervention alarm is initiated if the reliability detection fails; wherein the reliability detection of the fiber channel of the available storage device includes detection of at least one of the port, slot, utilization, and redundancy relative to the target available switch; and the reliability detection of the target available switch includes detection of redundancy with other switches.
[0053] In summary, when it is necessary to set up a storage link for a target host in FC-SAN, the method of this embodiment finds a matching available storage device in FC-SAN according to the networking requirements of the target host; then, according to the current networking configuration of FC-SAN, the storage link of the target host for the available storage device is automatically set, thereby replacing the manual method and avoiding the problem of incorrectly planned storage link redundancy due to human negligence.
[0054] The method of this embodiment is described in detail below in combination with actual application scenarios.
[0055] Phase 1: Automatic networking of FC-SAN
[0056] refer to Figure 2 As shown, this stage mainly includes:
[0057] 1. Collection and analysis of network requirements information
[0058] The collected demand information includes host information, the size and quantity of storage requirements. Among them, the host information involves relevant details of the host, such as the number, model, operating system type and version of the host, and the configuration information of the host such as network configuration and IP address. Specifically, this process can be completed by the demand collection module of the server. The demand collection module is responsible for collecting the demand information of FC-SAN networking. It can provide a user interface to interact with the networking configuration personnel and collect demand information according to the instructions sent by the configuration personnel through the user interface. Further, the demand collection module sends the collected host information, the size and quantity of storage requirements to the configuration analysis module of the server, so that the configuration analysis module can find available storage devices that meet the host requirements by querying the database or configuration file of the storage device according to the host information; evaluate and compare the available storage devices that have been queried to determine the storage device that best meets the host requirements. The configuration analysis module analyzes the demand information collected by the demand collection module and the topological data of the storage device (including the database or configuration file) to determine the best networking solution.
[0059] The configuration analysis module evaluates and compares the available storage devices that have been queried, and selects the storage device that best meets the host's needs, including:
[0060] (1) Storage capacity selection: Based on the host's storage requirements, evaluate whether the capacity of each available storage device is sufficient, and select a storage device with a capacity that meets the host's storage requirements from all storage devices to meet the host's storage space requirements. This can be determined by comparing the available capacity of the available storage devices with the host's storage requirements.
[0061] (2) Performance and throughput: Consider the host's requirements for storage performance and throughput, and compare the performance indicators of available storage devices, such as IOPS, bandwidth, and response time.
[0062] First, you need to clarify the host's specific requirements for storage performance and throughput, including the expected IOPS (input / output operations per second), bandwidth requirements, and upper limits on response time. These requirements can be determined based on the application's needs, workload characteristics, and performance expectations. Then, collect performance metrics for storage devices, including the device's maximum IOPS, bandwidth, and response time. Next, compare performance metrics: Compare the collected storage device performance metrics with the host's performance requirements. Based on the host's needs, compare whether the IOPS, bandwidth, and response time of each device meet the requirements. It should be noted that different applications and workloads may have different requirements for performance metrics, so comparisons and evaluations need to be made based on specific circumstances. Finally, make a decision: Based on the results of the comparison and evaluation, determine the storage device that is suitable for the host's requirements. Select a device that can meet the host's performance requirements and meets the needs in terms of other factors. When making a decision, also consider the cost-effectiveness, availability, and future expansion possibilities of the storage device.
[0063] (3) Reliability and redundancy: Evaluate the reliability and redundancy characteristics of available storage devices, including data backup, failover, and fault-tolerant mechanisms, to ensure data security and high availability. Specifically, determine whether the available storage devices are pre-set with a data backup strategy, which includes at least one of full backup, incremental backup, or differential backup. Determine whether the available storage devices are pre-set with a failover mechanism, which includes whether it is connected to a redundant power supply or a redundant network. Determine whether the available storage devices have a fault-tolerant mechanism, such as disk arraying, data mirroring, data verification, and error correction. This fault-tolerant mechanism can help prevent data loss and system failures.
[0064] (4) Compatibility and interoperability: Consider the compatibility and interoperability between the host and storage devices, including whether the supported storage protocols and interface standards are compatible and interoperable with each other to ensure that they can communicate and transfer data seamlessly.
[0065] (5) Scalability and future needs: Evaluate the scalability and upgradeability of available storage devices to meet future host expansion and storage capacity growth needs. Specifically, understand current host expansion needs and storage capacity needs, and predict future needs based on business growth rates and data growth trends. This can include considering factors such as the number of hosts, data volume growth rate, data type, and access patterns. Evaluate whether the storage device supports scalability, that is, whether more storage units can be added or storage capacity can be expanded. Understand whether the device has expandable hardware interfaces and expansion slots, and check whether there are hardware or software limitations that limit expansion. Understand the expansion options of the storage device, such as adding additional hard drives, storage modules, or expansion cabinets. Evaluate the cost, feasibility, and availability of expansion options. Evaluate the storage protocols and interfaces supported by the storage device, such as SAS (Serial SCSI), SATA (Serial ATA), Fibre Channel, or iSCSI (SCSI over IP). Ensure that the storage device is compatible with future host and network architectures. Understand the upgradeability of the storage device: Evaluate whether the storage device supports hardware and software upgrades. Understand whether the device has upgradeable firmware or operating system, and evaluate the cost, complexity, and impact of the upgrade. Understand whether the storage device has flexible storage management software and functions, such as virtualization, storage pools, snapshots, and data compression. These functions can increase the utilization and flexibility of storage resources. Based on the above evaluation results, comprehensively evaluate the scalability and upgradeability of storage devices. Develop a planning strategy, including considering purchasing devices with higher scalability, reserving space for capacity expansion, and regularly evaluating device performance and capacity requirements.
[0066] In summary, by analyzing and selecting available storage, the best storage device can be determined, and subsequent configuration and mapping operations can be performed to allocate storage resources to hosts to achieve efficient data storage and access.
[0067] 2. Network Configuration Information Collection and Analysis
[0068] In the automatic networking configuration process of the FC-SAN, the collection and analysis of the networking configuration information can be implemented by the networking configuration information collection and analysis module of the server. Specifically, the process of collecting and analyzing the networking configuration information by the networking configuration information collection and analysis module includes the following steps:
[0069] Step 1: Use the script to collect the host HBA card WWPN information.
[0070] Use the command cat / sys / class / fc_host / host* / port_name and execute this command through a script to obtain the World Wide Port Name (wwpn) information of the Fibre Channel adapter (hba) card on the host. wwpn is a unique identifier for a Fibre Channel device and is used to identify and connect hosts and storage devices in a FC-SAN.
[0071] Step 2: Get the switch information.
[0072] Use the switchshow command to query the switch commands to obtain detailed information about the switch. This information includes the switch model, serial number, port status, connected devices, etc. By obtaining switch information, you can understand the switch topology and connection status for subsequent configuration and mapping operations.
[0073] Step 3: Collect the WWPN of the HBA port of the storage device through the interface.
[0074] The WWPN information of the HBA card port of the storage device is collected by calling an interface (API). This involves using the management interface provided by the storage device or the API of the storage management software to obtain detailed information of the HBA card port in the storage device.
[0075] The above steps are designed to collect necessary information, including the host's HBA card WWPN, switch information, and storage device HBA card port WWPN. This information will be used to analyze and configure the FC-SAN environment and determine appropriate connections and mapping relationships to ensure correct communication and access rights between the host and storage devices. The collection and analysis of this information can be achieved through automated scripts and interface calls to improve efficiency and accuracy.
[0076] 3. Network configuration execution
[0077] In the automatic networking configuration process of FC-SAN, the networking configuration is performed through the networking configuration module of the server. Specifically, the zone is created on the switch by calling the script to open the storage link between the host and the storage device. The specific steps are as follows:
[0078] (1) Matching the WWPN information of the host HBA card with the port on the switch. In this way, the switch port to which the host is connected can be determined. Specifically, a mapping relationship between the WWPN information of the host HBA card and the port on the switch is pre-set, and based on the preset mapping relationship, the WWPN information of the host HBA card can be matched with the port on the switch.
[0079] (2) According to the matching results, the ports on the switch are labeled to identify the ports to which the host is connected. Specifically, according to the matching results, the ports on the switch that match the WWPN information of the HBA card of each host are respectively configured with preset labels to identify the ports to which each host is respectively connected. The preset labels may be composed of preset characters, letters or numbers.
[0080] (3) Determine whether the connected switches are redundant: During networking, determine whether the switches connected to the host are redundant. This can be determined by checking the number of connected switches, topology, and redundant configuration.
[0081] First, check the number of switches connected to the host. If there is only one switch connected to the host, there is a lack of redundancy. If there are multiple switches connected to the host, there is a possibility of redundancy. Then, check the topology: Observe the network topology and understand the connection between the switches connected to the host. If there are redundant paths between multiple switches, that is, there are multiple paths that can replace each other, then there is a high possibility of redundancy. Further check the redundant configuration of the switch, such as whether redundant link aggregation (Link Aggregation) or redundant path control protocols (such as Spanning Tree Protocol) are used. These configurations can ensure that when the main link fails, the redundant path can take over the data traffic, providing fault tolerance and high availability. In addition, it is necessary to understand the fault tolerance and redundancy characteristics of the switch. For example, understand whether the switch supports hot standby plug-in, that is, it can be quickly replaced without affecting the network connection when the switch fails. Finally, understand the switch's redundant power supply and redundant fan features. Consider network design and requirements: Comprehensively consider the network design and requirements, and evaluate whether the redundancy of the switch is sufficient to meet the needs based on the business requirements for availability and fault tolerance. Further redundant configuration may be required as needed, such as using virtualization technology or stacking switches to increase redundant paths and reliability.
[0082] In summary, the redundancy of the switches connected to the host can be evaluated. If there are many switches, the topology has redundant paths, the redundancy mechanism is configured, and the network needs and design requirements are met, then the switches can be judged to have redundancy. This can provide high availability, fault tolerance and reliability of the network, and ensure the stability and continuity of data transmission.
[0083] (4) Naming the FC front-end card of the storage device and whether the switch to which it is connected is redundant: Similarly, the FC front-end card of the storage device is named and whether the switch to which it is connected is redundant.
[0084] The naming of the storage device FC front-end card is usually determined according to the device manufacturer and model. Each FC front-end card has a unique identifier, which can be named according to the manufacturer's naming convention, such as a combination of manufacturer code, device model and port number. For example, the naming of an FC front-end card can be in the format of "VendorCode_Model_PortNumber", where VendorCode represents the manufacturer code, Model represents the device model, and PortNumber represents the port number.
[0085] In the present application, the steps for determining whether the switch connected to the FC front-end card of the storage device has redundancy are as follows: 1) Check the number of FC front-end cards: Check the number of FC front-end cards on the storage device. If only one FC front-end card is connected to the storage device, there is a lack of redundancy. If there are multiple FC front-end cards connected to the storage device, there is a possibility of redundancy. 2) Understand the connection topology: Understand the connection method and topology between the FC front-end card of the storage device and the switch. Observe whether there are multiple switches connected to the FC front-end card of the storage device and whether there are redundant paths. 3) Check the redundant configuration of the switch: Evaluate whether the connected switch has redundant configuration, such as whether a redundant path control protocol between multiple switches is configured, such as a redundant path control protocol of Fibre Channel (such as FC-SP) or switch stacking. These configurations can ensure that when the main link fails, the redundant path can take over the data traffic, providing fault tolerance and high availability. 4) Consider the redundant features of the switch: Understand whether the connected switch has redundant features, such as hot standby plug-in function, redundant power supply and redundant fan. These features can provide failover and fault tolerance to ensure the stability and reliability of the connection.
[0086] Taking into account the evaluation results of the above steps, you can determine whether the switch connected to the FC front-end card of the storage device has redundancy. If there are multiple FC front-end cards connected to the storage device, the topology has redundant paths, and the connected switches are redundantly configured and have redundant features, then it can be considered that the switch connected to the FC front-end card of the storage device has redundancy. This will provide high availability, fault tolerance and reliability of the storage system, ensuring data security and continuity.
[0087] (5) Select ports for zones Automatically select storage device FC front-end card ports to ensure redundancy: Automatically select storage device FC front-end card ports and configure zones based on redundancy requirements. This ensures that the connection between the host and storage device is redundant to improve reliability and availability. Specifically: 1) Determine redundancy requirements: First, clarify the redundancy requirements and goals. Redundancy requirements mean that the connection between the storage device and the host must have redundant paths to improve reliability and availability. Based on the redundancy requirements, determine that at least two storage device FC front-end card ports are required to connect to the host. 2) Evaluate storage device FC front-end card ports: Evaluate the available FC front-end card ports on the storage device. Check the specifications and documentation of the storage device to understand the number of ports and availability of each FC front-end card. 3) Automatically select redundant ports: Automatically select redundant ports based on redundancy requirements and the storage device FC front-end card port situation through algorithms or rules. The following factors can be considered: 4) Select ports from different FC front-end cards to ensure that redundant paths are provided by different physical connections and select FC front-end card ports from different manufacturers to reduce the potential failure risk that may exist from the same manufacturer. 5) Select ports with different numbers and avoid selecting adjacent ports to reduce the risk of connection interruption due to consecutive port failures. 6) Perform corresponding zone configuration based on the automatically selected storage device FC front-end card port. Zone configuration refers to defining logical areas on the storage switch and assigning the ports of the host and storage device to different zones. Through zone configuration, ensure that only redundant ports are connected to achieve the establishment of redundant paths.
[0088] In addition, after completing the zone configuration, verify whether the connection between the storage device and the host is redundant. This can be verified by checking the link status between the storage device and the host, checking the port status of the storage switch, and performing a connectivity test.
[0089] Through the above process, the port is selected as the zone, the FC front-end card port of the storage device is automatically selected, and the zone configuration is performed to ensure that the connection between the host and the storage device has redundancy, and improve the reliability and availability of the storage system. This can reduce the risk of single point failure and ensure the security and continuity of data.
[0090] (6) Count the total performance of all FC front-end card ports of the storage device and compare it with the total performance of the host HBA ports that have been added to the zone: Count the performance of all FC front-end card ports of the storage device and calculate their total performance. Then, compare the total performance with the total performance of the host HBA ports that have been added to the zone.
[0091] (7) When the total performance of the storage device port is less than or equal to the total performance of the zoned host HBA port, it is reminded that there may be a performance bottleneck on the storage device side, and manual intervention is required to confirm the performance usage: If the total performance of the storage device port is less than or equal to the total performance of the zoned host HBA port, this may mean that there is a performance bottleneck on the storage device side. At this time, the system will remind the operator that manual intervention is required to confirm the performance usage of the storage device side, and may take corresponding optimization measures.
[0092] The above steps are designed to automatically configure the link between the host and the storage device, including creating zones, selecting appropriate ports for redundancy, and considering performance factors. At the same time, when storage performance may become a bottleneck, manual intervention is provided to confirm performance usage to ensure the reliability and performance optimization of the entire networking process.
[0093] 4. Storage device configuration
[0094] During the automatic networking configuration of FC-SAN, the storage device configuration module of the server can be used to configure the storage device side, including the following steps:
[0095] (1) Call the interface storage device to create a mapping relationship
[0096] The storage device is configured by calling the management interface provided by the storage device or the API of the storage management software. Specifically, the interface can be used to create a mapping relationship to associate storage resources with the host. In this way, the host can access and use the storage space of the storage device.
[0097] (2) Calling the interface to divide the storage disk
[0098] Use interfaces to divide storage disks (LUNs) on storage devices and assign them to corresponding hosts. Storage disks are logical units on storage devices that are used to store host data. By calling interfaces, you can specify the size, capacity, and other related configurations of storage disks.
[0099] (3) Add mapping
[0100] On the storage device, the storage disk is mapped to the HBA card (WWPN) of the host by calling the interface to add a mapping relationship. In this way, the host can identify and access the storage disk assigned to it.
[0101] By calling the interface to configure the storage device side, you can achieve automated storage resource allocation and mapping. The interface provides a means of interacting and configuring with the storage device, so that the settings and mapping of the storage device side can be performed automatically. This can improve the efficiency and accuracy of the configuration and ensure the correct allocation of storage resources and normal communication between the host and the storage device.
[0102] 5. Host-side disk scanning verification and collection and identification of storage disk information
[0103] During the automatic networking configuration of FC-SAN, the connection and identification of storage disks can be verified by executing a disk scan command or calling related interfaces on the host by the verification and identification module, which ensures that the host can correctly identify the storage disks assigned to it.
[0104] The host-side disk scanning verification includes: performing a host-side disk scanning operation, that is, the host actively scans and detects the existence and availability of the storage disk. By executing corresponding commands or calling interfaces, the host can scan the storage device connected to its HBA card to confirm the existence and status of the storage disk.
[0105] Collecting and identifying storage disk information includes: after performing a disk scan operation on the host side, the identified storage disk information can be collected and recorded. This information includes the identifier, capacity, status, etc. of the storage disk. By collecting this information, the usage of the storage disk can be further analyzed and configured.
[0106] During the disk scanning verification and storage disk information collection process, the system can verify whether the host-side disk scanning operation is successfully completed and confirm the identification of the storage disk. If the verification is successful, the system can continue to perform the subsequent automated configuration process. If the verification fails or an abnormal situation occurs, the system may need to issue an alarm or remind the operator to intervene manually. Manual intervention can include checking the connection, configuration, or other issues that may cause the disk scanning failure, and taking appropriate repair measures.
[0107] By scanning and verifying the host and collecting storage disk information, you can ensure that the host correctly identifies and uses the storage disk assigned to it. The verification results can be used to determine the progress and accuracy of the automatic networking configuration process, and to perform manual intervention to solve the problem as needed to ensure the reliability and normal operation of the entire FC-SAN environment.
[0108] Phase 2: Intelligent check of link redundancy
[0109] In the process of automatic networking configuration of FC-SAN, intelligent checking of link redundancy involves the collection and analysis of HBA ports of storage devices. This process is implemented by the intelligent checking module of the server and specifically involves the following aspects:
[0110] 1. Get the number of available ports
[0111] Collect information about the number of HBA ports on the storage device by calling interfaces or using related commands.
[0112] First, determine the type of storage device, such as a SAN (Storage Area Network) device or a direct-attached storage device. Different types of storage devices may require different interfaces or commands to obtain the number of HBA ports. Then, call the storage device management interface: If the storage device provides a management interface, you can obtain the number of HBA ports by calling the corresponding interface. Common storage device management interfaces include SNMP (Simple Network Management Protocol) or a dedicated management interface provided by the storage device manufacturer. By sending a corresponding query request, obtain the number of HBA ports installed on the storage device. Next, use storage device management software: Some storage devices provide dedicated management software that can be used to monitor and manage storage devices. Using the storage device management software, you can view the configuration information of the storage device, including the number of HBA ports. For some storage devices, you can use command line tools to obtain the number of HBA ports. Different storage devices may have different command line tools. For example, for Fibre Channel SAN devices, you can use command line tools such as scli (SANsurfer Command Line Interface) or command line tools provided by the SAN vendor to query the number of HBA ports. Finally, you can refer to the storage device documentation, which may provide instructions on how to obtain the number of HBA ports. The documentation of the storage device usually contains relevant management and configuration guides, which may describe how to use specific interfaces, commands, or tools to obtain the number of HBA ports. The process selects the appropriate method to collect the number of HBA ports on the storage device based on the specific type of storage device and the management interface or tool provided. By calling the interface, using relevant commands, or consulting the documentation, you can obtain the number of HBA ports on the storage device to understand the connection capability and scalability of the storage device. This can help determine the number of available ports provided by the storage device.
[0113] 2. Check the slot
[0114] Get the slot information of each HBA port in the storage device to understand the location of the port and the slot to which it belongs.
[0115] First, determine the type of storage device, such as a SAN (Storage Area Network) device or a direct-attached storage device. Different types of storage devices may have different ways to obtain slot information. Then, call the storage device management interface: If the storage device provides a management interface, you can obtain the slot information of the HBA port by calling the corresponding interface. The storage device management interface usually provides the function of querying and managing the storage device configuration, including slot information. By calling the relevant interface, obtain the slot information where each HBA port is located. Then use the storage device management software: Some storage devices provide dedicated management software for monitoring and managing storage devices. Using the storage device management software, you can view the configuration information of the storage device, including the slot information where each HBA port is located. In the interface of the management software, you can find information related to the port and view the slot location of each port. Further, check the storage device documentation: The storage device documentation usually contains detailed information about device configuration and management. The documentation may provide instructions on how to obtain the slot information of the HBA port. Refer to the storage device documentation, find the section related to the port slot information, and follow the instructions in the documentation. Finally, if you cannot obtain the slot information through the management interface, software, or documentation, you can perform a physical inspection. Check the external and internal structure of the storage device to find the slot location of the HBA port. Depending on the design and construction of the storage device, the slot information may be marked on the outside or inside of the device, such as on a panel or on a label inside the device.
[0116] Through the above steps, you can obtain the slot information of each HBA port in the storage device and understand the location of the port and the slot it belongs to. This can help identify and manage the various ports on the storage device and perform more accurate configuration, troubleshooting or maintenance operations when necessary. This can help determine the configuration and layout of the HBA ports on the storage device.
[0117] 3. Check the redundancy of port distribution switches
[0118] By obtaining the switch configuration information (for example, using the switchshow command), collect the port distribution information on the switch to determine the redundancy and reliability of the switch.
[0119] First, determine the type of switch used, such as a Fibre Channel switch or an Ethernet switch. Different types of switches may have different configuration commands and interfaces. Then, connect to the switch: Use an appropriate management tool, such as SSH (Secure Shell) or a serial port connection to connect a computer or terminal device to the switch to be checked. Then access the switch's CLI (command line interface): Access the switch's command line interface through an appropriate command line interface (CLI), such as through a terminal or using specific management software. This usually involves entering login credentials, such as a username and password. Further, based on the switch type and the commands provided by the manufacturer, execute the corresponding configuration commands to obtain the port distribution on the switch. For example, on a Fibre Channel switch, you can use the "switchshow" command to obtain the switch's port list, status, and connection information. On an Ethernet switch, you can use similar commands to view port configuration and status information. Then analyze the port distribution information: Analyze the port distribution on the switch through the command output. View the status of each port (such as active, disabled, or error status), the identification of the connected device (such as WWN or MAC address), and the connection relationship between ports. This can help you understand the usage of each port on the switch, the distribution of connected devices, and the redundancy configuration. Finally, record and evaluate the results: Record the obtained port distribution information and evaluate it. Analyze the port utilization, redundant connections, and possible bottlenecks or single points of failure on the switch. Based on the evaluation results, you can determine whether the redundancy requirements are met or whether the switch configuration needs to be optimized or adjusted.
[0120] Through the above steps, you can use appropriate commands and interfaces, such as the "switchshow" command, to obtain the port distribution and configuration information on the switch. This can help evaluate the redundancy and reliability of the switch and make necessary adjustments or optimizations to improve the stability and performance of the storage network. This can be used to determine which switch port each storage device port is connected to.
[0121] 4. Check the redundant configuration of the switch
[0122] Use multiple switches and redundant connections to ensure link availability in the event of a switch or connection failure. Link redundancy can be assessed by checking the connections between switches, the distribution of ports, and the redundant configuration.
[0123] 5. Check port utilization
[0124] Collects utilization information for each HBA port on the storage device. This can be obtained through the interface or command to understand the load and utilization of each port.
[0125] Specifically, you can analyze the port utilization and compare it with the set threshold to determine whether there are overloaded ports or potential performance bottlenecks. If the utilization of some ports exceeds the predetermined threshold, you may need to take corresponding measures, such as optimizing the configuration, increasing bandwidth, or performing load balancing.
[0126] Through the above steps, you can collect and analyze the storage device HBA port to intelligently check the redundancy of the link. This involves checking the number of ports, their slots, port distribution, switch redundancy, and port utilization. This ensures that the link between the storage device and the switch is redundant and evaluates the
[0127] In summary, the method of this embodiment has the following characteristics:
[0128] 1) Through the collection and analysis of networking demand information, the collection and analysis of networking configuration information, the execution of networking configuration, the configuration of storage devices, the host scanning verification and the collection and identification of storage disk information, the FC-SAN networking automation capability is realized, which greatly reduces the labor cost;
[0129] 2) By performing intelligent checks on link redundancy and formulating redundancy check rules, the security and reliability of existing technologies are improved.
[0130] On the other hand, for Figure 1 In addition to the method shown, an embodiment of the present application also provides a storage link setting device for FC-SAN. Figure 3 The structural diagram of the storage link setting device includes:
[0131] The storage device matching module 310 determines available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN.
[0132] The networking configuration determining module 320 determines the networking configuration of the FC-SAN.
[0133] The storage link setting module 330 sets the storage link of the target host to the available storage device in the FC-SAN according to the networking configuration.
[0134] Based on the device of this embodiment, when it is necessary to set up a storage link for a target host in FC-SAN, a matching available storage device is found in FC-SAN according to the networking requirements of the target host; then, according to the current networking configuration of FC-SAN, the storage link of the target host for the available storage device is automatically set, thereby replacing the manual method and avoiding the problem of incorrect planning of storage link redundancy due to human negligence.
[0135] Optionally, the storage device matching module 310 determines the available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN, including: according to the networking requirements of the target host in the FC-SAN, based on at least one dimension of storage capacity, performance, throughput, redundancy, compatibility, operability and scalability, analyzing the storage devices in the FC-SAN to determine the available storage devices that meet the networking requirements.
[0136] Optionally, the networking configuration includes: the global port name WWPN of the fiber channel of the target host, the switch information of the FC-SAN and the WWPN of the fiber channel of the available storage device; the storage link setting module 330 sets the storage link of the target host for the available storage device in the FC-SAN according to the networking configuration, including: determining an available switch in the FC-SAN to which the target host can connect based on the WWPN of the target host and the switch information of the FC-SAN; and setting a logical area in the available switch that allows the target host to access the available storage device based on the WWPN of the fiber channel of the target host and the WWPN of the fiber channel of the available storage device, so as to generate a storage link of the target host for the available storage device.
[0137] Optionally, there are multiple available switches; the storage link setting module 330 sets a logical area in the available switch that allows the target host to access the available storage device according to the WWPN of the fiber channel of the target host and the WWPN of the fiber channel of the available storage device, including: determining a target available switch that has redundancy with the mesh channel FC front-end card port of the available storage device from the multiple available switches; and configuring a logical area in the target available switch that allows the target host to access the available storage device according to the WWPN of the fiber channel of the target host and the WWPN of the fiber channel of the available storage device.
[0138] Optionally, the storage link setting module 330 determines a target available switch that is redundant with the mesh channel FC front-end card port of the available storage device from the multiple available switches, including: determining one of the multiple available switches that can be connected to multiple FC front-end card ports of the available storage device and is configured with a redundant path control protocol as the target available switch.
[0139] Optionally, the device of this embodiment further includes:
[0140] The manual alarm module initiates a manual intervention alarm when the total performance of all FC front-end card ports of the available storage device is less than or equal to the total performance of the fiber channel of the target host.
[0141] Optionally, the manual alarm module is also used to: perform reliability detection on the fiber channel of the available storage device and / or the target available switch, and initiate a manual intervention alarm when the reliability detection fails; wherein the reliability detection on the fiber channel of the available storage device includes: at least one of: port detection, slot detection, utilization detection and redundancy detection relative to the target available switch; the reliability detection on the target available switch includes: redundancy detection with other switches.
[0142] It should be understood that the storage link setting device of the embodiment of the present application can be used as Figure 1 The execution subject of the method shown can thus realize Figure 1 The steps and functions of the method shown.
[0143] Figure 4 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 4 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0144] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0145] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0146] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming the above-mentioned task processing device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0147] According to the networking requirements of the target host in the FC-SAN, available storage devices in the FC-SAN are determined.
[0148] Determine the networking configuration of the FC-SAN.
[0149] According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
[0150] The above application Figure 1 The method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in one or more embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with one or more embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0151] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0152] The present application also provides a computer-readable storage medium that stores one or more programs. The one or more programs include instructions that, when executed by a portable electronic device that includes multiple application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations:
[0153] According to the networking requirements of the target host in the FC-SAN, available storage devices in the FC-SAN are determined.
[0154] Determine the networking configuration of the FC-SAN.
[0155] According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
[0156] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present application shall be included in the protection scope of one or more embodiments of the present application.
[0157] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0158] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0160] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for setting storage links of a Fibre Channel protocol storage area network FC-SAN, It is characterized in that include: Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN; Determine the networking configuration of the FC-SAN; According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
2. The method according to claim 1, It is characterized in that Determining available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN includes: According to the networking requirements of the target host in the FC-SAN, based on at least one dimension of storage capacity, performance, throughput, redundancy, compatibility, operability and scalability, the storage devices in the FC-SAN are analyzed to determine the available storage devices that meet the networking requirements.
3. The method according to claim 1, It is characterized in that The networking configuration includes: the WWPN of the fiber channel of the target host, the switch information of the FC-SAN and the WWPN of the fiber channel of the available storage device; According to the networking configuration, setting a storage link of the target host to the available storage device in the FC-SAN includes: Determine, according to the WWPN of the target host and the switch information of the FC-SAN, an available switch in the FC-SAN to which the target host can be connected; According to the WWPN of the Fibre Channel of the target host and the WWPN of the Fibre Channel of the available storage device, a logical area allowing the target host to access the available storage device is set in the available switch to generate a storage link for the target host to the available storage device.
4. The method according to claim 3, It is characterized in that There are multiple available switches; according to the WWPN of the fiber channel of the target host and the WWPN of the fiber channel of the available storage device, setting a logical area in the available switch that allows the target host to access the available storage device includes: Determine a target available switch from the plurality of available switches that has redundancy with the mesh channel FC front-end card port of the available storage device; According to the WWPN of the Fibre Channel of the target host and the WWPN of the Fibre Channel of the available storage device, a logical area allowing the target host to access the available storage device is configured in the target available switch.
5. The method according to claim 4, It is characterized in that Determining a target available switch having redundancy with a mesh channel FC front-end card port of the available storage device from the plurality of available switches comprises: One of the plurality of available switches, which is connectable to a plurality of FC front-end card ports of the available storage device and is configured with a redundant path control protocol, is determined as a target available switch.
6. The method according to claim 4, It is characterized in that After configuring, in the target available switch, a logical area that allows the target host to access the available storage device according to the WWPN of the Fibre Channel of the target host and the WWPN of the Fibre Channel of the available storage device, the method further includes: In the case where the total performance of all FC front-end card ports of the available storage device is less than or equal to the total performance of the Fibre Channel of the target host, a manual intervention alarm is initiated.
7. The method according to claim 3, It is characterized in that After configuring, in the target available switch, a logical area that allows the target host to access the available storage device according to the WWPN of the Fibre Channel of the target host and the WWPN of the Fibre Channel of the available storage device, the method further includes: Performing reliability detection on the optical fiber channel of the available storage device and / or the target available switch, and initiating a manual intervention alarm when the reliability detection fails; Among them, the reliability detection of the fiber channel of the available storage device includes: port detection, slot detection, utilization detection and at least one of redundancy detection relative to the target available switch; the reliability detection of the target available switch includes: redundancy detection with other switches.
8. A storage link setting device for FC-SAN, It is characterized in that include: A storage device matching module determines available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN; A network configuration determination module, which determines the network configuration of the FC-SAN; A storage link setting module is configured to set a storage link of the target host to the available storage device in the FC-SAN according to the networking configuration.
9. An electronic device, include: processor; and a memory arranged to store computer executable instructions which, when executed, cause the processor to: Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN; Determine the networking configuration of the FC-SAN; According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to perform the following operations: Determine available storage devices in the FC-SAN according to the networking requirements of the target host in the FC-SAN; Determine the networking configuration of the FC-SAN; According to the networking configuration, a storage link of the target host to the available storage device is set in the FC-SAN.
Citation Information
Cited By
Storage configuration method, system and equipment and computer readable storage medium
CN119690353A
Network topology identification method and electronic equipment
CN120785757A
