CN106886373B - Physical machine and magnetic disk operation method and device thereof - Google Patents

Physical machine and magnetic disk operation method and device thereof Download PDF

Info

Publication number
CN106886373B
CN106886373B CN201710092529.4A CN201710092529A CN106886373B CN 106886373 B CN106886373 B CN 106886373B CN 201710092529 A CN201710092529 A CN 201710092529A CN 106886373 B CN106886373 B CN 106886373B
Authority
CN
China
Prior art keywords
disk
physical machine
server
operating
operating parameters
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
Application number
CN201710092529.4A
Other languages
Chinese (zh)
Other versions
CN106886373A (en
Inventor
苏保林
蒋旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710092529.4A priority Critical patent/CN106886373B/en
Publication of CN106886373A publication Critical patent/CN106886373A/en
Application granted granted Critical
Publication of CN106886373B publication Critical patent/CN106886373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Abstract

The application provides a disk operation method and device of a physical machine and the physical machine, wherein the disk operation method of the physical machine comprises the following steps: the method comprises the steps that the disk operation requirements of a user on a physical machine are transmitted to a first server for realizing server operation automation in a public cloud; executing a PXE restart task issued by the first server, and loading a PXE system; downloading disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in a PXE system generated by the first server; and operating the disk of the physical machine according to the disk operating parameters of the physical machine. The automation of the physical machine disk operation can be realized, so that various and continuously-increased disk operation requirements can be flexibly met, the user experience is improved, the bottom disk operation code cannot be influenced, and the maintenance is convenient.

Description

Physical machine and magnetic disk operation method and device thereof
Technical Field
The application relates to the technical field of internet, in particular to a method and a device for operating a disk of a physical machine and the physical machine.
Background
For a physical machine of a public cloud, a user operates a disk of a different physical machine, for example: how a disk is made into a disk array (RAID), how each physical machine is partitioned, what file system each partition needs to make, how each partition is mounted after the file system is mounted, and the like have different requirements.
The disk operation mode adopted in the existing physical machine of the public cloud is that all combinations are traversed according to different machine types, different packages and different services, then several commonly used templates are selected as template parameters, and in the system installation process, the corresponding code operation of the template is carried out on the disk according to the template specified by the installation parameters. Therefore, once a new model or a package is added or different needs are met, corresponding templates need to be added, and the method is extremely inflexible; if the template is added, the bottom-layer disk operation code corresponding to the template also needs to be added, and in the past, the bottom-layer disk operation code is extremely redundant, and the maintenance difficulty is increased.
Content of application
The present application aims to solve at least one of the technical problems in the related art to some extent.
To this end, a first objective of the present application is to provide a method for operating a disk of a physical machine. The method can generate the disk operation parameters according to the disk operation requirements of the user on the physical machine, and further realize the automation of the disk operation of the physical machine according to the disk operation parameters, so that the method can flexibly meet various and continuously increased disk operation requirements, improves the user experience, does not influence the operation codes of the bottom disk, and is convenient to maintain.
A second objective of the present application is to provide a disk operating device for a physical machine.
A third object of the present application is to propose a physical machine.
A fourth object of the present application is to propose a computer readable medium.
In order to achieve the above object, a disk operating method of a physical machine according to an embodiment of the first aspect of the present application includes: the method comprises the steps that the disk operation requirements of a user on a physical machine are transmitted to a first server for realizing server operation automation in a public cloud; executing a pre-starting execution environment PXE restart task issued by the first server, and loading a PXE system; downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in a PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine; and operating the disk of the physical machine according to the disk operating parameters of the physical machine.
In the disk operation method of a physical machine according to the embodiment of the present application, after a disk operation request of a user for the physical machine is transmitted to a first server in a public cloud for implementing automation of server operation, a reboot execution Environment (hereinafter referred to as PXE) reboot task issued by the first server is executed, a PXE system is loaded, then a disk operation parameter belonging to the physical machine is downloaded from the first server, and a disk of the physical machine is operated according to the disk operation parameter of the physical machine, so that a disk operation parameter can be generated according to the disk operation request of the user for the physical machine, automation of disk operation of the physical machine can be implemented according to the disk operation parameter, diverse and constantly increased disk operation requests can be flexibly met, user experience is improved, and a bottom disk operation code is not affected, and the maintenance is convenient.
In order to achieve the above object, a disk operating device of a physical machine according to an embodiment of the second aspect of the present application includes: the system comprises a sending module, a first server and a second server, wherein the sending module is used for transmitting the disk operation requirements of a user on a physical machine to the first server which realizes the automation of server operation in a public cloud; the execution module is used for executing a pre-starting execution environment PXE restart task issued by the first server and loading a PXE system; the downloading module is used for downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in the PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine; and the operation module is used for operating the disk of the physical machine according to the disk operation parameters of the physical machine.
In the disk operating device of the physical machine in the embodiment of the application, after the transmission module transmits the disk operating requirement of the user on the physical machine to the first server for realizing the automation of the server operation in the public cloud, the execution module executes the PXE restart task issued by the first server, loads a PXE system, then the downloading module downloads the disk operating parameters belonging to the physical machine from the first server, and then the operating module operates the disk of the physical machine according to the disk operating parameters of the physical machine, thereby realizing the generation of the disk operation parameters according to the disk operation requirements of the user on the physical machine, and then realize the automation of physics quick-witted disk operation according to disk operating parameter, can deal with in a flexible way various, the disk operation demand that constantly increases, improved user experience to can not influence bottom disk operation code, convenient maintenance.
To achieve the above object, a physical machine according to an embodiment of the third aspect of the present application includes: one or more processors; a memory; the input and output device is used for transmitting the disk operation requirements of a user on the physical machine to a first server for realizing the automation of server operation in the public cloud; downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in a PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine; one or more programs, stored in the memory, that when executed by the one or more processors perform operations comprising: after the input/output device transmits the disk operation requirement of a user on a physical machine to a first server for realizing server operation automation in a public cloud, executing a pre-boot execution environment PXE restart task issued by the first server, and loading a PXE system; and operating the disk of the physical machine according to the disk operating parameters of the physical machine downloaded by the input and output device.
In the physical machine of the embodiment of the application, after the input/output device transmits the disk operation demand of a user on the physical machine to a first server for realizing the automation of server operation in a public cloud, the processor executes a PXE restart task issued by the first server, a PXE system is loaded, then the input/output device downloads the disk operation parameters belonging to the physical machine from the first server, and then the processor can operate the disk of the physical machine according to the disk operation parameters of the physical machine, so that the disk operation parameters can be generated according to the disk operation demand of the user on the physical machine, and further the automation of the disk operation of the physical machine can be realized according to the disk operation parameters.
To achieve the above object, a computer readable medium of an embodiment of the fourth aspect of the present application has a computer program stored thereon, which when executed by a processor implements the method as described above.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of an embodiment of a method for operating a disk of a physical machine according to the present application;
fig. 2 is a schematic diagram of an embodiment of an application scenario of a disk operating method of a physical machine according to the present application;
FIG. 3 is a parameter representing the disk operation requirement of C1 in the disk operation method of the physical machine according to the present application;
FIG. 4 is a parameter representing the disk operation requirement of C2 in the disk operation method of the physical machine according to the present application;
FIG. 5 is a schematic structural diagram of an embodiment of a disk handling device of a physical machine according to the present application;
fig. 6 is a schematic structural diagram of an embodiment of a physical machine according to the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart of an embodiment of a disk operating method of a physical machine according to the present application, and as shown in fig. 1, the disk operating method of the physical machine may include:
step 101, transmitting a disk operation requirement of a user on a physical machine to a first server for realizing server operation automation in a public cloud.
The first Server for implementing automation of Server operations in the public cloud may be a Server Operation Architecture (SOA) Server, although the embodiment is not limited thereto, and the first Server for implementing automation of Server operations in the public cloud may also be another Server, which is not limited thereto.
And 102, executing a PXE restart task issued by the first server, and loading the PXE system.
And 103, downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in the PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine.
In this embodiment, after the first server receives the disk operation requirement of the user on the physical machine, which is transmitted by the physical machine, the first server converts the disk operation requirement of the user on the physical machine into a disk operation parameter that can be recognized in the PXE system, and then stores the disk operation parameter into the memory database of the first server. After the physical machine executes the PXE restart task issued by the first server and the PXE system is loaded, the physical machine automatically downloads the disk operating parameters of the physical machine from the first server.
And 104, operating the disk of the physical machine according to the disk operating parameters of the physical machine.
Specifically, the operating the disk of the physical machine according to the disk operating parameter of the physical machine may be: according to the disk operation parameters of the physical machine, performing one or a combination of the following operations on the disk of the physical machine: the method comprises the steps of making a disk array for a disk of the physical machine, partitioning the disk array, installing a file system for the partition of the disk array, and setting a mount point of the partition of the disk array.
That is to say, different from the prior art in which the installation of the file system and the setting of the mount point are performed after the installation of the operating system is completed, in this embodiment, the disk operation, including the installation of the file system and the setting of the mount point, can be completed concentratedly before the installation of the operating system is completed, and while parameterization of the disk operation is achieved, centralization is achieved, interaction is reduced, and success rate of the disk operation is improved.
In addition, in the embodiment, the mounting points of the partitions of the disk array can be set according to the requirements of the user, and compared with the prior art that fixed disk mounting points are adopted, the method and the device reduce the fixed limit and improve the user experience.
In a specific implementation, the operating the disk of the physical machine according to the disk operating parameter of the physical machine may be: and transferring the disk operation parameters of the physical machine to a bottom disk operation public function of the physical machine to perform disk operation.
In the disk operation method of the physical machine, after the disk operation requirement of a user on the physical machine is transmitted to a first server for realizing the automation of server operation in a public cloud, a PXE restart task issued by the first server is executed, a PXE system is loaded, disk operation parameters belonging to the physical machine are downloaded from the first server, and then the disk of the physical machine is operated according to the disk operation parameters of the physical machine, so that the disk operation parameters can be generated according to the disk operation requirement of the user on the physical machine, the automation of the disk operation of the physical machine is realized according to the disk operation parameters, various and continuously increased disk operation requirements can be flexibly met, the user experience is improved, the bottom disk operation code cannot be influenced, and the maintenance is convenient.
The method for operating a disk of a physical machine according to the embodiment shown in fig. 1 of the present application can be used in the application scenario shown in fig. 2, and fig. 2 is a schematic diagram of an embodiment of an application scenario of the method for operating a disk of a physical machine according to the present application. As shown in FIG. 2, a user in the public cloud has two types of physical machines, the first type of physical machine C1 has 5 blocks of 480G Solid State Drives (SSD) disks, the second type of physical machine C2 has 2 blocks of 500G SSD disks and 3 blocks of 500G Serial Advanced Technology Attachment (SATA) disks, and both types of physical machines have RAID cards. Now, the disk operation requirements of users on the two physical machines are respectively:
c1: 1) the front two SSD disks are made into a RAID1 and are used for installing a file system, the root partition is 50G, and the rest space is divided into one partition and mounted under a 'home' directory; 2) the last three SSD disks are made into RAID5 and are divided into two zones, wherein one zone 400G is mounted under a "/data 1" directory, and the other zone uses the rest space and is mounted under a "/data 2" directory.
C2: 1) the front two SSD disks are made into a RAID0 and are used for installing a file system, the root partition is 100G, and the rest space is divided into one partition and mounted under a 'home' directory; 2) the next three SATA disks are made into RAID5 and divided into three zones, wherein two zones respectively use 100G and are respectively mounted under the "/home/data 1" and "/home/data 2" directories, and the third zone uses the residual space and is mounted under the "/home/data 3" directory.
As shown in fig. 2, the first server in the public cloud for implementing automation of server operations is an SOA server, which is responsible for organizing disk operation parameters and issuing PXE restart tasks. Fig. 3 is parameters representing the disk operation requirement of C1 in the disk operation method of the physical machine of the present application, and fig. 4 is parameters representing the disk operation requirement of C2 in the disk operation method of the physical machine of the present application. After receiving the disk operation requirements transferred by C1 and C2, respectively, the SOA may convert the parameters shown in fig. 3 and fig. 4 into disk operation parameters recognizable by the PXE system, then store the disk operation parameters into a memory database (e.g., SOA redis) of the SOA, immediately start issuing a PXE restart task to C1 and C2, then execute the PXE restart task by C1 and C2, boot and load the customized PXE system from the SOA server, automatically download the disk operation parameters belonging to C1 and C2 from the SOA server after the loading succeeds, and then transfer the disk operation parameters of C1 and C2 to the underlying disk operation common function to perform disk operation, including making disk arrays for the disks of C1 and C2, partitioning the disk arrays, installing file systems for the partitions of the disk arrays, and setting mount points for the partitions of the disk arrays.
Fig. 5 is a schematic structural diagram of an embodiment of a disk operating device of a physical machine according to the present application, where the disk operating device of the physical machine in the present embodiment may implement the disk operating method of the physical machine shown in fig. 1 according to the present application. As shown in fig. 5, the disk operating device of the physical machine may include: a sending module 51, an execution module 52, a downloading module 53 and an operation module 54;
the sending module 51 is configured to transmit a disk operation requirement of a user on a physical machine to a first server in a public cloud to implement automation of server operation; the first server for implementing automation of server operations in the public cloud may be an SOA server, but the embodiment is not limited thereto, and the first server for implementing automation of server operations in the public cloud may also be another server, and the embodiment is not limited thereto.
The execution module 52 is configured to execute a PXE restart task issued by the first server, and load the PXE system.
A downloading module 53, configured to download, from a first server, the disk operation parameters belonging to the physical machine, where the disk operation parameters belonging to the physical machine are disk operation parameters recognizable in the PXE system, where the disk operation parameters are generated by the first server according to a disk operation requirement of the user on the physical machine; in this embodiment, after the first server receives the disk operation requirement of the user on the physical machine, which is transmitted by the physical machine, the first server converts the disk operation requirement of the user on the physical machine into a disk operation parameter that can be recognized in the PXE system, and then stores the disk operation parameter into the memory database of the first server. After the execution module 52 executes the PXE restart task issued by the first server and loads the PXE system, the downloading module 53 automatically downloads the disk operating parameters of the physical machine from the first server.
And the operation module 54 is configured to operate the disk of the physical machine according to the disk operation parameter of the physical machine. Specifically, the operation module 54 is specifically configured to perform one or a combination of the following operations on the disk of the physical machine according to the disk operation parameter of the physical machine: the method comprises the steps of making a disk array for a disk of the physical machine, partitioning the disk array, installing a file system for the partition of the disk array, and setting a mount point of the partition of the disk array.
That is to say, different from the prior art in which the installation of the file system and the setting of the mount point are performed after the installation of the operating system is completed, in this embodiment, the disk operation, including the installation of the file system and the setting of the mount point, can be completed concentratedly before the installation of the operating system is completed, and while parameterization of the disk operation is achieved, centralization is achieved, interaction is reduced, and success rate of the disk operation is improved.
In addition, in the embodiment, the mounting points of the partitions of the disk array can be set according to the requirements of the user, and compared with the prior art that fixed disk mounting points are adopted, the method and the device reduce the fixed limit and improve the user experience.
In a specific implementation, the operation module 54 is specifically configured to pass the disk operation parameters of the physical machine to the underlying disk operation common function of the physical machine to perform a disk operation.
In the above-mentioned disk operating device of the physical machine, after the sending module 51 transmits the disk operating requirement of the user to the physical machine to the first server in the public cloud for implementing the automation of the server operation, the execution module 52 executes the PXE restart task issued by the first server, loads the PXE system, the download module 53 then downloads the disk operating parameters belonging to the physical machine from the first server, the operation module 54 further operates the disk of the physical machine according to the disk operation parameters of the physical machine, thereby realizing the generation of the disk operation parameters according to the disk operation requirements of the user on the physical machine, and then realize the automation of physics quick-witted disk operation according to disk operating parameter, can deal with in a flexible way various, the disk operation demand that constantly increases, improved user experience to can not influence bottom disk operation code, convenient maintenance.
Fig. 6 is a schematic structural diagram of an embodiment of a physical machine according to the present application. The physical machine shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in FIG. 6, the physical machine 12 is in the form of a general purpose computing device. The components of the physical machine 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
The physical machine 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by physical machine 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The physical machine 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only memory (CD-ROM), a Digital versatile disk Read Only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
The physical machine 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the physical machine 12, and/or with any devices (e.g., network card, modem, etc.) that enable the physical machine 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the physical machines 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 20. As shown in FIG. 6, the network adapter 20 communicates with the other modules of the physical machine 12 via the bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the physical machine 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a disk operating method of the physical machine provided herein, by executing programs stored in the system memory 28.
The present application also provides a computer readable medium, on which a computer program is stored, and the computer program can implement the disk operation method of the physical machine provided by the present application when executed by a processor.
The computer-readable medium described above may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-only memory (ROM), an Erasable Programmable Read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc Read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic Gate circuit for implementing a logic function on a data signal, an asic having an appropriate combinational logic Gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), and the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (8)

1. A method for operating a disk of a physical machine, comprising:
the method comprises the steps that the disk operation requirements of a user on a physical machine are transmitted to a first server for realizing server operation automation in a public cloud;
executing a pre-starting execution environment PXE restart task issued by the first server, and loading a PXE system;
downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in a PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine;
and operating the disk of the physical machine according to the disk operating parameters of the physical machine.
2. The method of claim 1, wherein the operating the disk of the physical machine according to the disk operating parameters of the physical machine comprises:
according to the disk operation parameters of the physical machine, performing one or a combination of the following operations on the disk of the physical machine: and making a disk array on a disk of the physical machine, partitioning the disk array, installing a file system for the partition of the disk array, and setting a mount point of the partition of the disk array.
3. The method of claim 1 or 2, wherein the operating the disk of the physical machine according to the disk operating parameters of the physical machine comprises:
and transmitting the disk operation parameters of the physical machine to a bottom disk operation public function of the physical machine to perform disk operation.
4. A disk handling apparatus for a physical machine, comprising:
the system comprises a sending module, a first server and a second server, wherein the sending module is used for transmitting the disk operation requirements of a user on a physical machine to the first server which realizes the automation of server operation in a public cloud;
the execution module is used for executing a pre-starting execution environment PXE restart task issued by the first server and loading a PXE system;
the downloading module is used for downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in the PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine;
and the operation module is used for operating the disk of the physical machine according to the disk operation parameters of the physical machine.
5. The apparatus of claim 4,
the operation module is specifically configured to perform one or a combination of the following operations on the disk of the physical machine according to the disk operation parameters of the physical machine: and making a disk array on a disk of the physical machine, partitioning the disk array, installing a file system for the partition of the disk array, and setting a mount point of the partition of the disk array.
6. The apparatus according to claim 4 or 5,
the operation module is specifically configured to transfer the disk operation parameters of the physical machine to a bottom-layer disk operation common function of the physical machine to perform disk operation.
7. A physical machine, comprising:
one or more processors;
a memory;
the input and output device is used for transmitting the disk operation requirements of a user on the physical machine to a first server for realizing the automation of server operation in the public cloud; downloading the disk operating parameters belonging to the physical machine from the first server, wherein the disk operating parameters belonging to the physical machine are disk operating parameters which can be identified in a PXE system and are generated by the first server according to the disk operating requirements of the user on the physical machine;
one or more programs, stored in the memory, that when executed by the one or more processors perform operations comprising:
after the input/output device transmits the disk operation requirement of a user on a physical machine to a first server for realizing server operation automation in a public cloud, executing a pre-boot execution environment PXE restart task issued by the first server, and loading a PXE system; and operating the disk of the physical machine according to the disk operating parameters of the physical machine downloaded by the input and output device.
8. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201710092529.4A 2017-02-21 2017-02-21 Physical machine and magnetic disk operation method and device thereof Active CN106886373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710092529.4A CN106886373B (en) 2017-02-21 2017-02-21 Physical machine and magnetic disk operation method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710092529.4A CN106886373B (en) 2017-02-21 2017-02-21 Physical machine and magnetic disk operation method and device thereof

Publications (2)

Publication Number Publication Date
CN106886373A CN106886373A (en) 2017-06-23
CN106886373B true CN106886373B (en) 2020-02-04

Family

ID=59180129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710092529.4A Active CN106886373B (en) 2017-02-21 2017-02-21 Physical machine and magnetic disk operation method and device thereof

Country Status (1)

Country Link
CN (1) CN106886373B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213453A (en) * 2018-09-25 2019-01-15 郑州云海信息技术有限公司 A kind of disk management method and relevant apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN104935468A (en) * 2015-06-24 2015-09-23 宋敏 PXE technology-based interactive system and method for realizing operation of operating system thereof
CN105426207A (en) * 2015-11-13 2016-03-23 浪潮电子信息产业股份有限公司 PXE-based method for rapidly installing operation systems in batches
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7216200B2 (en) * 2003-11-04 2007-05-08 Dell Products L.P. System and method for remote RAID configuration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN104935468A (en) * 2015-06-24 2015-09-23 宋敏 PXE technology-based interactive system and method for realizing operation of operating system thereof
CN105426207A (en) * 2015-11-13 2016-03-23 浪潮电子信息产业股份有限公司 PXE-based method for rapidly installing operation systems in batches
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server

Also Published As

Publication number Publication date
CN106886373A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
US9043776B2 (en) Transferring files to a baseboard management controller (‘BMC’) in a computing system
EP2176747B1 (en) Unified provisioning of physical and virtual disk images
US10061596B2 (en) Systems and methods for loading firmware modules
CN101650660B (en) Booting a computer system from central storage
US8627274B2 (en) Software tool and method for generating a virtual appliance
US10810017B2 (en) Systems and methods for handling firmware driver dependencies in host operating systems while applying updates from bootable image file
US20120167090A1 (en) Hypervisor for starting a virtual machine
US20140195753A1 (en) Managing virtual hard disk snapshots
CN110083399B (en) Applet running method, computer device and storage medium
US9448807B2 (en) Automatic creation, deployment, and upgrade of disk images
CN115413338A (en) Providing direct data access between an accelerator and a storage device in a computing environment
CN111209080A (en) Transparent transmission method for graphic processor
CN114691300A (en) Hot migration method of virtual machine instance
CN106886373B (en) Physical machine and magnetic disk operation method and device thereof
US20130097412A1 (en) Performing A Boot Sequence In A Multi-Processor System
US10346424B2 (en) Object processing
CN111124291A (en) Data storage processing method and device of distributed storage system and electronic equipment
CN113127430A (en) Mirror image information processing method and device, computer readable medium and electronic equipment
JP2021513137A (en) Data migration in a tiered storage management system
US11182171B1 (en) Systems and methods for securely launching an embedded operating system using non-volatile memory namespace identifier mapping
CN113296876B (en) Equipment direct connection method, equipment and storage medium of virtual machine
US11030100B1 (en) Expansion of HBA write cache using NVDIMM
CN115794132A (en) Operating system deployment method, device, equipment and storage medium
US20120260249A1 (en) Software tool and method for updating a virtual appliance
EP3073372A1 (en) Performing code load operations on managed components in a system

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