CN114443148B - Method for centrally managing server starting disk and server - Google Patents
Method for centrally managing server starting disk and server Download PDFInfo
- Publication number
- CN114443148B CN114443148B CN202111541926.8A CN202111541926A CN114443148B CN 114443148 B CN114443148 B CN 114443148B CN 202111541926 A CN202111541926 A CN 202111541926A CN 114443148 B CN114443148 B CN 114443148B
- Authority
- CN
- China
- Prior art keywords
- hard disk
- remote service
- server
- target remote
- bmc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 241001290266 Sciaenops ocellatus Species 0.000 claims description 24
- 238000012423 maintenance Methods 0.000 abstract description 12
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2033—Failover techniques switching over of hardware resources
Abstract
The application discloses a method and a server for centrally managing a server starting disk, which are used for centrally managing the server starting disk and reducing maintenance cost, so that large-scale automatic management of the starting disk is realized. The method comprises the following steps: the method comprises the steps that a Baseboard Management Controller (BMC) of a server receives a mounting request instruction, and a target remote service hard disk is mounted according to the mounting request instruction; the BMC receives a starting instruction of the server; the basic input/output system BIOS of the server obtains the target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores the starting disk of the server; and the BIOS accesses the target remote service hard disk and starts the server according to the starting disk stored in the target remote service hard disk.
Description
Technical Field
The present invention relates to the field of data processing, and in particular, to a method for centrally managing a server boot disk and a server.
Background
The starting disk is a storage disk where an operating system is located in a server system, has a special position in the whole system, and is a storage module accessed first in the system starting process.
The existing conventional starting disk exists in the modes of a physical form mechanical hard disk, a solid state hard disk and the like, for example: built-in hard disk, USB flash disk, CD, mobile hard disk, etc. However, because the starting disk exists in the form of a physical hard disk, when the starting disk fails, on-site maintenance is needed, the maintenance cost is high, large-scale automatic management cannot be realized, and the starting disk is a management short board in the resource pooling process.
Disclosure of Invention
The application provides a method for centrally managing a server starting disk and a server, which are used for centrally managing the starting disk, reducing maintenance cost and realizing large-scale automatic management of the starting disk.
A first aspect of the present application provides a method for centrally managing server boot disks, the method comprising:
the method comprises the steps that a Baseboard Management Controller (BMC) of a server receives a mounting request instruction, and a target remote service hard disk is mounted according to the mounting request instruction;
the BMC receives a starting instruction of the server;
the basic input/output system BIOS of the server obtains the target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores the starting disk of the server;
and the BIOS accesses the target remote service hard disk and starts the server according to the starting disk stored in the target remote service hard disk.
Optionally, the BMC of the server receives a mounting request instruction, and mounting the target remote service hard disk according to the mounting request instruction includes:
the BMC of the server receives an ipmi command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the ipmi command, wherein the ipmi command carries information of the target remote service hard disk;
or (b)
The BMC of the server receives a Redfish command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the Redfish command, wherein the Redfish command carries information of the target remote service hard disk;
or (b)
And the BMC of the server receives a private protocol command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the private protocol command, wherein the private protocol command carries information of the target remote service hard disk.
Optionally, the BMC of the server receives a mounting request instruction, and mounting the target remote service hard disk according to the mounting request instruction includes:
the BMC of the server receives the mounting request instruction, and mounts the target remote service hard disk through the simple storage service S3 according to the mounting request instruction;
or (b)
The BMC of the server receives the mounting request instruction and mounts the target remote service hard disk through NAS service according to the mounting request instruction;
or (b)
And the BMC of the server receives the mounting request instruction and mounts the target remote service hard disk through the SMB service according to the mounting request instruction.
Optionally, before the BMC of the server receives the mount request instruction, the method further includes:
the server stores the boot disk in the target remote service hard disk.
Optionally, after the BMC of the server receives the mount request instruction and mounts the target remote service hard disk according to the mount request instruction, before the BMC receives the start instruction of the server, the method further includes:
the server stores the boot disk in the target remote service hard disk.
Optionally, the server storing the boot disk in the target remote service hard disk includes:
the server copies the system image file to be booted and installed to a target remote service hard disk.
Optionally, the obtaining, by the BIOS of the server, the target remote service hard disk mounted by the BMC according to the start instruction includes:
the BIOS of the server detects the BMC virtual hard disk controller according to the starting instruction;
and the BIOS of the server acquires the target remote service hard disk mounted by the BMC according to the hard disk controller.
Optionally, the obtaining, by the BIOS of the server, the target remote service hard disk mounted by the BMC according to the start instruction includes:
the BIOS of the server obtains the target remote service hard disk according to the starting instruction and the BMC virtual NVMe interface;
or (b)
The BIOS of the server acquires the target remote service hard disk according to the starting instruction and the virtual SATA interface of the BMC;
or (b)
And the BIOS of the server acquires the target remote service hard disk according to the starting instruction and the BMC virtual SAS interface.
Optionally, after the BIOS accesses the target remote service hard disk and starts the server according to the boot disk stored in the target remote service hard disk, the method further includes:
and the BMC disconnects the mounting of the target remote service hard disk.
A second aspect of the present application provides a server, the server comprising:
the mounting unit is used for receiving a mounting request instruction and mounting a target remote service hard disk according to the mounting request instruction;
the receiving unit is used for receiving the starting instruction of the server;
the acquisition unit is used for acquiring the target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores the starting disk of the server;
and the starting unit is used for accessing the target remote service hard disk and starting the server according to the starting disk stored in the target remote service hard disk.
Optionally, the mounting unit is specifically configured to receive an ipmi command input by a user based on an intelligent platform management network interface, and mount, according to the ipmi command, a target remote service hard disk through an iSCSI of an Internet small computer system interface, where the ipmi command carries information of the target remote service hard disk.
Optionally, the mounting unit is specifically configured to receive a Redfish command input by a user based on an intelligent platform management network interface, and mount, according to the Redfish command, a target remote service hard disk through an iSCSI of an Internet small computer system interface, where the Redfish command carries information of the target remote service hard disk.
Optionally, the mounting unit is specifically configured to receive a private protocol command input by a user based on an intelligent platform management network interface, and mount, according to the private protocol command, a target remote service hard disk through an iSCSI of an Internet small computer system interface, where the private protocol command carries information of the target remote service hard disk.
Optionally, the mounting unit is specifically configured to receive a mounting request instruction, and mount the target remote service hard disk through the simple storage service S3 according to the mounting request instruction.
Optionally, the mounting unit is specifically configured to receive a mounting request instruction, and mount the target remote service hard disk through NAS service according to the mounting request instruction.
Optionally, the mounting unit is specifically configured to receive a mounting request instruction, and mount the target remote service hard disk through the SMB service according to the mounting request instruction.
Optionally, the server further includes:
and the storage unit is used for storing the starting disk into the target remote service hard disk.
Optionally, the storage unit is specifically configured to copy the system image file that needs to be booted and installed to the target remote service hard disk.
Optionally, the acquiring unit is specifically configured to detect a virtual hard disk controller according to the start instruction;
and acquiring the target remote service hard disk according to the hard disk controller.
Optionally, the obtaining unit is specifically configured to obtain the target remote service hard disk according to the start instruction and the virtual NVMe interface.
Optionally, the acquiring unit is specifically configured to acquire the target remote service hard disk according to the start instruction and the virtual SAS interface.
Optionally, the acquiring unit is specifically configured to acquire the target remote service hard disk according to the start instruction and the virtual SATA interface.
Optionally, the server further includes:
and the disconnecting unit is used for disconnecting the mounting of the target remote service hard disk.
A third aspect of the present application provides an apparatus for centrally managing server boot disks, the apparatus comprising:
a processor, a memory, an input-output unit, and a bus;
the processor is connected with the memory, the input/output unit and the bus;
the memory holds a program that the processor invokes to perform the method of the first aspect and any of the optional centralized management server boot disk of the first aspect.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a program which when executed on a computer performs the method of the first aspect and any one of the selectable centralized management server boot disks of the first aspect.
From the above technical scheme, the application has the following advantages:
the method comprises the steps that a BMC of a server receives a mounting request instruction, and a target remote service hard disk is mounted according to the mounting request instruction; the BMC receives a starting instruction of a server; the basic input/output system BIOS of the server obtains a target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores a starting disk of the server; the BIOS accesses the target remote service hard disk and starts the server according to the boot disk stored in the target remote service hard disk. According to the scheme, the BMC can mount the target remote service hard disk as a starting disk of the server. When a starting instruction of the server is received, the BOIS starts along with the starting disk in the target remote service hard disk, so that the problem that the physical hard disk is required to be maintained on site when the starting disk is in fault is solved, meanwhile, the starting disk is stored in the remote service hard disk, centralized management of the starting disk can be realized, the management capability of the starting disk of the server is improved, the maintenance cost of the starting disk is reduced, and large-scale automatic management of the starting disk is realized.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of one embodiment of a method for centrally managing server boot disks provided herein;
FIG. 2 is a flowchart of another embodiment of a method for starting up a disk of a centralized management server according to the present application;
FIG. 3 is a schematic structural diagram of an embodiment of a server provided in the present application;
FIG. 4 is a schematic structural diagram of another embodiment of a server provided in the present application;
fig. 5 is a schematic structural diagram of an embodiment of a device for centrally managing server boot disks provided in the present application.
Detailed Description
The application provides a method and a server for centrally managing a server starting disk, which are used for centrally managing the starting disk of the server, reducing maintenance cost and realizing large-scale automatic management of the starting disk.
It should be noted that, the method for centrally managing the server boot disk provided in the present application may be applied to a server, and may also be applied to a terminal, for example, the terminal may be a smart phone or a fixed terminal such as a computer, a tablet computer, a smart television, a smart watch, a portable computer terminal, or a desktop computer. For convenience of explanation, the server is used as an execution body for illustration in the present application. It should be noted that in the embodiment of the present application, the server is specifically provided with a baseboard management controller (BMC, baseboard Management Controller), a basic input output system (BIOS, basic Input Output System), and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of an embodiment of a method for starting up a disk by a central management server, where the method includes:
101. the method comprises the steps that a BMC of a server receives a mounting request instruction, and a target remote service hard disk is mounted according to the mounting request instruction;
in this embodiment, the baseboard management controller BMC of the server is a small operating system independent of the server main system, and large-scale unattended operation, such as remote management, monitoring, installation, etc., of the server can be performed through the BMC.
In this embodiment, the BMC may receive a mount request instruction input by an external user through a network storage protocol and a corresponding interface, and then mount a specified target remote service hard disk according to the mount request instruction. For example, an iSCSI storage module of an Internet small computer system interface may be integrated in the BMC unit, and the target remote service hard disk may be remotely mounted as a local hard disk of the server through an ipmi command and the iSCSI interface. Or the Redfish command can be received through the Redfish interface to mount the target remote service hard disk. Alternatively, the remote storage service may be accessed by a simple storage service (S3, simple Storage Service) to mount the target remote service hard disk. In addition, the target remote service hard disk can be mounted according to other modes, and the method is not limited herein.
102. The BMC receives a starting instruction of a server;
in this embodiment, when the server needs to be started, the BMC receives a start instruction of the server, so that the server is started according to the start instruction. Specifically, the BMC may receive a remote ipmi command input based on the intelligent platform management network interface or a Redfish command input by the Redfish interface, and start up the server according to the ipmi command or the Redfish command. Alternatively, the user may start the server through the entity button, and the BMC receives a start command generated by the user pressing the entity button. In addition, the startup instruction of the server may be received according to other manners to perform startup of the server, which is not limited herein.
103. The basic input/output system BIOS of the server obtains a target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores a starting disk of the server;
in this embodiment, the basic input/output system BIOS of the server is a tamper-proof startup program, and the BIOS is mainly responsible for a system self-checking program and a system self-startup program of the server. Thus, the main functions of the BIOS are to control basic programs after the server is started, including hard disk drive, keyboard setup, floppy disk drive, memory and related devices, etc.
In this embodiment, after the BMC receives the start instruction of the server, the communication connection between the BMC and the BIOS may be performed through the internal bus of the server. And the BIOS acquires the target remote service hard disk mounted by the BMC according to the starting instruction. For example, the virtual hard disk controller may be used to obtain the data, or the data may be obtained according to an NVMe interface (NVM Express), or may be obtained according to other methods, which will not be described in detail in the present embodiment.
It should be noted that, the target remote service hard disk stores a boot disk required for starting the server, and the boot disk may be a boot disk stored in advance in the target remote service hard disk by a user before the target remote service hard disk is mounted on the server. Or after the BMC mounts the target remote service hard disk, the user selects the actually required boot disk by himself, and then installs the boot disk in the target remote service hard disk, which is not limited herein.
104. The BIOS accesses the target remote service hard disk and starts the server according to the boot disk stored in the target remote service hard disk.
In this embodiment, after the BIOS identifies the target remote service hard disk that is mounted, the BIOS accesses the target remote service hard disk, and starts the server according to the boot disk stored in the target remote service hard disk. Specifically, the method includes the steps of entering a Boot Menu interface of a BIOS, determining a mounted target remote service hard disk, selecting the target remote service hard disk to start, and then enabling a server to start the server along with a starting disk stored in the target remote service hard disk when the server starts.
In this embodiment, after receiving the mount request instruction, the BMC of the server mounts the specified target remote service hard disk according to the mount request instruction. When the server needs to be started, the BMC receives a starting instruction of the server. Then, a basic input/output system BIOS of the server acquires a target remote service hard disk mounted by the BMC according to a starting instruction, and a starting disk required by the installation and starting of the server is stored in the target remote service hard disk; then, the BIOS of the server accesses the target remote service hard disk, and selects to start the server according to the starting disk stored in the target remote service hard disk. According to the scheme, the BMC of the server can be pre-mounted with a remote target remote service hard disk as a starting disk. When a starting instruction of the server is received, the starting disk in the remote service hard disk according to the target is selected to start. Therefore, through the scheme, the starting disk is stored in the remote target remote service hard disk, so that not only can the centralized management of the starting disk be realized, but also when the server needs to be started according to the starting disk, the remote service hard disk is started according to the starting disk in the mounted target remote service hard disk, the on-line field maintenance is not needed by the remote service hard disk, the problem that the physical hard disk is needed to be maintained on site when a storage medium of the starting disk is in failure is solved, the management capacity of the starting disk of the server is improved, the maintenance cost of the starting disk is reduced, and the large-scale automatic management of the starting disk is realized.
In order to make the method for centrally managing the server boot disk provided in the present application more obvious, the following details are provided for the method for centrally managing the server boot disk provided in the present application:
referring to fig. 2, fig. 2 is a schematic diagram of another embodiment of a method for centrally managing server boot disks provided in the present application, where the method includes:
201. the server stores the starting disc into a target remote service hard disc;
in this embodiment, the server stores the boot disk in the target remote service hard disk, and specifically, the server copies the system image file that needs to be booted and installed into the target remote service hard disk. For example, if the operating system that the Server needs to boot up to be installed is Windows Server 2003, the Server copies the system image file of the Windows Server 2003 operating system to the target remote service hard disk. Alternatively, the operating system may be installed in the target remote service hard disk by referring to a method of installing the operating system by an entity.
It should be noted that, the target remote service hard disk in this embodiment may be a target remote service hard disk in a target location specified by a user, for example, a block storage in a cloud storage service may be determined as the target remote service hard disk according to an actual requirement of the user. In this embodiment, the boot disk of the server is pre-stored in the target remote service hard disk, so that after the target remote service hard disk is mounted by the BMC of the server, the server main system can be mounted and started according to the boot disk in the target remote service hard disk, thereby improving the starting efficiency of the server.
Optionally, in this embodiment, after the BMC of the server receives the mount request instruction, the target remote service hard disk is mounted according to the mount request instruction, and then the boot disk is stored in the target remote service hard disk. For example, if the operating system corresponding to the boot disk pre-stored in the target remote service hard disk is not the operating system actually required by the user, the user may store the boot disk corresponding to the actually required operating system in the target remote service hard disk after the BMC mounts the target remote hard disk, and the user selects the boot disk to be stored by himself, thereby improving user experience.
202. The method comprises the steps that a BMC of a server receives a mounting request instruction, and a target remote service hard disk is mounted according to the mounting request instruction;
in this embodiment, the BMC mounts the target remote service hard disk in a plurality of ways, and the following is exemplified:
1. and the BMC receives an ipmi command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the ipmi command, wherein the ipmi command carries information of the target remote service hard disk.
In this embodiment, the iSCSI storage module is integrated in the BMC component, and when a remote access system is required, an external user sends an IPMI command to the BMC, and the BMC receives and redirects the local serial interface according to the IPMI session, so as to allow access to the remote system, the console, or the remote storage module. Thus, the BMC may mount the target remote service hard disk according to the ipmi command. The target remote service hard disk is an iSCSI storage hard disk, so that the target remote virtual hard disk mounted by the BMC is a real local hard disk relative to the server system.
2. And the BMC receives a Redfish command input by a user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the iSCSI of the Internet small computer system interface according to the Redfish command, wherein the Redfish command carries information of the target remote service hard disk.
In this embodiment, the BMC may communicate with the external device based on the intelligent platform management network interface and the Rredfish interface, and specifically, may perform communication connection through the Redfish command. Thus, the external user may control the BMC to connect to the designated target remote service hard disk by inputting a Redfish command. The Redfish command carries the hard disk information of the target remote service hard disk, so that the BMC can mount the target remote service hard disk according to the received Redfish command.
3. And the BMC receives a private protocol command input by a user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the iSCSI of the Internet small computer system interface according to the private protocol command, wherein the private protocol command carries information of the target remote service hard disk.
In this embodiment, the BMC may receive a private protocol command input by a user based on the intelligent platform management network interface, determine a target remote service hard disk to mount according to the private protocol command, and mount the target remote service hard disk through iSCSI. The private protocol command may be a command used according to a private protocol standard that is self-defined within a user or within an enterprise. The private protocol is applicable to the BMC device of the server.
4. And the BMC receives the mounting request instruction and mounts the target remote service hard disk through the simple storage service S3 according to the mounting request instruction.
In this embodiment, S3 is theoretically a global storage area network, and may be specifically represented as an oversized hard disk. The BMC can receive the corresponding mounting request instruction, then accesses the remote storage service through the S3 interface, and mounts the target remote service hard disk corresponding to the remote storage service.
5. And the BMC receives the mounting request instruction and mounts the target remote service hard disk through NAS service according to the mounting request instruction.
The NAS network can reasonably, effectively and safely manage data in the network, and has the functions of file sharing, backup disaster recovery and the like. In this embodiment, the BMC may receive a mounting request instruction input by an external user, and determine and mount, according to the mounting request instruction, a target remote service hard disk corresponding to the NAS network memory device.
6. And the BMC receives the mounting request instruction and mounts the target remote service hard disk through the SMB service according to the mounting request instruction.
The SMB service can be used for Wap connectivity and direct information communication between clients and servers. In this embodiment, the target remote service hard disk may be shared as an SMB network storage. And the BMC receives a mounting request instruction input by an external user, and shares a mounting target remote service hard disk through the SMB service according to the mounting request instruction.
In this embodiment, the target remote service hard disk may also be mounted by other manners, which is not limited herein.
203. The BMC receives a starting instruction of a server;
step 203 in this embodiment is similar to step 102 in the embodiment shown in fig. 1, and is not described here again.
204. The basic input/output system BIOS of the server obtains a target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores a starting disk of the server;
in this embodiment, the BIOS may obtain the target remote service hard disk in a variety of manners, and the following is exemplified:
1. the BIOS detects the BMC virtual hard disk controller according to the starting instruction; and then acquiring the target remote service hard disk mounted by the BMC according to the hard disk controller.
In this embodiment, command and data transmission between the BIOS and the target remote service hard disk is required to be controlled and data transmitted through the intermediate platform of the hard disk controller. Specifically, after detecting and confirming the hard disk controller, the BIOS may receive a Serial ATA (SATA) command through the hard disk controller, and obtain the target remote service hard disk mounted by the BMC according to the SATA command.
2. And the BIOS acquires the target remote service hard disk according to the starting instruction and the virtual NVMe interface of the BMC.
The nonvolatile memory host controller interface Specification (NVMe, NVM Express) is a logical device interface Specification. It is a bus transport protocol specification based on a device logic interface for accessing non-volatile memory media attached via a PCIE bus (PCI Express). Therefore, in this embodiment, the BIOS may also perform data transmission with the BMC through the NVMe interface to obtain the mounted target remote service hard disk.
3. And the BIOS acquires the target remote service hard disk according to the starting instruction and the virtual SATA interface of the BMC.
In this embodiment, the server enters a BIOS mode according to the start command, determines a virtual SATA interface of the BMC, and obtains the target remote service hard disk through the SATA interface and SATA data transmission according to the SATA interface.
4. And the BIOS acquires the target remote service hard disk according to the starting instruction and the SAS interface of the BMC.
In this embodiment, the server enters a BIOS mode according to the start command, determines a SAS interface of the BMC virtual, and obtains a target remote service hard disk through the SAS interface and SAS data transmission according to the SAS interface.
In this embodiment, the target remote service hard disk may also be obtained by other manners, which is not limited herein.
205. The BIOS accesses a target remote service hard disk and starts a server according to a starting disk stored in the target remote service hard disk;
step 205 in this embodiment is similar to step 104 in the embodiment shown in fig. 1, and is not repeated here.
206. The BMC disconnects the mounting of the target remote service hard disk.
Optionally, in this embodiment, after the server system is started, the BMC may disconnect the mounting of the target remote service hard disk, so as to release the resource.
Optionally, after the system of the server is started, the BMC may further destroy the boot disk stored in the mounted target remote service hard disk, so as to release the storage resource in the target remote service hard disk, so that the target remote service hard disk may be used as a virtual hard disk of the server to perform storage management of other resources or files, thereby improving the storage capability of the server.
In this embodiment, the baseboard management controller BMC of the server may receive the mount request instruction in a plurality of ways, and then mount the target remote service hard disk according to the mount instruction. When the starting server needs to be reinstalled, the BMC receives a starting instruction of the server. And the BIOS acquires a target remote service hard disk according to the starting instruction, wherein the starting disk of the server is stored in the target remote service hard disk. Specifically, the boot disk of the server may be stored in the target remote service hard disk in advance, or the boot disk of the corresponding operating system may be stored according to the actual requirement of the user after the target remote service hard disk is mounted on the server. Then, the BIOS accesses the target remote service hard disk according to the start instruction, and selects a start-up server according to the start-up disk stored in the target remote service hard disk. Finally, after determining that the server is started, the BMC may further disconnect the mounting of the target remote service hard disk to release the resource. Therefore, through the scheme, the starting disk is stored in the remote target remote service hard disk, and centralized management of the starting disk can be realized. When the remote service hard disk is required to be started according to the starting disk, the target remote service hard disk is mounted and then the starting disk in the target remote service hard disk is selected to be started, so that the starting disk is stored in the remote service hard disk without on-site maintenance, the problem that a physical hard disk is required to be maintained on site when a storage medium of the starting disk fails is solved, the management capacity of the server starting disk can be improved, the maintenance cost of the server starting disk is reduced, and the large-scale automatic management of the starting disk is realized.
The method for centrally managing the server boot disk provided by the application is described above, and the server provided by the application is described below:
referring to fig. 3, fig. 3 is an embodiment of a server provided in the present application, where the server includes:
a mounting unit 301, configured to receive a mounting request instruction, and mount a target remote service hard disk according to the mounting request instruction;
a receiving unit 302, configured to receive a start instruction of a server;
an obtaining unit 303, configured to obtain the target remote service hard disk according to the start instruction, where the target remote service hard disk stores a start disk of the server;
and the starting unit 304 is configured to access the target remote service hard disk, and start the server according to the starting disk stored in the target remote service hard disk.
In this embodiment, the functions executed by each unit correspond to the steps in the embodiment of the method shown in fig. 1, and are not described herein again.
In this embodiment, the mounting unit 301 receives a mounting request instruction, and mounts a target remote service hard disk according to the mounting request instruction; the receiving unit 302 receives a start instruction of a server; the obtaining unit 303 obtains a target remote service hard disk according to the start instruction, where the target remote service hard disk stores a start disk of a server; the startup unit 304 accesses the target remote service hard disk and starts up the server according to the startup disk stored in the target remote service hard disk. By the scheme, the remote target remote service hard disk can be mounted as a starting disk of the server. When a starting instruction of the server is received, the BOIS starts along with the starting disk in the target remote service hard disk, so that the problem that the physical hard disk is required to be maintained on site when the starting disk is in fault is solved, meanwhile, the starting disk is stored in the remote service hard disk, centralized management of the starting disk can be realized, the management capability of the starting disk of the server is improved, the maintenance cost of the starting disk is reduced, and large-scale automatic management of the starting disk is realized.
Referring to fig. 4 for a detailed description of a server provided in the present application, fig. 4 is another embodiment of a server provided in the present application, where the server includes:
a mounting unit 402, configured to receive a mounting request instruction, and mount a target remote service hard disk according to the mounting request instruction;
a receiving unit 403, configured to receive a startup instruction of the server;
an obtaining unit 404, configured to obtain the target remote service hard disk according to the start instruction, where the target remote service hard disk stores a start disk of a server;
and the starting unit 405 is configured to access the target remote service hard disk, and start the server according to the starting disk stored in the target remote service hard disk.
Optionally, the mounting unit 402 is specifically configured to receive an ipmi command input by a user based on an intelligent platform management network interface, mount a target remote service hard disk through an iSCSI of an Internet small computer system interface according to the ipmi command, where the ipmi command carries information of the target remote service hard disk.
Optionally, the mounting unit 402 is specifically configured to receive a Redfish command input by a user based on an intelligent platform management network interface, and mount, according to the Redfish command, a target remote service hard disk through an iSCSI of an Internet small computer system interface, where the Redfish command carries information of the target remote service hard disk.
Optionally, the mounting unit 402 is specifically configured to receive a private protocol command input by a user based on an intelligent platform management network interface, and mount, according to the private protocol command, a target remote service hard disk through an iSCSI interface of an Internet small computer system, where the private protocol command carries information of the target remote service hard disk.
Optionally, the mounting unit 402 is specifically configured to receive a mounting request instruction, and mount the target remote service hard disk through the simple storage service S3 according to the mounting request instruction.
Optionally, the mounting unit 402 is specifically configured to receive a mounting request instruction, and mount the target remote service hard disk through NAS service according to the mounting request instruction.
Optionally, the mounting unit 402 is specifically configured to receive a mounting request instruction, and mount the target remote service hard disk through the SMB service according to the mounting request instruction.
Optionally, the server further comprises:
the storage unit 401 is configured to store the boot disk in the target remote service hard disk.
Optionally, the storage unit 401 is specifically configured to copy the system image file that needs to be booted and installed into the target remote service hard disk.
Optionally, the obtaining unit 404 is specifically configured to detect a virtual hard disk controller according to the start instruction;
and acquiring the target remote service hard disk according to the hard disk controller.
Optionally, the obtaining unit 404 is specifically configured to obtain the target remote service hard disk according to the start instruction and the virtual NVMe interface.
Optionally, the obtaining unit 404 is specifically configured to obtain the target remote service hard disk according to the start instruction and the virtual SAS interface.
Optionally, the obtaining unit 404 is specifically configured to obtain the target remote service hard disk according to the start instruction and the virtual SATA interface.
Optionally, the server further comprises:
and a disconnecting unit 406, configured to disconnect the mount of the target remote service hard disk.
In this embodiment, the functions executed by each unit correspond to the steps in the method embodiment shown in fig. 2, and are not described herein.
In this embodiment, the mounting unit 402 may receive the mounting request instruction in various manners, and mount the target remote service hard disk according to the mounting instruction. When the start-up server needs to be reinstalled, the receiving unit 403 receives a start-up instruction of the server. The acquisition unit 404 acquires the target remote service hard disk according to the start instruction. The target remote service hard disk stores the boot disk of the server, specifically, the storage unit 401 may store the boot disk of the server in the target remote service hard disk in advance, or the storage unit 401 may store the boot disk of the corresponding operating system according to the actual requirement of the user after the mounting unit 402 mounts the target remote service hard disk. The startup unit 405 accesses the target remote service hard disk and starts up the server according to the startup disk of the server stored in the target remote service hard disk. When it is determined that the server startup is completed, the disconnection unit 406 disconnects the mounting with the target remote service hard disk, so that the release of the resource can be performed. Therefore, through each unit in the server, firstly, the starting disk can be stored in the target remote service hard disk, and centralized management of the starting disk is realized. Secondly, when the target remote service hard disk is required to be started according to the starting disk, the mounting unit 402 mounts the target remote service hard disk according to the mounting request instruction, so that the starting disk of the server is not required to be stored in the physical hard disk according to the starting disk in the target remote service hard disk, the problem that the physical hard disk is required to be maintained on site when a storage medium of the starting disk is in failure is solved, the management capability of the starting disk of the server is improved, the maintenance cost of the starting disk of the server is reduced, and the large-scale automatic management of the starting disk is realized.
The present application further provides an apparatus for centrally managing a server boot disk, referring to fig. 5, fig. 5 is an embodiment of an apparatus for centrally managing a server boot disk provided in the present application, where the apparatus includes:
a processor 501, a memory 502, an input/output unit 503, and a bus 504;
the processor 501 is connected to the memory 502, the input/output unit 503, and the bus 504;
the memory 502 holds a program that the processor 501 invokes to perform any of the methods of centrally managing server boot disks described above.
The present application also relates to a computer readable storage medium having a program stored thereon, which when run on a computer causes the computer to perform a method of any of the above centralized management server boot disks.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random access memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Claims (9)
1. A method for centrally managing server boot disks, the method comprising:
the method comprises the steps that a Baseboard Management Controller (BMC) of a server receives a mounting request instruction, and a target remote service hard disk is mounted according to the mounting request instruction;
the BMC receives a starting instruction of the server;
the basic input/output system BIOS of the server obtains the target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores the starting disk of the server;
the BIOS accesses the target remote service hard disk and starts the server according to the starting disk stored in the target remote service hard disk;
the obtaining, by the BIOS of the server, the target remote service hard disk mounted by the BMC according to the start instruction includes:
the BIOS of the server obtains the target remote service hard disk according to the starting instruction and the BMC virtual NVMe interface;
or (b)
The BIOS of the server acquires the target remote service hard disk according to the starting instruction and the virtual SATA interface of the BMC;
or (b)
And the BIOS of the server acquires the target remote service hard disk according to the starting instruction and the BMC virtual SAS interface.
2. The method of claim 1, wherein the BMC of the server receiving a mount request instruction, mounting a target remote service hard disk according to the mount request instruction comprises:
the BMC of the server receives an ipmi command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the ipmi command, wherein the ipmi command carries information of the target remote service hard disk;
or (b)
The BMC of the server receives a Redfish command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the Redfish command, wherein the Redfish command carries information of the target remote service hard disk;
or (b)
And the BMC of the server receives a private protocol command input by a user based on an intelligent platform management network interface, and mounts a target remote service hard disk through an Internet small computer system interface iSCSI according to the private protocol command, wherein the private protocol command carries information of the target remote service hard disk.
3. The method of claim 1, wherein the BMC of the server receiving a mount request instruction, mounting a target remote service hard disk according to the mount request instruction comprises:
the BMC of the server receives the mounting request instruction, and mounts the target remote service hard disk through the simple storage service S3 according to the mounting request instruction;
or (b)
The BMC of the server receives the mounting request instruction and mounts the target remote service hard disk through NAS service according to the mounting request instruction;
or (b)
And the BMC of the server receives the mounting request instruction and mounts the target remote service hard disk through the SMB service according to the mounting request instruction.
4. The method of claim 1, wherein before the BMC of the server receives the mount request instruction, the method further comprises:
the server stores the boot disk in the target remote service hard disk.
5. The method of claim 1, wherein after the BMC of the server receives the mount request instruction and mounts the target remote service hard disk according to the mount request instruction, the method further comprises, before the BMC receives the start instruction of the server:
the server stores the boot disk in the target remote service hard disk.
6. The method of any one of claims 4 or 5, wherein the server storing the boot disk in the target remote service hard disk comprises:
the server copies the system image file to be booted and installed to a target remote service hard disk.
7. The method of any of claims 1 to 5, wherein the obtaining, by the BIOS of the server, the target remote service hard disk mounted by the BMC according to the start-up instruction comprises:
the BIOS of the server detects the BMC virtual hard disk controller according to the starting instruction;
and the BIOS of the server acquires the target remote service hard disk mounted by the BMC according to the hard disk controller.
8. The method of any of claims 1 to 5, wherein after the BIOS accesses the target remote service hard disk and boots the server according to the boot disk stored by the target remote service hard disk, the method further comprises:
and the BMC disconnects the mounting of the target remote service hard disk.
9. A server, the server comprising:
the mounting unit is used for receiving a mounting request instruction and mounting a target remote service hard disk according to the mounting request instruction;
the receiving unit is used for receiving the starting instruction of the server;
the acquisition unit is used for acquiring the target remote service hard disk according to the starting instruction, wherein the target remote service hard disk stores the starting disk of the server;
the starting unit is used for accessing the target remote service hard disk and starting the server according to the starting disk stored in the target remote service hard disk;
the obtaining unit is specifically configured to obtain the target remote service hard disk according to the starting instruction and the BMC virtual NVMe interface;
or (b)
Acquiring the target remote service hard disk according to the starting instruction and the BMC virtual SATA interface;
or (b)
And acquiring the target remote service hard disk according to the starting instruction and the BMC virtual SAS interface.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111541926.8A CN114443148B (en) | 2021-12-16 | 2021-12-16 | Method for centrally managing server starting disk and server |
PCT/CN2022/105090 WO2023109107A1 (en) | 2021-12-16 | 2022-07-12 | Method for centralized management of startup disks of server, and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111541926.8A CN114443148B (en) | 2021-12-16 | 2021-12-16 | Method for centrally managing server starting disk and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114443148A CN114443148A (en) | 2022-05-06 |
CN114443148B true CN114443148B (en) | 2024-04-02 |
Family
ID=81363407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111541926.8A Active CN114443148B (en) | 2021-12-16 | 2021-12-16 | Method for centrally managing server starting disk and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114443148B (en) |
WO (1) | WO2023109107A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443148B (en) * | 2021-12-16 | 2024-04-02 | 宝德计算机系统股份有限公司 | Method for centrally managing server starting disk and server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694519A (en) * | 2020-05-29 | 2020-09-22 | 北京世纪互联宽带数据中心有限公司 | Method and system for mounting cloud hard disk on bare metal server and server |
CN112256393A (en) * | 2020-10-22 | 2021-01-22 | 上海云轴信息科技有限公司 | Resource management method and equipment for bare metal server |
CN112817644A (en) * | 2021-01-20 | 2021-05-18 | 浪潮电子信息产业股份有限公司 | Virtual CD driver generation method, device and computer readable storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580475B (en) * | 2015-01-13 | 2018-03-09 | 华为技术有限公司 | Long-range control method, terminal device, management server and tele-control system |
CN109639803B (en) * | 2018-12-18 | 2021-12-03 | 郑州云海信息技术有限公司 | Method and system for remotely and automatically deploying server OS (operating system) through BMC (baseboard management controller) |
CN111475172B (en) * | 2020-02-29 | 2023-05-16 | 新华三大数据技术有限公司 | Bare metal deployment method and device |
CN113626819A (en) * | 2021-06-23 | 2021-11-09 | 苏州浪潮智能科技有限公司 | Method and system for safely mounting storage device |
CN114443148B (en) * | 2021-12-16 | 2024-04-02 | 宝德计算机系统股份有限公司 | Method for centrally managing server starting disk and server |
-
2021
- 2021-12-16 CN CN202111541926.8A patent/CN114443148B/en active Active
-
2022
- 2022-07-12 WO PCT/CN2022/105090 patent/WO2023109107A1/en unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694519A (en) * | 2020-05-29 | 2020-09-22 | 北京世纪互联宽带数据中心有限公司 | Method and system for mounting cloud hard disk on bare metal server and server |
CN112256393A (en) * | 2020-10-22 | 2021-01-22 | 上海云轴信息科技有限公司 | Resource management method and equipment for bare metal server |
CN112817644A (en) * | 2021-01-20 | 2021-05-18 | 浪潮电子信息产业股份有限公司 | Virtual CD driver generation method, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2023109107A1 (en) | 2023-06-22 |
CN114443148A (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8997090B2 (en) | Installing an operating system in a host system | |
US10936295B2 (en) | Software update system | |
US10031736B2 (en) | Automatic system software installation on boot | |
US9003000B2 (en) | System and method for operating system installation on a diskless computing platform | |
US8245022B2 (en) | Method and system to support ISCSI boot through management controllers | |
CN111989681A (en) | Automatically deployed Information Technology (IT) system and method | |
US20170228228A1 (en) | Remote launch of deploy utility | |
US10430082B2 (en) | Server management method and server for backup of a baseband management controller | |
US20190182110A1 (en) | Raid configuration | |
US20120240181A1 (en) | Techniques for securing a checked-out virtual machine in a virtual desktop infrastructure | |
CN105721534A (en) | System and method for network-based iscsi boot parameter deployment | |
US20110246983A1 (en) | Wireless Network Backup Device and Method | |
CN114443148B (en) | Method for centrally managing server starting disk and server | |
US11321246B2 (en) | Support information provisioning system | |
US9792168B2 (en) | System and method for cloud remediation of a client with a non-bootable storage medium | |
US20060080399A1 (en) | Remote configuration management for data processing units | |
CN105786659A (en) | Remote debugging method and server | |
CN107861761B (en) | Starting method and system of physical host | |
CN102843397A (en) | Distributed system and distributed method for automatically copying hard disk | |
US11221858B1 (en) | System control processor (SCP) boot system | |
US10747706B2 (en) | Server event log storage and retrieval system | |
US11327852B1 (en) | Live migration/high availability system | |
US11334367B2 (en) | Placeholder boot option and boot option replacement system | |
US20230229426A1 (en) | Out-of-band firmware update | |
US20240028723A1 (en) | Suspicious workspace instantiation detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |