Image file migration system and image file migration method
The image file migration system connected via the power cord automates the transmission and installation of the operating system, solving the problem of low server installation efficiency and achieving efficient and safe operating system installation.
Patent Information
- Application Number
- CN202412000274.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-12-31
AI Technical Summary
The existing methods of installing operating systems on servers are inefficient, especially local media installation and PXE installation, which require a lot of manual intervention and network cable resources, resulting in low efficiency.
The image file migration system is adopted. Through the power line connection between the power management device and the server, the baseboard management controller and the conversion device are used to realize the automatic transmission and installation of the image file, reducing the dependence on network cable resources and simplifying the installation process.
It improves the installation efficiency of the operating system, reduces manual intervention and potential security risks, simplifies the system architecture, and improves the level of automation.
Smart Images

Figure CN119806563B_ABST
Abstract
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] Data centers typically use a large number of servers for data processing. These servers require an operating system. Currently, there are several ways to install an operating system, including local media installation and Preboot eXecution Environment (PXE) installation.
[0003] Local media installation means that technicians need to insert the USB drive or optical drive containing the operating system into each server for installation. Due to the large number of servers in the data center, installing each server individually is inefficient. 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, comprising a power management device and at least one server, wherein the power management device and each of the servers are connected via a power cable; 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 the storage device stores at least one image file;
[0006] The first baseboard management controller is configured to, upon receiving a mode switching instruction sent by a client, parse the mode switching instruction, determine a target object corresponding to the mode switching instruction, wherein the target object is the first conversion device or a mainboard of the server; and establish 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, upon receiving an installation instruction for 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 established;
[0008] The second conversion device is configured to convert the data corresponding to the target image file into an electrical signal and transmit the electrical signal to the first conversion device via the power line;
[0009] The first conversion device is used to convert the electrical signal into data and transmit the data 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 to use, which means that 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 it is necessary to install the operating system, 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 embodiment, the first baseboard management controller is specifically configured 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. 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 embodiment, the server further includes a control switch, wherein 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, physically cutting off unnecessary connections can reduce potential security risks and prevent unauthorized access or data leakage. In operating system installation mode, it can ensure that only necessary devices participate in communication, thereby improving system reliability.
[0018] In an optional embodiment, 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 via the power cable, 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 via a universal serial bus (USB), and the target hard disk is connected to the motherboard via a serial advanced technology attachment (SATA) cable;
[0020] The second protocol converter is specifically used to:
[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 configured to:
[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 configured to:
[0025] Converting the electrical signal into data of the Ethernet protocol and transmitting the data to the first protocol converter;
[0026] The first protocol converter is specifically used to:
[0027] The Ethernet protocol data is converted into SATA protocol data 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 complete, the processing device automatically sends a migration completion notification to the client, eliminating the need for manual monitoring of 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 configured to start the server and run the target operating system after completing a 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, which reduces the need for manual intervention and improves the level of automation.
[0034] In an optional embodiment, 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 with other parts of the system can be established when needed.
[0036] In an optional embodiment, 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 embodiment, the processing device is a second baseboard management controller.
[0039] Specifically, because the power management device and the server side both use the same communication protocol to interact with the client, a unified management interface and service can be implemented, simplifying the management operations 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 includes a power management device and at least one server, wherein the power management device and each of the servers are connected via a power cord; the server includes a first baseboard management controller, a target hard disk, and a first conversion device 103; the power management device includes 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 includes:
[0041] 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 and determines a 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 establishes a communication link between the target hard disk and the target object corresponding to the mode switching instruction;
[0042] When the processing device receives an installation instruction for a target operating system and detects an 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 a communication link between the target hard disk and the first conversion device 103 is established;
[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 via 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 cause 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, comprising computer instructions for causing 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 related technologies, the following briefly introduces the drawings required for use in the specific embodiments or related technical descriptions. 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 any creative work.
[0048] Figure 1 This 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 diagram of an image file migration system according to an embodiment of the present invention;
[0050] Figure 3is a structural diagram of another image file migration system according to an embodiment of the present invention;
[0051] Figure 4 is a structural diagram of another image file migration system according to an embodiment of the present invention;
[0052] Figure 5 Schematic diagram of the structure of another image file migration system according to an embodiment of the present invention;
[0053] Figure 6 The figure is a flowchart of the image file migration method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying 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 making creative efforts shall fall within the scope of protection of the present invention.
[0055] In a data center, there are a large number of servers that need to install operating systems. During the installation of operating systems, 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, PXE installation requires connecting the servers in the data center to a switch, which is then connected to the PXE server via a network cable. PXE installation requires technicians to deploy a network for each server, which is inefficient and consumes a lot of 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 (hereinafter, any server 10 is used as an example for description), 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. 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 the installation instruction of the target operating system and detecting the presence 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 the electrical signal 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 the data 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 a mode switch is required, a 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 of the client (or the relevant web service). The indication information of the target object can be the identification information of the target object or the target mode. The target mode can be the operating system installation mode or the operating system operation mode. If the indication information of the target object is the identification information of the target object, when an operating system needs to be installed on the server 10 in 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 of the client (or the relevant web service). After the operating system is installed, the technician can select the identification information of the motherboard. If the indication information of the target object is the target mode, when an operating system needs to be installed on the server 10 in the data center, the technician can select the operating system installation mode. After the operating system is installed, the technician can select the operating system operation mode. In this way, the client can generate a mode switch instruction based on the indication information of the target object selected by the technician, and send the mode switch instruction to the first baseboard management controller 101 of the corresponding server 10 based on 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. Based on the indication information of the target object, the target object can be determined, that is, the target object corresponding to the mode switching instruction can be determined. 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 from a pre-built mode-component correspondence table based on the target mode, that is, the target object can be determined. 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] After determining that the target object is the first conversion device 103, the first baseboard management controller 101 can disconnect the communication link between the target hard disk 102 and the motherboard and connect the communication link between the target hard disk 102 and the first conversion device 103. Alternatively, after determining that the target object is the motherboard, the first baseboard management controller 101 can 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 motherboard. When the communication link between the target hard disk 102 and the first conversion device 103 is connected, the processing device 201 can detect a presence 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 about the target operating system in the display interface of the relevant application program (or the relevant web service) of the client, such as the type and version of the target operating system. The client can generate an installation instruction based on the identification information of the server 10 and the relevant information about 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 for the target operating system.
[0068] Alternatively, the processing unit 201 of the power management device 20 may send a first switch completion instruction to the client after detecting the presence signal of the target hard disk 102. After receiving the first switch completion instruction, the client may display a first indication message indicating the switch is complete. At this point, the technician may continue to input relevant information about the target operating system. The client generates an installation instruction based on the relevant information about the target operating system and the identification information of the server 10 and sends it to the processing unit 201 of the power management device 20.
[0069] Upon receiving the target operating system installation instruction and detecting the target hard disk 102 presence signal, the processing device 201 can parse the installation instruction to obtain the operating system identification information and / or version, as well as the server 10 identification information. Furthermore, based on the parsed operating system identification information and / or version, the processing device 201 can select a corresponding target image file from the image files stored in the storage device 202 and transmit the data corresponding to the target image file to the second conversion device 203. Upon receiving the data transmitted by the processing device 201, the second conversion device 203 can convert the data into an electrical signal according to a first preset rule and transmit the electrical signal to the first conversion device 103 of the server 10 via the power line between the power management device 20 and the server 10. Upon receiving the electrical signal, the first conversion device 103 can convert the electrical signal into data according to a second preset conversion rule and write the data to the target hard disk 102. In this way, the target operating system installation operation is 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 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 the preset time, if the signal of the target hard disk 102 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 technical staff can solve the fault in time, thereby further improving the installation efficiency of the operating system.
[0071] In some optional embodiments, the mode switching instruction indicating that the target object is the motherboard can be sent by the client according to the operation of the technician, or it can be automatically implemented. In the case of automatic implementation, the processing device 201 can 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 the motherboard to the first baseboard management controller 101.
[0073] Specifically, when the process detects that the target image file has 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 completed the target image file migration operation. Upon receiving the migration completion notification, the client may automatically generate a mode switching instruction based on the identification information of the motherboard or the operating mode of the operating system (i.e., the indication information of the 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 presence signal of the target hard disk 102 has disappeared. After receiving the second switching completion instruction, the client can display a second indication message indicating that the switching is complete. At this point, the technician can continue to input a 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 by this embodiment, the server 10 is an electrical appliance, which means 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. This solution adds a storage device 202 and a first conversion device 103 to the power management device 20, and adds a second conversion device 203 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 connect 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, which 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 motherboard, such as Figure 3 Alternatively, the control switch 104 may also be located on the main board, as shown. 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 motherboard 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 running 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 motherboard is disconnected.
[0078] In the image file migration system provided by 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. This allows independent control of the operation of the first conversion device 103 without affecting the operation of the mainboard, providing greater flexibility. Integrating the control switch 104 on the mainboard reduces the complexity of external wiring and simplifies the overall design. Furthermore, the control switch 104 on the mainboard provides a more direct control path, potentially reducing signal transmission delays and improving response speed. The integrated design also reduces the number of external connection points, thereby reducing the risk of failure.
[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 via a power cable, and the first power interface is electrically connected to the first modem 1032, which is electrically connected to the first protocol converter 1031. The second power interface is electrically connected to the second modem 2032, which is electrically connected to the second protocol converter 2031. The second protocol converter 2031 and the storage device 202 can be connected via a Universal Serial Bus (USB), and the target hard disk 102 and the motherboard can be connected via a Serial Advanced Technology Attachment (SATA) cable.
[0081] The second protocol converter 2031 is specifically configured to convert the data corresponding to the target image file from the USB protocol to the Ethernet protocol and transmit the data to the second modem 2032. The second modem 2032 is specifically configured to convert the data after the protocol conversion by the second protocol converter 2031 into an electrical signal and transmit the data via the power line to the first modem 1032. The first modem 1032 is specifically configured to convert the electrical signal into Ethernet protocol data and transmit the data to the first protocol converter 1031. The first protocol converter 1031 is specifically configured to convert the Ethernet protocol data into SATA protocol data and transmit the data to the target hard disk 102.
[0082] Specifically, during the installation of the target operating system, the data corresponding to the target image file first travels from storage device 202 to second protocol converter 2031. Second protocol converter 2031 converts USB protocol data into Ethernet data for easier transmission. Second modem 2032 then converts the data into electrical signals and transmits the converted electrical signals via the power cord to first modem 1032. Similarly, first modem 1032 converts the received electrical signals into Ethernet protocol data and transmits them to first protocol converter 1031. First protocol converter 1031 then converts the Ethernet protocol data into SATA protocol data and transmits them to target hard drive 102. Thus, when all data corresponding to the target image file are transferred, the installation of the target operating system is complete.
[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 motherboard 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 interact with the client, facilitating the construction and management of client-related applications or web services. Furthermore, by integrating the management server into the power management device 20, there is no need to make major structural changes to the power management device 20, which is more convenient.
[0087] This embodiment provides an image file migration method, which can be applied to an image file migration system. Figure 6 FIG. 1 is a flow chart of a method for migrating an image file 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, it 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 established between the target hard disk 102 and the target object corresponding to the mode switching instruction.
[0090] In step S602 , when the processing device 201 receives the target operating system installation instruction and detects the target hard disk 102 presence signal, it selects a target image file corresponding to the target operating system from at least one image file and transmits data corresponding to the target image file 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, which means 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. This solution adds a storage device 202 and a first conversion device 103 to the power management device 20, and adds a second conversion device 203 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 connect 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 implemented as a computer code that can be recorded in a storage medium, or downloaded through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, 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 magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc. Further, the storage medium can also include a combination of the above-mentioned types of memory. 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 portion 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 form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. 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 that can be accessed by the computer.
[0098] Although the embodiments of the present invention have been described with reference to 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. 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 includes 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 includes a first baseboard management controller, a target hard disk, and a first conversion device; the power management device includes a second conversion device, a storage device, and a processing device, wherein the storage device stores at least one image file; The first baseboard management controller is configured to, upon receiving a mode switching instruction sent by a client, parse the mode switching instruction, determine a target object corresponding to the mode switching instruction, wherein the target object is the first conversion device or a mainboard of the server; and establish a communication link between the target hard disk and the target object corresponding to the mode switching instruction; the processing device is configured to, upon receiving an installation instruction for 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 established; The second conversion device is configured to convert the data corresponding to the target image file into an electrical signal and transmit the electrical signal to the first conversion device via the power line; The first conversion device is used to convert the electrical signal into data and transmit the data to the target hard disk to complete the installation of the target operating system.
2. The image file migration system according to claim 1, wherein: The first baseboard management controller is specifically configured to: 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. 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, wherein: The server further includes a control switch and the first baseboard management controller, which is specifically configured to: 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 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; The first power interface is electrically connected to the second power interface via the power cable, 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 via a universal serial bus (USB), and the target hard disk is connected to the motherboard via a serial advanced technology attachment (SATA) cable; The second protocol converter is specifically used to: 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 configured to: 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 configured to: Converting the electrical signal into data of the Ethernet protocol and transmitting the data to the first protocol converter; The first protocol converter is specifically used to: The Ethernet protocol data is converted into SATA protocol data 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 further 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 configured to start the server and run the target operating system after completing a 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, wherein: 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 cable; the server comprises a first baseboard management controller, a target hard disk, and a first conversion device; The power management device includes 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 includes: 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 and determines 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 establishes a communication link between the target hard disk and the target object corresponding to the mode switching instruction; When the processing device receives an installation instruction for a target operating system and detects an 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 a communication link between the target hard disk and the first conversion device is established; 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 via 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