Method, device and equipment for setting wwpn of FC physical port
By using the array unique identifier of the storage array in the FC storage network to generate the first WWPN and use it to replace and initialize the WWPN of the FC card, the WWPN changes and multiple NVRAM writes caused by FC card replacement are solved, and the stable operation and failure reduction of the storage array are achieved.
Patent Information
- Application Number
- CN202411844735.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, when the FC card fails and a new card needs to be replaced, it may cause changes in WWPN, causing the stability of the FC storage network to be threatened, and multiple NVRAM writes will increase the probability of failure.
By receiving the WWPN setting instruction, the array unique identification of the storage array is obtained, the first WWPN is obtained, and the second WWPN in the FC card is replaced by the first WWPN, firmware initialization and switching network login are performed to avoid modifying NVRAM.
Reset WWPN without modifying the NVRAM in the FC card to reduce the probability of NVRAM failure, ensure that the storage array can work normally after changing the card, and improve the stability of the FC storage network.
Smart Images

Figure CN119815215A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device and equipment for setting a WWPN of an FC physical port. Background Art
[0002] FC (Fibre Channel) protocol is the original protocol of Storage Area Network (SAN) and is still the most mature and stable protocol. It has outstanding advantages in terms of ease of management and stability and reliability.
[0003] When the FC card of the storage array fails, a new card will be replaced online. However, since the new card will have a new WWPN (world wide port name), the user may need to change the previous FC switch configuration, which poses a risk to the stability of the FC storage network. For example, adjusting the switch configuration usually causes business interruption of the entire switch. Secondly, if human operation errors occur, more serious losses will occur. For some critical businesses, this risk is unacceptable.
[0004] In the prior art, FC card suppliers provide a tool for modifying WWPN. The principle of these tools is to modify the NVRAM (Non-Volatile Random Access Memory) in the FC card through the firmware interface. Since the preset WWPN of the FC card is stored in the NVRAM, the WWPN of the FC card can be modified by modifying the NVRAM, and the modified value is effective regardless of how the array is restarted. However, since NVRAM mainly stores the static configuration information of the FC card, it is not suitable for multiple writes. Multiple writes will increase the failure probability of NVRAM. In addition, the information in NVRAM is very critical to the operation of the FC card. If an error is written or a failure occurs, the FC card will be directly unavailable and difficult to recover. Summary of the invention
[0005] The present invention provides a method for setting the wwpn of an FC physical port, which is used to reset the wwpn without modifying the NVRAM in the FC card, avoiding the problem that multiple writes will increase the failure probability of the NVRAM, and ensuring that the storage array can work normally after the card is replaced.
[0006] In a first aspect, the present application provides a method for setting a WWPN of an FC physical port, the method comprising:
[0007] Based on the received global port name wwpn setting instruction, obtain the array unique identifier of the storage array;
[0008] According to the array unique identifier, obtain a first wwpn;
[0009] Replacing a second wwpn with the first wwpn, wherein the second wwpn is obtained from a Fibre Channel (FC) card of the storage array;
[0010] Initializing the firmware of the FC card using the first wwpn;
[0011] Use the first wwpn and FC switch to log in to the switching network.
[0012] In the above method, the array unique identifier of the storage array is obtained by setting the instruction based on the wwpn; and the first wwpn is obtained according to the array unique identifier; the second wwpn in the FC card is obtained; the second wwpn is replaced by the first wwpn; and the firmware of the FC card is initialized by the first wwpn; and the first wwpn is used to log in to the switching network. Therefore, in the embodiment of the present application, the first wwpn set by the storage array is used for firmware initialization and switching network login, and the second wwpn is always stored in the FC card, but is not used, and the first wwpn is used every time. Therefore, in the embodiment of the present application, the wwpn is reset without modifying the NVRAM in the FC card, avoiding the problem that multiple writes will increase the probability of NVRAM failure, and ensuring that the storage array can work normally after the card is replaced.
[0013] In a possible implementation manner, before obtaining the array unique identifier of the storage array based on the received global port name wwpn setting instruction, the method further includes:
[0014] After driving the FC card, obtaining the second wwpn in the FC card;
[0015] Initializing the FC firmware using the second wwpn;
[0016] The second wwpn and the FC switch are used to log in to the switching network.
[0017] In the above method, before receiving the wwpn setting instruction sent by the user, the second wwpn in the FC card is used to initialize the FC firmware and log in to the switching network, thereby ensuring that the storage array can be used normally.
[0018] In a possible implementation manner, the wwpn setting instruction includes a manufacturer identifier and a controller slot identifier, wherein the manufacturer identifier is used to identify a manufacturer that produces the FC card, and the controller slot identifier is used to identify a slot in the controller where the FC card is located;
[0019] The step of obtaining the first wwpn according to the array unique identifier includes:
[0020] The first wwpn is obtained according to the array unique identifier, the manufacturer identifier, the controller slot identifier and the network address authority NAA.
[0021] In the above method, the first wwpn is obtained according to the array unique identifier, the manufacturer identifier, and the controller slot identifier, thereby ensuring the accuracy of the obtained first wwpn.
[0022] In a possible implementation manner, the second wwpn is obtained by:
[0023] triggering a hot-swap operation of the FC driver to drive the FC card;
[0024] After the FC card is driven, a second wwpn in the FC card is obtained.
[0025] In the above method, the hot-swap operation of the FC driver is triggered to drive the FC card to obtain the second wwpn in the FC card, thereby ensuring that the second wwpn can be obtained smoothly.
[0026] In a possible implementation manner, before triggering the hot-swap operation of the FC driver, the process includes:
[0027] The FC card is powered off and then powered on, so that the FC card triggers a hot-swap operation of the FC drive.
[0028] In the above method, the hot-swap operation of the FC drive is implemented by powering off and then powering on the FC card, thereby ensuring that the second wwpn can be obtained smoothly.
[0029] In a possible implementation manner, the replacing the second wwpn with the first wwpn includes:
[0030] The first wwpn is stored in the FC drive.
[0031] In the above method, the first wwpn is stored in the FC drive, which ensures that the first wwpn is used instead of the second wwpn when the wwpn is used subsequently. Therefore, in the embodiment of the present application, the wwpn is reset without modifying the NVRAM in the FC card, avoiding the problem that multiple writes will increase the failure probability of the NVRAM, and ensuring that the storage array can work normally after the card is replaced.
[0032] In a second aspect, the present application provides a device for setting a WWPN of an FC physical port, the device comprising:
[0033] An array unique identification determination module is used to obtain the array unique identification of the storage array based on the received global port name wwpn setting instruction;
[0034] A wwpn determination module, configured to obtain a first wwpn according to the array unique identifier;
[0035] A replacement module, used to replace a second wwpn with the first wwpn, wherein the second wwpn is obtained from a Fibre Channel FC card of the storage array;
[0036] An initialization module, used to initialize the firmware of the FC card using the first wwpn;
[0037] A login module is used to log in to the switching network by using the first wwpn and the FC switch.
[0038] In a possible implementation, the device further includes:
[0039] A driver module, configured to obtain a second wwpn in the FC card after driving the FC card before obtaining the array unique identifier of the storage array based on the received global port name wwpn setting instruction;
[0040] The initialization module is further used to initialize the FC firmware using the second wwpn;
[0041] The login module is also used to log in to the switching network using the second wwpn and the FC switch.
[0042] In a possible implementation manner, the wwpn setting instruction includes a manufacturer identifier and a controller slot identifier, wherein the manufacturer identifier is used to identify a manufacturer that produces the FC card, and the controller slot identifier is used to identify a slot in the controller where the FC card is located;
[0043] The wwpn determination module is specifically used for:
[0044] The first wwpn is obtained according to the array unique identifier, the manufacturer identifier, the controller slot identifier and the network address authority NAA.
[0045] In a possible implementation, the device further includes:
[0046] The acquisition module is used to obtain the second wwpn in the following way:
[0047] triggering a hot-swap operation of the FC driver to drive the FC card;
[0048] After the FC card is driven, a second wwpn in the FC card is obtained.
[0049] In a possible implementation, the device further includes:
[0050] The control module is used for powering off and then powering on the FC card before triggering the hot-swap operation of the FC drive, so that the FC card triggers the hot-swap operation of the FC drive.
[0051] In a possible implementation manner, the replacement module is specifically used to:
[0052] The first wwpn is stored in the FC drive.
[0053] In a third aspect, the present application provides a server, including:
[0054] A memory for storing program instructions;
[0055] The processor is used to call the program instructions stored in the memory, and execute the steps included in the method for setting the wwpn of the FC physical port in any one of the first aspects according to the obtained program instructions.
[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method for setting the wwpn of the FC physical port described above in the present application.
[0057] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which is stored in a computer-readable storage medium; when the processor of the memory access device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the memory access device executes the steps in the method for setting the wwpn of the FC physical port mentioned above in the present application.
[0058] For each aspect from the second to the fifth aspect and the technical effects that may be achieved by each aspect, please refer to the technical effects that can be achieved by various possible solutions in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0060] Figure 1 One of the flow charts of a method for setting wwpn of a FC physical port provided in an embodiment of the present application;
[0061] Figure 2 The format diagram of wwpn provided in the embodiment of the present application;
[0062] Figure 3 A second flow chart of a method for setting a WWPN of a FC physical port provided in an embodiment of the present application;
[0063] Figure 4 A flowchart of a method for setting a WWPN of a FC physical port provided in an embodiment of the present application is shown in FIG3;
[0064] Figure 5 A schematic diagram of a device for setting a WWPN of a FC physical port provided in an embodiment of the present application;
[0065] Figure 6 A schematic diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clear, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment.
[0067] In the description of this application, "multiple" is understood to be "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent two situations: A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0068] In the prior art, FC card suppliers provide a tool for modifying WWPN. The principle of these tools is to modify the NVRAM (Non-Volatile Random Access Memory) in the FC card through the firmware interface. Since the preset WWPN of the FC card is stored in the NVRAM, the WWPN of the FC card can be modified by modifying the NVRAM, and the modified value is effective regardless of how the array is restarted. However, since NVRAM mainly stores the static configuration information of the FC card, it is not suitable for multiple writes. Multiple writes will increase the failure probability of NVRAM. In addition, the information in NVRAM is very critical to the operation of the FC card. If an error is written or a failure occurs, the FC card will be directly unavailable and difficult to recover.
[0069] In this regard, the embodiment of the present application provides a method for setting the wwpn of an FC physical port, by obtaining the array unique identifier of the storage array based on the wwpn setting instruction; and obtaining the first wwpn according to the array unique identifier; obtaining the second wwpn in the FC card; replacing the second wwpn with the first wwpn; and initializing the firmware of the FC card with the first wwpn; and finally using the first wwpn to log in to the switching network. Therefore, in the embodiment of the present application, the first wwpn set by the storage array is used for firmware initialization and switching network login, the second wwpn is always stored in the FC card, but is not used, and the first wwpn is used every time. Therefore, in the embodiment of the present application, the wwpn is reset without modifying the NVRAM in the FC card, avoiding the problem that multiple writes will increase the probability of NVRAM failure, and ensuring that the storage array can work normally after the card is replaced.
[0070] like Figure 1 FIG. 1 is a flow chart of a method for setting the wwpn of an FC physical port, which may specifically include the following steps:
[0071] Step 101: obtaining an array unique identifier of a storage array based on a received global port name wwpn setting instruction;
[0072] The wwpn setting instruction in the embodiment of the present application includes an array license, a manufacturer identifier and a controller slot identifier.
[0073] The manufacturer identifier is used to identify the manufacturer that produces the FC card, and the controller slot identifier is used to identify the slot where the FC card is located in the controller.
[0074] In order to ensure that the storage array can work normally, in a possible implementation, before executing step 101, after driving the FC card, obtain the second wwpn in the FC card; use the second wwpn to initialize the FC firmware; use the second wwpn to log in to the switching network.
[0075] In the embodiment of the present application, only the array license can obtain the array unique identifier.
[0076] Step 102: Obtain a first wwpn according to the array unique identifier;
[0077] In one embodiment, step 102 may be specifically implemented as follows: obtaining the first wwpn according to the array unique identifier, the manufacturer identifier, the controller slot identifier and the network address authority NAA.
[0078] The wwpn in the embodiment of the present application needs to meet the following four conditions:
[0079] (1) The length must be 8 bytes.
[0080] (2) It must not change on the same set of hardware.
[0081] (3) The wwpn for different hardware must be different.
[0082] (4) The generated WWPN must be distinguished from those of other manufacturers.
[0083] Therefore, in the embodiment of the present application, the first wwpn is obtained based on the array unique identifier, the manufacturer identifier, the controller slot identifier and the NAA.
[0084] In the embodiment of the present application, the data corresponding to the 0th to 8th bits in the first wwpn is the controller slot identifier. The data corresponding to the 8th to 36th bits is the array unique identifier. The 36th to 60th bits are the manufacturer identifier. The 60th to 63rd bits are NAA. Figure 2 shown.
[0085] Step 103: Replace a second wwpn with the first wwpn, wherein the second wwpn is obtained from a Fibre Channel FC card of the storage array;
[0086] In a possible implementation manner, step 103 may be specifically implemented as: storing the first wwpn in the FC driver.
[0087] The following is an introduction to the method of obtaining the second wwpn in the embodiment of the present application. In a possible implementation manner, the second wwpn is obtained by:
[0088] The hot-swap operation of the FC drive is triggered to drive the FC card; after driving the FC card, the second wwpn in the FC card is obtained.
[0089] In the embodiment of the present application, the FC card is powered off and then powered on again so that the FC card triggers the hot-swap operation of the FC drive.
[0090] Step 104: Initialize the firmware of the FC card using the first wwpn;
[0091] Step 105: Use the first wwpn and the FC switch to log in to the switching network.
[0092] The initialization firmware and the exchange login with the switch in the embodiment of the present application are both conventional operations in the art, and the embodiment of the present application will not be described in detail here.
[0093] Next, combine Figure 3The method for setting the wwpn of the FC physical port in the embodiment of the present application is described, which may specifically include the following steps:
[0094] Step 301: After driving the FC card, obtain the second wwpn in the FC card;
[0095] Step 302: Initialize the FC firmware using the second wwpn;
[0096] Step 303: Log in to the exchange network using the second wwpn;
[0097] Step 304: receiving a global port name wwpn setting instruction sent by a user;
[0098] Step 305: obtaining the array unique identifier of the storage array based on the array license license in the wwpn setting instruction;
[0099] Step 306: Obtain the first wwpn according to the array unique identifier, the manufacturer identifier, the controller slot identifier and the network address authority NAA;
[0100] Step 307: triggering a hot-swap operation of the FC driver to drive the FC card corresponding to the storage array;
[0101] Step 308: After driving the FC card, obtain the second wwpn in the FC card;
[0102] Step 309: Replace the second wwpn with the first wwpn;
[0103] Step 310: Initialize the firmware of the FC card using the first wwpn;
[0104] Step 311: Use the first wwpn and the FC switch to log in to the switching network.
[0105] Next, the method for setting the WWPN of the FC physical port in the embodiment of the present application is described in conjunction with the internal device in the server. Figure 4 As shown:
[0106] After driving the FC card, the FC driver obtains the second wwpn in the FC card; the FC driver uses the second wwpn to initialize the FC firmware; the FC driver uses the second wwpn to log in to the switching network. After the array management process obtains the array license license, it obtains the array unique identifier of the storage array. The FC driver obtains the first wwpn based on the array unique identifier. The FC driver calls the interface managed by the PCIE to perform a simulated hot plug. After receiving the call, the PCIE management process will power off and then power on the FC card. The FC card will trigger the hot plug process of the FC driver to drive the FC card. After driving the FC card, the FC driver obtains the second wwpn in the FC card; the FC driver replaces the second wwpn with the first wwpn; the FC driver uses the first wwpn to initialize the firmware of the FC card; the FC driver uses the first wwpn to log in to the switching network with the FC switch.
[0107] Based on the same inventive concept, the present application also provides a data storage device, see Figure 5 , the device 500 comprises:
[0108] An array unique identifier determination module 510 is used to obtain an array unique identifier of a storage array from a received global port name wwpn setting instruction;
[0109] A wwpn determination module 520, configured to obtain a first wwpn according to the array unique identifier;
[0110] A replacement module 530, configured to replace a second wwpn with the first wwpn, wherein the second wwpn is obtained from a Fibre Channel FC card of the storage array;
[0111] An initialization module 540, configured to initialize the firmware of the FC card using the first wwpn;
[0112] The login module 550 is used to log in to the switching network by using the first wwpn and the FC switch.
[0113] In a possible implementation, the device further includes:
[0114] The driver module 560 is used to obtain the second wwpn in the FC card after driving the FC card before obtaining the array unique identifier of the storage array based on the received global port name wwpn setting instruction;
[0115] The initialization module 540 is further used to initialize the FC firmware using the second wwpn;
[0116] The login module 550 is further used to log in to the switching network by using the second wwpn and the FC switch.
[0117] In a possible implementation manner, the wwpn setting instruction includes a manufacturer identifier and a controller slot identifier, wherein the manufacturer identifier is used to identify a manufacturer that produces the FC card, and the controller slot identifier is used to identify a slot in the controller where the FC card is located;
[0118] The wwpn determination module 520 is specifically used for:
[0119] The first wwpn is obtained according to the array unique identifier, the manufacturer identifier, the controller slot identifier and the network address authority NAA.
[0120] In a possible implementation, the device further includes:
[0121] The acquisition module 570 is used to obtain the second wwpn by:
[0122] triggering a hot-swap operation of the FC driver to drive the FC card;
[0123] After the FC card is driven, a second wwpn in the FC card is obtained.
[0124] In a possible implementation, the device further includes:
[0125] The control module 580 is configured to power off and then power on the FC card before triggering the hot-swap operation of the FC driver, so that the FC card triggers the hot-swap operation of the FC driver.
[0126] In a possible implementation manner, the replacement module 530 is specifically configured to:
[0127] The first wwpn is stored in the FC drive.
[0128] Based on the same inventive concept, a server is also provided in the embodiment of the present application. The server can implement the function of the aforementioned FC physical port wwpn setting device, refer to Figure 6 , the server comprises:
[0129] At least one processor 601, and a memory 602 connected to the at least one processor 601. The specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present application. Figure 6 In the example, the processor 601 and the memory 602 are connected via a bus 600. Figure 6The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 600 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 601 can also be called a controller, and there is no limitation on the name.
[0130] In the embodiment of the present application, the memory 602 stores instructions that can be executed by at least one processor 601. The at least one processor 601 can execute the method for setting the wwpn of the FC physical port discussed above by executing the instructions stored in the memory 602. The processor 601 can implement Figure 5 The functions of each module in the device shown.
[0131] Among them, the processor 601 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 602 and calling the data stored in the memory 602, the various functions of the device and processing data, the device can be monitored as a whole.
[0132] In one possible design, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0133] The processor 601 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method for setting the WWPN of the FC physical port disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0134] The memory 602 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 602 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 602 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 602 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0135] By programming the processor 601, the code corresponding to the method for setting the wwpn of the FC physical port described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1 The steps of the data storage method in the embodiment shown are as follows: How to design and program the processor 601 is a technique well known to those skilled in the art and will not be described in detail here.
[0136] An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions required to execute the above-mentioned processor, which includes a program required to execute the above-mentioned processor.
[0137] In some possible implementations, various aspects of the method for setting the wwpn of the FC physical port provided in the present application may also be implemented in the form of a program product, which includes a program code. When the above-mentioned program product is run on an electronic device, the above-mentioned program code is used to enable the above-mentioned electronic device to execute the steps of the method for setting the wwpn of the FC physical port according to various exemplary implementations of the present application described above in this specification.
[0138] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0139] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0140] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0142] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0143] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for setting the wwpn of an FC physical port, characterized in that: The method comprises: Based on the received global port name wwpn setting instruction, obtain the array unique identifier of the storage array; According to the array unique identifier, obtain a first wwpn; Replacing a second wwpn with the first wwpn, wherein the second wwpn is obtained from a Fibre Channel (FC) card of the storage array; Initializing the firmware of the FC card using the first wwpn; Use the first wwpn and FC switch to log in to the switching network.
2. The method according to claim 1, characterized in that Before obtaining the array unique identifier of the storage array based on the received global port name wwpn setting instruction, the method further includes: After driving the FC card, obtaining a second wwpn in the FC card; Initializing the FC firmware using the second wwpn; The second wwpn and the FC switch are used to log in to the switching network.
3. The method according to claim 1, characterized in that The wwpn setting instruction includes a manufacturer identifier and a controller slot identifier, wherein the manufacturer identifier is used to identify the manufacturer that produces the FC card, and the controller slot identifier is used to identify the slot where the FC card is located in the controller; The step of obtaining the first wwpn according to the array unique identifier includes: The first wwpn is obtained according to the array unique identifier, the manufacturer identifier, the controller slot identifier and the network address authority NAA.
4. The method according to claim 1, characterized in that: The second wwpn is obtained by: triggering a hot-swap operation of the FC driver to drive the FC card; After the FC card is driven, a second wwpn in the FC card is obtained.
5. The method according to claim 4, characterized in that Before triggering the hot-swap operation of the FC driver, the method includes: The FC card is powered off and then powered on, so that the FC card triggers a hot-swap operation of the FC drive.
6. The method according to claim 1, characterized in that The replacing the second wwpn with the first wwpn comprises: The first wwpn is stored in the FC drive.
7. A device for setting wwpn of FC physical port, characterized in that: The device comprises: An array unique identification determination module is used to obtain the array unique identification of the storage array based on the received global port name wwpn setting instruction; A wwpn determination module, configured to obtain a first wwpn according to the array unique identifier; A replacement module, used to replace a second wwpn with the first wwpn, wherein the second wwpn is obtained from a Fibre Channel FC card of the storage array; An initialization module, used to initialize the firmware of the FC card using the first wwpn; The login module is used to log in to the switching network by using the first wwpn and the FC switch.
8. A server, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of claims 1-6 according to the obtained program instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the method according to any one of claims 1 to 6.