Control method, device and equipment, computer readable storage medium and computer program product

By determining the target logical disk in the system and using the driver files on the physical disk to start the boot system and the host system, the configuration and startup of the software RAID are realized, and data loss and system downtime caused by hardware RAID controller failure is solved, improving the flexibility and scalability of the system.

CN119937906APending Publication Date: 2025-05-06SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411768070.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, failure of the hardware RAID controller will lead to data loss or system downtime, and the firmware source code based on hardware RAID is not disclosed, making it difficult to diagnose problems. The enclosed nature of hardware RAID limits its customization and secondary development capabilities, reducing the flexibility and scalability of the system.

Method used

By determining the target logical disks of multiple physical disks, the boot system is run based on the first driver file on the physical disk, and the second driver file on the physical disk is read through the target logical disk, and the host system is started based on the second driver file and the boot system, so as to realize the configuration and startup of the software RAID.

Benefits of technology

It solves data loss and system downtime caused by hardware RAID controller failure, reduces the complexity of the system startup process, improves the flexibility and scalability of the system, and avoids dependence on specific hardware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937906A_ABST
    Figure CN119937906A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a control method. The method comprises the following steps: determining a target logic disk of a plurality of physical disks of a system for controlling equipment; wherein the target logic disk and the plurality of physical disks have a data mapping relationship; running a boot system of the control equipment based on the first drive files on the plurality of physical disks; wherein the first drive file is a drive file corresponding to the boot system; reading a second drive file on the plurality of physical disks through the target logic disk; wherein the second drive file is a drive file corresponding to a host system of the control equipment; and starting the host system based on the second drive file and the boot system. The embodiment of the invention further discloses a control device, equipment, a computer readable storage medium and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to control technology in the field of computer technology, and in particular to a control method, device, equipment, computer-readable storage medium and computer program product. Background Art

[0002] In order to improve the redundancy and reliability of the operating system and data, a hardware disk array (Redundant Arrays of Independent Disks, RAID) controller is usually used to configure the RAID1 mode. This approach can maintain the stable operation of the operating system and the security of data when a hard disk fails. However, if the hardware RAID controller fails, it will cause data loss or system downtime; and the firmware source code based on the hardware RAID controller is not public, which makes it difficult to determine the cause when the operating system has problems; in addition, the closed nature of hardware RAID also limits its customization and secondary development capabilities, reducing the flexibility and scalability of the system.

[0003] Based on the above problems, there are three improvement schemes in the related art: Scheme 1 is a software RAID scheme based on the Basic Input-Output System (BIOS); Scheme 2 is to partition the disk first and configure some partitions as RAID, but the boot partition (BIOS-BOOT or UEFI-EFI) and the area outside the partition (such as Bootloader) are not included in the RAID configuration; Scheme 3 is to use three disks, set the part not included in the RAID in Scheme 2 separately on one disk (as a boot disk), and the other two disks are partitioned first and then configured as RAID according to needs, or RAID is established first and then partitioned, and used as system disks. However, the schemes in the related art have the problem of relying on specific hardware, and make the system startup process too complicated. Summary of the invention

[0004] To solve the above technical problems, the embodiments of the present application hope to provide a control method, device, equipment, computer-readable storage medium and computer program product, which solve the problem of relying on specific hardware in related technologies and reduce the complexity of the system startup process.

[0005] The technical solution of this application is implemented as follows:

[0006] A control method, the method comprising:

[0007] Determine a target logical disk for multiple physical disks of a system of a control device; wherein the target logical disk has a data mapping relationship with the multiple physical disks;

[0008] Running the boot system of the control device based on the first driver files on the multiple physical disks; wherein the first driver file is a driver file corresponding to the boot system;

[0009] Reading a second driver file on the plurality of physical disks through the target logical disk; wherein the second driver file is a driver file corresponding to the host system of the control device;

[0010] The host system is started based on the second driver file and the boot system.

[0011] In the above scheme, the method further comprises:

[0012] Determine first target data corresponding to the target logical disk; wherein the first target data is used to describe the target logical disk;

[0013] The first target data is stored in target locations of the plurality of physical disks.

[0014] In the above solution, the step of reading the second driver file on the plurality of physical disks through the target logical disk includes:

[0015] If the second target data is read on the multiple physical disks, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data is used to drive the target logical disk.

[0016] In the above solution, if the second target data is read on the multiple physical disks, reading the second driver file on the multiple physical disks through the target logical disk includes:

[0017] reading data at a first location of the plurality of physical disks;

[0018] If the target drive information for the target logical disk is read at the first position, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data includes the target drive information.

[0019] In the above solution, the second target data is read from the multiple physical disks, and the second driver files on the multiple physical disks are read through the target logical disk, including:

[0020] reading data at a second location of the plurality of physical disks;

[0021] If the target driver information for the target logical disk is read at the second position, the second driver files on the multiple physical disks are read through the target logical disk.

[0022] In the above solution, the step of reading the data at the first position of the plurality of physical disks includes:

[0023] reading a value of a target format at a first location of the plurality of physical disks;

[0024] Correspondingly, reading the data at the second position of the plurality of physical disks includes:

[0025] The target file at the second location of the plurality of physical disks is read.

[0026] In the above solution, the step of reading the second driver file on the plurality of physical disks through the target logical disk includes:

[0027] Reading the first target data of the target logical disk from the target location of the plurality of physical disks;

[0028] The target logical disk is read based on the first target data to read the second drive files on the plurality of physical disks.

[0029] A control device, comprising:

[0030] A determination unit, configured to determine a target logical disk for a plurality of physical disks of a system of a control device; wherein the target logical disk has a data mapping relationship with the plurality of physical disks;

[0031] A first processing unit, configured to run a boot system of the control device based on a first driver file on the plurality of physical disks; wherein the first driver file is a driver file corresponding to the boot system;

[0032] A second processing unit, configured to read a second driver file on the plurality of physical disks through the target logical disk; wherein the second driver file is a driver file corresponding to a host system of the control device;

[0033] The second processing unit is further configured to start the host system based on the second driver file and the boot system.

[0034] A control device, the device comprising: a processor, a memory and a communication bus;

[0035] The communication bus is used to realize the communication connection between the processor and the memory;

[0036] The processor is used to execute the control program in the memory to implement the steps of the above control method.

[0037] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned control method.

[0038] A computer program product comprises a computer program, wherein the computer program implements the above control method when executed by a processor.

[0039] The control method, apparatus, device, computer-readable storage medium and computer program product provided by the embodiments of the present application can determine the target logical disk for multiple physical disks of the system of the control device, the target logical disk has a data mapping relationship with the multiple physical disks, and runs the boot system of the control device based on the first driver file on the multiple physical disks, reads the second driver file on the multiple physical disks through the target logical disk, and starts the host system based on the second driver file and the boot system. In this way, the boot system can be directly run according to the first driver file corresponding to the boot system on the physical disk, and the host system can be started by the second driver file corresponding to the host system read by the logical disk of the physical disk and the boot system. There is no need to rely on specific hardware devices, nor is there a need to set a boot program for each physical disk independently. This solves the problem of relying on specific hardware in the related technology and reduces the complexity of the system startup process. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flow chart of a control method provided in an embodiment of the present application;

[0041] Figure 2 A flow chart of another control method provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of a software RAID and corresponding partitions in a control method provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the layout of disk data of BIOS+MRB in a control method provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of a newly added mdraid09 software RAID1 driver module in core.img in a control method provided in an embodiment of the present application;

[0045] Figure 6A schematic diagram of the layout of UEFI+GPT disk data in a control method provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0047] Figure 8 A schematic diagram of the structure of a control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0049] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0050] Unless otherwise specified, any step in the embodiments of the present application may be performed by a processor of the device. It is also worth noting that the embodiments of the present application do not limit the order in which the device executes the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the device, that is, when the device executes any step in the following embodiments, it may not rely on the execution of other steps.

[0051] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The present application provides a control method, which can be applied to control a device. Figure 1 As shown, the method may include the following steps:

[0053] Step 101: Determine a target logical disk for multiple physical disks of a system of a control device.

[0054] The target logical disk has a data mapping relationship with a plurality of physical disks.

[0055] In the embodiment of the present application, the multiple physical disks may refer to the system disk of the control device itself, that is, the disk used to control the host system of the control device and the boot system to start the normal operation. The target logical disk may be a software disk created based on the multiple physical disks; wherein the multiple physical disks may be hardware RAID, then the target logical disk may refer to software RAID.

[0056] Step 102: Run a boot system of a control device based on the first driver files on the multiple physical disks.

[0057] The first driver file is a driver file corresponding to the boot system.

[0058] In an embodiment of the present application, the boot system may refer to a BIOS or a Unified Extensible Firmware Interface (UEFI) system; the first driver file may refer to a file containing data required to enable the boot system to start and run normally.

[0059] It should be noted that the control device can read the first driver file from the physical disk, and run the boot system based on the first driver file.

[0060] Step 103: Read the second driver files on the multiple physical disks through the target logical disk.

[0061] The second driver file is a driver file corresponding to the host system of the control device.

[0062] In the embodiment of the present application, the second driver file may refer to a file containing data required for starting and operating the host system of the control device; the host system may refer to the operating system of the control device itself.

[0063] It should be noted that the control device can read the target logical disk, so as to read the second driver file on the physical disk through the target logical disk.

[0064] Step 104: Start the host system based on the second driver file and the boot system.

[0065] The control device may use the second driver file to start and run the operating system of the control device by booting the system.

[0066] The control method provided by the embodiment of the present application can directly run the boot system according to the first driver file corresponding to the boot system on the physical disk, and start the host system through the second driver file corresponding to the host system read by the logical disk of the physical disk and the boot system. It does not need to rely on specific hardware devices, nor does it need to set up a boot program for each physical disk independently. It solves the problem of relying on specific hardware in related technologies and reduces the complexity of the system startup process.

[0067] Based on the above embodiments, the present application provides a control method, referring to Figure 2 As shown, the method may include the following steps:

[0068] Step 201: A control device determines a target logical disk for multiple physical disks of a system of the control device.

[0069] The target logical disk has a data mapping relationship with a plurality of physical disks.

[0070] In the embodiment of the present application, a software RAID array (i.e., a target logical disk) is first created based on a physical disk, and then the software RAID array is partitioned, and finally a boot method is created on the software RAID array. Specifically, Figure 3 As shown in the figure, you can create a software RAID (i.e. / dev / md127) for the hard disk 1 and hard disk corresponding to the system; then, partition the software RAID into the following Figure 3 The following partitions are shown: / dev / md127p1, / dev / md127p2, / dev / md127p3 and / dev / md127p4; and, / dev / md127p1 corresponds to the FAT partition, / dev / md127p2 corresponds to the BOOT partition, / dev / md127p3 corresponds to the ROOT root partition, and / dev / md127p4 corresponds to other partitions; finally, a boot loader can be created; and GRUB2 can be used as the Bootloader.

[0071] It should be noted that by creating a software RAID, full disk mirroring redundancy can be achieved, including areas outside the partitions such as the Bootloader, Master Boot Record (MBR) or GUID Partition Table (GPT).

[0072] Step 202: The control device runs a boot system of the control device based on the first driver files on the multiple physical disks.

[0073] The first driver file is a driver file corresponding to the boot system.

[0074] Step 203: If the second target data is read on multiple physical disks, the control device reads the second driver files on the multiple physical disks through the target logical disk.

[0075] The second target data is used to drive the target logical disk.

[0076] In the embodiment of the present application, for different boot programs, the second target data can be read from different locations on multiple physical disks; and, for different boot programs, the specific content of the second target data is different.

[0077] It should be noted that after the second target data is read, it means that the target logical disk needs to be read next, that is, the host system needs to be started through the target logical disk.

[0078] In the embodiment of the present application, step 203 may be implemented by steps 203a to 203b, or step 203 may be implemented by steps 203c to 203d:

[0079] Step 203a: Control the device to read data at the first position of the plurality of physical disks.

[0080] If the boot system is BIOS, data can be read from the first position of multiple physical disks; specifically, Figure 4 The first position shown in may be the position between the gap after the MBR and the boot (BOOT) partition.

[0081] It should be noted that step 203a can be implemented in the following ways:

[0082] Step 203a1: The control device reads the value of the target format at the first position of the plurality of physical disks.

[0083] The target format is a binary format; the value of the target format is the binary value of core.img. Specifically, when the boot system is BIOS, Figure 5 As shown, the target driver information can be stored in core.img.

[0084] Step 203b: If the target driver information for the target logical disk is read at the first position, the control device reads the second driver files on the multiple physical disks through the target logical disk.

[0085] The second target data includes target driving information.

[0086] In the embodiment of the present application, the target driver information may refer to the target binary value corresponding to the driver module in the binary value corresponding to core.img at the first position of the plurality of physical disks. Figure 5 As shown, the target drive information may refer to the binary value corresponding to mdraid09.mod.

[0087] In other embodiments of the present application, by loading the mdraid09 module in the pre-boot phase of GRUB, GRUB can identify the target logical disk composed of software RAID and its partitions and file systems in the subsequent boot phase. In this way, once the basic runtime environment of GRUB is successfully loaded, GRUB has the ability to access the grub.cfg configuration file in the target logical disk of the software RAID.

[0088] Step 203c: Control the device to read data at the second position of the plurality of physical disks.

[0089] If the boot system is UEFI, data can be read from the second location of multiple physical disks; specifically, Figure 6 The second position shown in may be the location of the FAT partition.

[0090] It should be noted that step 203c can be implemented in the following ways:

[0091] Step 203c1: Control the device to read the target file at the second position of the multiple physical disks.

[0092] The target file is a file for storing GRUB basic runtime components. Specifically, when the boot system is UEFI, such as Figure 5 As shown, the target drive information can be stored in the target file.

[0093] Step 203d: If the target driver information for the target logical disk is read at the second position, the control device reads the second driver files on the multiple physical disks through the target logical disk.

[0094] In the embodiment of the present application, the target drive information may refer to a file where data corresponding to a drive module for driving a target logical disk at a second position among the plurality of physical disks is located.

[0095] It should be noted that the GRUB basic runtime environment and the software RAID driver module are loaded at the same time in the early stage of the GRUB boot code; specifically, during the GRUB initialization process, in addition to loading basic runtime components such as the device framework, file handles, environment variables, and command line parser in rescue mode, the mdraid09 driver module used to identify the soft RAID is also loaded.

[0096] In other embodiments of the present application, "reading the second driver files on multiple physical disks through the target logical disk" in steps 203b and 203d can be implemented in the following manner:

[0097] A. The control device reads first target data of a target logical disk from target locations of multiple physical disks.

[0098] In the embodiment of the present application, the first target data is used to describe the target logical disk; the target position may refer to a position in multiple physical disks that does not affect the traditional layout of the disks. In a feasible implementation, the first target data may refer to metadata of the target logical disk, and the target position may refer to the last position of the physical disk.

[0099] It should be noted that after reading the software RAID driver modules on multiple physical disks, it can be determined that the software RAID needs to be read next; at this time, the metadata of the software RAID can be read from the end of the physical disk to facilitate subsequent reading of the software RAID.

[0100] B. The control device reads the target logical disk based on the first target data to read the second drive files on the multiple physical disks.

[0101] In the embodiment of the present application, after the metadata of the software RAID is read, the software RAID can be read based on the metadata, so that the second driver file on the physical disk corresponding to the software RAID can be read.

[0102] Step 204: The control device starts the host system based on the second driver file and the boot system.

[0103] In other embodiments of the present application, the method may further include the following steps:

[0104] Step 205: The control device determines the first target data corresponding to the target logical disk.

[0105] Step 206: Control the device to store the first target data to target locations of multiple physical disks.

[0106] In an embodiment of the present application, the metadata of the software RAID is stored at the very end of the physical disk, which can avoid the overlap of the metadata of the software RAID with the traditional layout of the physical disk (such as Bootloader, MBR, GPT partition table). This also means that the metadata of the software RAID will not interfere with the MBR, the gap after MBR, or the GPT partition table at the front end of the physical disk; wherein, the MBR, the gap after MBR, or the GPT partition is the key information used by UEFI or BIOS to identify the disk and partition at startup. Therefore, at the beginning of system startup, UEFI or BIOS will process the software RAID member disk in the same way as a non-software RAID disk, read the MBR or EFI system partition of the physical disk without being interfered by the software RAID metadata, so that it can find the Bootloader and continue the boot process.

[0107] It should be noted that the control method of the present application does not rely on any specific hardware. It only requires two physical disks to achieve full disk mirroring redundancy and supports the two mainstream boot modes of BIOS / MBR and UEFI / GPT. In this way, after replacing any physical disk, there is no need to re-create a boot program for the new physical disk or use other strategies to synchronize the BIOS-BOOT or UEFI-EFI boot partition. Therefore, each physical disk can maintain the boot capability, which greatly simplifies the complexity of the software RAID1 configuration.

[0108] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0109] The control method provided by the embodiment of the present application can directly run the boot system according to the first driver file corresponding to the boot system on the physical disk, and start the host system through the second driver file corresponding to the host system read by the logical disk of the physical disk and the boot system. It does not need to rely on specific hardware devices, nor does it need to set up a boot program for each physical disk independently. It solves the problem of relying on specific hardware in related technologies and reduces the complexity of the system startup process.

[0110] Based on the above embodiments, the present application provides a control device, which can be applied to Figures 1-2 In the control method provided in the corresponding embodiment, refer to Figure 7 As shown, the control device 3 may include: a determination unit 31, a first processing unit 32 and a second processing unit 33, wherein:

[0111] A determination unit 31 is used to determine a target logical disk for multiple physical disks of a system of a control device; wherein the target logical disk has a data mapping relationship with the multiple physical disks;

[0112] A first processing unit 32 is used to run a boot system of a control device based on a first driver file on a plurality of physical disks; wherein the first driver file is a driver file corresponding to the boot system;

[0113] The second processing unit 33 is used to read the second driver file on the multiple physical disks through the target logical disk; wherein the second driver file is a driver file corresponding to the host system of the control device;

[0114] The second processing unit 33 is further configured to start the host system based on the second driving file and the boot system.

[0115] In other embodiments of the present application, the determining unit 31 is further configured to perform the following steps:

[0116] Determine first target data corresponding to the target logical disk; wherein the first target data is used to describe the target logical disk;

[0117] The first target data is stored in target locations of the plurality of physical disks.

[0118] In other embodiments of the present application, the second processing unit 33 is further configured to perform the following steps:

[0119] If the second target data is read on multiple physical disks, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data is used to drive the target logical disk.

[0120] In other embodiments of the present application, the second processing unit 33 is further configured to perform the following steps:

[0121] Reading data at a first location of a plurality of physical disks;

[0122] If the target drive information for the target logical disk is read at the first position, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data includes the target drive information.

[0123] In other embodiments of the present application, the second processing unit 33 is further configured to perform the following steps:

[0124] reading data at a second location of the plurality of physical disks;

[0125] If the target driver information for the target logical disk is read at the second position, the second driver files on the plurality of physical disks are read through the target logical disk.

[0126] In other embodiments of the present application, the second processing unit 33 is further configured to read the values ​​of the target format at the first positions of the plurality of physical disks;

[0127] Correspondingly, the second processing unit 33 is also used to read the target file at the second position of the multiple physical disks.

[0128] In other embodiments of the present application, the second processing unit 33 is further configured to perform the following steps:

[0129] Reading first target data of a target logical disk from a target location of the plurality of physical disks;

[0130] The target logical disk is read based on the first target data to read the second drive files on the plurality of physical disks.

[0131] It should be noted that the specific description of the steps performed by each unit can be found in Figures 1-2 The control method provided in the corresponding embodiment will not be described again here.

[0132] The control device provided in the embodiment of the present application can directly run the boot system according to the first driver file corresponding to the boot system on the physical disk, and start the host system through the second driver file corresponding to the host system read by the logical disk of the physical disk and the boot system. It does not need to rely on specific hardware devices, nor does it need to set up a boot program for each physical disk independently. It solves the problem of relying on specific hardware in related technologies and reduces the complexity of the system startup process.

[0133] Based on the above embodiments, the embodiments of the present application provide a control device, which can be applied to Figures 1-2 In the control method provided in the corresponding embodiment, refer to Figure 8 As shown, the control device 4 may include: a processor 41, a memory 42 and a communication bus 43, wherein:

[0134] The communication bus 43 is used to realize the communication connection between the processor 41 and the memory 42;

[0135] The processor 41 is used to execute the control program in the memory 42 to implement the following steps:

[0136] Determine a target logical disk for multiple physical disks of a system of a control device; wherein the target logical disk has a data mapping relationship with the multiple physical disks;

[0137] A boot system of a control device is run based on a first driver file on a plurality of physical disks; wherein the first driver file is a driver file corresponding to the boot system;

[0138] Reading a second driver file on a plurality of physical disks through a target logical disk; wherein the second driver file is a driver file corresponding to a host system of a control device;

[0139] The host system is started based on the second driver file and the boot system.

[0140] In other embodiments of the present application, the processor 41 is used to execute the control program in the memory 42, and can also implement the following steps:

[0141] Determine first target data corresponding to the target logical disk; wherein the first target data is used to describe the target logical disk;

[0142] The first target data is stored in target locations of the plurality of physical disks.

[0143] In other embodiments of the present application, the processor 41 is used to execute the control program in the memory 42 to read the second driver files on the plurality of physical disks through the target logical disk to implement the following steps:

[0144] If the second target data is read on multiple physical disks, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data is used to drive the target logical disk.

[0145] In other embodiments of the present application, the processor 41 is used to execute the control program in the memory 42. If the second target data is read on multiple physical disks, the second driver files on the multiple physical disks are read through the target logical disk to implement the following steps:

[0146] Reading data at a first location of a plurality of physical disks;

[0147] If the target drive information for the target logical disk is read at the first position, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data includes the target drive information.

[0148] In other embodiments of the present application, the processor 41 is used to execute the control program in the memory 42. If the second target data is read on multiple physical disks, the second driver files on the multiple physical disks are read through the target logical disk to implement the following steps:

[0149] reading data at a second location of the plurality of physical disks;

[0150] If the target driver information for the target logical disk is read at the second position, the second driver files on the plurality of physical disks are read through the target logical disk.

[0151] In other embodiments of the present application, the processor 41 is used to execute the control program in the memory 42 to read the data at the first position of the plurality of physical disks to implement the following steps:

[0152] Reading a value of a target format at a first location of a plurality of physical disks;

[0153] Accordingly, the processor 41 is used to execute the control program in the memory 42 to read the data at the second position of the plurality of physical disks, so as to implement the following steps:

[0154] A target file at a second location on the plurality of physical disks is read.

[0155] In other embodiments of the present application, the processor 41 is used to execute the control program in the memory 42 to read the second driver files on the plurality of physical disks through the target logical disk to implement the following steps:

[0156] Reading first target data of a target logical disk from a target location of the plurality of physical disks;

[0157] The target logical disk is read based on the first target data to read the second drive files on the plurality of physical disks.

[0158] It should be noted that the specific description of the steps executed by the processor can be referred to Figures 1-2 The control method provided in the corresponding embodiment will not be described again here.

[0159] The control device provided in the embodiment of the present application can directly run the boot system according to the first driver file corresponding to the boot system on the physical disk, and start the host system through the second driver file corresponding to the host system read by the logical disk of the physical disk and the boot system. It does not need to rely on specific hardware devices, nor does it need to set up a boot program for each physical disk independently. It solves the problem of relying on specific hardware in related technologies and reduces the complexity of the system startup process.

[0160] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figures 1-2 The corresponding embodiments provide steps of the control method.

[0161] Based on the foregoing embodiments, the embodiments of the present application provide a computer program product, including a computer program, which can be executed by the processor 41 to complete Figures 1-2 The corresponding embodiments provide steps of the control method.

[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data transmission device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data transmission device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data transmission device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0165] These computer program instructions may also be loaded onto a computer or other programmable data transmission device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0166] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A control method, characterized in that: The method comprises: Determine a target logical disk for multiple physical disks of a system of a control device; wherein the target logical disk has a data mapping relationship with the multiple physical disks; Running the boot system of the control device based on the first driver files on the multiple physical disks; wherein the first driver file is a driver file corresponding to the boot system; Reading a second driver file on the plurality of physical disks through the target logical disk; wherein the second driver file is a driver file corresponding to the host system of the control device; The host system is started based on the second driver file and the boot system.

2. The method according to claim 1, characterized in that The method further comprises: Determine first target data corresponding to the target logical disk; wherein the first target data is used to describe the target logical disk; The first target data is stored in target locations of the plurality of physical disks.

3. The method according to claim 2, characterized in that The step of reading the second driver file on the plurality of physical disks through the target logical disk comprises: If the second target data is read on the multiple physical disks, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data is used to drive the target logical disk.

4. The method according to claim 3, characterized in that If the second target data is read on the multiple physical disks, reading the second driver file on the multiple physical disks through the target logical disk includes: reading data at a first location of the plurality of physical disks; If the target drive information for the target logical disk is read at the first position, the second drive files on the multiple physical disks are read through the target logical disk; wherein the second target data includes the target drive information.

5. The method according to claim 3, characterized in that: The step of reading the second target data on the multiple physical disks and reading the second driver files on the multiple physical disks through the target logical disk includes: reading data at a second location of the plurality of physical disks; If the target driver information for the target logical disk is read at the second position, the second driver files on the multiple physical disks are read through the target logical disk.

6. The method according to claim 5, characterized in that The reading of data at the first position of the plurality of physical disks comprises: reading a value of a target format at a first location of the plurality of physical disks; Correspondingly, reading the data at the second position of the plurality of physical disks includes: The target file at the second location of the plurality of physical disks is read.

7. The method according to claim 4 or 5, characterized in that: The step of reading the second driver file on the plurality of physical disks through the target logical disk comprises: Reading the first target data of the target logical disk from the target location of the plurality of physical disks; The target logical disk is read based on the first target data to read the second drive files on the plurality of physical disks.

8. A control device, characterized in that: The device comprises: A determination unit, configured to determine a target logical disk for a plurality of physical disks of a system of a control device; wherein the target logical disk has a data mapping relationship with the plurality of physical disks; A first processing unit, configured to run a boot system of the control device based on a first driver file on the plurality of physical disks; wherein the first driver file is a driver file corresponding to the boot system; A second processing unit, configured to read a second driver file on the plurality of physical disks through the target logical disk; wherein the second driver file is a driver file corresponding to a host system of the control device; The second processing unit is further configured to start the host system based on the second driver file.

9. A control device, characterized in that: The device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the control program in the memory to implement the steps of the control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the control method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the control method according to any one of claims 1 to 7.