WO2023109107A1 - 一种集中管理服务器启动盘的方法及服务器 - Google Patents

一种集中管理服务器启动盘的方法及服务器 Download PDF

Info

Publication number
WO2023109107A1
WO2023109107A1 PCT/CN2022/105090 CN2022105090W WO2023109107A1 WO 2023109107 A1 WO2023109107 A1 WO 2023109107A1 CN 2022105090 W CN2022105090 W CN 2022105090W WO 2023109107 A1 WO2023109107 A1 WO 2023109107A1
Authority
WO
WIPO (PCT)
Prior art keywords
hard disk
remote service
server
target remote
bmc
Prior art date
Application number
PCT/CN2022/105090
Other languages
English (en)
French (fr)
Inventor
莫良伟
李瑞杰
张云霞
马竹茂
Original Assignee
宝德计算机系统股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 宝德计算机系统股份有限公司 filed Critical 宝德计算机系统股份有限公司
Publication of WO2023109107A1 publication Critical patent/WO2023109107A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error 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/202Error 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/2023Failover techniques
    • G06F11/2033Failover techniques switching over of hardware resources

Definitions

  • the present application relates to the field of data processing, in particular to a method and server for centralized management of server startup disks.
  • the boot disk is the storage disk where the operating system is located in the server system. It has a special status in the entire system and is the first storage module accessed during the system startup process.
  • boot disks exist in physical forms such as mechanical hard disks and solid-state hard disks, such as built-in hard disks, U disks, CDs, and mobile hard disks.
  • the boot disk exists in the form of a physical hard disk, when the boot disk fails, on-site maintenance is required, the maintenance cost is high, and large-scale automatic management cannot be realized, which is a management shortcoming in the process of resource pooling. plate.
  • the present application provides a method for centrally managing boot disks of servers and a server, which are used for centralized management of boot disks, reducing maintenance costs, and realizing large-scale automatic management of boot disks.
  • the first aspect of the present application provides a method for centralized management of server startup disks, the method comprising:
  • the baseboard management controller BMC of the server receives the mount request instruction, and mounts the target remote service hard disk according to the mount request instruction;
  • the BMC receives the startup instruction of the server
  • the basic input and output system BIOS of the server obtains the target remote service hard disk according to the startup command, and the target remote service hard disk stores the startup 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.
  • the BMC of the server receives a mount request instruction, and mounting the target remote service hard disk according to the mount request instruction includes:
  • the BMC of the server receives the ipmi command input by the user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the Internet small computer system interface iSCSI according to the ipmi command, and the ipmi command carries the information of the target remote service hard disk ;
  • the BMC of the server receives the Redfish command input by the user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the Internet small computer system interface iSCSI according to the Redfish command, and the Redfish command carries the information of the target remote service hard disk ;
  • the BMC of the server receives the private protocol command input by the user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the Internet small computer system interface iSCSI according to the private protocol command, and the private protocol command carries the target remote service Hard disk information.
  • the BMC of the server receives a mount request instruction, and mounting the target remote service hard disk according to the mount request instruction includes:
  • the BMC of the server receives the mount request instruction, and mounts the target remote service hard disk through the simple storage service S3 according to the mount request instruction;
  • the BMC of the server receives the mount request instruction, and mounts the target remote service hard disk through the NAS service according to the mount request instruction;
  • the BMC of the server receives the mount request instruction, and mounts the target remote service hard disk through the SMB service according to the mount request instruction.
  • the method before the BMC of the server receives the mount request instruction, the method further includes:
  • the server stores the startup disk in the target remote service hard disk.
  • the method further includes:
  • the server stores the startup disk in the target remote service hard disk.
  • the server storing the startup disk in the target remote service hard disk includes:
  • the server copies the system image file that needs to be booted and installed to the target remote service hard disk.
  • the BIOS of the server obtaining the target remote service hard disk mounted by the BMC according to the startup instruction includes:
  • the BIOS of the server detects the virtual hard disk controller of the BMC according to the startup command
  • the BIOS of the server acquires the target remote service hard disk mounted on the BMC according to the hard disk controller.
  • the BIOS of the server obtaining the target remote service hard disk mounted by the BMC according to the startup instruction includes:
  • the BIOS of the server obtains the target remote service hard disk according to the startup command and the virtual NVMe interface of the BMC;
  • the BIOS of the server obtains the target remote service hard disk according to the startup command and the virtual SATA interface of the BMC;
  • the BIOS of the server obtains the target remote service hard disk according to the startup command and the virtual SAS interface of the BMC.
  • the method further includes:
  • the BMC disconnects the mounting of the target remote service hard disk.
  • the second aspect of the present application provides a server, the server includes:
  • a mount unit configured to receive a mount request instruction, and mount the target remote service hard disk according to the mount request instruction;
  • the receiving unit is used to receive the starting instruction of the server
  • An acquisition unit configured to acquire the target remote service hard disk according to the startup instruction, where the target remote service hard disk stores the startup disk of the server;
  • a starting unit is configured to access the target remote service hard disk, and start the server according to the boot disk stored on the target remote service hard disk.
  • the mounting unit is specifically configured to receive the ipmi command input by the user based on the intelligent platform management network interface, and mount the target remote service hard disk through the Internet small computer system interface iSCSI according to the ipmi command, and the ipmi command carries There is information about the target remote service hard disk.
  • the mounting unit is specifically configured to receive the Redfish command input by the user based on the intelligent platform management network interface, and mount the target remote service hard disk through the Internet small computer system interface iSCSI according to the Redfish command, and the Redfish command carries There is information about the target remote service hard disk.
  • the mounting unit is specifically configured to receive a private protocol command input by the user based on the intelligent platform management network interface, and mount the target remote service hard disk through the Internet small computer system interface iSCSI according to the private protocol command, and the private
  • the protocol command carries the information of the target remote service hard disk.
  • the mount unit is specifically configured to receive a mount request instruction, and mount the target remote service hard disk through the simple storage service S3 according to the mount request instruction.
  • the mount unit is specifically configured to receive a mount request instruction, and mount a target remote service hard disk through NAS services according to the mount request instruction.
  • the mount unit is specifically configured to receive a mount request instruction, and mount the target remote service hard disk through the SMB service according to the mount request instruction.
  • the server also includes:
  • the storage unit is used to store the startup disk in the target remote service hard disk.
  • 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.
  • the obtaining unit is specifically configured to detect a virtual hard disk controller according to the startup instruction
  • the obtaining unit is specifically configured to obtain the target remote service hard disk according to the startup instruction and the virtual NVMe interface.
  • the obtaining unit is specifically configured to obtain the target remote service hard disk according to the startup instruction and the virtual SAS interface.
  • the obtaining unit is specifically configured to obtain the target remote service hard disk according to the startup instruction and the virtual SATA interface.
  • the server also includes:
  • the disconnection unit is configured to disconnect the mounting of the target remote service hard disk.
  • the third aspect of the present application provides a device for centralized management of server boot disks, the device comprising:
  • the processor is connected to the memory, the input and output unit and the bus;
  • the memory stores a program
  • the processor invokes the program to execute the first aspect and the optional method for centrally managing server startup disks in any one of the first aspect.
  • the fourth aspect of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a program, and when the program is executed on a computer, the first aspect and any optional one of the first aspect are executed.
  • the present application has the following advantages:
  • the baseboard management controller (BMC) of the server receives the mount request instruction, and mounts the target remote service hard disk according to the mount request instruction; the BMC receives the start command of the server;
  • the boot disk of the server is stored in the remote service hard disk;
  • 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 BMC can mount the target remote service hard disk as the boot disk of the server.
  • BOIS starts up following the boot disk in the target remote service hard disk, thereby solving the problem that the physical hard disk as the boot disk needs on-site maintenance when it fails, and at the same time stores the boot disk in the remote service hard disk. It can also realize the centralized management of the startup disk, thereby improving the management ability of the server startup disk and reducing the maintenance cost of the startup disk, and realizing the large-scale automatic management of the startup disk.
  • Fig. 1 is a schematic flow chart of an embodiment of the method for centralized management server startup disk provided by the present application
  • FIG. 2 is a schematic flow chart of another embodiment of the method for centralized management of server startup disks provided by the present application
  • FIG. 3 is a schematic structural diagram of an embodiment of a server provided by the present application.
  • FIG. 4 is a schematic structural diagram of another embodiment of the server provided by the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of an apparatus for centrally managing server startup disks provided by the present application.
  • the present application provides a method and server for centralized management of server startup disks, which are used for centralized management of server startup disks while reducing maintenance costs and realizing large-scale automatic management of startup disks.
  • the method for centralized management of server startup disks can be applied to servers or terminals, for example, terminals can be smart phones or computers, tablet computers, smart TVs, smart watches, portable computer terminals It can also be a fixed terminal such as a desktop computer.
  • terminals can be smart phones or computers, tablet computers, smart TVs, smart watches, portable computer terminals It can also be a fixed terminal such as a desktop computer.
  • a server is used as an execution subject for illustration.
  • the server is specifically provided with components such as a baseboard management controller (BMC, Baseboard Management Controller), a basic input and output system (BIOS, Basic Input Output System).
  • BMC Baseboard management controller
  • BIOS Basic Input Output System
  • Fig. 1 is an embodiment of the method for the centralized management server startup disk that the present application provides, and this method comprises:
  • the baseboard management controller BMC of the server receives the mount request instruction, and mounts the target remote service hard disk according to the mount request instruction;
  • the baseboard management controller (BMC) of the server is a small operating system independent of the main system of the server. Large-scale unattended operations can be performed through the BMC, such as remote management, monitoring, and installation of the server.
  • the BMC can receive a mount request command 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 command.
  • an Internet small computer system interface iSCSI storage module can be integrated in the BMC component, and the target remote service hard disk can be remotely mounted as the local hard disk of the server through the ipmi command and the iSCSI interface.
  • the target remote service hard disk can also be mounted in other ways, which are not limited here.
  • the BMC receives the startup command of the server
  • the BMC when the server needs to be started, receives the start instruction of the server, so that the server is started according to the start instruction.
  • the start instruction of the BMC receiving the server may be that the BMC receives the remote ipmi command input based on the intelligent platform management network interface or the Redfish command input by the Redfish interface, and starts the server according to the ipmi command or the Redfish command.
  • the user may also start the server through a physical button, and the BMC receives a starting instruction generated by the user pressing the physical button.
  • the startup instruction of the server may also be received in other ways to start the server, which is not specifically limited here.
  • the BIOS of the basic input and output system of the server obtains the target remote service hard disk according to the startup command, and the target remote service hard disk stores the startup disk of the server;
  • the basic input and output system BIOS of the server is an immutable start-up program, and the BIOS is mainly responsible for the system self-test program and the system self-start program of the server. Therefore, the main function of the BIOS is to control the basic programs after the server is started, including hard disk drives, keyboard settings, floppy disk drives, memory and related devices.
  • the communication connection between the BMC and the BIOS can be performed through the internal bus of the server.
  • the BIOS obtains the target remote service hard disk mounted by the BMC according to the startup instruction. For example, it can be obtained through a virtual hard disk controller, or obtained according to the NVMe interface (NVM Express), or obtained according to other methods, which will not be described in detail in this implementation, and the specific method of obtaining will be described in detail in subsequent embodiments.
  • the target remote service hard disk stores the boot disk required for server startup
  • the boot disk may be a boot disk pre-stored by the user on the target remote service hard disk before the server mounts the target remote service hard disk.
  • the user selects the actual required boot disk, and then installs the boot disk on the target remote service hard disk, which is not limited here.
  • 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 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, enter the Boot Menu interface of the BIOS, determine the target remote service hard disk to mount, select the target remote service hard disk to start, and then the server starts the server following the boot disk stored in the target remote service hard disk when starting.
  • the baseboard management controller BMC of the server mounts the specified target remote service hard disk according to the mount request instruction.
  • the BMC receives a start instruction from the server.
  • the basic input and output system BIOS of the server acquires the target remote service hard disk mounted by the BMC according to the startup command, and the boot disk required for server installation and startup is stored in the target remote service hard disk; then, the server's BIOS accesses the target remote service hard disk.
  • Service hard disk select to start the server according to the boot disk stored in the target remote service hard disk.
  • the BMC of the server can pre-mount the remote target remote service hard disk as a boot disk.
  • the boot disk is stored in the remote target remote service hard disk, not only can realize the centralized management of the boot disk, but also when the server needs to start according to the
  • the remote service hard disk does not require offline on-site maintenance, which solves the problem that the physical hard disk as the storage medium of the boot disk needs on-site maintenance when a failure occurs.
  • the maintenance cost of the startup disk is reduced, and the large-scale automatic management of the startup disk is realized.
  • Fig. 2 is another embodiment of the method for centralized management server boot disk provided by the present application, the method includes:
  • the server stores the startup disk in the target remote service hard disk
  • the server stores the startup disk in the target remote service hard disk, specifically, the server copies the system image file that needs to be booted and installed to the target remote service hard disk.
  • the server copies the system image file that needs to be booted and installed to the target remote service hard disk.
  • the operating system to be installed on the server is Windows Server 2003
  • the server will copy the system image file of the Windows Server 2003 operating system to the target remote service hard disk.
  • the operating system may also be installed in the target remote service hard disk by referring to the method of installing the operating system in a physical manner.
  • the target remote service hard disk in this embodiment can be the target remote service hard disk at the target location specified by the user.
  • a block storage in a certain cloud storage service can be determined as the target remote service according to the actual needs of the user. hard disk.
  • the boot disk of the server is pre-stored in the target remote service hard disk, so that after the BMC of the server mounts the target remote service hard disk, it can install and start the server master according to the boot disk in the target remote service hard disk. system, which improves the startup efficiency of the server.
  • the boot disk may be stored in the target remote service hard disk.
  • 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 can mount the target remote hard disk on the BMC and start the boot disk corresponding to the actually required operating system.
  • the boot disk is stored in the target remote service hard disk, and the user can choose the boot disk to be stored to improve user experience.
  • the baseboard management controller BMC of the server receives the mount request instruction, and mounts the target remote service hard disk according to the mount request instruction;
  • the BMC mounts the target remote service hard disk in various ways.
  • the following examples illustrate:
  • the BMC receives the ipmi command input by the user based on the intelligent platform management network interface.
  • the target remote service hard disk is mounted through the Internet small computer system interface iSCSI.
  • the ipmi command carries the information of the target remote service hard disk.
  • the iSCSI storage module is integrated in the BMC component.
  • 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, allowing access to the remote system, console or remote terminal storage module, etc. Therefore, the BMC can 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 relative to the server system, the target remote virtual hard disk mounted by the BMC is a real local hard disk.
  • the BMC receives the Redfish command input by the user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the Internet small computer system interface iSCSI according to the Redfish command.
  • the Redfish command carries the information of the target remote service hard disk.
  • the BMC can communicate externally based on the intelligent platform management network interface and the Redfish interface, specifically, the communication connection can be performed through the Redfish command. Therefore, the external user can control the BMC to connect to the specified target remote service hard disk by inputting the 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.
  • the BMC receives the private protocol command input by the user based on the intelligent platform management network interface, and mounts the target remote service hard disk through the Internet small computer system interface iSCSI according to the private protocol command.
  • the private protocol command carries the information of the target remote service hard disk.
  • the BMC can receive the private protocol command input by the user based on the intelligent platform management network interface, determine the mounted target remote service hard disk 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 defined within the user or within the enterprise. This private protocol is applicable to the BMC device of the server.
  • the BMC receives the mount request instruction, and mounts the target remote service hard disk through the simple storage service S3 according to the mount request instruction.
  • S3 is theoretically a global storage area network, which may specifically be represented as a super-large hard disk.
  • the BMC can receive the corresponding mount request command, then access the remote storage service through the S3 interface, and mount the target remote service hard disk corresponding to the remote storage service.
  • the BMC receives the mount request instruction, and mounts the target remote service hard disk through the NAS service according to the mount request instruction.
  • NAS network storage can manage the data in the network in a reasonable, effective and safe manner.
  • NAS also has functions such as file sharing, backup and disaster recovery.
  • the BMC may receive a mount request command input by an external user, and determine and mount the target remote service hard disk corresponding to the NAS network storage device according to the mount request command.
  • the BMC receives the mount request instruction, and mounts the target remote service hard disk through the SMB service according to the mount request instruction.
  • SMB service can be used for Wap connection and direct information communication between client and server.
  • the target remote service hard disk can be shared as an SMB network storage.
  • the BMC receives a mount request command input by an external user, and shares and mounts the target remote service hard disk through the SMB service according to the mount request command.
  • the target remote service hard disk may also be mounted in other ways, which are not specifically limited here.
  • the BMC receives the startup instruction of the server
  • Step 203 in this embodiment is similar to step 102 in the foregoing embodiment shown in FIG. 1 , and details are not repeated here.
  • the BIOS of the basic input and output system of the server obtains the target remote service hard disk according to the startup command, and the target remote service hard disk stores the startup disk of the server;
  • the BIOS can obtain the target remote service hard disk in various ways, and an example is given below:
  • the BIOS detects the virtual hard disk controller of the BMC according to the startup command; and then obtains the target remote service hard disk mounted on the BMC according to the hard disk controller.
  • BIOS can receive Serial ATA (SATA, Serial ATA) instruction by this hard disk controller after detecting and confirming the hard disk controller, and obtain the target remote service hard disk mounted by BMC according to the SATA instruction.
  • SATA Serial ATA
  • the BIOS obtains the target remote service hard disk according to the startup command and the virtual NVMe interface of the BMC.
  • NVMe Non-Volatile Memory Host Controller Interface Specification
  • PCIE PCIE Express
  • BIOS can also perform data transmission with the BMC through the NVMe interface, so as to obtain the mounted target remote service hard disk.
  • the BIOS obtains the target remote service hard disk according to the startup command and the virtual SATA interface of the BMC.
  • the server enters the BIOS mode according to the startup command, determines the 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.
  • the BIOS obtains the target remote service hard disk according to the startup command and the virtual SAS interface of the BMC.
  • the server enters the BIOS mode according to the startup command, determines the virtual SAS interface of the BMC, and obtains the target remote service hard disk through the SAS interface and SAS data transmission according to the SAS interface.
  • the target remote service hard disk may also be acquired in other ways, which are not specifically limited here.
  • 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;
  • Step 205 in this embodiment is similar to step 104 in the foregoing embodiment shown in FIG. 1 , and details are not repeated here.
  • the BMC disconnects the mounting of the target remote service hard disk.
  • the BMC may disconnect the mount from the target remote service hard disk to release resources.
  • the BMC can also destroy the boot disk stored in the mounted target remote service hard disk to release storage resources in the target remote service hard disk, so that the target remote service can be used
  • the hard disk is used as the virtual hard disk of the server to store and manage other resources or files to improve the storage capacity of the server.
  • the baseboard management controller BMC of the server may receive the mount request instruction in various ways, and then mount the target remote service hard disk according to the mount instruction.
  • the BMC receives the server's startup instruction.
  • the BIOS obtains the target remote service hard disk according to the startup instruction, and the startup disk of the server is stored in the target remote service hard disk.
  • the startup disk of the server may be stored in the target remote service hard disk in advance, or the startup disk of the corresponding operating system may be stored according to the actual needs of the user after the server mounts the target remote service hard disk.
  • the BIOS accesses the target remote service hard disk according to the startup instruction, and selects to start the server according to the boot disk stored in the target remote service hard disk. Finally, after it is determined that the server is started, the BMC can also disconnect the mount from the target remote service hard disk to release resources.
  • the boot disk is stored in the remote target remote service hard disk, and centralized management of the boot disk can be realized. When it is necessary to start according to the boot disk, mount the target remote service hard disk and then choose to start according to the startup disk in the target remote service hard disk.
  • the boot disk is stored in the remote service hard disk without on-site maintenance, which solves the problem of physical
  • the hard disk as the storage medium of the boot disk, needs on-site maintenance in case of failure, which can not only improve the management ability of the server boot disk, but also reduce the maintenance cost of the server boot disk, and realize the large-scale automatic management of the boot disk.
  • Fig. 3 is an embodiment of the server that this application provides, and this server comprises:
  • Mounting unit 301 configured to receive a mount request instruction, and mount the target remote service hard disk according to the mount request instruction;
  • a receiving unit 302 configured to receive an activation instruction of the server
  • An acquisition unit 303 configured to acquire the target remote service hard disk according to the startup instruction, where the target remote service hard disk stores the startup disk of the server;
  • the starting unit 304 is configured to access the target remote service hard disk, and start the server according to the boot disk stored in the target remote service hard disk.
  • each unit corresponds to the steps in the foregoing method embodiment shown in FIG. 1 , and details are not repeated here.
  • the mounting unit 301 receives the mounting request instruction, and mounts the target remote service hard disk according to the mounting request instruction; the receiving unit 302 receives the startup instruction of the server; the acquisition unit 303 obtains the target remote service hard disk according to the startup instruction, the The target remote service hard disk stores the startup disk of the server; the startup unit 304 accesses the target remote service hard disk, and starts the server according to the startup disk stored in the target remote service hard disk.
  • the remote target remote service hard disk can be mounted as the boot disk of the server.
  • BOIS When receiving the boot command from the server, BOIS starts up following the boot disk in the target remote service hard disk, thereby solving the problem that the physical hard disk as the boot disk needs on-site maintenance when it fails, and at the same time stores the boot disk in the remote service hard disk. It can also realize the centralized management of the startup disk, thereby improving the management ability of the server startup disk and reducing the maintenance cost of the startup disk, and realizing the large-scale automatic management of the startup disk.
  • FIG. 4 is another embodiment of the server provided by this application.
  • the server includes:
  • the mounting unit 402 is configured to receive a mounting request instruction, and mount the target remote service hard disk according to the mounting request instruction;
  • a receiving unit 403 configured to receive an activation instruction of the server
  • An obtaining unit 404 configured to obtain the target remote service hard disk according to the startup instruction, where the target remote service hard disk stores the startup disk of the server;
  • the starting unit 405 is configured to access the target remote service hard disk, and start the server according to the boot disk stored in the target remote service hard disk.
  • the mounting unit 402 is specifically configured to receive the ipmi command input by the user based on the intelligent platform management network interface, and mount the target remote service hard disk through the Internet small computer system interface iSCSI according to the ipmi command, and the ipmi command carries the Information about the target remote service hard drive.
  • the mounting unit 402 is specifically configured to receive the Redfish command input by the user based on the intelligent platform management network interface, and mount the target remote service hard disk through the Internet small computer system interface iSCSI according to the Redfish command, and the Redfish command carries the Information about the target remote service hard drive.
  • the mounting unit 402 is specifically configured to receive a private protocol command input by the user based on the intelligent platform management network interface, and mount the target remote service hard disk through the Internet small computer system interface iSCSI according to the private protocol command, and the private protocol command It carries the information of the target remote service hard disk.
  • 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.
  • the mounting unit 402 is specifically configured to receive a mounting request instruction, and according to the mounting request instruction, mount the target remote service hard disk through the NAS service.
  • 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.
  • the server also includes:
  • the storage unit 401 is configured to store the startup disk in the target remote service hard disk.
  • the storage unit 401 is specifically configured to copy the system image file that needs to be booted and installed to the target remote service hard disk.
  • the obtaining unit 404 is specifically configured to detect a virtual hard disk controller according to the startup instruction
  • the target remote service hard disk is obtained according to the hard disk controller.
  • the obtaining unit 404 is specifically configured to obtain the target remote service hard disk according to the startup instruction and the virtual NVMe interface.
  • the acquiring unit 404 is specifically configured to acquire the target remote service hard disk according to the startup instruction and the virtual SAS interface.
  • the obtaining unit 404 is specifically configured to obtain the target remote service hard disk according to the startup instruction and the virtual SATA interface.
  • the server also includes:
  • the disconnecting unit 406 is configured to disconnect the mounting of the target remote service hard disk.
  • each unit corresponds to the steps in the foregoing method embodiment shown in FIG. 2 , and details are not repeated here.
  • the mounting unit 402 may receive the mounting request instruction in various ways, and mount the target remote service hard disk according to the mounting instruction.
  • the receiving unit 403 receives a server starting instruction.
  • the acquiring unit 404 acquires the target remote service hard disk according to the startup instruction.
  • the boot disk of the server is stored in the target remote service hard disk.
  • the storage unit 401 can store the server startup disk in the target remote service hard disk in advance, or the storage unit 401 can also mount the target remote server on the mounting unit 402. After the hard disk is serviced, the boot disk of the corresponding operating system is stored according to the actual needs of the user.
  • the startup unit 405 accesses the target remote service hard disk, and starts the server according to the startup disk of the server stored in the target remote service hard disk. After it is determined that the startup of the server is completed, the disconnection unit 406 disconnects the mount from the target remote service hard disk, so that resources can be released. Thus, through each unit in the server, firstly, the startup disk can be stored in the target remote service hard disk, so as to realize centralized management of the startup disk.
  • the mounting unit 402 mounts the target remote service hard disk according to the mount request instruction, so that the server can be started according to the boot disk in the target remote service hard disk, so that the server does not need to be
  • the boot disk is stored in the physical hard disk, which solves the problem that the physical hard disk needs on-site maintenance when the storage medium of the boot disk fails, improves the management ability of the server boot disk and reduces the maintenance cost of the server boot disk, and realizes the Large-scale automated management of boot disks.
  • the application also provides a device for centralized management of server startup disks, please refer to Figure 5,
  • Figure 5 is an embodiment of the device for centralized management of server startup disks provided by the present application, the device includes:
  • Processor 501 memory 502, input and output unit 503, bus 504;
  • the processor 501 is connected to the memory 502, the input and output unit 503 and the bus 504;
  • the memory 502 stores a program, and the processor 501 invokes the program to execute any one of the above methods for centrally managing the boot disk of the server.
  • the present application also relates to a computer-readable storage medium.
  • a program is stored on the computer-readable storage medium.
  • the computer is made to execute any one of the above methods for centralized management of the boot disk of the server.
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

一种集中管理服务器启动盘的方法及服务器,用于集中管理服务器的启动盘和减少维护成本,实现启动盘的大规模自动化管理。本申请实施例方法包括:服务器的基板管理控制器BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘;所述BMC接收所述服务器的启动指令;所述服务器的基础输入输出系统BIOS根据所述启动指令获取所述目标远程服务硬盘,所述目标远程服务硬盘存储有所述服务器的启动盘;所述BIOS访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所述启动盘启动所述服务器。

Description

一种集中管理服务器启动盘的方法及服务器 技术领域
本申请涉及数据处理领域,尤其涉及一种集中管理服务器启动盘的方法及服务器。
背景技术
启动盘,是服务器体系里操作系统所在的存储盘,在整个系统中具有特殊的地位,是系统启动过程中最先访问的存储模块。
现有的常规启动盘是以物理形态机械硬盘、固态硬盘等方式存在的,例如:内置硬盘、U盘、光盘以及移动硬盘等。但是,也正是因为启动盘以物理硬盘的形式存在,当启动盘出现故障时,需要现场维护,维护成本较高,且无法实现大规模自动化管理,是在资源池化过程中的一个管理短板。
发明内容
本申请提供了一种集中管理服务器启动盘的方法及服务器,用于集中管理启动盘,减少维护成本,实现启动盘的大规模自动化管理。
本申请第一方面提供了一种集中管理服务器启动盘的方法,所述方法包括:
服务器的基板管理控制器BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘;
所述BMC接收所述服务器的启动指令;
所述服务器的基础输入输出系统BIOS根据所述启动指令获取所述目标远程服务硬盘,所述目标远程服务硬盘存储有所述服务器的启动盘;
所述BIOS访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所述启动盘启动所述服务器。
可选地,所述服务器的BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘包括:
服务器的BMC接收用户基于智能型平台管理网络接口输入的ipmi命令,根据所述ipmi命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述ipmi命令携带有所述目标远程服务硬盘的信息;
服务器的BMC接收用户基于智能型平台管理网络接口输入的Redfish命令,根据所述Redfish命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述Redfish命令携带有所述目标远程服务硬盘的信息;
服务器的BMC接收用户基于智能型平台管理网络接口输入的私有协议命令,根据所述私有协议命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述私有协议命令携带有所述目标远程服务硬盘的信息。
可选地,所述服务器的BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘包括:
服务器的BMC接收挂载请求指令,根据所述挂载请求指令通过简单存储服务S3挂载 目标远程服务硬盘;
服务器的BMC接收挂载请求指令,根据所述挂载请求指令通过NAS服务挂载目标远程服务硬盘;
服务器的BMC接收挂载请求指令,根据所述挂载请求指令通过SMB服务挂载目标远程服务硬盘。
可选地,在所述服务器的BMC接收挂载请求指令之前,所述方法还包括:
所述服务器将启动盘存储到目标远程服务硬盘中。
可选地,在所述服务器的BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘之后,所述BMC接收所述服务器的启动指令之前,所述方法还包括:
所述服务器将启动盘存储到目标远程服务硬盘中。
可选地,所述服务器将启动盘存储到目标远程服务硬盘中包括:
所述服务器将需要引导安装的系统镜像文件拷贝到目标远程服务硬盘中。
可选地,所述服务器的BIOS根据所述启动指令获取所述BMC挂载的所述目标远程服务硬盘包括:
所述服务器的BIOS根据所述启动指令检测所述BMC虚拟的硬盘控制器;
所述服务器的BIOS根据所述硬盘控制器获取所述BMC挂载的所述目标远程服务硬盘。
可选地,所述服务器的BIOS根据所述启动指令获取所述BMC挂载的所述目标远程服务硬盘包括:
所述服务器的BIOS根据所述启动指令及所述BMC虚拟的NVMe界面获取所述目标远程服务硬盘;
所述服务器的BIOS根据所述启动指令及所述BMC虚拟的SATA界面获取所述目标远程服务硬盘;
所述服务器的BIOS根据所述启动指令及所述BMC虚拟的SAS界面获取所述目标远程服务硬盘。
可选地,在所述BIOS访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所述启动盘启动所述服务器之后,所述方法还包括:
所述BMC断开所述目标远程服务硬盘的挂载。
本申请第二方面提供了一种服务器,所述服务器包括:
挂载单元,用于接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘;
接收单元,用于接收服务器的启动指令;
获取单元,用于根据所述启动指令获取所述目标远程服务硬盘,所述目标远程服务硬盘存储有所述服务器的启动盘;
启动单元,用于访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所 述启动盘启动所述服务器。
可选地,所述挂载单元具体用于接收用户基于智能型平台管理网络接口输入的ipmi命令,根据所述ipmi命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述ipmi命令携带有所述目标远程服务硬盘的信息。
可选地,所述挂载单元具体用于接收用户基于智能型平台管理网络接口输入的Redfish命令,根据所述Redfish命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述Redfish命令携带有所述目标远程服务硬盘的信息。
可选地,所述挂载单元具体用于接收用户基于智能型平台管理网络接口输入的私有协议命令,根据所述私有协议命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述私有协议命令携带有所述目标远程服务硬盘的信息。
可选地,所述挂载单元具体用于接收挂载请求指令,根据所述挂载请求指令通过简单存储服务S3挂载目标远程服务硬盘。
可选地,所述挂载单元具体用于接收挂载请求指令,根据所述挂载请求指令通过NAS服务挂载目标远程服务硬盘。
可选地,所述挂载单元具体用于接收挂载请求指令,根据所述挂载请求指令通过SMB服务挂载目标远程服务硬盘。
可选地,所述服务器还包括:
存储单元,用于将启动盘存储到目标远程服务硬盘中。
可选地,所述存储单元具体用于将需要引导安装的系统镜像文件拷贝到目标远程服务硬盘中。
可选地,所述获取单元具体用于根据所述启动指令检测虚拟的硬盘控制器;
根据所述硬盘控制器获取所述目标远程服务硬盘。
可选地,所述获取单元具体用于根据所述启动指令及虚拟的NVMe界面获取所述目标远程服务硬盘。
可选地,所述获取单元具体用于根据所述启动指令及虚拟的SAS界面获取所述目标远程服务硬盘。
可选地,所述获取单元具体用于根据所述启动指令及虚拟的SATA界面获取所述目标远程服务硬盘。
可选地,所述服务器还包括:
断开单元,用于断开所述目标远程服务硬盘的挂载。
本申请第三方面提供了一种集中管理服务器启动盘的装置,所述装置包括:
处理器、存储器、输入输出单元以及总线;
所述处理器与所述存储器、所述输入输出单元以及所述总线相连;
所述存储器保存有程序,所述处理器调用所述程序以执行第一方面以及第一方面中任一项可选的集中管理服务器启动盘的方法。
本申请第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质上保存有程序,所述程序在计算机上执行时执行第一方面以及第一方面中任一项可选的集中管理服 务器启动盘的方法。
从以上技术方案可以看出,本申请具有以下优点:
服务器的基板管理控制器BMC接收挂载请求指令,根据挂载请求指令挂载目标远程服务硬盘;BMC接收服务器的启动指令;服务器的基础输入输出系统BIOS根据启动指令获取目标远程服务硬盘,该目标远程服务硬盘存储有服务器的启动盘;BIOS访问该目标远程服务硬盘,并根据该目标远程服务硬盘存储的启动盘启动服务器。根据上述方案,BMC可以挂载目标远程服务硬盘作为服务器的启动盘。当收到服务器的启动指令时,BOIS跟随目标远程服务硬盘中的启动盘启动,从而解决了物理硬盘作为启动盘在出现故障时需现场维护的问题,同时将启动盘存储到远程服务硬盘中,还可以实现对启动盘的集中管理,进而提高了对服务器启动盘的管理能力和减少了对启动盘的维护成本,实现了对启动盘的大规模自动化管理。
附图说明
为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请提供的集中管理服务器启动盘的方法一个实施例流程示意图;
图2为本申请提供的集中管理服务器启动盘的方法另一个实施例流程示意图;
图3为本申请提供的服务器一个实施例结构示意图;
图4为本申请提供的服务器另一个实施例结构示意图;
图5为本申请提供的集中管理服务器启动盘的装置一个实施例结构示意图。
具体实施方式
本申请提供了一种集中管理服务器启动盘的方法及服务器,用于集中管理服务器的启动盘同时减少维护成本,实现对启动盘的大规模自动化管理。
需要说明的是,本申请提供的集中管理服务器启动盘的方法,可以应用于服务器,也可以应用于终端上,例如终端可以是智能手机或电脑、平板电脑、智能电视、智能手表、便携计算机终端也可以是台式计算机等固定终端。为方便阐述,本申请中以服务器为执行主体进行举例说明。需要注意的是,本申请实施例中,该服务器具体设置有基板管理控制器(BMC,Baseboard Management Controller)、基础输入输出系统(BIOS,Basic Input Output System)等部件。
请参阅图1,图1为本申请提供的集中管理服务器启动盘的方法的一个实施例,该方法包括:
101、服务器的基板管理控制器BMC接收挂载请求指令,根据挂载请求指令挂载目标远程服务硬盘;
本实施例中,服务器的基板管理控制器BMC是独立于服务器主系统之外的小型操作系统,通过BMC可以进行大规模的无人值守操作,例如服务器的远程管理、监控、安装等。
本实施例中,BMC可以通过网络存储协议以及对应的接口接收外部用户输入的挂载请求指令,然后根据该挂载请求指令挂载指定的目标远程服务硬盘。例如,可以在BMC部件 中集成有一个Internet小型计算机系统接口iSCSI存储模块,通过ipmi命令以及iSCSI接口远程挂载目标远程服务硬盘作为服务器的本地硬盘。或者可以通过Redfish接口接收Redfish命令挂载目标远程服务硬盘。或者,还可以通过简单存储服务(S3,Simple Storage Service)访问远端存储服务,挂载目标远程服务硬盘。此外,还可以根据其他方式挂载目标远程服务硬盘,具体此处不做限定。
102、BMC接收服务器的启动指令;
本实施例中,当需要启动服务器时,BMC接收服务器的启动指令,以使得服务器根据该启动指令开机启动。具体地,BMC接收服务器的启动指令可以是BMC接收基于智能型平台管理网络接口输入的远程ipmi命令或者Redfish接口输入的Redfish命令,根据该ipmi命令或该Redfish命令进行服务器的启动开机。或者,用户也可以通过实体按钮启动服务器,BMC接收用户按动该实体按钮所生成的启动指令。此外,还可以根据其他方式接收服务器的启动指令以进行服务器的开机启动,具体此处不做限定。
103、服务器的基础输入输出系统BIOS根据启动指令获取目标远程服务硬盘,该目标远程服务硬盘存储有服务器的启动盘;
本实施例中,服务器的基础输入输出系统BIOS,是不可篡改的启动程序,BIOS主要负责服务器的系统自检程序和系统自启动程序。从而,BIOS的主要功能是控制服务器启动后的基本程式,包括硬盘驱动,键盘设置,软盘驱动,内存和相关设备等。
本实施例中,在BMC接收到服务器的启动指令之后,可以通过服务器的内部总线进行BMC与BIOS的通信连接。BIOS根据该启动指令获取BMC挂载的目标远程服务硬盘。例如,可以通过虚拟的硬盘控制器获取,或者根据NVMe界面(NVM Express)获取,或者根据其他方式获取,本实施中不做详细说明,具体获取方式将在后续实施例中再做详细说明。
需要说明的是,该目标远程服务硬盘中存储有服务器启动所需要的启动盘,该启动盘可以是在服务器挂载目标远程服务硬盘之前,用户在该目标远程服务硬盘中预先存储好的启动盘。也可以是在BMC挂载目标远程服务硬盘之后,由用户自行选择实际需要的启动盘,然后在该目标远程服务硬盘中安装的启动盘,具体此处不做限定。
104、BIOS访问目标远程服务硬盘,并根据该目标远程服务硬盘存储的启动盘启动服务器。
本实施例中,BIOS识别到挂载的目标远程服务硬盘之后,访问该目标远程服务硬盘,并根据该目标远程服务硬盘存储的启动盘启动服务器。具体地,进入BIOS的Boot Menu界面中,确定挂载的目标远程服务硬盘,选择目标远程服务硬盘启动,然后服务器在启动时则跟随该目标远程服务硬盘中存储的启动盘启动服务器。
本实施例中,服务器的基板管理控制器BMC接收挂载请求指令之后,根据挂载请求指令挂载指定的目标远程服务硬盘。当需要启动服务器时,BMC接收服务器的启动指令。然后,服务器的基础输入输出系统BIOS根据启动指令获取BMC挂载的目标远程服务硬盘,在该目标远程服务硬盘中存储有服务器安装启动所需要的启动盘;再然后,服务器的BIOS访问该目标远程服务硬盘,选择根据该目标远程服务硬盘中存储的启动盘启动服务器。根据上述方案,服务器的BMC可以预先挂载远程的目标远程服务硬盘作为启动盘。当收到服务 器的启动指令时,选择根据该目标远程服务硬盘中的启动盘启动。因此,通过本方案,将启动盘存储到远程的目标远程服务硬盘中,不仅可以实现对启动盘的集中管理,而且当服务器需要根据启动盘启动时,再根据挂载的目标远程服务硬盘中的启动盘启动,远程服务硬盘无需进行线下的现场维护,解决了物理硬盘作为启动盘的存储介质在出现故障时需现场维护的问题,由此,提高了对服务器启动盘的管理能力和同时还减少了启动盘的维护成本,实现了对启动盘的大规模自动化管理。
为使本申请提供的集中管理服务器启动盘的方法更加的明显易懂,下面对本申请提供的集中管理服务器启动盘的方法进行详细说明:
请参阅图2,图2为本申请提供的集中管理服务器启动盘的方法另一个实施例,该方法包括:
201、服务器将启动盘存储到目标远程服务硬盘中;
本实施例中,服务器将启动盘存储到目标远程服务硬盘中,具体地,服务器将需要引导安装的系统镜像文件拷贝到目标远程服务硬盘中。例如,若服务器需要引导安装的操作系统为Windows Server 2003,则服务器将Windows Server 2003操作系统的系统镜像文件拷贝到目标远程服务硬盘中。或者,也可以是参照实体安装操作系统的方法,把操作系统安装到目标远程服务硬盘中。
需要说明的是,本实施例中的目标远程服务硬盘可以为用户指定的在目标位置的目标远程服务硬盘,例如,可以根据用户的实际需求确定某一个云存储服务中的块存储作为目标远程服务硬盘。本实施例中,在目标远程服务硬盘中预先存储好服务器的启动盘,可以使得服务器的BMC在挂载该目标远程服务硬盘之后,便可以根据该目标远程服务硬盘中的启动盘安装启动服务器主系统,提高了服务器的启动效率。
可选地,本实施例中,还可以在服务器的BMC接收挂载请求指令,根据该挂载请求指令挂载目标远程服务硬盘之后,再将启动盘存储到该目标远程服务硬盘中。例如,若预先存储在目标远程服务硬盘中的启动盘所对应的操作系统不是用户所实际需要的操作系统时,用户可以在BMC挂载目标远程硬盘之后,将实际需要的操作系统所对应的启动盘存储到目标远程服务硬盘中,由用户自行选择需要存储的启动盘,提高用户体验。
202、服务器的基板管理控制器BMC接收挂载请求指令,根据挂载请求指令挂载目标远程服务硬盘;
本实施例中,BMC通过多种方式挂载目标远程服务硬盘,下面进行举例说明:
一、BMC接收用户基于智能型平台管理网络接口输入的ipmi命令,根据该ipmi命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,该ipmi命令携带有该目标远程服务硬盘的信息。
本实施例中,BMC部件内集成iSCSI存储模块,在需要远程访问系统时,外部用户向BMC发送ipmi命令,BMC接收并根据IPMI会话重定向本地串行接口,允许访问远程系统、控制台或远端存储模块等。从而,BMC可以根据该ipmi命令挂载目标远程服务硬盘。该目标远程服务硬盘为iSCSI存储硬盘,从而可使得相对于服务器系统来说,BMC挂载出来的目标远程虚拟硬盘为真实的本地硬盘。
二、BMC接收用户用户基于智能型平台管理网络接口输入的Redfish命令,根据该Redfish命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,该Redfish命令携带有目标远程服务硬盘的信息。
本实施例中,BMC可以基于智能型平台管理网络接口和Rredfish接口对外进行通信,具体地,可以通过Redfish命令进行通信连接。从而,外部用户可以通过输入Redfish命令控制BMC连接指定的目标远程服务硬盘。该Redfish命令中携带有目标远程服务硬盘的硬盘信息,以使得BMC可以根据接收到的Redfish命令挂载目标远程服务硬盘。
三、BMC接收用户基于智能型平台管理网络接口输入的私有协议命令,根据私有协议命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,私有协议命令携带有目标远程服务硬盘的信息。
本实施例中,BMC可以接收用户基于智能型平台管理网络接口输入的私有协议命令,根据该私有协议命令确定挂载的目标远程服务硬盘,通过iSCSI挂载目标远程服务硬盘。该私有协议命令可以是根据用户内部或者企业内部自定的私有协议标准所使用的命令。该私有协议适用于该服务器的BMC设备。
四、BMC接收挂载请求指令,根据该挂载请求指令通过简单存储服务S3挂载目标远程服务硬盘。
本实施例中,S3理论上为一个全球存储区域网络,具体可以表现为一个超大的硬盘。BMC可以接收相应的挂载请求指令,然后通过S3接口访问远端存储服务,挂载该远端存储服务对应的目标远程服务硬盘。
五、BMC接收挂载请求指令,根据挂载请求指令通过NAS服务挂载目标远程服务硬盘。
NAS网络存储能够将网络中的数据资料进行合理有效、安全的管理,同时,NAS还具有文件共享、备份容灾等功能。本实施例中,BMC可以接收外部用户输入的挂载请求指令,根据该挂载请求指令确定并挂载NAS网络存储器设备所对应的目标远程服务硬盘。
六、BMC接收挂载请求指令,根据挂载请求指令通过SMB服务挂载目标远程服务硬盘。
SMB服务能够用于Wap连接和客户端与服务器直接的信息沟通。本实施例中,可以将目标远程服务硬盘作为SMB网络存储进行共享。BMC接收外部用户输入的挂载请求指令,根据该挂载请求指令通过SMB服务共享挂载目标远程服务硬盘。
本实施例中,还可以通过其他方式挂载目标远程服务硬盘,具体此处不做限定。
203、BMC接收服务器的启动指令;
本实施例中的步骤203与前述图1所示实施例中的步骤102类似,具体此处不再赘述。
204、服务器的基础输入输出系统BIOS根据启动指令获取目标远程服务硬盘,该目标远程服务硬盘存储有服务器的启动盘;
本实施例中,BIOS可以通过多种方式获取目标远程服务硬盘,下面进行举例说明:
一、BIOS根据该启动指令检测该BMC虚拟的硬盘控制器;然后根据该硬盘控制器获取该BMC挂载的该目标远程服务硬盘。
本实施例中,BIOS与目标远程服务硬盘之间的命令和数据传输需要通过硬盘控制器这个中间平台进行控制和数据传输。具体地,BIOS可以在检测并确认硬盘控制器之后,通过 该硬盘控制器接收串行ATA(SATA,Serial ATA)指令,根据该SATA指令获取BMC挂载的目标远程服务硬盘。
二、BIOS根据该启动指令及该BMC虚拟的NVMe界面获取该目标远程服务硬盘。
非易失性内存主机控制器接口规范(NVMe,NVM Express),是一个逻辑设备接口规范。它是基于设备逻辑接口的总线传输协议规范,用于访问通过PCIE总线(PCI Express)附加的非易失性存储器介质。因此,本实施例中,BIOS也可以通过该NVMe界面与BMC进行数据传输,以获取挂载的目标远程服务硬盘。
三、BIOS根据启动指令及BMC虚拟的SATA界面获取目标远程服务硬盘。
本实施例中,服务器根据启动指令进入BIOS模式,确定BMC虚拟的SATA界面,根据SATA界面通过SATA接口以及SATA数据传输获取目标远程服务硬盘。
四、BIOS根据启动指令及BMC虚拟的SAS界面获取目标远程服务硬盘。
本实施例中,服务器根据启动指令进入BIOS模式,确定BMC虚拟的SAS界面,根据SAS界面通过SAS接口以及SAS数据传输获取目标远程服务硬盘。
本实施例中,还可以通过其他方式获取目标远程服务硬盘,具体此处不做限定。
205、BIOS访问目标远程服务硬盘,并根据该目标远程服务硬盘存储的启动盘启动服务器;
本实施例中的步骤205与前述图1所示实施例中的步骤104类似,具体此处不再赘述。
206、BMC断开该目标远程服务硬盘的挂载。
可选地,本实施例中,在服务器系统启动完成之后,BMC可以断开与该目标远程服务硬盘的挂载,以进行资源释放。
可选地,在服务器的系统启动完成之后,BMC还可以将挂载的目标远程服务硬盘中存储的启动盘销毁,以释放该目标远程服务硬盘中的存储资源,以使得可以使用该目标远程服务硬盘作为服务器的虚拟硬盘再进行其他资源或文件的存储管理,提高服务器的存储能力。
本实施例中,服务器的基板管理控制器BMC可以通过多种方式接收挂载请求指令,然后根据挂载指令挂载目标远程服务硬盘。当需要重新安装启动服务器时,BMC接收服务器的启动指令。BIOS根据该启动指令获取目标远程服务硬盘,该目标远程服务硬盘中存储有该服务器的启动盘。具体地,可以预先在目标远程服务硬盘中存储有服务器的启动盘,或者在服务器挂载目标远程服务硬盘之后再根据用户实际需求存储相应操作系统的启动盘。然后,BIOS根据启动指令访问该目标远程服务硬盘,选择根据该目标远程服务硬盘存储的启动盘启动服务器。最后,当确定服务器启动完成之后,BMC还可以断开与该目标远程服务硬盘的挂载,以进行资源的释放。由此,通过上述方案,将启动盘存储到远程的目标远程服务硬盘中,可以实现对启动盘的集中管理。当需要根据该启动盘启动时,挂载该目标远程服务硬盘然后选择根据该目标远程服务硬盘中的启动盘启动,这样,将启动盘存储到远程服务硬盘中,无需进行现场维护,解决了物理硬盘作为启动盘的存储介质在出现故障时需现场维护的问题,从而不仅可以提高对服务器启动盘的管理能力还减少了对服务器启动盘的维护成本,实现了对启动盘的大规模自动化管理。
上述对本申请提供的集中管理服务器启动盘的方法进行了说明,下面对本申请提供的服务器进行说明:
请参阅图3,图3为本申请提供的服务器一个实施例,该服务器包括:
挂载单元301,用于接收挂载请求指令,根据该挂载请求指令挂载目标远程服务硬盘;
接收单元302,用于接收服务器的启动指令;
获取单元303,用于根据该启动指令获取该该目标远程服务硬盘,该目标远程服务硬盘存储有该服务器的启动盘;
启动单元304,用于访问该目标远程服务硬盘,并根据该目标远程服务硬盘存储的该启动盘启动该服务器。
本实施例中,各单元所执行的功能与前述图1所示方法实施例中的步骤对应,具体此处不再赘述。
本实施例中,挂载单元301接收挂载请求指令,根据挂载请求指令挂载目标远程服务硬盘;接收单元302接收服务器的启动指令;获取单元303根据该启动指令获取目标远程服务硬盘,该目标远程服务硬盘存储有服务器的启动盘;启动单元304访问该目标远程服务硬盘,并根据目标远程服务硬盘存储的启动盘启动服务器。通过上述方案,可以挂载远程的目标远程服务硬盘作为服务器的启动盘。当收到服务器的启动指令时,BOIS跟随目标远程服务硬盘中的启动盘启动,从而解决了物理硬盘作为启动盘在出现故障时需现场维护的问题,同时将启动盘存储到远程服务硬盘中,还可以实现对启动盘的集中管理,进而提高了对服务器启动盘的管理能力和减少了对启动盘的维护成本,实现了对启动盘的大规模自动化管理。
下面对本申请提供的服务器进行详细说明,请参阅图4,图4为本申请提供的服务器另一个实施例,该服务器包括:
挂载单元402,用于接收挂载请求指令,根据该挂载请求指令挂载目标远程服务硬盘;
接收单元403,用于接收该服务器的启动指令;
获取单元404,用于根据该启动指令获取该该目标远程服务硬盘,该目标远程服务硬盘存储有服务器的启动盘;
启动单元405,用于访问该目标远程服务硬盘,并根据该目标远程服务硬盘存储的该启动盘启动该服务器。
可选地,该挂载单元402具体用于接收用户基于智能型平台管理网络接口输入的ipmi命令,根据该ipmi命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,该ipmi命令携带有该目标远程服务硬盘的信息。
可选地,该挂载单元402具体用于接收用户基于智能型平台管理网络接口输入的Redfish命令,根据该Redfish命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,该Redfish命令携带有该目标远程服务硬盘的信息。
可选地,该挂载单元402具体用于接收用户基于智能型平台管理网络接口输入的私有协议命令,根据该私有协议命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,该私有协议命令携带有该目标远程服务硬盘的信息。
可选地,该挂载单元402具体用于接收挂载请求指令,根据该挂载请求指令通过简单存储服务S3挂载目标远程服务硬盘。
可选地,该挂载单元402具体用于接收挂载请求指令,根据该挂载请求指令通过NAS服务挂载目标远程服务硬盘。
可选地,该挂载单元402具体用于接收挂载请求指令,根据该挂载请求指令通过SMB服务挂载目标远程服务硬盘。
可选地,该服务器还包括:
存储单元401,用于将启动盘存储到目标远程服务硬盘中。
可选地,该存储单元401具体用于将需要引导安装的系统镜像文件拷贝到目标远程服务硬盘中。
可选地,该获取单元404具体用于根据该启动指令检测虚拟的硬盘控制器;
根据该硬盘控制器获取该目标远程服务硬盘。
可选地,该获取单元404具体用于根据该启动指令及虚拟的NVMe界面获取该目标远程服务硬盘。
可选地,该获取单元404具体用于根据该启动指令及虚拟的SAS界面获取该目标远程服务硬盘。
可选地,该获取单元404具体用于根据该启动指令及虚拟的SATA界面获取该目标远程服务硬盘。
可选地,该服务器还包括:
断开单元406,用于断开该目标远程服务硬盘的挂载。
本实施例中,各单元所执行的功能与前述图2所示方法实施例中的步骤对应,具体此处不再赘述。
本实施例中,挂载单元402可以通过多种方式接收挂载请求指令,根据挂载指令挂载目标远程服务硬盘。当需要重新安装启动服务器时,接收单元403接收服务器的启动指令。获取单元404根据该启动指令获取目标远程服务硬盘。该目标远程服务硬盘中存储有该服务器的启动盘,具体地,存储单元401可以预先在目标远程服务硬盘中存储服务器的启动盘,或者,存储单元401也可以在挂载单元402挂载目标远程服务硬盘之后再根据用户实际需求存储相应操作系统的启动盘。启动单元405访问该目标远程服务硬盘,根据该目标远程服务硬盘存储的服务器的启动盘启动服务器。当确定服务器启动完成之后,断开单元406断开与该目标远程服务硬盘的挂载,从而可以进行资源的释放。由此,通过本服务器中的各单元,首先,可以将启动盘存储到目标远程服务硬盘中,实现对启动盘的集中管理。其次,当需要根据该启动盘启动时,挂载单元402再根据挂载请求指令挂载该目标远程服务硬盘,以使得根据该目标远程服务硬盘中的启动盘进行服务器启动,从而无需将服务器的启动盘存储到物理硬盘中,解决了物理硬盘作为启动盘的存储介质在出现故障时需现场维护的问题,提高了对服务器启动盘的管理能力和减少了服务器启动盘的维护成本,实现了对启动盘的大规模自动化管理。
本申请还提供了一种集中管理服务器启动盘的装置,请参阅图5,图5为本申请提供 的集中管理服务器启动盘的装置一个实施例,该装置包括:
处理器501、存储器502、输入输出单元503、总线504;
处理器501与存储器502、输入输出单元503以及总线504相连;
存储器502保存有程序,处理器501调用程序以执行如上任一集中管理服务器启动盘的方法。
本申请还涉及一种计算机可读存储介质,计算机可读存储介质上保存有程序,当程序在计算机上运行时,使得计算机执行如上任一集中管理服务器启动盘的方法。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-only memory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。

Claims (10)

  1. 一种集中管理服务器启动盘的方法,其特征在于,所述方法包括:
    服务器的基板管理控制器BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘;
    所述BMC接收所述服务器的启动指令;
    所述服务器的基础输入输出系统BIOS根据所述启动指令获取所述目标远程服务硬盘,所述目标远程服务硬盘存储有所述服务器的启动盘;
    所述BIOS访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所述启动盘启动所述服务器。
  2. 根据权利要求1所述的方法,其特征在于,所述服务器的BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘包括:
    服务器的BMC接收用户基于智能型平台管理网络接口输入的ipmi命令,根据所述ipmi命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述ipmi命令携带有所述目标远程服务硬盘的信息;
    服务器的BMC接收用户基于智能型平台管理网络接口输入的Redfish命令,根据所述Redfish命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述Redfish命令携带有所述目标远程服务硬盘的信息;
    服务器的BMC接收用户基于智能型平台管理网络接口输入的私有协议命令,根据所述私有协议命令通过Internet小型计算机系统接口iSCSI挂载目标远程服务硬盘,所述私有协议命令携带有所述目标远程服务硬盘的信息。
  3. 根据权利要求1所述的方法,其特征在于,所述服务器的BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘包括:
    服务器的BMC接收挂载请求指令,根据所述挂载请求指令通过简单存储服务S3挂载目标远程服务硬盘;
    服务器的BMC接收挂载请求指令,根据所述挂载请求指令通过NAS服务挂载目标远程服务硬盘;
    服务器的BMC接收挂载请求指令,根据所述挂载请求指令通过SMB服务挂载目标远程服务硬盘。
  4. 根据权利要求1所述的方法,其特征在于,在所述服务器的BMC接收挂载请求指令之前,所述方法还包括:
    所述服务器将启动盘存储到目标远程服务硬盘中。
  5. 根据权利要求1所述的方法,其特征在于,在所述服务器的BMC接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘之后,所述BMC接收所述服务器的启动指令 之前,所述方法还包括:
    所述服务器将启动盘存储到目标远程服务硬盘中。
  6. 根据权利要求4或5中任一项所述的方法,其特征在于,所述服务器将启动盘存储到目标远程服务硬盘中包括:
    所述服务器将需要引导安装的系统镜像文件拷贝到目标远程服务硬盘中。
  7. 根据权利要求1至5中任一项所述的方法,其特征在于,所述服务器的BIOS根据所述启动指令获取所述BMC挂载的所述目标远程服务硬盘包括:
    所述服务器的BIOS根据所述启动指令检测所述BMC虚拟的硬盘控制器;
    所述服务器的BIOS根据所述硬盘控制器获取所述BMC挂载的所述目标远程服务硬盘。
  8. 根据权利要求1至5中任一项所述的方法,其特征在于,所述服务器的BIOS根据所述启动指令获取所述BMC挂载的所述目标远程服务硬盘包括:
    所述服务器的BIOS根据所述启动指令及所述BMC虚拟的NVMe界面获取所述目标远程服务硬盘;
    所述服务器的BIOS根据所述启动指令及所述BMC虚拟的SATA界面获取所述目标远程服务硬盘;
    所述服务器的BIOS根据所述启动指令及所述BMC虚拟的SAS界面获取所述目标远程服务硬盘。
  9. 根据权利要求1至5中任一项所述的方法,其特征在于,在所述BIOS访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所述启动盘启动所述服务器之后,所述方法还包括:
    所述BMC断开所述目标远程服务硬盘的挂载。
  10. 一种服务器,其特征在于,所述服务器包括:
    挂载单元,用于接收挂载请求指令,根据所述挂载请求指令挂载目标远程服务硬盘;
    接收单元,用于接收服务器的启动指令;
    获取单元,用于根据所述启动指令获取所述目标远程服务硬盘,所述目标远程服务硬盘存储有所述服务器的启动盘;
    启动单元,用于访问所述目标远程服务硬盘,并根据所述目标远程服务硬盘存储的所述启动盘启动所述服务器。
PCT/CN2022/105090 2021-12-16 2022-07-12 一种集中管理服务器启动盘的方法及服务器 WO2023109107A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111541926.8A CN114443148B (zh) 2021-12-16 2021-12-16 一种集中管理服务器启动盘的方法及服务器
CN202111541926.8 2021-12-16

Publications (1)

Publication Number Publication Date
WO2023109107A1 true WO2023109107A1 (zh) 2023-06-22

Family

ID=81363407

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/105090 WO2023109107A1 (zh) 2021-12-16 2022-07-12 一种集中管理服务器启动盘的方法及服务器

Country Status (2)

Country Link
CN (1) CN114443148B (zh)
WO (1) WO2023109107A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443148B (zh) * 2021-12-16 2024-04-02 宝德计算机系统股份有限公司 一种集中管理服务器启动盘的方法及服务器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580475A (zh) * 2015-01-13 2015-04-29 华为技术有限公司 远程控制方法、终端设备、管理服务器及远程控制系统
CN109639803A (zh) * 2018-12-18 2019-04-16 郑州云海信息技术有限公司 一种通过bmc远程自动部署服务器os的方法及系统
CN111475172A (zh) * 2020-02-29 2020-07-31 新华三大数据技术有限公司 一种裸机部署方法及装置
CN113626819A (zh) * 2021-06-23 2021-11-09 苏州浪潮智能科技有限公司 一种安全挂载存储装置的方法及系统
CN114443148A (zh) * 2021-12-16 2022-05-06 宝德计算机系统股份有限公司 一种集中管理服务器启动盘的方法及服务器

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694519B (zh) * 2020-05-29 2023-11-21 北京世纪互联宽带数据中心有限公司 一种裸金属服务器挂载云硬盘的方法、系统及服务器
CN112256393B (zh) * 2020-10-22 2022-04-12 上海云轴信息科技有限公司 一种裸金属服务器的资源管理方法及设备
CN112817644A (zh) * 2021-01-20 2021-05-18 浪潮电子信息产业股份有限公司 虚拟光驱生成方法、装置及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580475A (zh) * 2015-01-13 2015-04-29 华为技术有限公司 远程控制方法、终端设备、管理服务器及远程控制系统
CN109639803A (zh) * 2018-12-18 2019-04-16 郑州云海信息技术有限公司 一种通过bmc远程自动部署服务器os的方法及系统
CN111475172A (zh) * 2020-02-29 2020-07-31 新华三大数据技术有限公司 一种裸机部署方法及装置
CN113626819A (zh) * 2021-06-23 2021-11-09 苏州浪潮智能科技有限公司 一种安全挂载存储装置的方法及系统
CN114443148A (zh) * 2021-12-16 2022-05-06 宝德计算机系统股份有限公司 一种集中管理服务器启动盘的方法及服务器

Also Published As

Publication number Publication date
CN114443148B (zh) 2024-04-02
CN114443148A (zh) 2022-05-06

Similar Documents

Publication Publication Date Title
US10936295B2 (en) Software update system
US20210226846A1 (en) Systems and methods for operating system deployment and lifecycle management of a smart network interface card
US8245022B2 (en) Method and system to support ISCSI boot through management controllers
US10754955B2 (en) Authenticating a boot path update
CN111989681A (zh) 自动部署的信息技术(it)系统和方法
US20140201512A1 (en) Data storage for remote environment
US20140208133A1 (en) Systems and methods for out-of-band management of an information handling system
US9286046B2 (en) Method and apparatus for distributed operating system image deployment
US10430082B2 (en) Server management method and server for backup of a baseband management controller
TWI581589B (zh) 網際網路小型電腦系統介面啓動參數部署系統及其方法
CN110908753B (zh) 一种智能融合的云桌面服务器、客户端及系统
US9152492B2 (en) Performing recovery of a headless computer
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium
US10956170B2 (en) BIOS setting modification system
US20110246983A1 (en) Wireless Network Backup Device and Method
US20230140209A1 (en) System and method for secure access to a distributed virtual firmware network drive
US20100205420A1 (en) System and method for realizing remote test on computer apparatus without storage device
WO2017124799A1 (zh) 固件管理方法和装置
TW201222411A (en) A method, a system and a computer program product for remote OS installation with monitoring
WO2023109107A1 (zh) 一种集中管理服务器启动盘的方法及服务器
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
WO2023184875A1 (zh) 一种裸金属磁盘备份方法、装置及计算机可读存储介质
CN102207876B (zh) 流式传输客户端系统基本镜像
US11853803B2 (en) Workload compliance governor system
CN107861761B (zh) 一种物理主机的启动方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22905870

Country of ref document: EP

Kind code of ref document: A1