CN104731632A - Method and system for deploying operating system - Google Patents
Method and system for deploying operating system Download PDFInfo
- Publication number
- CN104731632A CN104731632A CN201510175713.6A CN201510175713A CN104731632A CN 104731632 A CN104731632 A CN 104731632A CN 201510175713 A CN201510175713 A CN 201510175713A CN 104731632 A CN104731632 A CN 104731632A
- Authority
- CN
- China
- Prior art keywords
- disk
- operating system
- server
- operating
- deployment
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明提出一种操作系统部署方法和系统,该操作系统部署方法包括在需要部署操作系统的设备的系统盘中存储操作系统,所述系统盘专门用于存储操作系统;在所述设备上电后,启动存储在所述系统盘中的操作系统。该方法能够实现简单,并且降低成本。
The present invention proposes an operating system deployment method and system. The operating system deployment method includes storing the operating system in the system disk of the device that needs to deploy the operating system, and the system disk is specially used for storing the operating system; After that, start the operating system stored in the system disk. This method can be realized simply and can reduce the cost.
Description
技术领域technical field
本发明涉及信息技术领域,尤其涉及一种操作系统部署方法和系统。The present invention relates to the field of information technology, in particular to an operating system deployment method and system.
背景技术Background technique
大批量操作系统(Operation System,OS)部署是大型互联网公司运维自动化的基础建设之一。当前批量部署OS的方法建立在网卡预启动执行环境(Preboot ExecuteEnvironment,PXE)技术的基础上,实现的过程比较复杂,并且硬件成本高。The deployment of large-scale operating systems (Operation System, OS) is one of the basic constructions of large-scale Internet companies' operation and maintenance automation. The current batch OS deployment method is based on the NIC Preboot ExecuteEnvironment (PXE) technology, the implementation process is relatively complicated, and the hardware cost is high.
发明内容Contents of the invention
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
为此,本发明的一个目的在于提出一种操作系统部署方法,该方法可以实现简单,并且降低成本。Therefore, an object of the present invention is to propose a method for deploying an operating system, which can be implemented simply and with reduced costs.
本发明的另一个目的在于提出一种操作系统部署系统。Another object of the present invention is to provide an operating system deployment system.
为达到上述目的,本发明第一方面实施例提出的操作系统部署方法,包括:在需要部署操作系统的设备的系统盘中存储操作系统,所述系统盘专门用于存储操作系统;在所述设备上电后,启动存储在所述系统盘中的操作系统。In order to achieve the above purpose, the operating system deployment method proposed in the first aspect of the present invention includes: storing the operating system in the system disk of the device that needs to deploy the operating system, and the system disk is specially used to store the operating system; After the device is powered on, the operating system stored in the system disk is started.
本发明第一方面实施例提出的操作系统部署方法,通过采用系统盘专门存储操作系统,可以降低系统盘的成本,通过从系统盘中启动操作系统,实现简单。The operating system deployment method proposed in the embodiment of the first aspect of the present invention can reduce the cost of the system disk by using the system disk to store the operating system specially, and realize the simple implementation by starting the operating system from the system disk.
为达到上述目的,本发明第二方面实施例提出的操作系统部署系统,包括:系统盘,用于专门存储操作系统;需要部署操作系统的设备,用于在上电后,启动存储在所述系统盘中的操作系统。In order to achieve the above-mentioned purpose, the operating system deployment system proposed in the second aspect of the present invention includes: a system disk, which is used to specially store the operating system; a device that needs to deploy the operating system, and is used to start the device stored in the The operating system on the system disk.
本发明第二方面实施例提出的操作系统部署系统,通过采用系统盘专门存储操作系统,可以降低系统盘的成本,通过从系统盘中启动操作系统,实现简单。The operating system deployment system proposed by the embodiment of the second aspect of the present invention can reduce the cost of the system disk by using the system disk to store the operating system specially, and the operating system can be started from the system disk, which is simple to implement.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention 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 invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1是本发明一实施例提出的操作系统部署方法的流程示意图;FIG. 1 is a schematic flowchart of an operating system deployment method proposed by an embodiment of the present invention;
图2是本发明另一实施例提出的操作系统部署方法的流程示意图;FIG. 2 is a schematic flowchart of an operating system deployment method proposed in another embodiment of the present invention;
图3是本发明另一实施例提出的操作系统部署方法的流程示意图;FIG. 3 is a schematic flowchart of an operating system deployment method proposed in another embodiment of the present invention;
图4是本发明另一实施例提出的操作系统部署系统的结构示意图;FIG. 4 is a schematic structural diagram of an operating system deployment system proposed in another embodiment of the present invention;
图5是本发明另一实施例提出的操作系统部署系统的结构示意图。FIG. 5 is a schematic structural diagram of an operating system deployment system proposed by another embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的模块或具有相同或类似功能的模块。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar modules or modules having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.
图1是本发明一实施例提出的操作系统部署方法的流程示意图,该方法包括:Fig. 1 is a schematic flowchart of an operating system deployment method proposed by an embodiment of the present invention, the method comprising:
S11:在需要部署操作系统的设备的系统盘中存储操作系统,所述系统盘专门用于存储操作系统。S11: Store the operating system in the system disk of the device on which the operating system needs to be deployed, where the system disk is specially used for storing the operating system.
其中,存储也可以称为安装或者固化等。Wherein, storage may also be referred to as installation or curing.
以需要部署操作系统的设备是服务器为例,现有技术中,OS安装在服务器内固定设置的机械硬盘中。通常机械硬盘的存储容量较大,为了利用机械硬盘的存储空间,在机械硬盘内不仅存储OS,还会存储数据。而由于数据需要经常被读写,造成机械硬盘的输入输出(Input and Output,IO)操作较频繁,这就容易损坏机械硬盘。机械硬盘本身的价格就比较高,如果经常损坏机械硬盘,就会进一步增加成本。Taking a server as an example where the device to be deployed with an operating system is used, in the prior art, the OS is installed in a fixed mechanical hard disk in the server. Generally, the storage capacity of the mechanical hard disk is large. In order to utilize the storage space of the mechanical hard disk, not only the OS but also data are stored in the mechanical hard disk. And because the data needs to be read and written frequently, the input and output (IO) operations of the mechanical hard disk are more frequent, which is easy to damage the mechanical hard disk. The price of the mechanical hard disk itself is relatively high. If the mechanical hard disk is often damaged, the cost will be further increased.
而本实施例中,将区分系统盘和数据盘,在系统盘中专门用于存储OS,而不再存储数据,由于OS需要的存储空间较小,因此可以采用小容量的存储介质,另外,OS的IO操作比较少,降低存储介质的损坏率,从而可以有效降低成本。However, in this embodiment, the system disk and the data disk will be distinguished, and the system disk is dedicated to storing the OS instead of data. Since the storage space required by the OS is small, a small-capacity storage medium can be used. In addition, The IO operation of the OS is relatively small, which reduces the damage rate of the storage medium, thereby effectively reducing the cost.
可选的,所述系统盘与所述设备独立设置。Optionally, the system disk is set independently from the device.
现有技术中,机械硬盘固定设置在服务器内,会占用服务器很大空间。而本实施例中,可以将系统盘与服务器独立设备,以降低对服务器空间的占用。In the prior art, the mechanical hard disk is fixedly installed in the server, which will occupy a large space of the server. However, in this embodiment, the system disk and the server can be independent devices to reduce the occupation of the server space.
可选的,所述系统盘是U盘。Optionally, the system disk is a U disk.
由于U盘的容量可以足够存储OS,并且U盘的价格较低,从而可以节省成本。Since the capacity of the USB flash drive is sufficient to store the OS, and the price of the USB flash drive is relatively low, costs can be saved.
可选的,所述U盘与所述设备通过USB3.0协议接口通信。Optionally, the U disk communicates with the device through a USB3.0 protocol interface.
由于USB3.0协议的协议速率可以高达5Gbps(400MB/s),完全可以经受高IO的冲击,避免从U盘加载OS成为整机系统性能的瓶颈。Since the protocol rate of the USB3.0 protocol can be as high as 5Gbps (400MB/s), it can completely withstand the impact of high IO and avoid loading the OS from the U disk to become the bottleneck of the overall system performance.
另外,USB3.0的应用也比较普遍,可以方便使用,例如,haswell平台基本都已经普及USB3.0协议的接口。In addition, the application of USB3.0 is relatively common and can be used conveniently. For example, the haswell platform has basically popularized the interface of USB3.0 protocol.
可以理解的是,本实施例以系统盘是U盘为例,也可以是其他专门存储OS的存储介质,例如固态硬盘等。当然,考虑到成本等因素,可以优选成本较低,容量足够存储OS的存储介质。It can be understood that, in this embodiment, the system disk is taken as an example of a USB flash disk, and it may also be other storage media dedicated to storing the OS, such as a solid-state hard disk. Of course, considering factors such as cost, a storage medium with a lower cost and sufficient capacity for storing the OS may be preferred.
以系统盘是U盘,需要部署OS的设备是服务器为例,不同服务器的U盘中的OS可以是统一从母盘中获取的。For example, if the system disk is a USB flash drive and the device on which the OS needs to be deployed is a server, the OS in the USB flash drives of different servers can be uniformly obtained from the master disk.
其中,母盘可以是预先制作的,存储有OS的U盘。可以理解的是,由于不同的企业可能需要不同的OS,因此,针对不同的企业可以制作不同的母盘,之后将母盘中的内容复制到各自企业对应的系统盘中。Wherein, the master disk may be a prefabricated USB disk storing an OS. It is understandable that since different enterprises may require different OSs, different master disks can be produced for different enterprises, and then the content in the master disks can be copied to the corresponding system disks of the respective enterprises.
参见图2,另一实施例中,该部署OS的方法还可以包括:Referring to FIG. 2, in another embodiment, the method for deploying an OS may further include:
S10:采用批量部署的方式,将母盘中的操作系统复制到每个设备的系统盘。S10: The operating system in the master disk is copied to the system disk of each device by means of batch deployment.
其中,批量部署的方式是指可以将母盘中的OS采用并行的方式基本同时复制给各个子盘,各个子盘是指分别对应每个服务器的U盘。例如,可以将母盘和各个子盘都连接到同一个控制器上,在该控制器上采用通用硬件导向系统转移(General Hardware OrientedSystem Transfer,ghost)方式,将母盘中的所有内容都复制到各个初始空白的子盘。Wherein, the method of batch deployment means that the OS in the master disk can be copied to each sub-disk at the same time in a parallel manner, and each sub-disk refers to a U disk corresponding to each server. For example, the master disk and each sub-disk can be connected to the same controller, and the General Hardware Oriented System Transfer (ghost) method is adopted on the controller to copy all the contents of the master disk to the Each initially blank subdisk.
S12:在所述设备上电后,启动存储在所述系统盘中的操作系统。S12: Start the operating system stored in the system disk after the device is powered on.
例如,将OS安装到与服务器连接的U盘后,服务器在上电后,可以从U盘中加载OS并运行OS,具体的,可以预先对服务器进行设置,设置优先从U盘导入OS。For example, after the OS is installed on the USB flash drive connected to the server, the server can load the OS from the USB flash drive and run the OS after the server is powered on. Specifically, the server can be set in advance, and the OS can be imported from the USB flash drive first.
另外,为了保证OS运行的可靠性、稳定性、高性能,建议在引进该技术之前,进行必要的可靠性(高温、振动测试)、稳定性(IO压力测试)及性能测试。In addition, in order to ensure the reliability, stability and high performance of OS operation, it is recommended to conduct necessary reliability (high temperature, vibration test), stability (IO stress test) and performance tests before introducing this technology.
可以理解的是,初始时,将OS安装在U盘上的方式可以应用在一些试点设备上,当系统测试满足期望结果时,可以进行大范围应用。It can be understood that initially, the method of installing the OS on a USB flash drive can be applied to some pilot devices, and when the system test meets the expected results, it can be applied on a large scale.
系统测试的具体内容以及对应的期望结果可以根据实际需要设置。The specific content of the system test and the corresponding expected results can be set according to actual needs.
另一实施例中,参见图3,该方法还包括:In another embodiment, referring to Fig. 3, the method further includes:
S13:获取所述设备的资产信息,并进行记录。S13: Obtain and record the asset information of the device.
以设备是服务器为例,当新服务器到货后,现有技术中,将采用人工方式记录上架的服务器的序列号(Serial Number,SN)等资产信息。Taking the device as a server as an example, when a new server arrives, in the prior art, asset information such as the serial number (Serial Number, SN) of the server on the shelf will be manually recorded.
而本实施例中,采用自动的方式获取设备的资产信息。例如,可以在服务器中配置一个初始化脚本,服务器在上电并启动OS后,可以运行该脚本,该脚本用于获取服务器自身的资产信息并将资源信息发送给自动化平台,之后自动化平台可以统计每个新上架的服务器的资产信息,并进行记录。However, in this embodiment, the asset information of the equipment is obtained automatically. For example, an initialization script can be configured in the server. After the server is powered on and starts the OS, the script can be run. The script is used to obtain the asset information of the server itself and send the resource information to the automation platform. After that, the automation platform can asset information of each newly-launched server, and record it.
资产信息例如包括机器所在机房的机架位信息、机器本身的SN、数据网口MAC地址、BMC lan controller MAC、CPU、内存、硬盘、pcie设备等信息。Asset information includes, for example, the rack information of the computer room where the machine is located, the SN of the machine itself, the MAC address of the data network port, the MAC of the BMC lan controller, CPU, memory, hard disk, and pcie equipment.
另外,为了保持跟以前产品的兼容性,以及大规模批量更换os的状况,可以保持新技术跟老技术同时并存状态。In addition, in order to maintain compatibility with previous products and replace the OS in large quantities, it is possible to maintain the coexistence of new technologies and old technologies.
本实施例中,通过采用系统盘专门存储操作系统,可以降低系统盘的成本,通过从系统盘中启动操作系统,实现简单。以系统盘是U盘为例,可以将OS固化在U盘中,省去了传统OS部署的复杂平台搭建、长基础服务链路运维的人力投入,提高运维效率;更小的存储空间,更便宜的存储介质,大大降低了硬件投入成本;以需要部署OS的设备是服务器为例,服务器上线自动抓取服务器资产信息,反写入远程管理系统RMS(Remote ManagerSystem)中,省去了外包现场上架的SN核对、资产信息录入等环节,屏蔽了人为处理环节,降低潜在的问题点;线上机器运维可以实现紧急的OS替换由传统的步骤安装转变为外包直接插拔U盘操作,运维效率有质的飞越。In this embodiment, the cost of the system disk can be reduced by using the system disk to store the operating system exclusively, and the implementation is simple by starting the operating system from the system disk. Taking the system disk as an example of a USB flash drive, the OS can be solidified in the USB flash drive, which saves the traditional OS deployment of complex platform construction and human investment in the operation and maintenance of long basic service links, and improves the efficiency of operation and maintenance; smaller storage space , cheaper storage media, which greatly reduces the cost of hardware investment; taking the server that needs to deploy the OS as an example, the server automatically captures the server asset information when it goes online, and writes it back into the remote management system RMS (Remote Manager System), eliminating the need for Outsourcing on-site SN verification, asset information entry, etc., shields the manual process and reduces potential problems; online machine operation and maintenance can realize emergency OS replacement from traditional step-by-step installation to outsourced direct insertion and removal of U disk operations , The operation and maintenance efficiency has a qualitative leap.
图4是本发明另一实施例提出的操作系统部署系统的结构示意图,该系统40包括系统盘41和需要部署操作系统的设备42。FIG. 4 is a schematic structural diagram of an operating system deployment system proposed by another embodiment of the present invention. The system 40 includes a system disk 41 and a device 42 that needs to deploy an operating system.
系统盘41,用于专门存储操作系统;The system disk 41 is used for specially storing the operating system;
其中,存储也可以称为安装或者固化等。Wherein, storage may also be referred to as installation or curing.
以需要部署操作系统的设备是服务器为例,现有技术中,OS安装在服务器内固定设置的机械硬盘中。通常机械硬盘的存储容量较大,为了利用机械硬盘的存储空间,在机械硬盘内不仅存储OS,还会存储数据。而由于数据需要经常被读写,造成机械硬盘的输入输出(Input and Output,IO)操作较频繁,这就容易损坏机械硬盘。机械硬盘本身的价格就比较高,如果经常损坏机械硬盘,就会进一步增加成本。Taking a server as an example where the device to be deployed with an operating system is used, in the prior art, the OS is installed in a fixed mechanical hard disk in the server. Generally, the storage capacity of the mechanical hard disk is large. In order to utilize the storage space of the mechanical hard disk, not only the OS but also data are stored in the mechanical hard disk. And because the data needs to be read and written frequently, the input and output (IO) operations of the mechanical hard disk are more frequent, which is easy to damage the mechanical hard disk. The price of the mechanical hard disk itself is relatively high. If the mechanical hard disk is often damaged, the cost will be further increased.
而本实施例中,将区分系统盘和数据盘,在系统盘中专门用于存储OS,而不再存储数据,由于OS需要的存储空间较小,因此可以采用小容量的存储介质,另外,OS的IO操作比较少,降低存储介质的损坏率,从而可以有效降低成本。However, in this embodiment, the system disk and the data disk will be distinguished, and the system disk is dedicated to storing the OS instead of data. Since the storage space required by the OS is small, a small-capacity storage medium can be used. In addition, The IO operation of the OS is relatively small, which reduces the damage rate of the storage medium, thereby effectively reducing the cost.
可选的,所述系统盘与所述设备独立设置。Optionally, the system disk is set independently from the device.
现有技术中,机械硬盘固定设置在服务器内,会占用服务器很大空间。而本实施例中,可以将系统盘与服务器独立设备,以降低对服务器空间的占用。In the prior art, the mechanical hard disk is fixedly installed in the server, which will occupy a large space of the server. However, in this embodiment, the system disk and the server can be independent devices to reduce the occupation of the server space.
可选的,所述系统盘是U盘。Optionally, the system disk is a U disk.
由于U盘的容量可以足够存储OS,并且U盘的价格较低,从而可以节省成本。Since the capacity of the USB flash drive is sufficient to store the OS, and the price of the USB flash drive is relatively low, costs can be saved.
可选的,所述U盘与所述设备通过USB3.0协议接口通信。Optionally, the U disk communicates with the device through a USB3.0 protocol interface.
由于USB3.0协议的协议速率可以高达5Gbps(400MB/s),完全可以经受高IO的冲击,避免从U盘加载OS成为整机系统性能的瓶颈。Since the protocol rate of the USB3.0 protocol can be as high as 5Gbps (400MB/s), it can completely withstand the impact of high IO and avoid loading the OS from the U disk to become the bottleneck of the overall system performance.
另外,USB3.0的应用也比较普遍,可以方便使用,例如,haswell平台基本都已经普及USB3.0协议的接口。In addition, the application of USB3.0 is relatively common and can be used conveniently. For example, the haswell platform has basically popularized the interface of USB3.0 protocol.
可以理解的是,本实施例以系统盘是U盘为例,也可以是其他专门存储OS的存储介质,例如固态硬盘等。当然,考虑到成本等因素,可以优选成本较低,容量足够存储OS的存储介质。It can be understood that, in this embodiment, the system disk is taken as an example of a USB flash disk, and it may also be other storage media dedicated to storing the OS, such as a solid-state hard disk. Of course, considering factors such as cost, a storage medium with a lower cost and sufficient capacity for storing the OS may be preferred.
以系统盘是U盘,需要部署OS的设备是服务器为例,不同服务器的U盘中的OS可以是统一从母盘中获取的。For example, if the system disk is a USB flash drive and the device on which the OS needs to be deployed is a server, the OS in the USB flash drives of different servers can be uniformly obtained from the master disk.
其中,母盘可以是预先制作的,存储有OS的U盘。可以理解的是,由于不同的企业可能需要不同的OS,因此,针对不同的企业可以制作不同的母盘,之后将母盘中的内容复制到各自企业对应的系统盘中。Wherein, the master disk may be a prefabricated USB disk storing an OS. It is understandable that since different enterprises may require different OSs, different master disks can be produced for different enterprises, and then the content in the master disks can be copied to the corresponding system disks of the respective enterprises.
参见图5,该系统40还可以包括:Referring to Fig. 5, the system 40 may also include:
母盘43,用于采用批量部署的方式,将自身存储的操作系统复制到每个设备的系统盘。The master disk 43 is used to copy the operating system stored in itself to the system disk of each device in a batch deployment manner.
其中,批量部署的方式是指可以将母盘中的OS采用并行的方式基本同时复制给各个子盘,各个子盘是指分别对应每个服务器的U盘。例如,可以将母盘和各个子盘都连接到同一个控制器上,在该控制器上采用通用硬件导向系统转移(General Hardware OrientedSystem Transfer,ghost)方式,将母盘中的所有内容都复制到各个初始空白的子盘。Wherein, the method of batch deployment means that the OS in the master disk can be copied to each sub-disk at the same time in a parallel manner, and each sub-disk refers to a U disk corresponding to each server. For example, the master disk and each sub-disk can be connected to the same controller, and the General Hardware Oriented System Transfer (ghost) method is adopted on the controller to copy all the contents of the master disk to the Each initially blank subdisk.
需要部署操作系统的设备42,用于在上电后,启动存储在所述系统盘中的操作系统。The device 42 that needs to deploy the operating system is used to start the operating system stored in the system disk after being powered on.
例如,将OS安装到与服务器连接的U盘后,服务器在上电后,可以从U盘中加载OS并运行OS,具体的,可以预先对服务器进行设置,设置优先从U盘导入OS。For example, after the OS is installed on the USB flash drive connected to the server, the server can load the OS from the USB flash drive and run the OS after the server is powered on. Specifically, the server can be set in advance, and the OS can be imported from the USB flash drive first.
另外,为了保证OS运行的可靠性、稳定性、高性能,建议在引进该技术之前,进行必要的可靠性(高温、振动测试)、稳定性(IO压力测试)及性能测试。In addition, in order to ensure the reliability, stability and high performance of OS operation, it is recommended to conduct necessary reliability (high temperature, vibration test), stability (IO stress test) and performance tests before introducing this technology.
可以理解的是,初始时,将OS安装在U盘上的方式可以应用在一些试点设备上,当系统测试满足期望结果时,可以进行大范围应用。It can be understood that initially, the method of installing the OS on a USB flash drive can be applied to some pilot devices, and when the system test meets the expected results, it can be applied on a large scale.
系统测试的具体内容以及对应的期望结果可以根据实际需要设置。The specific content of the system test and the corresponding expected results can be set according to actual needs.
参见图5,该系统40还包括:Referring to Figure 5, the system 40 also includes:
获取设备44,用于获取所述设备的资产信息,并进行记录。The obtaining device 44 is used to obtain the asset information of the device and record it.
以设备是服务器为例,当新服务器到货后,现有技术中,将采用人工方式记录上架的服务器的序列号(Serial Number,SN)等资产信息。Taking the device as a server as an example, when a new server arrives, in the prior art, asset information such as the serial number (Serial Number, SN) of the server on the shelf will be manually recorded.
而本实施例中,采用自动的方式获取设备的资产信息。获取设备例如为自动化平台,例如,可以在服务器中配置一个初始化脚本,服务器在上电并启动OS后,可以运行该脚本,该脚本用于获取服务器自身的资产信息并将资源信息发送给自动化平台,之后自动化平台可以统计每个新上架的服务器的资产信息,并进行记录。However, in this embodiment, the asset information of the equipment is obtained automatically. The acquisition device is, for example, an automation platform. For example, an initialization script can be configured in the server. After the server is powered on and the OS is started, the script can be run. The script is used to obtain the asset information of the server itself and send the resource information to the automation platform. , and then the automation platform can count and record the asset information of each newly-launched server.
资产信息例如包括机器所在机房的机架位信息、机器本身的SN、数据网口MAC地址、BMC lan controller MAC、CPU、内存、硬盘、pcie设备等信息。Asset information includes, for example, the rack information of the computer room where the machine is located, the SN of the machine itself, the MAC address of the data network port, the MAC of the BMC lan controller, CPU, memory, hard disk, and pcie equipment.
另外,为了保持跟以前产品的兼容性,以及大规模批量更换os的状况,可以保持新技术跟老技术同时并存状态。In addition, in order to maintain compatibility with previous products and replace the OS in large quantities, it is possible to maintain the coexistence of new technologies and old technologies.
本实施例中,通过采用系统盘专门存储操作系统,可以降低系统盘的成本,通过从系统盘中启动操作系统,实现简单。以系统盘是U盘为例,可以将OS固化在U盘中,省去了传统OS部署的复杂平台搭建、长基础服务链路运维的人力投入,提高运维效率;更小的存储空间,更便宜的存储介质,大大降低了硬件投入成本;以需要部署OS的设备是服务器为例,服务器上线自动抓取服务器资产信息,反写入RMS中,省去了外包现场上架的SN核对、资产信息录入等环节,屏蔽了人为处理环节,降低潜在的问题点;线上机器运维可以实现紧急的OS替换由传统的步骤安装转变为外包直接插拔U盘操作,运维效率有质的飞越。In this embodiment, the cost of the system disk can be reduced by using the system disk to store the operating system exclusively, and the implementation is simple by starting the operating system from the system disk. Taking the system disk as an example of a USB flash drive, the OS can be solidified in the USB flash drive, which saves the traditional OS deployment of complex platform construction and human investment in the operation and maintenance of long basic service links, and improves the efficiency of operation and maintenance; smaller storage space , cheaper storage media, greatly reducing the cost of hardware investment; taking the server that needs to deploy the OS as an example, the server automatically captures the server asset information when it goes online, and writes it back into the RMS, eliminating the need for SN checks and Links such as asset information input shield the human processing link and reduce potential problems; online machine operation and maintenance can realize emergency OS replacement from traditional step installation to outsourced direct insertion and removal of U disk operation, and the operation and maintenance efficiency is qualitative. fly over.
需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是指至少两个。It should be noted that, in the description of the present invention, the terms "first", "second" and so on are only used for description purposes, and should not be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" means at least two.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
Claims (12)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510175713.6A CN104731632A (en) | 2015-04-14 | 2015-04-14 | Method and system for deploying operating system |
| PCT/CN2015/090019 WO2016165280A1 (en) | 2015-04-14 | 2015-09-18 | Operation system deployment method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510175713.6A CN104731632A (en) | 2015-04-14 | 2015-04-14 | Method and system for deploying operating system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104731632A true CN104731632A (en) | 2015-06-24 |
Family
ID=53455551
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510175713.6A Pending CN104731632A (en) | 2015-04-14 | 2015-04-14 | Method and system for deploying operating system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104731632A (en) |
| WO (1) | WO2016165280A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016165280A1 (en) * | 2015-04-14 | 2016-10-20 | 北京百度网讯科技有限公司 | Operation system deployment method and system |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114124684B (en) * | 2021-10-22 | 2024-04-19 | 杭州依赛通信有限公司 | Method for realizing zero-contact full-automatic deployment of network elements by using USB flash disk |
| CN114546504B (en) * | 2022-02-21 | 2023-07-07 | 联想开天科技有限公司 | Automatic filling operation method, system and storage medium based on LiveCD system |
| CN114706595A (en) * | 2022-04-11 | 2022-07-05 | 山东新一代信息产业技术研究院有限公司 | Automatic remote installation method for robot operating system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6813708B2 (en) * | 2002-10-29 | 2004-11-02 | Electronic Data Systems Corporation | System and method for searching a BIOS for a type of computer network drive to boot and an operating system for migrating an operating system to a computer |
| CN101014034A (en) * | 2006-12-31 | 2007-08-08 | 武汉蓝星科技股份有限公司 | U disk server-based cluster solving method |
| CN101114228A (en) * | 2006-07-25 | 2008-01-30 | 华为技术有限公司 | A method and system for quickly installing an operating system |
| CN102520989A (en) * | 2011-12-01 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Intelligent colony system deployment method based on U disk |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104461653A (en) * | 2014-12-29 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for installing NeoKylin Linux system on Loongson 3B server through USB flash disk |
| CN104731632A (en) * | 2015-04-14 | 2015-06-24 | 北京百度网讯科技有限公司 | Method and system for deploying operating system |
-
2015
- 2015-04-14 CN CN201510175713.6A patent/CN104731632A/en active Pending
- 2015-09-18 WO PCT/CN2015/090019 patent/WO2016165280A1/en active Application Filing
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6813708B2 (en) * | 2002-10-29 | 2004-11-02 | Electronic Data Systems Corporation | System and method for searching a BIOS for a type of computer network drive to boot and an operating system for migrating an operating system to a computer |
| CN101114228A (en) * | 2006-07-25 | 2008-01-30 | 华为技术有限公司 | A method and system for quickly installing an operating system |
| CN101014034A (en) * | 2006-12-31 | 2007-08-08 | 武汉蓝星科技股份有限公司 | U disk server-based cluster solving method |
| CN102520989A (en) * | 2011-12-01 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Intelligent colony system deployment method based on U disk |
Non-Patent Citations (1)
| Title |
|---|
| 中国计算机学会编: "《中国计算机科学技术发展报告》", 30 November 2008 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016165280A1 (en) * | 2015-04-14 | 2016-10-20 | 北京百度网讯科技有限公司 | Operation system deployment method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016165280A1 (en) | 2016-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI571736B (en) | Method and system of automatic debug information collection | |
| CN103761165B (en) | Log backup method and device | |
| JP6516730B2 (en) | Method and apparatus for backing up and restoring applications | |
| CN107045448A (en) | Method and server for remotely starting deployment program | |
| CN104731632A (en) | Method and system for deploying operating system | |
| CN111679889B (en) | Conversion migration method and system of virtual machine | |
| US9846621B1 (en) | Disaster recovery—multiple restore options and automatic management of restored computing devices | |
| CN101408856A (en) | System and method for tolerance disaster backup(disaster-tolerant backup) | |
| CN105653345A (en) | Method and device supporting data nonvolatile random access | |
| WO2021098485A1 (en) | Method and system for power-on and power-off control of pcie device | |
| CN104394223A (en) | Automatic rapid deployment method for large-scale computer cluster system nodes | |
| WO2017113694A1 (en) | File synchronizing method, device and system | |
| CN102902550B (en) | Computer system and operating system loading method thereof | |
| CN105656970A (en) | RAID (Redundant Array of Independent Disk) card configuring method and system and relevant device | |
| CN103207816A (en) | Linux system repairing method | |
| US8495623B2 (en) | System and method for network image propagation without a predefined network | |
| CN113342365A (en) | Operating system deployment method, device, equipment and computer-readable storage medium | |
| CN112667363A (en) | Method and device for simulating cloud physical host by using virtual machine based on cloud platform | |
| CN108319522A (en) | A method of reinforcing distributed memory system reliability | |
| CN104461757A (en) | Method and device for restoring virtual machines | |
| CN106843768A (en) | Hard disc data method for deleting and device | |
| CN102929666A (en) | Method for deploying system quickly | |
| CN105138369A (en) | Method and device for installing operation systems | |
| CN115904603A (en) | Method and device for virtual machine application migration between heterogeneous platforms | |
| US20150149660A1 (en) | Server and identifier synchronization method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150624 |
|
| RJ01 | Rejection of invention patent application after publication |