Method, device, electronic device and storage medium for configuring volume management device functions
By setting up an arbitrator between the motherboard and the hard disk backplane, and using a preset arbitration strategy to determine the bus control rights of the controller, the complexity of the function configuration of the volume management device in a multi-CPU environment is solved, and the correctness and cost reduction of data transmission are achieved.
Patent Information
- Application Number
- CN202411736162.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the multi-CPU environment, the configuration method of volume management device functions leads to an increase in the number of multiplexer chips, an extended traversal time and a complex PCB trace topology, making it difficult to simplify software and hardware design and increase costs.
By setting an arbitrator between the motherboard and the hard disk backplane, the bus control rights of the first and second controllers are determined using a preset arbitration strategy, simplifying data transmission and reducing costs.
It realizes the correctness and reliability of data transmission, simplifies software and hardware design and reduces costs.
Smart Images

Figure CN119669120B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server storage technology, and in particular to a method, apparatus, electronic device, and storage medium for configuring volume management device functions. Background Art
[0002] With the rapid development of cloud computing and big data technologies, the current trend of informatization and intelligence in society is accelerating. Servers, as the core equipment of information systems, need to have high-performance storage to meet different application scenarios. NV Me (Non Volatile Memory Express, non-volatile memory host controller interface specification) solid-state drives have gradually become mainstream storage components with advantages such as low latency and low power consumption.
[0003] Intel's VMD (Volume Management Device) function supports hot upgrade and replacement of NV Me solid state drives through the PCIe (peripheral component interconnect express) bus. Figure 1 As shown in the figure, the currently commonly used VMD configuration method is to add a multiplexer chip so that the BIOS (Basic Input Output System) in the PCH (Platform Controller Hub) can reuse the VPP (Virtual Pin Port) interface to directly access the CPLD (Complex Programmable Logic Device) on the hard drive backplane, thereby obtaining NVMe hard drive presence information. Although this method does not require a second restart and the BIOS and BMC (Baseboard Management Controller) are completely decoupled, when the number of CPUs (Central Processing Units) increases, there will be problems such as an increase in the number of multiplexer chips, a longer traversal time, and a complex PCB (Printed Circuit Board) routing topology.
[0004] Therefore, there is an urgent need to propose a configuration method, apparatus, electronic device and storage medium for volume management device functions that can simplify software and hardware design and reduce costs. Summary of the Invention
[0005] Based on this, it is necessary to provide a configuration method, apparatus, electronic device and storage medium for volume management device functions that can simplify software and hardware design and reduce costs in response to the above technical problems.
[0006] In a first aspect, a method for configuring a volume management device function is provided, which is applied to a hard disk storage system. The hard disk storage system includes a mainboard, a hard disk backplane, and a hard disk. The mainboard is provided with a first controller, a second controller, and an arbitrator. The first controller is connected to the hard disk backplane via a first serial bus, the second controller is connected to the hard disk backplane via a second serial bus, the arbitrator is provided on the first serial bus and the second serial bus, and the hard disk is connected to the hard disk backplane via a third serial bus. The method includes:
[0007] In response to detecting a power-on signal of the mainboard, controlling the first controller to generate a first control request, and controlling the second controller to generate a second control request;
[0008] Sending the first control request and the second control request to the arbitrator, and determining bus control rights according to a preset arbitration strategy;
[0009] In response to the first controller obtaining the bus control right, controlling the arbitrator to connect the first controller to the hard disk backplane, and controlling the first controller to obtain volume management device configuration options;
[0010] According to the volume management device configuration option, the first controller is controlled to enable / disable the volume management device function of the third serial bus port.
[0011] In one embodiment, the arbitration strategy includes a request priority, wherein the priority of the first control request is higher than the priority of the second control request, the first control request and the second control request are sent to the arbitrator, and bus control right is determined according to a preset arbitration strategy, including:
[0012] controlling the arbitrator to parse the first control request and the second control request to obtain corresponding first level signals and second level signals;
[0013] In response to the first level signal being at a high level and the second level signal being at a low level, determining that the bus control right belongs to the first controller;
[0014] In response to the first level signal being at a low level and the second level signal being at a high level, determining that the bus control right belongs to the second controller;
[0015] In response to the first level signal and the second level signal being both high level signals, it is determined according to the request priority that the bus control right belongs to the first controller.
[0016] In one embodiment, the method further comprises:
[0017] In response to the second controller obtaining the bus control right, controlling the first controller to generate a third control request and sending the third control request to the arbitrator;
[0018] In response to the failure of the third control request, the first controller is controlled to generate a soft reset instruction, and the soft reset instruction is sent to the arbitrator, wherein the soft reset instruction is used to reset the arbitrator.
[0019] In one embodiment, the volume management device configuration options include a volume management device enable option, a volume management device disable option, and a volume management device automatic configuration option. Controlling the first controller to enable / disable the volume management device function of the third serial bus port according to the volume management device configuration options includes:
[0020] In response to the volume management device configuration option being the volume management device automatic configuration option, controlling the first controller to enable a volume management device function of the third serial bus port corresponding to the in-place hard disk;
[0021] In response to the volume management device configuration option being the volume management device enable option, controlling the first controller to enable volume management device functions of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk;
[0022] In response to the volume management device configuration option being the volume management device disabling option, the first controller is controlled to disable volume management device functions of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk.
[0023] In one embodiment, the hard disk backplane is provided with a third controller, and in response to the volume management device configuration option being the volume management device automatic configuration option, the controller controls the first controller to enable the volume management device function of the third serial bus port corresponding to the in-place hard disk, including:
[0024] Controlling the first controller to generate a hard disk presence information acquisition instruction, and sending the hard disk presence information acquisition instruction to the third controller through the first serial bus;
[0025] Controlling the third controller to perform source verification on the hard disk presence information acquisition instruction;
[0026] In response to successful source verification of the hard disk presence information acquisition instruction, controlling the third controller to acquire hard disk presence information, and returning the hard disk presence information to the first controller via the first serial bus, wherein the hard disk presence information includes a correspondence between the third serial bus port and the hard disk in place;
[0027] According to the hard disk presence information, the first controller is controlled to enable a volume management device function of the third serial bus port corresponding to the hard disk in place.
[0028] In one embodiment, controlling the third controller to perform source verification on the hard disk presence information acquisition instruction includes:
[0029] In response to the third controller receiving the hard disk presence information acquisition instruction, controlling the third controller to parse the hard disk presence information acquisition instruction to obtain the instruction source device;
[0030] In response to the instruction source device being the first controller, determining that the source verification of the hard disk presence information acquisition instruction is successful;
[0031] In response to the instruction source device being the second controller, it is determined that source verification of the hard disk presence information acquisition instruction has failed.
[0032] In one embodiment, the method further comprises:
[0033] In response to completion of configuration of the volume management device, controlling the first controller to generate a release signal, and transmitting the release signal to the arbitrator through the first serial bus;
[0034] In response to the arbitrator receiving the release signal and the second level signal being at a high level, the arbitrator is controlled to hand over the bus control right to the second controller.
[0035] In a second aspect, a device for configuring volume management device functions is provided, the device comprising a mainboard, a hard disk backplane, and a hard disk, wherein a first controller, a second controller, and an arbitrator are provided on the mainboard, a third controller is provided on the hard disk backplane, the first controller is connected to the third controller via a first serial bus, the second controller is connected to the third controller via a second serial bus, the arbitrator is provided on the first serial bus and the second serial bus, and the hard disk is connected to the hard disk backplane via the third serial bus.
[0036] The first controller generates a first control request and sends the first control request to the arbitrator;
[0037] The second controller generates a second control request and sends the second control request to the arbitrator;
[0038] The arbitrator receives the first control request and the second control request, and determines bus control right according to a preset arbitration strategy;
[0039] When the first controller obtains the bus control right, the arbitrator connects the first controller to the hard disk backplane, and the first controller obtains the volume management device configuration option;
[0040] The first controller turns on / off the volume management device function of the third serial bus port according to the volume management device configuration option.
[0041] In a third aspect, an electronic device is provided, comprising one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of the method described in any one of the first aspects above.
[0042] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are performed.
[0043] In a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method described in any one of the first aspects above.
[0044] The above-mentioned method, apparatus, electronic device and storage medium for configuring the volume management device function ensure the correctness and reliability of data transmission by setting an arbitrator on the first serial bus and the second serial bus, and determining the bus control rights of the first controller and the second controller according to a preset arbitration strategy, thereby simplifying software and hardware design and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A system architecture diagram of a method for configuring volume management device functions in the background art;
[0046] Figure 2 A flowchart of a method for configuring a volume management device function according to an embodiment;
[0047] Figure 3 is a detailed flow chart of a method for configuring volume management device functions in one embodiment;
[0048] Figure 4 A system architecture diagram of the configuration method of the volume management device function in this application;
[0049] Figure 5 FIG. 1 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0051] Example 1
[0052] In one embodiment, Figure 2 As shown, a method for configuring volume management device functions is provided, which is applied to a hard disk storage system. The hard disk storage system includes a mainboard, a hard disk backplane, and a hard disk. The mainboard is provided with a first controller, a second controller, and an arbitrator. The first controller is connected to the hard disk backplane via a first serial bus, the second controller is connected to the hard disk backplane via a second serial bus, the arbitrator is provided on the first serial bus and the second serial bus, and the hard disk is connected to the hard disk backplane via a third serial bus. The method includes:
[0053] In response to detecting a power-on signal of the mainboard, controlling the first controller to generate a first control request, and controlling the second controller to generate a second control request;
[0054] Sending the first control request and the second control request to the arbitrator, and determining bus control rights according to a preset arbitration strategy;
[0055] In response to the first controller obtaining the bus control right, controlling the arbitrator to connect the first controller to the hard disk backplane, and controlling the first controller to obtain volume management device configuration options;
[0056] According to the volume management device configuration option, the first controller is controlled to enable / disable the volume management device function of the third serial bus port.
[0057] Specifically, the first controller is the PCH or the BIOS within the PCH, the second controller is the BMC, the first and second serial buses are I2C (Inter-Integrated Circuit, a serial communication protocol) buses, the third serial bus is a PCIe bus, and the hard drive is an NVMe hard drive. By providing an arbitrator on the first and second serial buses and determining bus control rights for the first and second controllers based on a preset arbitration policy, the accuracy and reliability of data transmission are ensured, simplifying software and hardware design and reducing costs.
[0058] In one embodiment, the arbitration strategy includes a request priority, wherein the priority of the first control request is higher than the priority of the second control request. The first control request and the second control request are sent to the arbitrator, and bus control rights are determined according to a preset arbitration strategy, including:
[0059] controlling the arbitrator to parse the first control request and the second control request to obtain corresponding first level signals and second level signals;
[0060] In response to the first level signal being at a high level and the second level signal being at a low level, determining that the bus control right belongs to the first controller;
[0061] In response to the first level signal being at a low level and the second level signal being at a high level, determining that the bus control right belongs to the second controller;
[0062] In response to the first level signal and the second level signal being both high level signals, it is determined according to the request priority that the bus control right belongs to the first controller.
[0063] Specifically, in response to the first level signal and the second level signal being both low level signals, the first controller and the second controller do not have the bus control right. Based on the level signal of the first control request and the level signal of the second control request, as well as the request priority, the ownership of the bus control right is determined, thereby achieving complete decoupling of the first controller and the second controller.
[0064] In one embodiment, Figure 3 As shown, the method further includes:
[0065] In response to the second controller obtaining the bus control right, controlling the first controller to generate a third control request and sending the third control request to the arbitrator;
[0066] In response to the failure of the third control request, the first controller is controlled to generate a soft reset instruction, and the soft reset instruction is sent to the arbitrator, wherein the soft reset instruction is used to reset the arbitrator.
[0067] Specifically, a soft reset command allows the BIOS to gain bus control between motherboard power-up and the completion of PCIE device initialization. Because this period is short, it does not affect BMC functionality. This ensures independent access to the I2C bus between the BIOS and BMC, achieving decoupling from the BMC.
[0068] In one embodiment, the volume management device configuration options include a volume management device enable option, a volume management device disable option, and a volume management device automatic configuration option. Controlling the first controller to enable / disable the volume management device function of the third serial bus port according to the volume management device configuration options includes:
[0069] In response to the volume management device configuration option being the volume management device automatic configuration option, controlling the first controller to enable a volume management device function of the third serial bus port corresponding to the in-place hard disk;
[0070] In response to the volume management device configuration option being the volume management device enable option, controlling the first controller to enable volume management device functions of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk;
[0071] In response to the volume management device configuration option being the volume management device disabling option, the first controller is controlled to disable volume management device functions of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk.
[0072] In one embodiment, the hard disk backplane is provided with a third controller, and in response to the volume management device configuration option being the volume management device automatic configuration option, the controller controls the first controller to enable the volume management device function of the third serial bus port corresponding to the in-place hard disk, including:
[0073] Controlling the first controller to generate a hard disk presence information acquisition instruction, and sending the hard disk presence information acquisition instruction to the third controller through the first serial bus;
[0074] Controlling the third controller to perform source verification on the hard disk presence information acquisition instruction;
[0075] In response to successful source verification of the hard disk presence information acquisition instruction, controlling the third controller to acquire hard disk presence information, and returning the hard disk presence information to the first controller via the first serial bus, wherein the hard disk presence information includes a correspondence between the third serial bus port and the hard disk in place;
[0076] According to the hard disk presence information, the first controller is controlled to enable a volume management device function of the third serial bus port corresponding to the hard disk in place.
[0077] Specifically, the third controller is a CPLD that verifies the source of the instruction. If the instruction comes from the first controller, the CPLD returns hard disk presence information to configure the volume management device function. If the instruction comes from the second controller, the third controller is controlled to execute the corresponding light-on operation according to the light-on instruction from the second controller, thus achieving complete decoupling of the first and second controllers.
[0078] In one embodiment, controlling the third controller to perform source verification on the hard disk presence information acquisition instruction includes:
[0079] In response to the third controller receiving the hard disk presence information acquisition instruction, controlling the third controller to parse the hard disk presence information acquisition instruction to obtain the instruction source device;
[0080] In response to the instruction source device being the first controller, determining that the source verification of the hard disk presence information acquisition instruction is successful;
[0081] In response to the instruction source device being the second controller, it is determined that source verification of the hard disk presence information acquisition instruction has failed.
[0082] In one embodiment, the method further comprises:
[0083] In response to completion of configuration of the volume management device, controlling the first controller to generate a release signal, and transmitting the release signal to the arbitrator through the first serial bus;
[0084] In response to the arbitrator receiving the release signal and the second level signal being at a high level, the arbitrator is controlled to hand over the bus control right to the second controller.
[0085] Specifically, the method also includes: controlling the second controller to generate a lighting instruction, and transmitting the lighting instruction to the third controller through the second serial bus; controlling the third controller to verify the source of the lighting instruction; in response to successful source verification of the lighting instruction, controlling the third controller to execute the lighting operation corresponding to the lighting instruction.
[0086] In one embodiment, after returning the hard disk presence information to the first controller via the first serial bus, the method further includes:
[0087] Controlling the first controller to parse the hard disk presence information to obtain a hard disk label and a hard disk connection status, wherein the hard disk connection status includes connected and disconnected;
[0088] Controlling the first controller to obtain a label in a preset legal library, and comparing the hard disk label with the labels in the preset legal library to generate a comparison result;
[0089] In response to the comparison result being consistent, determining that the hard disk is a legitimate hard disk;
[0090] In response to the hard disk connection status being connected, controlling the first controller to set a switch state of a volume management device function corresponding to the third serial bus port to an on state;
[0091] In response to the hard disk connection status being disconnected, the first controller is controlled to set the switch status of the volume management device function corresponding to the third serial bus port to an off state.
[0092] Specifically, the third serial bus port on the first controller's interface has a corresponding volume management device function on / off control option. Normally, this control option is disabled and only needs to be manually enabled when connecting hard drives to a redundant disk array. The first controller detects the hard drive connection status in real time and automatically controls the corresponding volume management device function on / off based on the connection status, improving control efficiency and saving costs.
[0093] It should be understood that although Figure 2 、 Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2 、 Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0094] Example 2
[0095] In one embodiment, Figure 4 As shown, a device for configuring volume management device functions is provided, the device including a mainboard, a hard disk backplane, and a hard disk. The mainboard is provided with a first controller, a second controller, and an arbitrator. The hard disk backplane is provided with a third controller. The first controller is connected to the third controller via a first serial bus, and the second controller is connected to the third controller via a second serial bus. The arbitrator is provided on the first serial bus and the second serial bus. The hard disk is connected to the hard disk backplane via the third serial bus.
[0096] The first controller generates a first control request and sends the first control request to the arbitrator;
[0097] The second controller generates a second control request and sends the second control request to the arbitrator;
[0098] The arbitrator receives the first control request and the second control request, and determines bus control right according to a preset arbitration strategy;
[0099] When the first controller obtains the bus control right, the arbitrator connects the first controller to the hard disk backplane, and the first controller obtains the volume management device configuration option;
[0100] The first controller turns on / off the volume management device function of the third serial bus port according to the volume management device configuration option.
[0101] In one embodiment, the arbitration policy includes a request priority, wherein the priority of the first control request is higher than the priority of the second control request.
[0102] The arbitrator analyzes the first control request and the second control request to obtain corresponding first level signals and second level signals;
[0103] When the first level signal is at a high level and the second level signal is at a low level, the arbitrator determines that the bus control right belongs to the first controller;
[0104] When the first level signal is at a low level and the second level signal is at a high level, the arbitrator determines that the bus control right belongs to the second controller;
[0105] When the first level signal and the second level signal are both high level signals, the arbitrator determines that the bus control right belongs to the first controller according to the request priority.
[0106] In one embodiment, when the second controller obtains the bus control right, the first controller generates a third control request and sends the third control request to the arbitrator;
[0107] When the third control request fails, the first controller generates a soft reset instruction and sends the soft reset instruction to the arbitrator, wherein the soft reset instruction is used to reset the arbitrator.
[0108] In one embodiment, the volume management device configuration options include a volume management device open option, a volume management device close option, and a volume management device automatic configuration option.
[0109] When the volume management device configuration option is the volume management device automatic configuration option, the first controller enables the volume management device function of the third serial bus port corresponding to the in-place hard disk;
[0110] When the volume management device configuration option is the volume management device enable option, the first controller enables the volume management device function of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk;
[0111] When the volume management device configuration option is the volume management device disabling option, the first controller disables the volume management device function of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk.
[0112] In one embodiment, the first controller generates a hard disk presence information acquisition instruction, and sends the hard disk presence information acquisition instruction to the third controller via the first serial bus;
[0113] The third controller verifies the source of the hard disk presence information acquisition instruction;
[0114] When the source verification of the hard disk presence information acquisition instruction succeeds, the third controller acquires the hard disk presence information and returns the hard disk presence information to the first controller via the first serial bus, wherein the hard disk presence information includes a correspondence between the third serial bus port and the hard disk in place;
[0115] According to the hard disk presence information, the first controller enables a volume management device function of a third serial bus port corresponding to the hard disk in place.
[0116] In one embodiment, when the third controller receives the hard disk presence information acquisition instruction, the third controller parses the hard disk presence information acquisition instruction to obtain the instruction source device;
[0117] When the instruction source device is the first controller, the third controller determines that the source verification of the hard disk presence information acquisition instruction is successful;
[0118] When the instruction source device is the second controller, the third controller determines that the source verification of the hard disk presence information acquisition instruction fails.
[0119] In one embodiment, when the volume management device configuration is completed, the first controller generates a release signal and transmits the release signal to the arbitrator via the first serial bus;
[0120] When the arbitrator receives the release signal and the second level signal is at a high level, the arbitrator hands over the bus control right to the second controller.
[0121] The specific definitions of the volume management device configuration device can be found in the definitions of the volume management device configuration method described above and will not be repeated here. Each module in the volume management device configuration device described above can be implemented in whole or in part via software, hardware, or a combination thereof. Each of these modules can be embedded in or independent of a processor within an electronic device in hardware form, or stored in memory within the electronic device in software form, allowing the processor to call and execute the corresponding operations of each module.
[0122] Example 3
[0123] In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are performed:
[0124] In response to detecting a power-on signal of the mainboard, controlling the first controller to generate a first control request, and controlling the second controller to generate a second control request;
[0125] Sending the first control request and the second control request to the arbitrator, and determining bus control rights according to a preset arbitration strategy;
[0126] In response to the first controller obtaining the bus control right, controlling the arbitrator to connect the first controller to the hard disk backplane, and controlling the first controller to obtain volume management device configuration options;
[0127] According to the volume management device configuration option, the first controller is controlled to enable / disable the volume management device function of the third serial bus port.
[0128] When the program instructions are read and executed by the one or more processors, the program instructions may also perform operations corresponding to the various steps in the above method embodiments. Please refer to the above description and will not be repeated here. Figure 5 , which exemplarily shows the architecture of an electronic device, which may specifically include a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, and a memory 520. The processor 510, video display adapter 511, disk drive 512, input / output interface 513, network interface 514, and memory 520 may be communicatively connected via a communication bus 530.
[0129] Among them, the processor 510 can be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in this application.
[0130] The memory 520 can be implemented in the form of a read-only memory (ROM), a random access memory (RAM), a static storage device, a dynamic storage device, etc. The memory 520 can store an operating system 521 for controlling the operation of the electronic device 500, and a basic input and output system (BIOS) 522 for controlling the low-level operations of the electronic device 500. In addition, a web browser 523, a data storage management 524, and an icon font processing system 525, etc. can also be stored. The above-mentioned icon font processing system 525 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 520 and is called and executed by the processor 510.
[0131] The input / output interface 513 is used to connect input / output modules to implement information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
[0132] The network interface 514 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WIFI, Bluetooth, etc.).
[0133] The bus 530 comprises a pathway for transmitting information between the various components of the device (eg, the processor 510 , the video display adapter 511 , the disk drive 512 , the input / output interface 513 , the network interface 514 , and the memory 520 ).
[0134] In addition, the electronic device 500 can also obtain information on specific collection conditions from the virtual resource object collection condition information database 541 for use in condition judgment, etc.
[0135] It should be noted that although the electronic device 500 shown above only includes a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, a memory 520, a bus 530, etc., in a specific implementation, the electronic device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may only include the components necessary to implement the solution of the present application, and does not necessarily include all the components shown in the figure.
[0136] Through the description of the above implementation methods, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform. Based on this understanding, the technical solution of the present application can be essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling an electronic device (which can be a personal computer, a cloud server, or a network device, etc.) to execute the methods described in various embodiments of the present application or certain parts of the embodiments.
[0137] Example 4
[0138] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0139] In response to detecting a power-on signal of the mainboard, controlling the first controller to generate a first control request, and controlling the second controller to generate a second control request;
[0140] Sending the first control request and the second control request to the arbitrator, and determining bus control rights according to a preset arbitration strategy;
[0141] In response to the first controller obtaining the bus control right, controlling the arbitrator to connect the first controller to the hard disk backplane, and controlling the first controller to obtain volume management device configuration options;
[0142] According to the volume management device configuration option, the first controller is controlled to enable / disable the volume management device function of the third serial bus port.
[0143] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0144] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0145] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
[0146] Example 5
[0147] In one embodiment, a computer program product is provided, wherein a computer program is stored on the product, and when the computer program is executed by a processor, the following steps are performed:
[0148] In response to detecting a power-on signal of the mainboard, controlling the first controller to generate a first control request, and controlling the second controller to generate a second control request;
[0149] Sending the first control request and the second control request to the arbitrator, and determining bus control rights according to a preset arbitration strategy;
[0150] In response to the first controller obtaining the bus control right, controlling the arbitrator to connect the first controller to the hard disk backplane, and controlling the first controller to obtain volume management device configuration options;
[0151] According to the volume management device configuration option, the first controller is controlled to enable / disable the volume management device function of the third serial bus port.
[0152] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer program product. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.
[0153] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0154] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for configuring volume management device functions, applied to a hard disk storage system, the hard disk storage system comprising a mainboard, a hard disk backplane, and a hard disk; the mainboard being provided with a first controller, a second controller, and an arbitrator; the first controller being connected to the hard disk backplane via a first serial bus; the second controller being connected to the hard disk backplane via a second serial bus; the arbitrator being provided on the first serial bus and the second serial bus; and the hard disk being connected to the hard disk backplane via a third serial bus, wherein: The method comprises: In response to detecting a power-on signal of the mainboard, controlling the first controller to generate a first control request, and controlling the second controller to generate a second control request; Sending the first control request and the second control request to the arbitrator, and determining bus control rights according to a preset arbitration strategy; In response to the first controller obtaining the bus control right, controlling the arbitrator to connect the first controller to the hard disk backplane, and controlling the first controller to obtain volume management device configuration options; According to the volume management device configuration option, the first controller is controlled to enable / disable the volume management device function of the third serial bus port.
2. The method according to claim 1, characterized in that The arbitration strategy includes a request priority, wherein the priority of the first control request is higher than the priority of the second control request, the first control request and the second control request are sent to the arbitrator, and bus control rights are determined according to a preset arbitration strategy, including: controlling the arbitrator to parse the first control request and the second control request to obtain corresponding first level signals and second level signals; In response to the first level signal being at a high level and the second level signal being at a low level, determining that the bus control right belongs to the first controller; In response to the first level signal being at a low level and the second level signal being at a high level, determining that the bus control right belongs to the second controller; In response to the first level signal and the second level signal being both high level signals, it is determined according to the request priority that the bus control right belongs to the first controller.
3. The method according to claim 1 or 2, characterized in that The method further comprises: In response to the second controller obtaining the bus control right, controlling the first controller to generate a third control request and sending the third control request to the arbitrator; In response to the failure of the third control request, the first controller is controlled to generate a soft reset instruction, and the soft reset instruction is sent to the arbitrator, wherein the soft reset instruction is used to reset the arbitrator.
4. The method according to claim 1, characterized in that The volume management device configuration options include a volume management device enable option, a volume management device disable option, and a volume management device automatic configuration option. Controlling the first controller to enable / disable the volume management device function of the third serial bus port according to the volume management device configuration options includes: In response to the volume management device configuration option being the volume management device automatic configuration option, controlling the first controller to enable a volume management device function of the third serial bus port corresponding to the in-place hard disk; In response to the volume management device configuration option being the volume management device enable option, controlling the first controller to enable volume management device functions of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk; In response to the volume management device configuration option being the volume management device disabling option, the first controller is controlled to disable volume management device functions of the third serial bus port corresponding to the in-place hard disk and the unconnected hard disk.
5. The method according to claim 4, characterized in that: The hard disk backplane is provided with a third controller, which controls the first controller to enable the volume management device function of the third serial bus port corresponding to the in-place hard disk in response to the volume management device configuration option being the volume management device automatic configuration option, including: Controlling the first controller to generate a hard disk presence information acquisition instruction, and sending the hard disk presence information acquisition instruction to the third controller through the first serial bus; Controlling the third controller to perform source verification on the hard disk presence information acquisition instruction; In response to successful source verification of the hard disk presence information acquisition instruction, controlling the third controller to acquire hard disk presence information, and returning the hard disk presence information to the first controller via the first serial bus, wherein the hard disk presence information includes a correspondence between the third serial bus port and the hard disk in place; According to the hard disk presence information, the first controller is controlled to enable a volume management device function of the third serial bus port corresponding to the hard disk in place.
6. The method according to claim 5, characterized in that Controlling the third controller to perform source verification on the hard disk presence information acquisition instruction includes: In response to the third controller receiving the hard disk presence information acquisition instruction, controlling the third controller to parse the hard disk presence information acquisition instruction to obtain the instruction source device; In response to the instruction source device being the first controller, determining that the source verification of the hard disk presence information acquisition instruction is successful; In response to the instruction source device being the second controller, it is determined that source verification of the hard disk presence information acquisition instruction has failed.
7. The method according to claim 2, characterized in that: The method further comprises: In response to completion of configuration of the volume management device, controlling the first controller to generate a release signal, and transmitting the release signal to the arbitrator through the first serial bus; In response to the arbitrator receiving the release signal and the second level signal being at a high level, the arbitrator is controlled to hand over the bus control right to the second controller.
8. A device for configuring volume management device functions, characterized in that: The device includes a mainboard, a hard disk backplane, and a hard disk. The mainboard is provided with a first controller, a second controller, and an arbitrator. The hard disk backplane is provided with a third controller. The first controller is connected to the third controller via a first serial bus. The second controller is connected to the third controller via a second serial bus. The arbitrator is provided on the first serial bus and the second serial bus. The hard disk is connected to the hard disk backplane via the third serial bus. The first controller generates a first control request and sends the first control request to the arbitrator; The second controller generates a second control request and sends the second control request to the arbitrator; The arbitrator receives the first control request and the second control request, and determines bus control right according to a preset arbitration strategy; When the first controller obtains the bus control right, the arbitrator connects the first controller to the hard disk backplane, and the first controller obtains the volume management device configuration option; The first controller turns on / off the volume management device function of the third serial bus port according to the volume management device configuration option.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Bandwidth allocation method, device and equipment of PCIe external plug-in card and storage medium
CN112737836A
VMD function configuration method and device, server and storage medium
CN117149068A