Mirror image file migration system and mirror image file migration method

By designing a system that uses power cables to transmit mirror files in the data center, the problem of low installation efficiency of server operating system is solved, automatic installation is realized, efficiency is improved and resources are saved.

CN119806563AActive Publication Date: 2025-04-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202412000274.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-11
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

In data centers, the server installation operating system is relatively inefficient, especially because of the large number of servers, technicians need to install local media one by one, which is inefficient and time-consuming.

Method used

A mirror file migration system is designed to realize automatic transmission of mirror files and unmanned installation of the operating system through the power cable connection between the power management device and the server.

Benefits of technology

Through this system, no technicians need to perform installation operations on the spot, it can significantly improve the installation efficiency of the operating system, reduce the waste of human resources, and save network cable resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806563A_ABST
    Figure CN119806563A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of servers, and discloses a mirror image file migration system and a mirror image file migration method.The method comprises the steps that when a first substrate management controller receives a mode switching instruction sent by a client, a communication link between a target hard disk and a target object corresponding to the mode switching instruction is connected; when the processing device receives an installation instruction of a target operating system and detects an in-place signal of a target hard disk, a target mirror image file corresponding to the target operating system is selected from the at least one mirror image file, and data corresponding to the target mirror image file is transmitted to a second conversion device; the in-place signal is detected when a communication link between the target hard disk and the first conversion device is connected; the second conversion device converts data corresponding to the target mirror image file into an electric signal and transmits the electric signal to the first conversion device through a power line; the first conversion device converts the electric signal into data and transmits the data to the target hard disk. The installation efficiency of the server operating system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a mirror file migration system and a mirror file migration method. Background Art

[0002] In a data center, a large number of servers are generally used for data business processing. The server needs to install an operating system. Currently, there are many ways to install an operating system, such as local media installation and Preboot eXecution Environment (PXE) installation.

[0003] Local media installation means that the technician needs to insert the USB disk or CD-ROM containing the operating system into each server for installation. Due to the large number of servers in the data center, it is inefficient to install each server one by one. Summary of the invention

[0004] In view of this, the present invention provides an image file migration system and an image file migration method to solve the problem of low efficiency in installing an operating system for a server.

[0005] In a first aspect, the present invention provides an image file migration system, the image file migration system comprising a power management device and at least one server, the power management device and each of the servers are connected via a power line; the server comprises a first baseboard management controller, a target hard disk and a first conversion device; the power management device comprises a second conversion device, a storage device and a processing device, the storage device stores at least one image file;

[0006] The first baseboard management controller is used for parsing the mode switching instruction when receiving the mode switching instruction sent by the client, determining a target object corresponding to the mode switching instruction, wherein the target object is the first conversion device or the mainboard of the server; and connecting a communication link between the target hard disk and the target object corresponding to the mode switching instruction;

[0007] The processing device is configured to, when receiving an installation instruction of a target operating system and detecting an in-place signal of the target hard disk, select a target image file corresponding to the target operating system from at least one of the image files, and transmit data corresponding to the target image file to the second conversion device, wherein the in-place signal is detected when a communication link between the target hard disk and the first conversion device is connected;

[0008] The second conversion device is used to convert the data corresponding to the target image file into an electrical signal and transmit the electrical signal to the first conversion device through the power line;

[0009] The first conversion device is used to convert the electrical signal into data and transmit it to the target hard disk to complete the installation of the target operating system.

[0010] The image file migration system provided by the present invention has the following advantages:

[0011] The server is an electrical appliance, which means it needs to be plugged in, which means the server and the power management device must be connected via a power cord. This solution adds a storage device and a first conversion device to the power management device, and adds a second conversion device to the server. The image files of various operating systems are stored in the storage device, and data is transmitted through the existing power cord without wasting network cable resources. When the operating system needs to be installed, the target hard disk can be switched to connect to the first conversion device through a mode switching instruction. The processing device can detect the in-place signal of the target hard disk, convert the data into an electrical signal through the first conversion device, and convert the electrical signal into data through the second conversion device, and transmit it to the target hard disk to complete the installation of the operating system. In this way, there is no need for technical personnel to perform installation operations on site, which can improve the installation efficiency of the operating system.

[0012] In an optional implementation manner, the first baseboard management controller is specifically used to:

[0013] The mode switching instruction is parsed to obtain a target mode, and a target object corresponding to the mode switching instruction is determined based on the target mode, wherein the target mode is an operating system installation mode or an operating system running mode, and when the target mode is the operating system installation mode, the target object is the first conversion device, or, when the target mode is the operating system running mode, the target object is the mainboard.

[0014] Specifically, the target object is automatically determined by parsing the mode switching instruction, which reduces the need for manual configuration, makes the entire installation process more automated, and reduces the possibility of human error.

[0015] In an optional implementation, the server further includes a control switch, and the first baseboard management controller is specifically configured to:

[0016] The control switch is adjusted to a state corresponding to the target mode to connect a communication link between the target hard disk and the target object.

[0017] Specifically, by physically cutting off unnecessary connections, potential security risks can be reduced and unauthorized access or data leakage can be prevented. In the operating system installation mode, it can be ensured that only necessary devices participate in communication, thereby improving the reliability of the system.

[0018] In an optional implementation, the server further includes a first power interface, and the power management device further includes a second power interface; the first conversion device includes a first protocol converter and a first modem, and the second conversion device includes a second protocol converter and a second modem;

[0019] The first power interface is electrically connected to the second power interface through the power line, and the first power interface is electrically connected to the first modem, and the first modem is electrically connected to the first protocol converter; the second power interface is electrically connected to the second modem, and the second modem is electrically connected to the second protocol converter; the second protocol converter is connected to the storage device through a universal serial bus USB, and the target hard disk is connected to the mainboard through a serial advanced technology attachment SATA line;

[0020] The second protocol converter is specifically used for:

[0021] Converting data corresponding to the target image file from a USB protocol to an Ethernet protocol, and transmitting the data to the second modem;

[0022] The second modem is specifically used for:

[0023] converting the data after protocol conversion by the second protocol converter into the electrical signal, and transmitting the electrical signal to the first modem through the power line;

[0024] The first modem is specifically used for:

[0025] Convert the electrical signal into data of the Ethernet protocol and transmit the data to the first protocol converter;

[0026] The first protocol converter is specifically used for:

[0027] The data of the Ethernet protocol is converted into data of the SATA protocol and transmitted to the target hard disk.

[0028] Specifically, by using the power line as one of the data transmission media, the need for additional wiring is reduced and the overall architecture of the system is simplified.

[0029] In an optional embodiment, the processing device is further used for:

[0030] When it is determined that the migration of the target image file is completed, a migration completion notification is sent to the client, wherein the migration completion notification is used to instruct the client to send the mode switching instruction indicating that the target object is the mainboard to the first baseboard management controller.

[0031] Specifically, once the image file migration is completed, the processing device will automatically send a migration completion notification to the client, without the need to manually monitor the migration progress, thereby improving the level of automation. In addition, the client can obtain the migration completion information in a timely manner so that the client can send a mode switching instruction in a timely manner to start the newly installed operating system as soon as possible.

[0032] In an optional embodiment, the first baseboard management controller is further used to start the server and run the target operating system after completing the corresponding operation according to the mode switching instruction indicating that the target object is the mainboard.

[0033] Specifically, after receiving the mode switching instruction, the first baseboard management controller automatically completes the switch from the installation mode to the operation mode, and starts the server to run the new operating system, thereby reducing the need for manual intervention and improving the level of automation.

[0034] In an optional implementation, the control switch is electrically connected to the target hard disk, and the target hard disk is electrically connected to the first conversion device.

[0035] Specifically, the control switch is directly connected to the target hard disk, which means that the access status of the target hard disk can be accurately controlled to ensure that a communication connection can be established with other parts of the system only when needed.

[0036] In an optional implementation, the control switch is located on the main board.

[0037] Specifically, integrating the control switch on the mainboard can reduce the complexity of external circuits and simplify the overall design.

[0038] In an optional implementation, the processing device is a second baseboard management controller.

[0039] Specifically, because the power management device and the server side use the same communication protocol to interact with the client, a unified management interface and service can be implemented, simplifying the management operation of the client.

[0040] In a second aspect, the present invention provides an image file migration method, which is applied to the image file migration system described in the first aspect, wherein the image file migration system comprises a power management device and at least one server, wherein the power management device and each of the servers are connected via a power line; the server comprises a first baseboard management controller, a target hard disk and a first conversion device 103; the power management device comprises a second conversion device, a storage device and a processing device, wherein at least one image file is stored in the storage device; the method comprises:

[0041] When the first baseboard management controller receives the mode switching instruction sent by the client, the mode switching instruction is parsed to determine the target object corresponding to the mode switching instruction, wherein the target object is the first conversion device 103 or the mainboard of the server; and the communication link between the target hard disk and the target object corresponding to the mode switching instruction is connected;

[0042] When the processing device receives the installation instruction of the target operating system and detects the in-place signal of the target hard disk, a target image file corresponding to the target operating system is selected from at least one of the image files, and data corresponding to the target image file is transmitted to the second conversion device, wherein the in-place signal is detected when the communication link between the target hard disk and the first conversion device 103 is connected;

[0043] The second conversion device converts the data corresponding to the target image file into an electrical signal and transmits the electrical signal to the first conversion device 103 through the power line;

[0044] The first conversion device 103 converts the electrical signal into data and transmits the data to the target hard disk to complete the installation of the target operating system.

[0045] In a third aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the image file migration method of the first aspect or any corresponding embodiment thereof.

[0046] In a fourth aspect, the present invention provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the image file migration method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 It is a schematic diagram of the system architecture corresponding to the PXE installation method according to the relevant technology;

[0049] Figure 2 is a structural schematic diagram of an image file migration system according to an embodiment of the present invention;

[0050] Figure 3is a schematic diagram of the structure of another image file migration system according to an embodiment of the present invention;

[0051] Figure 4 is a structural schematic diagram of another image file migration system according to an embodiment of the present invention;

[0052] Figure 5 It is a structural schematic diagram of another image file migration system according to an embodiment of the present invention;

[0053] Figure 6 It is a flowchart of the image file migration method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0055] In the data center, there are a large number of servers that need to install operating systems. In the process of installing the operating system, the relevant technologies are generally installed through local media and preboot eXecution Environment (PXE). Among them, local media installation generally requires technicians to use storage media such as USB flash drives or CDs to install the operating system on each server separately, which consumes a lot of human resources and has low efficiency. Figure 1 As shown in the figure, PXE installation requires connecting the server in the data center to the switch, and then connecting the switch to the PXE server through a network cable. PXE installation requires technicians to deploy a network for each server, which has low deployment efficiency and occupies more network cable resources.

[0056] The image file migration system provided by the embodiment of the present invention does not require network cable resources and storage media, and can improve the efficiency of installing the operating system.

[0057] The embodiment of the present invention provides a system for migrating image files. Figure 2 As shown, the image file migration system may include a power distribution unit (PDU) 20 and at least one server 10 (the following description takes any server 10 as an example), and the power management device 20 and each server 10 are connected via a power line.

[0058] The server 10 may include a first baseboard management controller 101, a target hard disk 102 and a first conversion device 103. The power management device 20 may include a second conversion device 203, a storage device 202 and a processing device 201, wherein the storage device 202 stores at least one image file.

[0059] The first baseboard management controller 101 can be used to parse the mode switching instruction when receiving the mode switching instruction sent by the client, determine the target object corresponding to the mode switching instruction, and connect the communication link between the target hard disk 102 and the target object corresponding to the mode switching instruction.

[0060] The processing device 201 can be used to select a target image file corresponding to the target operating system from at least one image file when receiving an installation instruction of the target operating system and detecting an in-place signal of the target hard disk 102, and transmit the data corresponding to the target image file to the second conversion device 203.

[0061] The second conversion device 203 can be used to convert the data corresponding to the target image file into an electrical signal and transmit it to the first conversion device 103 through the power line.

[0062] The first conversion device 103 can be used to convert the electrical signal into data and transmit it to the target hard disk 102 to complete the installation of the target operating system.

[0063] The image file may be a virtual disk file with partition information. The target object may be the first conversion device 103 or the mainboard of the server 10. The presence signal is detected when the communication link between the target hard disk 102 and the first conversion device 103 is connected.

[0064] Specifically, when it is necessary to switch the mode, the technician can select the identification information (which can be one or more) of the server 10 and the indication information of the target object in the display interface of the relevant application program (or the relevant web service) of the client. Among them, the indication information of the target object can be the identification information of the target object, or it can be the target mode. The target mode can be the operating system installation mode or the operating system operation mode. In the case where the indication information of the target object is the identification information of the target object, when it is necessary to install the operating system on the server 10 of the data center, the technician can select the identification information of the first conversion device 103 in the display interface of the relevant application program (or the relevant web service) of the client, and when the operating system needs to be run after the operating system is installed, the technician can select the identification information of the motherboard. In the case where the indication information of the target object is the target mode, when it is necessary to install the operating system on the server 10 of the data center, the technician can select the operating system installation mode, and when the operating system needs to be run after the operating system is installed, the technician can select the operating system operation mode. In this way, the client can generate a mode switching instruction according to the indication information of the target object selected by the technician, and send the mode switching instruction to the first baseboard management controller 101 of the corresponding server 10 according to the identification information of the server 10.

[0065] After receiving the mode switching instruction, the first baseboard management controller 101 can parse the mode switching instruction to obtain the indication information of the target object, and determine the target object according to the indication information of the target object, that is, determine the target object corresponding to the mode switching instruction. Specifically, when the target object is a target mode, the first baseboard management controller 101 can determine the target component corresponding to the target mode in the pre-built mode and component correspondence table according to the target mode, that is, determine the target object. Among them, when the target mode is the operating system installation mode, the target object is the first conversion device 103, or, when the target mode is the operating system running mode, the target object is the motherboard.

[0066] When the target object is determined to be the first conversion device 103, the first baseboard management controller 101 may disconnect the communication link between the target hard disk 102 and the mainboard, and connect the communication link between the target hard disk 102 and the first conversion device 103. Alternatively, when the target object is determined to be the mainboard, the first baseboard management controller 101 may disconnect the communication link between the target hard disk 102 and the first conversion device 103, and connect the communication link between the target hard disk 102 and the mainboard. When the communication link between the target hard disk 102 and the first conversion device 103 is connected, the processing device 201 may detect the in-place signal of the target hard disk 102.

[0067] In addition, when switching modes, after selecting the identification information of the server 10, the technician can continue to select relevant information of the target operating system in the display interface of the relevant application program of the client (or the relevant web service), for example, the type and version of the target operating system can be included. The client can generate an installation instruction based on the identification information of the server 10 and the relevant information of the target operating system selected by the technician, and send it to the processing device 201 of the power management device 20. In this way, the processing device 201 can receive the installation instruction of the target operating system.

[0068] Alternatively, the processing device 201 of the power management device 20 may send a first switching completion instruction to the client after detecting the presence signal of the target hard disk 102, and the client may display the first indication information of the switching completion after receiving the first switching completion instruction. At this time, the technician may continue to input the relevant information of the target operating system, and the client generates the installation instruction according to the relevant information of the target operating system and the identification information of the server 10, and sends it to the processing device 201 of the power management device 20.

[0069] When the processing device 201 receives the installation instruction of the target operating system and detects the in-place signal of the target hard disk 102, it can parse the installation instruction to obtain the identification information and / or version of the operating system and the identification information of the server 10. Then, according to the identification information and / or version of the parsed operating system, the corresponding target image file can be selected from the image file stored in the storage device 202, and the data corresponding to the target image file can be transmitted to the second conversion device 203. When the second conversion device 203 receives the data transmitted by the processing device 201, it can convert the data into an electrical signal according to the first preset rule, and transmit the electrical signal to the first conversion device 103 of the server 10 through the power line between the power management device 20 and the server 10. When the first conversion device 103 receives the electrical signal, it can convert the electrical signal into data according to the second preset conversion rule and write it into the target hard disk 102. In this way, the installation operation of the target operating system can be completed.

[0070] In some optional embodiments, after receiving the installation instruction of the target operating system, the processing device 201 can periodically detect whether there is a signal of the target hard disk 102 being in place from the interface corresponding to the identification information of the server 10, and start timing after receiving the installation instruction of the target operating system. When the timing reaches a preset time, if the signal of the target hard disk 102 being in place is still not checked, an alarm notification is sent to the client based on the identification information of the server 10, so that the technician can solve the fault in time, thereby further improving the installation efficiency of the operating system.

[0071] In some optional implementations, the above-indicated mode switching instruction of the target object being the mainboard may be sent by the client according to the operation of the technician or may be automatically implemented. In the case of automatic implementation, the processing device 201 may also be used to:

[0072] When it is determined that the migration of the target image file is completed, a migration completion notification is sent to the client, wherein the migration completion notification is used to instruct the client to send a mode switching instruction indicating that the target object is a motherboard to the first baseboard management controller 101 .

[0073] Specifically, when the target image file is detected to have been migrated, a migration completion notification may be sent to the client, wherein the migration completion notification may carry the identification information of the server 10 that has completed the migration operation of the target image file. When the client receives the migration completion notification, it may automatically generate a mode switching instruction according to the identification information of the motherboard or the operating mode of the operating system (i.e., the indication information of the above target object), and send it to the first baseboard management controller 101.

[0074] In some optional implementations, the first baseboard management controller 101 is further configured to start the server 10 and run a target operating system after completing a corresponding operation according to a mode switching instruction indicating that the target object is a motherboard.

[0075] Specifically, the processing device 201 of the power management device 20 can send a second switching completion instruction to the client after detecting that the in-place signal of the target hard disk 102 disappears. After receiving the second switching completion instruction, the client can display the second indication information of the switching completion. At this time, the technician can continue to input the startup instruction and send it to the first baseboard management controller 101. After receiving the startup instruction, the first baseboard management controller 101 can start the server 10 and run the target operating system.

[0076] In the image file migration system provided in this embodiment, the server 10 is an electrical appliance, that is, it needs to be plugged in for use, that is, the server 10 and the power management device 20 must be connected via a power cord. In this solution, a storage device 202 and a first conversion device 103 are added to the power management device 20, and a second conversion device 203 is added to the server 10. The image files of various operating systems are stored in the storage device 202, and data is transmitted through the existing power cord, without wasting network cable resources. When the operating system needs to be installed, the target hard disk 102 can be switched to be connected to the first conversion device 103 through a mode switching instruction. The processing device 201 can detect the in-place signal of the target hard disk 102, convert the data into an electrical signal through the first conversion device 103, and convert the electrical signal into data through the second conversion device 203, and transmit it to the target hard disk 102 to complete the installation of the operating system. In this way, there is no need for technical personnel to perform installation operations on site, which can improve the installation efficiency of the operating system.

[0077] Based on the above embodiment, the server 10 may further include a control switch 104, which may include one or more switches. The control switch 104 may be electrically connected to the target hard disk 102, and the target hard disk 102 may be electrically connected to the conversion device. The control switch 104 may be located on the connection line between the first conversion device 103 and the mainboard, such as Figure 3 Alternatively, the control switch 104 may also be located on the main board, as shown in FIG. Figure 4 As shown. Accordingly, the first baseboard management controller 101 can complete the switching of the communication link of the target hard disk 102 by adjusting the state of the control switch 104, that is, the control switch 104 can be adjusted to a state corresponding to the target mode according to the target mode to connect the communication link between the target hard disk 102 and the target object. For example, when the target mode is the operating system installation mode, the first baseboard management controller 101 can adjust the state of the control switch 104 to the first state, so that the communication link from the target hard disk 102 to the mainboard is connected, and the communication link from the target hard disk 102 to the first conversion device 103 is disconnected. When the target mode is the operating system operation mode, the first baseboard management controller 101 can adjust the state of the control switch 104 to the second state, so that the communication link from the target hard disk 102 to the first conversion device 103 is connected, and the communication link from the target hard disk 102 to the mainboard is disconnected.

[0078] In the image file migration system provided in this embodiment, if the control switch 104 is located on the connection line between the first conversion device 103 and the mainboard, the mainboard and the first conversion device 103 can be effectively isolated, so that the operation of the first conversion device 103 can be controlled separately without affecting the operation of the mainboard, which is more flexible. The control switch 104 is integrated on the mainboard to reduce the complexity of the external circuit and simplify the overall design. In addition, the control switch 104 on the mainboard can provide a more direct control path, which may reduce signal transmission delay and improve response speed, and the integrated design may reduce the number of external connection points, thereby reducing the failure rate.

[0079] Based on the above embodiments, Figure 5 As shown, the server 10 may further include a first power interface, and the power management device 20 may further include a second power interface. The first conversion device 103 may include a first protocol converter 1031 and a first modem 1032 , and the second conversion device 203 may include a second protocol converter 2031 and a second modem 2032 .

[0080] The first power interface is electrically connected to the second power interface through a power line, and the first power interface is electrically connected to the first modem 1032, and the first modem 1032 is electrically connected to the first protocol converter 1031. The second power interface is electrically connected to the second modem 2032, and the second modem 2032 is electrically connected to the second protocol converter 2031. The second protocol converter 2031 and the storage device 202 can be connected through a Universal Serial Bus (USB), and the target hard disk 102 and the mainboard can be connected through a Serial Advanced Technology Attachment (SATA) line.

[0081] The second protocol converter 2031 is specifically used to convert the data corresponding to the target image file from the USB protocol to the Ethernet protocol, and transmit it to the second modem 2032. The second modem 2032 is specifically used to convert the data after the protocol conversion by the second protocol converter 2031 into an electrical signal, and transmit it to the first modem 1032 through the power line. The first modem 1032 is specifically used to convert the electrical signal into Ethernet protocol data, and transmit it to the first protocol converter 1031. The first protocol converter 1031 is specifically used to convert Ethernet protocol data into SATA protocol data and transmit it to the target hard disk 102.

[0082] Specifically, during the process of installing the target operating system, the data corresponding to the target image file first arrives at the second protocol converter 2031 from the storage device 202. The second protocol converter 2031 can convert the data line of the USB protocol into Ethernet data that is easy to transmit. The second modem 2032 then converts the data into electrical signals, and transmits the converted electrical signals to the first modem 1032 through the power line. Similarly, the first modem 1032 can convert the received electrical signals into Ethernet protocol data, and transmit them to the first protocol converter 1031. The first protocol converter 1031 then converts the Ethernet protocol data into SATA protocol data and transmits them to the target hard disk 102. In this way, when all data transmissions corresponding to the target image file are completed, the installation operation of the target operating system is also completed.

[0083] It should be noted that the second protocol converter 2031 and the storage device 202 may also be connected via other protocol lines, and the target hard disk 102 and the mainboard may also be connected via other protocol lines. Accordingly, the functions of the first protocol converter 1031, the second protocol converter 2031, the first modem 1032, and the second modem 2032 may be adaptively adjusted according to actual conditions.

[0084] The image file migration system provided in this embodiment can realize batch installation of the server 10 operating system through the existing and necessary power cord without complicated network cable connection, thereby saving network cable resources.

[0085] In some optional implementations, the power management device 20 may have a built-in management server, and the processing device 201 and the storage device 202 may be components of the management server 10. Accordingly, the processing device 201 may be a second baseboard management controller.

[0086] In this way, the power management device 20 and the server 10 can use the same communication protocol to complete the interaction with the client, which is convenient for the construction and management of client-related applications or related web services. In addition, by building the management server into the power management device 20, there is no need to make major changes to the structure of the power management device 20, which is more convenient.

[0087] In this embodiment, a method for migrating an image file is provided, which can be applied to an image file migration system. Figure 6 is a flow chart of a method for migrating image files according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0088] Step S601 : when the first baseboard management controller 101 receives a mode switching instruction sent by a client, the first baseboard management controller 101 parses the mode switching instruction and determines a target object corresponding to the mode switching instruction.

[0089] The target object is the first conversion device 103 or the mainboard of the server 10. A communication link is connected between the target hard disk 102 and the target object corresponding to the mode switching instruction.

[0090] Step S602, when the processing device 201 receives the installation instruction of the target operating system and detects the in-place signal of the target hard disk 102, a target image file corresponding to the target operating system is selected from at least one image file, and data corresponding to the target image file is transmitted to the second conversion device 203.

[0091] The presence signal is detected when the communication link between the target hard disk 102 and the first conversion device 103 is connected.

[0092] In step S603 , the second conversion device 203 converts the data corresponding to the target image file into an electrical signal and transmits the electrical signal to the first conversion device 103 via the power line.

[0093] In step S604, the first conversion device 103 converts the electrical signal into data and transmits the data to the target hard disk 102 to complete the installation of the target operating system.

[0094] The specific processing of step S601 to step S604 can refer to the specific introduction of the above-mentioned image file migration system, which will not be repeated here.

[0095] In the image file migration method provided in this embodiment, the server 10 is an electrical appliance, that is, it needs to be plugged in, that is, the server 10 and the power management device 20 must be connected by a power cord. In this solution, a storage device 202 and a first conversion device 103 are added to the power management device 20, and a second conversion device 203 is added to the server 10. The image files of various operating systems are stored in the storage device 202, and the data is transmitted through the existing power cord, without wasting network cable resources. When the operating system needs to be installed, the target hard disk 102 can be switched to be connected to the first conversion device 103 through a mode switching instruction. The processing device 201 can detect the in-place signal of the target hard disk 102, convert the data into an electrical signal through the first conversion device 103, and convert the electrical signal into data through the second conversion device 203, and transmit it to the target hard disk 102 to complete the installation of the operating system. In this way, there is no need for technical personnel to perform installation operations on site, which can improve the installation efficiency of the operating system.

[0096] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0097] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0098] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A mirror file migration system, characterized in that: The image file migration system comprises a power management device and at least one server, wherein the power management device and each of the servers are connected via a power line; the server comprises a first baseboard management controller, a target hard disk and a first conversion device; the power management device comprises a second conversion device, a storage device and a processing device, wherein at least one image file is stored in the storage device; The first baseboard management controller is used for parsing the mode switching instruction when receiving the mode switching instruction sent by the client, determining a target object corresponding to the mode switching instruction, wherein the target object is the first conversion device or the mainboard of the server; and connecting a communication link between the target hard disk and the target object corresponding to the mode switching instruction; The processing device is configured to, when receiving an installation instruction of a target operating system and detecting an in-place signal of the target hard disk, select a target image file corresponding to the target operating system from at least one of the image files, and transmit data corresponding to the target image file to the second conversion device, wherein the in-place signal is detected when a communication link between the target hard disk and the first conversion device is connected; The second conversion device is used to convert the data corresponding to the target image file into an electrical signal and transmit the electrical signal to the first conversion device through the power line; The first conversion device is used to convert the electrical signal into data and transmit it to the target hard disk to complete the installation of the target operating system.

2. The image file migration system according to claim 1, characterized in that: The first baseboard management controller is specifically used for: The mode switching instruction is parsed to obtain a target mode, and a target object corresponding to the mode switching instruction is determined based on the target mode, wherein the target mode is an operating system installation mode or an operating system running mode, and when the target mode is the operating system installation mode, the target object is the first conversion device, or, when the target mode is the operating system running mode, the target object is the mainboard.

3. The image file migration system according to claim 2, characterized in that: The server further includes a control switch, and the first baseboard management controller is specifically used for: The control switch is adjusted to a state corresponding to the target mode to connect a communication link between the target hard disk and the target object.

4. The image file migration system according to any one of claims 1 to 3, characterized in that: The server further comprises a first power interface, and the power management device further comprises a second power interface; the first conversion device comprises a first protocol converter and a first modem, and the second conversion device comprises a second protocol converter and a second modem; The first power interface is electrically connected to the second power interface through the power line, and the first power interface is electrically connected to the first modem, and the first modem is electrically connected to the first protocol converter; the second power interface is electrically connected to the second modem, and the second modem is electrically connected to the second protocol converter; the second protocol converter is connected to the storage device through a universal serial bus USB, and the target hard disk is connected to the mainboard through a serial advanced technology attachment SATA line; The second protocol converter is specifically used for: Converting data corresponding to the target image file from a USB protocol to an Ethernet protocol, and transmitting the data to the second modem; The second modem is specifically used for: converting the data after protocol conversion by the second protocol converter into the electrical signal, and transmitting the electrical signal to the first modem through the power line; The first modem is specifically used for: Convert the electrical signal into data of the Ethernet protocol and transmit the data to the first protocol converter; The first protocol converter is specifically used for: The data of the Ethernet protocol is converted into data of the SATA protocol and transmitted to the target hard disk.

5. The image file migration system according to any one of claims 1 to 3, characterized in that: The processing device is also used for: When it is determined that the migration of the target image file is completed, a migration completion notification is sent to the client, wherein the migration completion notification is used to instruct the client to send the mode switching instruction indicating that the target object is the mainboard to the first baseboard management controller.

6. The image file migration system according to any one of claims 1 to 3, characterized in that: The first baseboard management controller is further used to start the server and run the target operating system after completing the corresponding operation according to the mode switching instruction indicating that the target object is the mainboard.

7. The image file migration system according to claim 3, characterized in that: The control switch is electrically connected to the target hard disk, and the target hard disk is electrically connected to the first conversion device.

8. The image file migration system according to claim 3, characterized in that: The control switch is located on the main board.

9. The image file migration system according to any one of claims 1 to 3, characterized in that: The processing device is a second baseboard management controller.

10. A method for migrating an image file, characterized in that: The image file migration method is applied to the image file migration system according to any one of claims 1 to 9, wherein the image file migration system comprises a power management device and at least one server, wherein the power management device and each of the servers are connected via a power line; the server comprises a first baseboard management controller, a target hard disk and a first conversion device; The power management device comprises a second conversion device, a storage device and a processing device, wherein at least one image file is stored in the storage device; the method comprises: When the first baseboard management controller receives the mode switching instruction sent by the client, the first baseboard management controller parses the mode switching instruction to determine the target object corresponding to the mode switching instruction, wherein the target object is the first conversion device or the mainboard of the server; and connects the communication link between the target hard disk and the target object corresponding to the mode switching instruction; When the processing device receives the installation instruction of the target operating system and detects the in-place signal of the target hard disk, the processing device selects a target image file corresponding to the target operating system from at least one of the image files, and transmits data corresponding to the target image file to the second conversion device, wherein the in-place signal is detected when the communication link between the target hard disk and the first conversion device is connected; The second conversion device converts the data corresponding to the target image file into an electrical signal and transmits the electrical signal to the first conversion device through the power line; The first conversion device converts the electrical signal into data and transmits the data to the target hard disk to complete the installation of the target operating system.

Citation Information

Patent Citations

  • Power adapter as well as drive program and operating system installation method

    CN105278975A

  • Operation system installation configuration method and device, PXE server and storage medium

    CN117850885A

  • Installing an operating system in a host system

    US20130254759A1