Data processing method and device and electronic equipment
By obtaining the identification information of the host and storage device on the manager port and matching it to determine the connection relationship, the problem of misconfiguration of the power supply port mapping relationship in the prior art is solved, and automated configuration and stability improvement are achieved.
Patent Information
- Application Number
- CN202411252550.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, the power supply port mapping relationship between the host and the storage device requires manual configuration, which is prone to configuration errors or connection changes are not updated in time, resulting in the control device power control of the wrong storage device, affecting the normal operation of other hosts.
By obtaining the identification information of the host and the storage device on the manager port, matching to determine the connection relationship, and determining the power supply port mapping information based on this, ensuring that the storage device connected to the host is correctly controlled when power control is performed on the host.
It realizes the automatic configuration of the power supply port mapping relationship between the host and the storage device, reduces configuration errors, avoids the impact on other hosts, and improves the stability and reliability of the system.
Smart Images

Figure CN119440209A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a data processing method, device and electronic equipment. Background Art
[0002] In a storage system or server cluster, the control device needs to control the power supply of the host and storage device through the power management allocation unit. When the control device controls the power supply of the host, it needs to control the power supply of the storage device connected to the host accordingly. However, the power supply port mapping relationship between the host and the storage device currently needs to be manually configured. If it is not configured or configured incorrectly, or if the connection relationship between the host and the storage device changes, when the control device controls the power supply of the host, it will control the power supply of the wrong storage device accordingly, thereby affecting the normal operation of other hosts. Summary of the invention
[0003] The present application provides a data processing method, device and electronic device.
[0004] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:
[0005] Obtaining the first identification information maintained by the host manager from the at least one host based on a manager port of the at least one host;
[0006] Acquire second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device;
[0007] Matching the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information;
[0008] Power supply port mapping information is determined based on the connection relationship, and the power supply port mapping information is used to determine the storage device connected to the host when power control is performed on the host, and to perform corresponding power control on the storage device connected to the host.
[0009] The obtaining, from the at least one host based on the manager port of the at least one host, the first identification information maintained by the host manager includes:
[0010] Based on the manager port of the host, first identification information of the host is obtained from the bus configuration space of the host through a management control unit in the host, where the first identification information includes at least one unique identifier.
[0011] The acquiring, based on the manager port of at least one storage device, second identification information maintained by the storage device manager from the at least one storage device comprises:
[0012] Based on the manager port of the storage device, second identification information of the storage device is obtained from the storage device through a management control unit in the storage device, where the second identification information includes at least one unique identifier.
[0013] The first identification information of the host includes a unique identification of at least one expander port in a storage device connected to the host, and the at least one expander port belongs to the storage device connected to the host;
[0014] The second identification information of the storage device includes unique identifications of multiple expander ports in the storage device.
[0015] The matching of the first identification information of the at least one host with the second identification information of the at least one storage device includes:
[0016] If the second identification information includes a unique identifier that is the same as the at least one unique identifier in the first identification information, it is determined that the second identification information successfully matches the first identification information.
[0017] The first identification information of the host is determined based on a unique identification of at least one expander port in the storage device used for connecting to the host, which is obtained when the host establishes a connection with the storage device.
[0018] The method further comprises:
[0019] A power supply port connecting the power management unit to the host and the storage device is obtained from the power management unit based on a network management port.
[0020] The method further comprises:
[0021] Periodically obtaining first identification information of the at least one host and second identification information of the at least one storage device;
[0022] Matching the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information;
[0023] The power supply port mapping information is updated based on the connection relationship.
[0024] Another aspect of the present application provides a data processing device, the device comprising:
[0025] a communication module, configured to obtain the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host, and to obtain the second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device;
[0026] A computing module, configured to match the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information;
[0027] The processing module is used to determine the power supply port mapping information based on the connection relationship, and the power supply port mapping information is used to determine the storage device connected to the host when the power supply of the host is controlled, and to perform corresponding power supply control on the storage device connected to the host.
[0028] In another aspect, the present application provides an electronic device, comprising: an input-output system and a processor, wherein the input-output system is electrically connected to the processor;
[0029] The input / output system obtains the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host; and obtains the second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device;
[0030] The processor matches the first identification information of the at least one host with the second identification information of the at least one storage device; and determines the power supply port mapping information based on the connection relationship.
[0031] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0033] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0034] Figure 1 A flow chart showing a data processing method according to an embodiment of the present application is shown;
[0035] Figure 2 A schematic diagram of the structure of a system according to an embodiment of the present application is shown;
[0036] Figure 3 A schematic diagram showing a connection between a host and a storage device according to an embodiment of the present application is shown;
[0037] Figure 4 A flow chart showing a data processing method according to another embodiment of the present application is shown;
[0038] Figure 5 A schematic diagram showing the structure of a data processing device according to an embodiment of the present application is shown;
[0039] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0040] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0041] In order to automatically configure the power supply port mapping relationship between the host and the storage device, reduce configuration errors, and thus avoid affecting the normal operation of other hosts, an embodiment of the present application provides a data processing method.
[0042] like Figure 1 As shown, the method includes:
[0043] like Figure 2As shown, the method is applied to a resource manager (RM) in a system, which includes multiple hosts, multiple storage devices (such as JBOD (Just a Bunch Of Disks), NAS (Network Attached Storage), SAN (Storage Area Network) and other storage devices) and a power management unit (PMDU). The power management unit is electrically connected to the power supply unit (PSU) in each host and each storage device through different power supply ports. The resource manager is communicated with the management control unit (BMC) in each host and each storage device through a network card (NIC), and is communicated with the network management port (MGMT) in the power management unit. The storage device is electrically connected to the host's bus adapter (HBA) through at least one expander port (expander). The resource manager is an electronic device responsible for resource management in the system.
[0044] Step 101: Acquire first identification information maintained by the host manager from at least one host based on a manager port of at least one host.
[0045] The resource manager stores the manager port of each host, and accesses the manager port of the host through the network card, thereby obtaining the first identification information maintained by the host manager in the host.
[0046] The first identification information includes all expander ports connected to the host.
[0047] Step 102: Acquire second identification information maintained by the storage device manager from at least one storage device based on the manager port of the at least one storage device.
[0048] The resource manager also stores the manager port of each storage device, and similarly accesses the manager port of the storage device through the network card, thereby acquiring the second identification information maintained by the storage device manager in the storage device.
[0049] The second identification information includes all expander ports of the storage device.
[0050] Step 103: Match the first identification information of the at least one host with the second identification information of the at least one storage device. If the match is successful, it indicates that there is a connection relationship between the host corresponding to the first identification information and the storage device corresponding to the second identification information.
[0051] The acquired first identification information of the host and the second identification information of the storage device are matched, and a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information.
[0052] For example, the resource manager obtains the first identification information of host A, the first identification information of host B, the first identification information of host C, and the first identification information of host D, as well as the second identification information of storage device A, the second identification information of storage device B, and the second identification information of storage device C. After matching, the first identification information of host A successfully matches the second identification information of storage device B, and the first identification information of host B successfully matches the second identification information of storage device C. Then, host A and storage device B have a connection relationship, and host B and storage device C have a connection relationship.
[0053] It should be noted that one storage device can be connected to multiple hosts, while one host can only be connected to one storage device. Therefore, one second identification information may successfully match multiple first identification information.
[0054] For example, the resource manager obtains the first identification information of host A, the first identification information of host B, the first identification information of host C, and the first identification information of host D, as well as the second identification information of storage device A, the second identification information of storage device B, and the second identification information of storage device C. After matching, the first identification information of host A successfully matches the second identification information of storage device B, the first identification information of host B successfully matches the second identification information of storage device B, and the first identification information of host C successfully matches the second identification information of storage device C. Then, host A has a connection relationship with storage device B, host B has a connection relationship with storage device B, and host C has a connection relationship with storage device C.
[0055] Step 104: determine power port mapping information based on the connection relationship, wherein the power port mapping information is used to determine a storage device connected to the host when power control is performed on the host, and perform corresponding power control on the storage device connected to the host.
[0056] After determining the connection relationship between the host and the storage device, the power supply port mapping information can be determined.
[0057] For example, it is determined through matching that host A is connected to storage device B, host B is connected to storage device B, and host C is connected to storage device C. Host A is connected to power port A in the power management unit, host B is connected to power port B in the power management unit, host C is connected to power port C in the power management unit, storage device B is connected to power port D in the power management unit, and storage device C is connected to power port E in the power management unit. Then it is determined that the power port mapping information is that power port A is mapped to power port D, power port B is mapped to power port D, and power port C is mapped to power port E.
[0058] In this embodiment, the resource manager can obtain the power supply port of each host and each storage device in the following two ways:
[0059] First, the value of the power supply port of each host and each storage device can be set to be consistent with the value of the manager port. The resource manager can determine the corresponding power supply port through the pre-stored manager ports of each host and each storage device.
[0060] Second, the resource manager accesses the network management port in the power management unit through the network card, thereby obtaining the power supply port connected to the power management port and each host and each storage device.
[0061] In other implementations, any other method capable of acquiring power supply ports of the host and the storage device may be selected.
[0062] In the above scheme, by obtaining the first identification information maintained by the host manager and the second identification information maintained by the storage device manager, and then matching the first identification information with the second identification information, it is determined that the host corresponding to the first identification information that successfully matches and the storage device corresponding to the second identification information have a connection relationship. Then, based on the connection relationship, an accurate power supply port mapping relationship is determined. The power supply port mapping relationship of the host and the storage device is automatically configured, which significantly reduces configuration errors, thereby avoiding affecting the normal operation of other hosts and improving the stability and reliability of the system.
[0063] In an example of the present application, a data processing method is further provided, wherein the obtaining, based on a manager port of at least one host, the first identification information maintained by the host manager from the at least one host comprises:
[0064] Based on the manager port of the host, first identification information of the host is obtained from the bus configuration space of the host through a management control unit in the host, where the first identification information includes at least one unique identifier.
[0065] The resource manager sends a request to the manager port of the host through the network card. After receiving the request, the management control unit in the host obtains the first identification information maintained by the host manager from the bus configuration space (PCIe configuration space, PCIe Configuration Space) in the host, and then sends it to the resource manager.
[0066] The first information identifier includes at least one unique identifier, and the unique identifier is a unique identifier corresponding to the expander port connected to the host.
[0067] Since the first identification information of the host is stored in the bus configuration space, it is necessary to obtain the data stored therein through the bus protocol.
[0068] Therefore, in the above scheme, the resource manager needs to first send a request to the manager port of the host through the network card, and then the management control unit in the host obtains the first identification information maintained by the host manager from the bus configuration space in the host, so that the first identification information of the host can be successfully obtained.
[0069] In an example of the present application, a data processing method is further provided, wherein the acquiring, based on a manager port of at least one storage device, second identification information maintained by the storage device manager from the at least one storage device comprises:
[0070] Based on the manager port of the storage device, second identification information of the storage device is obtained from the storage device through a management control unit in the storage device, where the second identification information includes at least one unique identifier.
[0071] The resource manager sends a request to the manager port of the storage device through the storage device. After receiving the request, the management control unit in the storage device obtains the second identification information maintained by the storage device manager from the storage device and then sends it to the resource manager.
[0072] Since the storage device itself has a storage function, the management control unit in the storage device can directly obtain the second identification information from the storage space of the storage device and then send it to the resource manager.
[0073] In an example of the present application, a data processing method is also provided, wherein the first identification information of the host includes a unique identification of at least one expander port in a storage device connected to the host, and the at least one expander port belongs to the storage device connected to the host;
[0074] The second identification information of the storage device includes unique identifications of multiple expander ports in the storage device.
[0075] For example, Figure 3As shown, host A is connected to storage device A, and host B is also connected to storage device A. Storage device A includes expander port A, expander port B, expander port C, expander port D, and expander port E, and the second identification information of storage device A includes the unique identification of expander port A, the unique identification of expander port B, the unique identification of expander port C, the unique identification of expander port D, and the unique identification of expander port E. Host A is connected to expander port A and expander port B in storage device A, and host B is connected to expander port C and expander port D of storage device A. Then the first identification information of host A includes the unique identification of expander port A and the unique identification of expander port B, and expander port A and expander port B both belong to storage device A that is connected to host A. The first identification information of host B includes the unique identification of expander port C and the unique identification of expander port D, and expander port C and expander port D both belong to storage device A that is connected to host B.
[0076] In an example of the present application, a data processing method is further provided, wherein matching the first identification information of the at least one host with the second identification information of the at least one storage device comprises:
[0077] If the second identification information includes a unique identifier that is the same as the at least one unique identifier in the first identification information, it is determined that the second identification information successfully matches the first identification information.
[0078] For example, the second identification information of storage device A includes the unique identification of expander port A, the unique identification of expander port B, the unique identification of expander port C, the unique identification of expander port D, and the unique identification of expander port E. The first identification information of host A includes the unique identification of expander port A and the unique identification of expander port B. The second identification information of storage device A contains all the unique identifications in the first identification information of host A, so it is determined that storage device A and host A are successfully matched and have a connection relationship.
[0079] In the above scheme, since one storage device can be connected to multiple hosts, and one host can only be connected to one storage device, it is only necessary to determine whether the second identification information of the storage device contains all the unique identifications in the first identification information of the host to determine whether the storage device and the host are successfully matched.
[0080] In an example of the present application, a data processing method is also provided, wherein the first identification information of the host is determined based on a unique identification of at least one expander port in the storage device used to connect to the host, which is obtained when the host establishes a connection with the storage device.
[0081] When the host establishes a connection with the storage device, the storage device is connected to the bus adapter in the host through at least one expander port. At this time, the storage device will send the unique identifier of each expander port connected to the host to the host. After the host receives these unique identifiers, it generates first identification information and stores it.
[0082] In the above solution, when the host establishes a connection with the storage device, it obtains the unique identifier of each expander port connected to the storage device and generates first identification information for storage, so that the subsequent resource manager can match the first identification information with the second identification information of the storage device to determine the connection relationship between the host and the storage device.
[0083] In an example of the present application, a data processing method is also provided, the method further comprising:
[0084] A power supply port connecting the power management unit to the host and the storage device is obtained from the power management unit based on a network management port.
[0085] like Figure 2 As shown, the resource manager obtains the power supply port connected to each host and each storage device of the power management unit from the network management port of the power management unit through the network card.
[0086] In an example of the present application, a data processing method is also provided, such as Figure 4 As shown, the method also includes:
[0087] Step 201: Periodically obtain first identification information of the at least one host and second identification information of the at least one storage device.
[0088] The resource manager periodically obtains the first identification information of the host and the second identification information of the storage device through the network card.
[0089] Step 202: Match the first identification information of the at least one host with the second identification information of the at least one storage device. If the match is successful, it indicates that there is a connection relationship between the host corresponding to the first identification information and the storage device corresponding to the second identification information.
[0090] The acquired first identification information of the host and the second identification information of the storage device are matched to determine a connection relationship between the host and the storage device.
[0091] Step 203: Update the power supply port mapping information based on the connection relationship.
[0092] The power supply port mapping information is updated based on the re-determined connection relationship between the host and the storage device.
[0093] After the power port mapping information is determined, the connection relationship between the host and the storage device may change due to function changes or human operations, thereby causing the power port mapping relationship to change. At this time, if power control is still performed based on the previously determined power port mapping information, the wrong storage device will be controlled accordingly, thereby affecting the normal operation of other hosts.
[0094] It should be noted that when the connection relationship between the host and the storage device changes, the first identification information in the host will be modified based on the change.
[0095] Therefore, in the above scheme, by periodically acquiring the first identification information of the host and the second identification information of the storage device, matching the first identification information and the second identification information, re-determining the connection relationship between the host and the storage device, and then updating the power supply port mapping information, the power supply port mapping information can always be kept accurate and effective, further reducing configuration errors, thereby avoiding affecting the normal operation of other hosts, and improving the stability and reliability of the system.
[0096] In order to implement the above data processing method, Figure 5 As shown, an example of the present application provides a data processing device, including:
[0097] The communication module 10 is used to obtain the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host, and to obtain the second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device;
[0098] A computing module 20, configured to match the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information;
[0099] The processing module 30 is used to determine the power supply port mapping information based on the connection relationship, and the power supply port mapping information is used to determine the storage device connected to the host when the power supply of the host is controlled, and to perform corresponding power supply control on the storage device connected to the host.
[0100] The communication module 10 is further used to obtain the first identification information of the host from the bus configuration space of the host through the management control unit in the host based on the manager port of the host, wherein the first identification information includes at least one unique identifier.
[0101] The communication module 10 is further configured to obtain second identification information of the storage device from the storage device through a management control unit in the storage device based on a manager port of the storage device, wherein the second identification information includes at least one unique identifier.
[0102] The communication module 10 is also used for the second identification information of the storage device to include unique identifications of multiple expander ports in the storage device.
[0103] The calculation module 20 is further configured to determine that the second identification information successfully matches the first identification information if the second identification information contains a unique identifier that is the same as the at least one unique identifier in the first identification information.
[0104] The calculation module 20 is further used to determine the first identification information of the host based on a unique identification of at least one expander port in the storage device used for connecting to the host, which is obtained when the host establishes a connection with the storage device.
[0105] The communication module 10 is further configured to obtain, from the power management unit based on a network management port, a power supply port through which the power management unit is connected to the host and the storage device.
[0106] Wherein, the communication module 10 is further used to periodically obtain the first identification information of the at least one host and the second identification information of the at least one storage device;
[0107] The calculation module 20 is further used to match the first identification information of the at least one host with the second identification information of the at least one storage device, and a successful match indicates that the host corresponding to the first identification information and the storage device corresponding to the second identification information are connected;
[0108] The processing module 30 is further configured to update the power supply port mapping information based on the connection relationship.
[0109] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0110] Figure 6A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0111] like Figure 6 As shown, the electronic device 300 includes an input-output system 301 and a processor 302, and the input-output system 301 and the processor 302 are electrically connected.
[0112] The input / output system 301 obtains the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host; and obtains the second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device;
[0113] The processor 302 matches the first identification information of the at least one host with the second identification information of the at least one storage device; and determines power supply port mapping information based on the connection relationship.
[0114] The input / output system 301 obtains the first identification information of the host from the bus configuration space of the host through the management control unit in the host based on the manager port of the host, and the first identification information includes at least one unique identifier.
[0115] The input / output system 301 obtains the second identification information of the storage device from the storage device through the management control unit in the storage device based on the manager port of the storage device, and the second identification information includes at least one unique identifier.
[0116] Among them, the processor 302 obtains the unique identifier of at least one expander port in the storage device connected to the host included in the first identification information of the host, and the at least one expander port belongs to the storage device connected to the host; and obtains the unique identifiers of multiple expander ports in the storage device included in the second identification information of the storage device.
[0117] The processor 302 determines that the second identification information successfully matches the first identification information when the second identification information contains a unique identifier that is the same as the at least one unique identifier in the first identification information.
[0118] The first identification information of the host acquired by the processor 302 is determined based on a unique identification of at least one expander port in the storage device used for connecting to the host, which is acquired when the host establishes a connection with the storage device.
[0119] The input / output system 301 obtains the power supply port through which the power management unit is connected to the host and the storage device from the power management unit based on the network management port.
[0120] The input / output system 301 periodically obtains the first identification information of the at least one host and the second identification information of the at least one storage device;
[0121] The processor 302 matches the first identification information of the at least one host with the second identification information of the at least one storage device, and a successful match indicates that there is a connection relationship between the host corresponding to the first identification information and the storage device corresponding to the second identification information; and updates the power port mapping information based on the connection relationship.
[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0124] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0127] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0129] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0130] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A data processing method, the method comprising: Obtaining the first identification information maintained by the host manager from the at least one host based on a manager port of the at least one host; Acquire second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device; Matching the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information; Power supply port mapping information is determined based on the connection relationship, and the power supply port mapping information is used to determine the storage device connected to the host when power control is performed on the host, and to perform corresponding power control on the storage device connected to the host.
2. The method according to claim 1, wherein obtaining the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host comprises: Based on the manager port of the host, first identification information of the host is obtained from the bus configuration space of the host through a management control unit in the host, where the first identification information includes at least one unique identifier.
3. The method according to claim 1, wherein the step of obtaining second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device comprises: Based on the manager port of the storage device, second identification information of the storage device is obtained from the storage device through a management control unit in the storage device, where the second identification information includes at least one unique identifier.
4. The method according to claim 1, 2 or 3, wherein the first identification information of the host comprises a unique identification of at least one expander port in a storage device connected to the host, and the at least one expander port belongs to the storage device connected to the host; The second identification information of the storage device includes unique identifications of multiple expander ports in the storage device.
5. The method according to claim 4, wherein matching the first identification information of the at least one host with the second identification information of the at least one storage device comprises: If the second identification information includes a unique identifier that is the same as the at least one unique identifier in the first identification information, it is determined that the second identification information successfully matches the first identification information.
6. According to the method of claim 4, the first identification information of the host is determined based on a unique identification of at least one expander port in the storage device used for connecting to the host, which is obtained when the host establishes a connection with the storage device.
7. The method according to claim 1, further comprising: A power supply port connecting the power management unit to the host and the storage device is obtained from the power management unit based on a network management port.
8. The method according to claim 1, further comprising: Periodically obtaining first identification information of the at least one host and second identification information of the at least one storage device; Matching the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information; The power supply port mapping information is updated based on the connection relationship.
9. A data processing device, comprising: a communication module, configured to obtain the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host, and to obtain the second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device; A computing module, configured to match the first identification information of the at least one host with the second identification information of the at least one storage device, wherein a successful match indicates that a connection relationship exists between the host corresponding to the first identification information and the storage device corresponding to the second identification information; The processing module is used to determine the power supply port mapping information based on the connection relationship, and the power supply port mapping information is used to determine the storage device connected to the host when the power supply of the host is controlled, and to perform corresponding power supply control on the storage device connected to the host.
10. An electronic device comprising: An input-output system and a processor, wherein the input-output system is electrically connected to the processor; The input / output system obtains the first identification information maintained by the host manager from the at least one host based on the manager port of the at least one host; and obtaining second identification information maintained by the storage device manager from the at least one storage device based on the manager port of the at least one storage device; The processor matches the first identification information of the at least one host with the second identification information of the at least one storage device; And determining power supply port mapping information based on the connection relationship.