Driver configuration information updating method, driver configuration information processing method and electronic equipment
The baseboard management controller detects newly inserted drives and automatically updates configuration information, solving the complex issue of manual updates after drive replacement, simplifying operations and improving efficiency.
Patent Information
- Application Number
- CN202510773285.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-09-19
AI Technical Summary
After replacing a drive in an electronic device, the existing technology requires the user to manually update the drive configuration information, which is complicated and prone to errors. In particular, the configuration information cannot be automatically restored when the drive is inserted into a new slot or hot-spare replaced.
The baseboard management controller detects the newly inserted drive, obtains hardware information and compares it with the target mapping information, automatically updates the drive configuration information, including restarting the operating system to obtain the updated mapping relationship, and automatically updates the configuration information in hardware or software configuration mode.
Automatic updates are achieved in drive replacement scenarios, simplifying the operation process, reducing human errors, and improving update efficiency and user experience.
Smart Images

Figure CN120670040A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method for updating and processing driver configuration information and an electronic device. Background Art
[0002] Currently, electronic devices include multiple hardware components, such as network cards, redundant array of independent disks (RAID) cards, graphics cards, central processing units (CPUs), and drives.
[0003] Electronic devices can use drive configuration information configured through hardware or software to combine multiple drives into a single, virtual, large-capacity drive, thereby improving storage and data processing performance. However, users may replace the drives in an electronic device, and after replacing the drive, the user typically needs to manually modify the drive configuration information, which is complex and prone to errors. Summary of the Invention
[0004] One aspect of the present disclosure provides a method for updating driver configuration information, including: in response to receiving hardware information of a first driver, obtaining target mapping information and driver configuration information of an electronic device, wherein the hardware information is generated by a baseboard management controller after detecting that a new first driver is inserted into the electronic device, and the target mapping information is used to indicate a mapping relationship between a physical address of the driver and a driver identifier in the electronic device; comparing the target mapping information with the hardware information of the first driver to obtain an update result indicating whether the driver configuration information is updated; and when the update result indicates that the driver configuration information is updated, updating the driver configuration information using the hardware information of the first driver.
[0005] Optionally, the target mapping information and the hardware information of the first driver are compared to obtain an update result indicating whether the driver configuration information is updated, including: determining the second driver missing in the electronic device based on the target mapping information and obtaining the hardware information of the second driver; and comparing the hardware information of the first driver and the hardware information of the second driver to obtain the update result.
[0006] Optionally, determining the second driver missing in the electronic device based on the target mapping information and obtaining the hardware information of the second driver includes: when the target mapping information is in an abnormal state, determining the second driver missing in the electronic device based on the target mapping information; and obtaining the hardware information of the second driver based on the driver identification of the second driver.
[0007] Optionally, the method further includes: when the first drive is identical to the second drive, and / or the hardware information of the first drive is identical to the hardware information of the second drive, obtaining an update result for characterizing the updated drive configuration information; wherein the hardware information includes at least one of the following: capacity information, disk array configuration level.
[0008] Optionally, updating the drive configuration information includes: determining a configuration mode that matches the first drive based on the configuration mode information in the hardware information of the first drive; and updating the drive configuration information based on the configuration mode that matches the first drive; wherein the configuration mode includes a first configuration mode and a second configuration mode, the first configuration mode is for the central processing unit to execute the drive configuration of the electronic device, and the second configuration mode is for the disk array chip to execute the drive configuration of the electronic device.
[0009] Optionally, based on the configuration mode that matches the first driver, the driver configuration information is updated, including: based on the first configuration mode, restarting the operating system of the electronic device; obtaining updated target mapping information from the restarted operating system; obtaining an updated mapping relationship by comparing the updated target mapping information with the target mapping information, the updated mapping relationship at least including an updated mapping relationship between the first driver and the second driver; based on the updated mapping relationship, updating the driver configuration information.
[0010] Optionally, restarting the operating system of the electronic device based on the first configuration mode includes: restarting the operating system of the electronic device after delaying a preset time period based on the first configuration mode, where the preset time period is customized by the user.
[0011] Optionally, based on the configuration mode matching the first drive, the drive configuration information is updated, including: based on the second configuration mode, using the insertion slot information included in the hardware information of the first drive to replace the slot information of the second drive in the drive configuration information to obtain updated drive configuration information.
[0012] Another aspect of the present disclosure also provides a method for processing drive configuration information, including: in response to an instruction for storing target mapping information triggered by an interactive operation, obtaining target mapping information at a current moment from a target component for executing the drive configuration of the electronic device, the target component including an operating system or a disk array chip; storing the target mapping information; and sending a detection instruction to a baseboard management controller so that the baseboard management controller detects the operation of inserting and removing the drive of the electronic device based on the detection instruction, so that in response to receiving the hardware information of the first drive, the target mapping information and the drive configuration information are obtained; comparing the target mapping information with the hardware information of the first drive to obtain an update result indicating whether the drive configuration information is updated; and in the case where the update result indicates that the drive configuration information is updated, using the hardware information of the first drive to update the drive configuration information; wherein the hardware information is generated by the baseboard management controller after detecting that the first drive is newly inserted into the electronic device; the target mapping information is used to indicate the mapping relationship between the physical address of the drive in the electronic device and the drive identifier.
[0013] Another aspect of the present disclosure provides an electronic device, including: a baseboard management controller; a management system; the management system includes at least one processor, and the at least one processor is capable of executing the above method.
[0014] Another aspect of the present disclosure provides a non-volatile storage medium storing computer-executable instructions, which are used to implement any of the above methods when executed.
[0015] Another aspect of the present disclosure provides a computer program, which includes computer-executable instructions. When the instructions are executed, they are used to implement any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] For a more complete understanding of the present disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, in which:
[0017] Figure 1 A system architecture diagram of an electronic device to which a method for updating driver configuration information according to an embodiment of the present disclosure can be applied is schematically shown;
[0018] Figure 2 A flowchart schematically illustrates a method for updating driver configuration information according to an embodiment of the present disclosure;
[0019] Figure 3 Schematically shows a flow chart for determining an update result according to an embodiment of the present disclosure;
[0020] Figure 4 A schematic diagram illustrating a scenario of updating driver configuration information based on a first configuration mode according to an embodiment of the present disclosure;
[0021] Figure 5 Schematically shows a flow chart of updating driver configuration information according to an embodiment of the present disclosure;
[0022] Figure 6 The flowchart of the method for processing driver configuration information according to an embodiment of the present disclosure is schematically shown.
[0023] Figure 7 A block diagram schematically shows a device for updating driver configuration information according to an embodiment of the present disclosure.
[0024] Figure 8 A block diagram schematically shows a device for processing driver configuration information according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely illustrative and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0026] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0027] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0028] The accompanying drawings show some block diagrams and / or flow charts. It should be understood that some blocks in the block diagrams and / or flow charts, or combinations thereof, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when these instructions are executed by the processor, they can create a device for implementing the functions / operations described in the block diagrams and / or flow charts.
[0029] Therefore, the techniques of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the techniques of the present disclosure can take the form of a computer program product on a computer-readable medium having stored thereon instructions, which can be used by or in conjunction with an instruction execution system. In the context of the present disclosure, a computer-readable medium can be any medium that can contain, store, convey, propagate, or transmit instructions. For example, a computer-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of computer-readable media include: magnetic storage devices, such as magnetic tape or hard disk drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); memory, such as random access memory (RAM) or flash memory; and / or wired or wireless communication links.
[0030] In enterprise environments, replacing drives after configuring drive configuration information is common, such as testing a drive, temporarily inserting a drive from electronic device 1 into electronic device 2, replacing a drive due to a fault, or replacing a hot spare drive. The new drive can be inserted into the original slot of the replaced drive, or into a new slot, such as when the original slot is damaged and a new slot is needed, or when a new slot is accidentally inserted due to an operator error. With existing software-based drive configuration methods, even if a new drive is inserted into the original slot, the operating system driver path may be randomly updated, requiring manual updating of the drive configuration information. With hardware-based drive configuration methods, inserting a new drive into a new slot also requires manual updating of the drive configuration information. Furthermore, while existing RAID adapters can automatically restore drive configuration information to a certain extent, they cannot automatically restore drive configuration information when a new drive is inserted into a new slot. Furthermore, when a hot spare drive is replaced, additional configuration is required. In summary, existing drive replacement scenarios present the technical challenge of complex drive configuration information updates.
[0031] To this end, the present disclosure provides a method for updating driver configuration information to achieve automatic updating of driver configuration information, simplify the updating operation of the driver configuration information, and improve the updating efficiency.
[0032] Figure 1 The system architecture diagram of an electronic device to which the method for updating driver configuration information according to an embodiment of the present disclosure can be applied is schematically shown.
[0033] like Figure 1As shown, electronic device 100 includes a baseboard management controller (BMC) 102, a management system 103, and a newly inserted first drive 101. The electronic device includes multiple slots for loading drives, and the user can manually insert the first drive 101 into any slot in the electronic device 100.
[0034] The first drive 101 only represents a newly inserted drive in the electronic device 100, so as to distinguish it from existing drives in the electronic device. Drives in the electronic device include but are not limited to hard disk drives, optical disk drives, floppy disk drives, USB drives, etc.
[0035] The baseboard management controller 102 is used to communicate with other hardware and software components within the electronic device through an interface to manage other hardware and software components on the electronic device's mainboard. For example, when a drive is inserted, a power signal or a specific plug-in detection signal may be generated. The baseboard management controller 102 can detect these signals to determine whether the newly inserted first drive 101 is present.
[0036] The management system 103 may be a software component based on at least one processor to implement management functions. For example, the at least one processor included in the management system 103 may be capable of executing multiple instructions to implement functions of updating and processing driver configuration information. In other words, the management system 103 may be capable of implementing methods for updating and processing driver configuration information.
[0037] In other embodiments, the electronic device may also include an operating system (OS), which serves as the core software of the electronic device. The OS is responsible for managing hardware resources, coordinating software operations, and providing an interactive interface between users and application programs. For example, when configuring driver configuration information via software, the OS may automatically assign an OS drive path to a driver in the electronic device, thereby recording the physical address of the driver in the electronic device in the software.
[0038] The electronic devices mentioned in the above embodiments may include: servers, network attached storage (NAS), mobile computer devices, industrial equipment with storage functions, etc.
[0039] In one embodiment, the management system 103 can implement a method for updating the driver configuration information. Figure 2 Take this as an example to illustrate.
[0040] Figure 2 The flowchart of the method for updating the driver configuration information according to the embodiment of the present disclosure is schematically shown. Figure 2As shown, the method 200 includes operations S210 to S230.
[0041] In operation S210, in response to receiving hardware information of the first driver, target mapping information and driver configuration information of the electronic device are acquired.
[0042] Hardware information may include information related to the drive. For example, the hardware information may include the drive model, serial number, interface type, specifications, capacity information, drive configuration method (e.g., software / hardware method), disk array configuration level (also known as RAID level), etc.; or, the hardware information may include the slot in which the first drive is inserted in the electronic device.
[0043] In one embodiment, the hardware information is generated by a baseboard management controller (BMC) after detecting that a first drive is newly inserted into the electronic device. For example, the BMC may detect whether the first drive is newly inserted into the electronic device through a hardware event and generate the hardware information of the first drive based on communication with the slot.
[0044] The target mapping information is used to indicate the mapping relationship (mapping) between the physical address of the drive in the electronic device and the drive identification. The physical address here is a broad concept. For example, the physical address can be the slot information of the specific slot where the drive is inserted, such as the slot ID; it can also be the operating system drive path assigned by the OS to the drive. The operating system drive path is a virtual path, but it can also uniquely identify the physical address of the drive in the electronic device. The drive identification (drive UID) is information used to uniquely identify the drive. It is usually determined by the drive manufacturer and is not related to the electronic device into which it is inserted. For example, the drive identification can be the serial number of the drive.
[0045] The mapping relationship between the physical address and the drive identifier can establish a unique mapping relationship between the physical address and the drive identifier of the same drive, and a unique drive can be determined regardless of whether it is based on the physical address or the drive address, or at the software level or the hardware level.
[0046] Drive configuration information, also known as RAID configuration, is used to combine multiple drives into a virtual large-capacity drive.
[0047] In one embodiment, the target mapping information and driver configuration information may be stored in the management system and directly obtained when needed; alternatively, the management system may also obtain the target mapping information and driver configuration information from other components, such as obtaining the target mapping information from the OS.
[0048] In operation S220, the target mapping information is compared with the hardware information of the first driver to obtain an update result indicating whether the driver configuration information is updated.
[0049] For an electronic device that already has driver configuration information, its target mapping information includes a mapping relationship between the physical addresses and driver identifiers of a plurality of drivers in the electronic device.
[0050] The hardware information of the first drive information can be compared with the physical addresses of each drive in the target mapping information, and / or compared with the drive identification of each drive to determine whether the newly inserted first drive is a new drive and whether the physical address has changed.
[0051] For example, an electronic device includes drivers A, B, and C, and the target mapping information includes the mapping relationship between the physical addresses of each of the three drivers and the driver identification. In the case where a first driver D is newly inserted, the unupdated driver configuration information does not include the driver identification of driver D. Therefore, an update result indicating that the driver configuration information has been updated can be obtained through a comparison operation. In the case where the first newly inserted driver is A, the driver configuration information includes the mapping relationship of driver A. At this time, the user may have plugged or unplugged driver A. Since the driver has not been replaced, an update result indicating that the driver configuration information has not been updated can be obtained through a comparison operation. Alternatively, in the case where the first newly inserted driver is A but the physical address of driver A has changed, an update result indicating that the driver configuration information needs to be updated can also be obtained by comparing the hardware information of the first driver with the target mapping information.
[0052] In operation S230 , if the update result indicates updating the driver configuration information, the driver configuration information is updated using the hardware information of the first driver.
[0053] When the update result represents an update of the driver configuration information, in order to ensure that the electronic device can utilize the newly inserted first driver, the hardware information of the first driver can be used to add information corresponding to the first driver information to the driver configuration information to obtain the updated driver configuration information.
[0054] For example, in a drive replacement scenario, the information related to the replaced drive in the drive configuration information may be replaced with the hardware information of the newly inserted first drive.
[0055] In an embodiment of the present disclosure, a newly inserted first drive is detected by the BMC, which automatically triggers the management system to perform a judgment operation for updating the drive configuration information. The management system obtains the target mapping information and the drive configuration information of the electronic device in response to the hardware information of the first drive sent by the BMC, and compares the target mapping information with the hardware information of the first drive to obtain the update result. Thus, in the case where the update result represents an update of the drive configuration information, the drive configuration information can be automatically updated using the hardware information of the first drive. Since the triggering operation, the judgment of the update result, and the update operation are all automatically implemented, the embodiment of the present disclosure does not require the user to manually update the drive configuration information, thereby achieving the technical effect of simplifying the operation of updating the drive configuration information in the drive replacement scenario.
[0056] According to an embodiment of the present disclosure, target mapping information and hardware information of the first driver are compared to obtain an update result indicating whether the driver configuration information is updated, including: determining a second driver missing in the electronic device based on the target mapping information and obtaining hardware information of the second driver; and comparing the hardware information of the first driver and the hardware information of the second driver to obtain an update result.
[0057] In order to distinguish it from the inserted "first" drive, the "second" of the second drive is used to indicate the drive missing from the electronic device. Similarly, the hardware information of the second drive includes information related to the second drive.
[0058] In practical applications, target mapping information is typically configured and applied after the driver is installed in the electronic device. Typically, the driver in the electronic device remains unchanged. However, in the case of driver replacement, the driver in the electronic device may still change after the target mapping information is applied, such as when a driver is removed and replaced.
[0059] In one embodiment, if the driver of the electronic device changes after the target mapping information is applied, the changed driver can be marked in the target mapping information. Thus, based on the missing mark in the target mapping information, the missing second driver can be determined and the hardware information of the second driver can be determined. It is understood that when the missing second driver is first inserted into the electronic device, the electronic device can record the hardware information of the second driver. Therefore, if it is determined that the second driver is missing, the hardware information of the second driver can be obtained by obtaining the historical record.
[0060] Because the second drive and the first drive are the missing and newly inserted drives in the electronic device, respectively, by comparing the hardware information of the first and second drives, it can be determined whether the newly inserted first drive is used to replace the second drive. Whether the newly inserted first drive is used to replace the second drive can be determined by comparing one or more of a variety of hardware information, but this disclosure is not limited to this.
[0061] If it is determined that the newly inserted first drive is used to replace the second drive, an update result indicating that the drive configuration information needs to be updated can be obtained; otherwise, if the newly inserted first drive is not used to replace the second drive, an update result indicating that the drive configuration information does not need to be updated can be obtained.
[0062] In another embodiment, if the missing second driver does not exist in the electronic device and / or the hardware information of the second driver is not obtained, an update result indicating that the driver configuration information does not need to be updated can be directly determined. In this case, the newly inserted first driver is not used in a driver replacement scenario.
[0063] In an embodiment of the present disclosure, the second drive missing in the electronic device is determined based on the target mapping information, and the hardware information of the second drive is obtained; the hardware information of the first drive and the hardware information of the second drive are compared to obtain an update result. By using a two-step detection method of detecting whether the second drive is missing and detecting whether the newly inserted first drive is used for drive replacement, it is possible to further determine whether the first drive is used for drive replacement, thereby ensuring that the operation is stopped in a non-drive replacement scenario in a timely manner, avoiding wasting more resources to update and obtain erroneous drive configuration information.
[0064] According to an embodiment of the present disclosure, determining the second driver missing in the electronic device based on the target mapping information and obtaining the hardware information of the second driver also includes: when the target mapping information is in an abnormal state, determining the second driver missing in the electronic device based on the target mapping information; and obtaining the hardware information of the second driver based on the driver identification of the second driver.
[0065] When the target mapping information can be used normally by the electronic device, the target mapping information is in a normal state; otherwise, when the target mapping information cannot be used normally by the electronic device, it is in an abnormal state. The target mapping information may correspond to a state parameter, and the state parameter is detected to determine whether the target mapping information is in an abnormal state.
[0066] In the case where the second drive is not missing but the first drive is newly inserted, the newly inserted first drive is not used for drive replacement, and since the second drive is not missing, the target mapping information can also be used normally. Therefore, before determining whether the electronic device is missing the second drive, it is possible to preliminarily exclude non-drive replacement scenarios by determining whether the target mapping information is in an abnormal state.
[0067] When the target mapping information is in a normal state, since a new first driver has been inserted into the electronic device, other processing can be performed through an alarm. For example, an alarm message may be generated and fed back, and the driver configuration information may be updated through other means. For example, the driver configuration information may be updated based on the current drivers of the electronic device and new driver configuration information may be generated.
[0068] For a missing second driver, hardware information of the second driver may be acquired from a management system or a memory of the electronic device based on the driver identification.
[0069] In an embodiment of the present disclosure, by determining whether the target mapping information is in an abnormal state, and if it is in an abnormal state, further determining the second drive missing in the electronic device and obtaining the hardware information of the second drive, it is possible to ensure that operations are stopped in a non-drive replacement scenario in a timely manner, avoiding wasting more resources to obtain information, and updating incorrect drive configuration information.
[0070] In a specific embodiment, the method further includes: when the first drive is identical to the second drive, and / or the hardware information of the first drive is identical to the hardware information of the second drive, obtaining an update result for characterizing the updated drive configuration information; wherein the hardware information includes at least one of the following: capacity information, disk array configuration level.
[0071] In a drive replacement scenario, a user might unplug the original drive from an electronic device to temporarily borrow it, then reinsert it into the electronic device after the borrowing is complete. Alternatively, the user might replace the original drive with a new one with the same configuration. In these cases, the original drive's configuration information can be reused without requiring a new configuration. Simply update the drive configuration information with the hardware information from the first drive.
[0072] For example, the first driver and the second driver may be determined to be identical by comparing hardware information; or the first driver and the second driver may be determined to be identical by comparing driver identifiers of the first driver and the second driver. If the first driver and the second driver are identical, it indicates that the original driver in the electronic device has been reinserted into the electronic device.
[0073] Alternatively, if the first drive and the second drive are different but have the same capacity information and / or the same disk array configuration level, it indicates that a new drive with the same hardware information is used to replace the original drive.
[0074] In addition, the same hardware information includes but is not limited to: the hardware information of the first driver and the second driver are the same, and the difference between the hardware information of the first driver and the second driver is within a predetermined threshold range.
[0075] In embodiments of the present disclosure, when a first driver is identical to a second driver and / or the hardware information of the first driver is identical to the hardware information of the second driver, an updated driver configuration information result is obtained. This allows the present disclosure to support replacement with a different driver having the same hardware information without requiring reconfiguration of the driver configuration information, thus expanding the applicable scenarios for driver replacement. Furthermore, since no reconfiguration is required, the speed of restoring driver configuration information in this scenario is significantly improved, providing a better user experience.
[0076] Figure 3 Schematically shows a flow chart of determining the update result according to an embodiment of the present disclosure. Figure 3 As shown, the specific embodiment of determining the update result includes operations S301 to S306.
[0077] In operation S301, hardware information and target mapping information of a first driver are acquired.
[0078] In operation S302, it is determined whether the target mapping information is in an abnormal state. If the target mapping information is in an abnormal state, operation S303 is performed; otherwise, operation S306 is performed.
[0079] In operation S303, it is determined whether the electronic device lacks the second driver. If the electronic device lacks the second driver, operation S304 is performed; otherwise, operation S306 is performed.
[0080] In operation S304, hardware information of the second driver is acquired.
[0081] In operation S305 , hardware information of the first driver and the second driver is compared to obtain an update result.
[0082] In operation S306 , an alarm is issued.
[0083] The specific implementation of operations S301 to S306 can be found in the various implementations described above and will not be further described here. Furthermore, if the target mapping information is in a normal state, a first alarm message may be generated to notify the user that a new first drive has been inserted into the current electronic device. If the target mapping information is in an abnormal state and the electronic device is not missing a second drive, this may indicate a fault in a drive in the electronic device or a fault in the drive configuration information, and a second alarm message may be generated to notify the user of the current abnormality.
[0084] According to an embodiment of the present disclosure, updating driver configuration information includes: determining a configuration mode that matches the first driver based on configuration mode information in hardware information of the first driver; and updating the driver configuration information based on the configuration mode that matches the first driver. The configuration mode includes a first configuration mode and a second configuration mode.
[0085] In the first configuration mode, the central processing unit (CPU) executes driver configuration for the electronic device. This first configuration mode is also known as a software method. In this embodiment, the CPU may integrate combination rules for combining multiple drivers into a virtual large-capacity drive. In the second configuration mode, the disk array chip (RAID) executes driver configuration for the electronic device. For example, the disk array chip may be a dedicated RAID card for electronic devices. This second configuration mode is also known as a hardware method.
[0086] In the first configuration mode, the management system can update the driver configuration information in the management system through the interaction logic with the CPU. In the second configuration mode, the management system can update the driver configuration information in the management system through the interaction logic with the RAID card.
[0087] The configuration mode information indicates the configuration methods supported by the first driver. The configuration mode information may be identified by the manufacturer of the first driver, and the BMC obtains this information after detecting the insertion of the first driver. Alternatively, after detecting the insertion of the first driver, the BMC determines the configuration models supported by the first driver based on specific interactions with the first driver and generates the configuration mode information.
[0088] For example, the first configuration mode and the second configuration mode may be represented by different parameter values, such as being distinguished by “0 / 1”.
[0089] The management system may obtain the hardware information of the first driver from the BMC, and thus may perform identification based on the configuration mode information in the hardware information to determine the first configuration mode or the second configuration mode that matches the current first driver.
[0090] In the embodiment of the present disclosure, the update of the driver configuration information supports two configuration modes: the first and second configuration modes. Therefore, for electronic devices that adopt multiple configuration modes, the embodiment of the present disclosure can realize automatic update of the driver configuration information in the driver replacement scenario, which has a wider range of applicable scenarios and a better user experience.
[0091] According to an embodiment of the present disclosure, based on a configuration pattern that matches the first driver, the driver configuration information is updated, including: based on the first configuration pattern, restarting the operating system of the electronic device; obtaining updated target mapping information from the restarted operating system; obtaining an updated mapping relationship by comparing the updated target mapping information with the target mapping information, the updated mapping relationship including at least an updated mapping relationship between the first driver and the second driver; and updating the driver configuration information based on the updated mapping relationship.
[0092] For the first configuration mode, the target mapping information is automatically generated by the operating information (OS). After the BMC detects that the first drive is inserted into the electronic device and sends the hardware information of the first drive to the management system, the management system can generate an instruction for controlling the OS restart and send an instruction for restarting to the OS. The OS restarts the OS by executing the restart instruction. After the OS restarts, the OS rescans (retrieves) the drives in the electronic device, assigns an operating system drive path to each drive, and generates updated target mapping information. After the restarted OS establishes a connection with the management system, the management system can obtain the updated target mapping information from the OS.
[0093] In some embodiments, after the restarted OS establishes a connection with the management system, the management system may send a request to the OS to obtain the updated target mapping information. Alternatively, after the OS obtains the updated target mapping information, it automatically sends the updated target mapping information to the management system.
[0094] For example, the OS may include a runtime module that can interact with the management system to implement update and synchronization of target mapping information.
[0095] An updated mapping relationship refers to a mapping relationship that has changed in the target mapping information.
[0096] After restarting the OS, the target mapping information will contain a mapping between the physical address of the newly inserted first drive (the operating system drive path in the first configuration mode) and the drive identifier. The mappings for other unchanged drives in the electronic device may or may not change, depending on the OS's driver scanning rules. Hereinafter, the mapping between a drive's operating system drive path and its drive identifier will be referred to as the "drive mapping." Any drives in the electronic device other than the first and second drives will be referred to as "tertiary drives" (if any).
[0097] If the operating system driver path of the third driver changes after the OS rescan, the mapping relationship of the third driver will also change accordingly. However, since the driver identifier of the third driver has not changed, by comparing the target mapping information before and after the update, it is still possible to distinguish the first driver, the second driver, the third driver, and their respective mapping relationships. Therefore, by comparing the updated target mapping information with the target mapping information, the updated mapping relationship between the first driver and the second driver, as well as the updated mapping relationship of the third driver before and after the OS restart can be obtained. If the operating system driver path of the third driver has not changed after the OS rescan, the obtained updated mapping relationship only includes the updated mapping relationship between the first driver and the second driver.
[0098] For example, the target mapping information includes the mapping relationship for drive A: operating system drive path path1 - drive identifier A, i.e., path1-A. The mapping relationships for drives B and C are: path2-B, path3-C. After removing drive C and inserting drive D, the OS is restarted, and the updated target mapping information obtained includes: path1-A, path2-B, path3-D. By comparing the updated target mapping information with the target mapping information, it can be determined that the updated mapping relationship is: path3-C, path3-D.
[0099] Since the updated mapping relationship can indicate the change of the respective mapping relationships of the first driver and the second driver, the updated driver configuration information can be obtained by using the operating system driver path based on the updated mapping relationship.
[0100] In an embodiment of the present disclosure, based on the first configuration mode, the OS is controlled to restart and the updated target mapping information is obtained, and the updated target mapping information and the target mapping information are compared to obtain an updated mapping relationship between the first driver and the second driver; based on the updated mapping relationship, the driver configuration information is updated, and there is no need to re-plan the driver configuration information in the electronic device after the first driver is inserted, which can realize automatic update of the driver configuration information in the driver replacement scenario.
[0101] For example, if the updated mapping relationship is path3-C and path3-D, since the operating system driver path of the second drive being replaced is exactly the same as that of the first drive, and the operating system driver paths of drives A and B have not changed, the original driver configuration information can be directly used as the driver configuration information. If the operating system driver paths are different, they need to be replaced.
[0102] For ease of understanding, Figure 4 An embodiment of updating driver configuration information will be described as an example. Figure 4 A scenario diagram schematically illustrates updating driver configuration information based on a first configuration mode according to an embodiment of the present disclosure.
[0103] like Figure 4 As shown, the electronic device may include two drives, identified by Drive UIDs 1 and 2. The user can remove Drive UID 2 and insert a new drive with Drive UID 3. This means the first drive is Drive UID 3 and the second drive is Drive UID 2. Before removing Drive UID 2, the old target mapping information in management system 103 is: / dev / sda->Drive UID 1, / dev / sdb->Drive UID 2. / dev / sda and / dev / sdb are the operating system drive paths assigned by the OS. The old drive configuration information is: / dev / sda, / dev / sdb.
[0104] like Figure 4 As shown, in the first configuration mode, management system 103 can receive hardware information of a newly inserted first drive from baseboard management controller 102 through operation S401. Operation S402 controls operating system 104 to restart operating system 104. After rescanning the drives within operating system 104 and obtaining new target mapping information, management system 103 obtains new target mapping information from operating system 104 through operation S403: / dev / sda->Drive UID 3, / dev / sdc->Drive UID 1. By performing operation S401, management system 103 compares the old target mapping information with the new target mapping information and updates the old drive configuration information to the new drive configuration information: / dev / sdc, / dev / sda.
[0105] The logic for updating old driver configuration information with new driver configuration information is as follows: based on the updated mapping relationship of the same driver before and after the operating system is restarted, the operating system driver path of the same driver in the updated target mapping information is used to replace the operating system driver path of the same driver in the driver configuration information; based on the updated mapping relationship between the first driver and the second driver, the operating system driver path of the first driver is used to replace the operating system driver path of the second driver in the driver configuration information. The operating system driver path of the first driver is also the operating system driver path of the first driver in the updated target mapping information; the operating system driver path of the second driver is also the operating system driver path of the second driver in the target mapping information.
[0106] by Figure 4 For example, the logic for updating drive configuration information to the new one is as follows: For the unchanged drive, Drive UID 1, based on the drive ID, it can be determined that its operating system drive path changes from / dev / sda to / dev / sdc after the OS restart. The operating system drive path assigned to the newly inserted drive, Drive UID 2, is / dev / sda. Therefore, for the old drive configuration information " / dev / sda, / dev / sdb", " / dev / sdc" after the change for Drive UID 1 is replaced with " / dev / sda". For Drive UID 3 replacing Drive UID 2, the original operating system drive path " / dev / sdb" for Drive UID 2 in the old drive configuration information is replaced with the replaced operating system drive path " / dev / sda" for Drive UID 3.
[0107] According to an embodiment of the present disclosure, restarting the operating system of the electronic device based on the first configuration mode includes: restarting the operating system of the electronic device after delaying a preset time period based on the first configuration mode, where the preset time period is customized by the user.
[0108] For example, in an embodiment of the present disclosure, the management system's driver configuration information update method can be integrated into a software-level driver recovery function. Users can customize the preset delay time for restarting the device through interactive operations with the electronic device. It is understood that the management system can also determine the preset delay time based on the user's usage habits of the electronic device.
[0109] When using an electronic device, even if a user replaces a driver, the user may not need to immediately restart the OS to affect the current operation. Therefore, in the embodiments of the present disclosure, by delaying the restart of the electronic device's operating system for a preset period of time, the user's requirements for the timing of restarting the OS and updating driver configuration information can be met, thereby improving the user experience.
[0110] In one embodiment, the updated target mapping information and the target mapping information are compared to obtain an updated mapping relationship, and / or the driver configuration information is updated based on the updated mapping relationship. The execution can also be delayed for a preset period of time to meet the user's needs for customizing operation timing at various stages, thereby improving the user's experience.
[0111] According to an embodiment of the present disclosure, the drive configuration information is updated based on the configuration mode that matches the first drive, including: based on the second configuration mode, using the insertion slot information included in the hardware information of the first drive to replace the slot information of the second drive in the drive configuration information to obtain updated drive configuration information.
[0112] The insertion slot information is also the slot information when the first drive is inserted into the electronic device, such as the insertion slot ID.
[0113] In the second configuration mode, the driver slot information is used when generating the driver configuration information, and the target mapping information is the mapping relationship between the driver slot information and the driver identifier. Therefore, if the update result indicates an update to the driver configuration information, the slot information of the second driver in the driver configuration information can be directly replaced based on the inserted slot information in the hardware information of the first driver fed back by the BMC, thereby obtaining the updated driver configuration information.
[0114] In an embodiment of the present disclosure, for implementing driver configuration information through hardware, the slot information of the second driver in the driver configuration information is replaced by the insertion slot information included in the hardware information of the first driver, so that the updated driver configuration information can be quickly obtained.
[0115] Figure 5 Schematically shows a flow chart of updating driver configuration information according to an embodiment of the present disclosure. Figure 5 As shown, in this embodiment, the electronic device can perform operations S501 to S510.
[0116] In operation S501, a BMC detects that an electronic device is inserted into a first drive. The management system may receive hardware information of the first drive from the BMC and acquire target mapping information and drive configuration information.
[0117] In operation S502, a determination is made as to whether the driver configuration information should be updated. Specifically, the management system may compare the target mapping information with the hardware information of the first driver to obtain an update result indicating whether the driver configuration information should be updated. If the update result indicates that the driver configuration information should not be updated, operation S506 is executed; otherwise, operation S503 is executed.
[0118] In operation S503, it is determined whether the first configuration mode is selected. Specifically, the management system may determine whether the first configuration mode is selected based on the configuration mode information in the hardware information of the first driver. If the first configuration mode is not selected, operation S504 is executed; otherwise, operation S507 is executed.
[0119] In operation S504, the drive configuration information is updated in the second configuration mode. For example, the slot information of the first drive is used to replace the slot information of the second drive in the drive configuration information.
[0120] In operation S505 , an operation is performed with the updated driver configuration information in the second configuration mode.
[0121] In operation S506, an alarm is issued. If the result of operation S502 is no, the user may be warned that the current first driver is not compatible and the driver configuration information cannot be updated in the driver replacement scenario.
[0122] In operation S507, marking is performed. Since the OS needs to be restarted in the first configuration mode and the OS can be delayed in restarting, the event of needing to update the driver configuration information can be recorded by marking, so that the management system can automatically trigger the restart of the OS after a preset delay.
[0123] In operation S508 , the operating system is restarted and updated target mapping information is obtained.
[0124] In operation S509, the driver configuration information is compared and updated. In this step, the updated target mapping information and the target mapping information are compared to obtain an updated mapping relationship, and the driver configuration information is updated based on the updated mapping relationship.
[0125] In operation S510, an operation is performed with the updated driver configuration information in the first configuration mode.
[0126] Since the driver configuration information of the electronic device is actually in an unusable state after the first driver is inserted, after the driver configuration information is updated in the first configuration mode or the second configuration mode, the recovery operation of S505 or S510 can be used to enable the electronic device to perform read and write operations using the updated driver configuration information.
[0127] Figure 6The flowchart of the method for processing driver configuration information according to the embodiment of the present disclosure is schematically shown. Figure 6 As shown, the driver configuration information processing method 600 includes operations S610 to S630. The definition and update of the driver configuration information are as described in operations S210 to S230 above, and will not be repeated here.
[0128] In operation S610, in response to an instruction for storing target mapping information triggered by an interactive operation, current target mapping information is acquired from a target component for executing driver configuration of an electronic device, the target component including an operating system or a disk array chip.
[0129] The user can start the drive replacement scenario by interacting with the electronic device and trigger the storage operation of the target storage information so that the drive configuration information can be automatically updated when the drive is replaced in the subsequent electronic device.
[0130] For example, the electronic device may display an operation control through an interactive interface, and the user may operate the operation control so that the electronic device generates an instruction for storing the target mapping information based on the operation result.
[0131] Electronic devices can implement driver configuration via software or hardware using different components. These components can be hardware, such as a disk array chip (RAID card), or software, such as through the CPU. In the software / hardware configuration scenarios, target mapping information is stored in different locations. For example, in software-based configuration, target mapping information is automatically allocated and stored by the operating system; in hardware-based configuration, target mapping information is generated and stored by the RAID card. Therefore, the management system can retrieve the current target mapping information from the target component that performs driver configuration on the electronic device.
[0132] The current moment refers to triggering an instruction for storing the target mapping information. For example, when the electronic device is in a normal operation phase, or when configuring the electronic device, the user can trigger the storage of the target mapping information based on an interactive operation.
[0133] In operation S620, target mapping information is stored.
[0134] After acquiring the target mapping information from the target component, the management system may store the target mapping information at a predetermined storage address within the management system; or, store the target mapping information at a predetermined address that can interact with the management system.
[0135] In operation S630, a detection instruction is sent to the baseboard management controller so that the baseboard management controller detects the operation of inserting and removing the drive of the electronic device based on the detection instruction, so that in response to receiving the hardware information of the first drive, the target mapping information and the drive configuration information are obtained; the target mapping information and the hardware information of the first drive are compared to obtain an update result indicating whether the drive configuration information is updated; and when the update result indicates that the drive configuration information is updated, the drive configuration information is updated using the hardware information of the first drive; wherein the hardware information is generated by the baseboard management controller after detecting that the first drive is newly inserted into the electronic device; the target mapping information is used to indicate the mapping relationship between the physical address of the drive and the drive identifier in the electronic device.
[0136] If a driver is replaced in an electronic device, the management system can compare the target mapping information with the hardware information of the first driver to obtain an update result indicating whether the driver configuration information should be updated. If the update result indicates that the driver configuration information has been updated, the management system uses the hardware information of the first driver to update the driver configuration information. However, the management system's operation of updating the driver configuration information needs to be triggered by the BMC. Therefore, after storing the target mapping information, the management system can send a detection instruction to the BMC so that the baseboard management controller can detect the operation of inserting and removing the driver of the electronic device based on the detection instruction.
[0137] The detection instruction may be a simple trigger instruction, and the BMC detects the drive insertion and removal operations based on its own detection rules.
[0138] In an embodiment of the present disclosure, in response to an instruction for storing target mapping information triggered by an interactive operation, the current target mapping information is obtained from the target component used to execute the driver configuration of the electronic device; the target mapping information is stored. Because the target mapping information is recorded in advance, in the event of a driver replacement, an update result can be obtained by comparing the target mapping information with the hardware information of the newly inserted first driver; and if the update result indicates an update of the driver configuration information, the driver configuration information is updated using the hardware information of the first driver. Therefore, by storing the target mapping information, the embodiment of the present disclosure facilitates automatic updating of driver configuration information and simplifies the update operation.
[0139] It should be noted that the BMC can detect drive insertion and drive removal operations, but triggers the update operation of the drive configuration information only after detecting the drive insertion operation (ie, detecting the first newly inserted drive).
[0140] In a specific embodiment, when the operation of unplugging a drive is detected, the BMC can feed back the unplugged second drive to the management system, but when updating the drive configuration information, the second drive detected here is usually not used. Since the user can adjust the position of other drives in the electronic device, test the electronic device, etc. during the process of unplugging the second drive and not inserting the first drive, the information detected by the BMC at this time is not accurate. Therefore, after receiving the hardware information of the first drive, the embodiment of the present disclosure compares the target mapping information with the hardware information of the first drive to obtain the update result; and when the update result represents an update of the drive configuration information, the hardware information of the first drive is used to update the drive configuration information. Thus, the error-prone operations such as manually updating the drive configuration information are left to be detected and recovered after the drive is replaced. Therefore, when the drive configuration information is automatically updated, the possibility of incompatible drive replacement errors can also be greatly reduced.
[0141] Figure 7 Schematically shows a block diagram of a device for updating driver configuration information according to an embodiment of the present disclosure. Figure 7 As shown, the device 700 for updating driver configuration information includes: a first acquisition module 710 , a comparison module 720 and an update module 730 .
[0142] The first acquisition module 710 is used to obtain target mapping information and drive configuration information of the electronic device in response to receiving hardware information of the first drive, wherein the hardware information is generated by the baseboard management controller after detecting that the first drive is newly inserted into the electronic device, and the target mapping information is used to indicate the mapping relationship between the physical address of the drive and the drive identifier in the electronic device.
[0143] The comparison module 720 is configured to compare the target mapping information with the hardware information of the first driver to obtain an update result indicating whether the driver configuration information should be updated.
[0144] The updating module 730 is configured to update the driver configuration information using the hardware information of the first driver when the update result indicates that the driver configuration information is updated.
[0145] In one embodiment, the comparison module 720 includes a first determination submodule and a comparison submodule.
[0146] The first determining submodule is configured to determine the second driver missing from the electronic device based on the target mapping information and obtain the hardware information of the second driver. The comparing submodule is configured to compare the hardware information of the first driver with the hardware information of the second driver to obtain an update result.
[0147] The first determination submodule includes a first determination unit and an acquisition unit. The first determination unit is configured to determine, based on the target mapping information, that the second driver is missing from the electronic device when the target mapping information is in an abnormal state. The acquisition unit is configured to acquire hardware information of the second driver based on the driver identifier of the second driver.
[0148] According to an embodiment of the present disclosure, the comparison module 720 also includes a second determination submodule, which is used to obtain an update result for characterizing the updated drive configuration information when the first drive is the same as the second drive, and / or the hardware information of the first drive is the same as the hardware information of the second drive; wherein the hardware information includes at least one of the following: capacity information, disk array configuration level.
[0149] According to an embodiment of the present disclosure, a third determination submodule is further included, which is used to obtain an update result for characterizing the updated drive configuration information when the first drive is the same as the second drive, and / or the hardware information of the first drive is the same as the hardware information of the second drive; wherein the hardware information includes at least one of the following: capacity information, disk array configuration level.
[0150] According to an embodiment of the present disclosure, the update module 730 includes a mode determination submodule and an update submodule. The mode determination submodule is configured to determine a configuration mode that matches the first driver based on configuration mode information in the hardware information of the first driver. The update submodule is configured to update the driver configuration information based on the configuration mode that matches the first driver. The configuration mode includes a first configuration mode and a second configuration mode. The first configuration mode is executed by the central processing unit to configure the driver of the electronic device, and the second configuration mode is executed by the disk array chip to configure the driver of the electronic device.
[0151] According to an embodiment of the present disclosure, the update submodule includes a restart unit, a comparison unit, and an update unit. The restart unit is configured to restart the operating system of the electronic device based on the first configuration mode and obtain updated target mapping information from the restarted operating system. The comparison unit is configured to compare the updated target mapping information with the target mapping information to obtain an updated mapping relationship, where the updated mapping relationship includes at least an updated mapping relationship between the first driver and the second driver. The update unit is configured to update the driver configuration information based on the updated mapping relationship.
[0152] According to an embodiment of the present disclosure, the restart unit includes a delay subunit for restarting the operating system of the electronic device after delaying for a preset time period based on the first configuration mode, where the preset time period is customized by the user.
[0153] According to an embodiment of the present disclosure, the update submodule includes a replacement unit for replacing the slot information of the second drive in the drive configuration information based on the second configuration mode using the insertion slot information included in the hardware information of the first drive to obtain updated drive configuration information.
[0154] Figure 8 Schematically shows a block diagram of a device for processing driver configuration information according to an embodiment of the present disclosure. Figure 8 As shown, the device 800 for processing driver configuration information includes: a second acquisition module 810 , a storage module 820 and a sending module 830 .
[0155] The second acquisition module 810 is configured to, in response to an instruction for storing target mapping information triggered by an interactive operation, acquire the current target mapping information from a target component for executing the drive configuration of the electronic device, the target component including an operating system or a disk array chip. The storage module 820 is configured to store the target mapping information. The sending module 830 is configured to send a detection instruction to the baseboard management controller so that the baseboard management controller detects the insertion and removal of the drive of the electronic device based on the detection instruction, so that in response to receiving the hardware information of the first drive, the target mapping information and the drive configuration information are acquired; the target mapping information is compared with the hardware information of the first drive to obtain an update result indicating whether the drive configuration information is updated; and if the update result indicates that the drive configuration information is updated, the drive configuration information is updated using the hardware information of the first drive; wherein the hardware information is generated by the baseboard management controller after detecting that the first drive is newly inserted into the electronic device; and the target mapping information is used to indicate the mapping relationship between the physical address of the drive and the drive identifier in the electronic device.
[0156] It should be noted that the device part in the embodiments of the present disclosure corresponds to the method part in the embodiments of the present disclosure. The description of the device part specifically refers to the method part and will not be repeated here.
[0157] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.
[0158] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the method provided by the embodiment of the present disclosure.
[0159] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways, even if such combinations and / or couplings are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or couplings are intended to fall within the scope of this disclosure.
[0160] Although the present disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-described embodiments, but should be determined not only by the appended claims but also by the equivalents of the appended claims.
Claims
1. A method for updating driver configuration information, the method comprising: In response to receiving hardware information of the first driver, acquiring target mapping information and driver configuration information of the electronic device, wherein the hardware information is generated by a baseboard management controller after detecting that the first driver is newly inserted into the electronic device, and the target mapping information is used to indicate a mapping relationship between a physical address of the driver and a driver identifier in the electronic device; comparing the target mapping information with the hardware information of the first driver to obtain an update result indicating whether to update the driver configuration information; and In a case where the update result indicates that the driver configuration information is updated, the driver configuration information is updated using the hardware information of the first driver.
2. The method according to claim 1, wherein comparing the target mapping information with the hardware information of the first driver to obtain an update result indicating whether to update the driver configuration information comprises: Determining a second driver missing from the electronic device based on the target mapping information, and obtaining hardware information of the second driver; The hardware information of the first driver and the hardware information of the second driver are compared to obtain the update result.
3. The method according to claim 1, wherein determining the second driver missing from the electronic device based on the target mapping information and obtaining hardware information of the second driver comprises: In a case where the target mapping information is in an abnormal state, determining the second driver missing from the electronic device based on the target mapping information; as well as The hardware information of the second driver is acquired based on the driver identification of the second driver.
4. The method according to claim 2 or 3, further comprising: When the first driver is identical to the second driver and / or the hardware information of the first driver is identical to the hardware information of the second driver, obtaining an update result indicating that the driver configuration information is updated; The hardware information includes at least one of the following: capacity information and disk array configuration level.
5. The method according to any one of claims 1 to 4, wherein updating the driver configuration information comprises: Determining a configuration mode matching the first driver based on configuration mode information in the hardware information of the first driver; updating the driver configuration information based on a configuration mode matching the first driver; The configuration mode includes a first configuration mode and a second configuration mode. In the first configuration mode, the central processing unit executes the driver configuration of the electronic device. In the second configuration mode, the disk array chip executes the driver configuration of the electronic device.
6. The method according to claim 4, wherein updating the driver configuration information based on the configuration mode matching the first driver comprises: Restarting the operating system of the electronic device based on the first configuration mode; Obtain updated target mapping information from the restarted operating system; obtaining an updated mapping relationship by comparing the updated target mapping information with the target mapping information, wherein the updated mapping relationship at least includes an updated mapping relationship between the first driver and the second driver; Based on the updated mapping relationship, the driver configuration information is updated.
7. The method according to claim 6, wherein restarting the operating system of the electronic device based on the first configuration mode comprises: Based on the first configuration mode, the operating system of the electronic device is restarted after a preset delay, and the preset delay is customized by the user.
8. The method according to claim 4, wherein updating the driver configuration information based on the configuration mode matching the first driver comprises: Based on the second configuration mode, the slot information of the second drive in the drive configuration information is replaced by the insertion slot information included in the hardware information of the first drive, thereby obtaining updated drive configuration information.
9. A method for processing driver configuration information, comprising: In response to an instruction for storing target mapping information triggered by an interactive operation, obtaining the target mapping information at a current moment from a target component for executing driver configuration of the electronic device, the target component including an operating system or a disk array chip; storing the target mapping information; as well as sending a detection instruction to a baseboard management controller, so that the baseboard management controller detects the operation of inserting and removing a drive of the electronic device based on the detection instruction, and obtains the target mapping information and the drive configuration information in response to receiving the hardware information of the first drive; and compares the target mapping information with the hardware information of the first drive to obtain an update result indicating whether to update the drive configuration information; and, if the update result indicates that the driver configuration information is updated, updating the driver configuration information using the hardware information of the first driver; The hardware information is generated by a baseboard management controller after detecting that the first drive is newly inserted into the electronic device; and the target mapping information is used to indicate a mapping relationship between a physical address of a drive in the electronic device and a drive identifier.
10. An electronic device comprising: Baseboard management controller; Management system; The management system includes at least one processor, and the at least one processor is capable of executing the method according to any one of claims 1 to 9.