CN106681771B - System reinstallation method and device - Google Patents

System reinstallation method and device Download PDF

Info

Publication number
CN106681771B
CN106681771B CN201611254363.3A CN201611254363A CN106681771B CN 106681771 B CN106681771 B CN 106681771B CN 201611254363 A CN201611254363 A CN 201611254363A CN 106681771 B CN106681771 B CN 106681771B
Authority
CN
China
Prior art keywords
image file
server
memory
operating system
memory operating
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
CN201611254363.3A
Other languages
Chinese (zh)
Other versions
CN106681771A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201611254363.3A priority Critical patent/CN106681771B/en
Publication of CN106681771A publication Critical patent/CN106681771A/en
Application granted granted Critical
Publication of CN106681771B publication Critical patent/CN106681771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a system reinstallation method and a system reinstallation device, wherein the method comprises the following steps: and obtaining a system image file to be installed by the server to be reinstalled, restarting the server to be reinstalled to enter a pre-installed memory operating system, and operating the system image file to be installed through the memory operating system to reinstall the system. By the method, the bound common port does not need to be disassembled when the system is reassembled, and the system reassembly efficiency is effectively improved.

Description

System reinstallation method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a system reinstallation method and apparatus.
Background
With the continuous development of internet technology, in order to relieve the operating pressure of servers and provide faster and better services for users, a server cluster is usually established to process access requests of users.
Currently, each server in a server cluster receives and processes an access request of a user through a switch, that is, each server in the server cluster is connected to the switch, and the switch binds ports of each server into a common port and provides the common port to the user.
In practical applications, a system of servers in a server cluster may be damaged, and therefore, when the system of the server is damaged, the system needs to be reinstalled for the server.
In the existing process of reinstalling a system to the server, a port corresponding to a server to be reinstalled is first split from a bound common port, and the server to be reinstalled is restarted, a Preboot execution Environment (PXE) installation mode is entered, a system image file is downloaded through a Virtual Local Area Network (VLAN), and the system image file is installed in the server to be reinstalled.
However, in the prior art, when the system is reinstalled, the bound common port needs to be disassembled, which inevitably reduces the efficiency of the system reinstallation.
Disclosure of Invention
The embodiment of the application provides a system reinstallation method and device, which are used for solving the problem that the bound common port needs to be disassembled when the system is reinstalled, and the system reinstallation efficiency is inevitably reduced.
The system reinstallation method provided by the embodiment of the application comprises the following steps:
a server to be reinstalled acquires a system image file to be installed;
restarting the server to be reinstalled to enter a pre-installed memory operating system;
and running the system image file to be installed through the memory operating system to reinstall the system.
Preferably, a system reinstallation request is sent to the webpex platform, and a system image file to be installed corresponding to the system reinstallation request returned by the webpex platform is received.
Preferably, the system image file to be installed is written into the memory through the memory operating system, and the system image file to be installed written into the memory is operated through the memory operating system to perform system reinstallation.
Preferably, the method further comprises: and the server to be reinstalled acquires the binding parameter configuration.
Preferably, the memory operating system runs the system image file to be installed, establishes network connection, and performs binding configuration on the server to be reinstalled according to the acquired binding parameter configuration.
The system reinstallation device that this application embodiment provided, the device includes:
the device comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring a system image file to be installed by the device;
the restarting module is used for restarting the device to enter a pre-installed memory operating system;
and the operation module is used for operating the system image file to be installed through the memory operation system and reinstalling the system.
Preferably, the obtaining module is specifically configured to send a system reinstallation request to the webpex platform, and receive a to-be-installed system image file corresponding to the system reinstallation request returned by the webpex platform.
Preferably, the running module is specifically configured to write the system image file to be installed into the memory through the memory operating system, run the system image file to be installed, which is written into the memory, through the memory operating system, and perform system reinstallation.
Preferably, the obtaining module is further configured to obtain, by the apparatus, a binding parameter configuration.
Preferably, the running module is specifically configured to run the system image file to be installed through the memory operating system, establish a network connection, and perform binding configuration on the server to be reinstalled according to the obtained binding parameter configuration.
The embodiment of the application provides a system reinstallation method and device, in the method, a server to be reinstalled acquires a system image file to be installed, the server to be reinstalled is restarted to enter a pre-installed memory operating system, and the system image file to be installed is operated through the memory operating system to be reinstalled. By the method, the bound common port does not need to be disassembled when the system is reassembled, and the system reassembly efficiency is effectively improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 illustrates a system reassembly process provided in accordance with embodiments of the present application;
fig. 2 is a schematic structural diagram of a system reloading device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a system reinstallation process provided in an embodiment of the present application, which specifically includes the following steps:
s101: and acquiring a system image file to be installed.
In practical application, each server in the server cluster is connected to the switch, and the switch binds the ports of each server into a common port and provides the common port to the outside for users.
However, in practical applications, there may be a case where a system of servers in a server cluster is damaged, and therefore, when the system of the server is damaged, the system needs to be reinstalled for the server, and hereinafter, the server in which the system is damaged and the system needs to be reinstalled is referred to as a server to be installed.
When a damaged server is reinstalled, a system image file to be installed needs to be acquired first, where the system image file to be installed refers to a system file corresponding to an operating system that is run when the server provides a service to the outside, such as a linux system image file.
Further, the present application provides a specific implementation manner in which the server to be reinstalled obtains the system image file to be installed, which is specifically as follows:
the server to be reinstalled can be connected with the webpxe platform through the switch, when the server needs to be reinstalled, a system reinstallation request carrying the identification of the system image file to be installed can be sent to the webpxe platform, and after the webpxe receives the system reinstallation request again, the system image file is determined according to the identification of the system image file to be installed carried in the system reinstallation request, and the system image file is returned to the server to be reinstalled, namely, the server to be reinstalled receives the system image file to be installed corresponding to the system reinstallation request returned by the webxe platform.
It should be noted that the webpxe platform is mainly used for downloading system image files and managing Media Access Control (MAC) addresses, and in addition, other devices may be used instead of the webpxe platform as long as the device can play a role in downloading system image files, for example, a separate server is used for downloading system image files.
Further, after the system image file to be installed is run through the memory operating system and the system is installed, the port of the server to be reassembled needs to be re-bound with the ports of other servers through the switch, that is, the server to be reassembled needs to be bound and configured, so in the application, the binding parameter configuration also needs to be obtained, specifically, an identifier of the binding parameter configuration can be added in a system reassembly request sent to the webpxe platform, the webpxe platform can determine the binding parameter configuration according to the identifier of the binding parameter configuration, and the system image file and the binding parameter configuration are returned to the server to be reassembled.
For example, assuming that a system of a server 1 in a server cluster needs to be reinstalled, the server 1 (i.e., the server to be reinstalled) sends a system reinstallation request carrying an identifier of a system image file to be installed and an identifier of a binding parameter configuration to a webpxe platform, and after the webpxe receives the system reinstallation request, the system image file is determined according to the identifier of the system image file to be installed carried in the system reinstallation request, the binding parameter configuration is determined according to the identifier of the binding parameter configuration, and the system image file is returned to the server 1 to be reinstalled.
S102: and restarting the server to be reinstalled to enter a pre-installed memory operating system.
Further, after the server to be reloaded acquires the system image file, the server to be reloaded needs to be restarted, and the restarted server to be reloaded directly enters a Random Access Memory (RAMOS) installed in the server to be reloaded in advance.
Continuing the above example, the server 1 is restarted to enter the memory operating system RAMOS.
S103: and running the system image file to be installed through the memory operating system to reinstall the system.
And after entering a memory operating system RAMOS which is pre-installed in the server to be reinstalled, running a system image file to be installed through the memory operating system RAMOS.
Further, since the memory operating system can only operate data or objects in the memory, in the present application, running the system image file to be installed through the memory operating system RAMOS specifically includes writing the system image file to be installed into the memory (that is, a disk) through the memory operating system, running the system image file to be installed written into the memory through the memory operating system, and performing system reinstallation.
Further, after the system image file to be installed is run through the memory operating system, the server to be reinstalled also needs to be bound and configured, and if the server to be reinstalled needs to be bound and configured according to the obtained binding parameter configuration, the network connection needs to be reestablished between the server to be reinstalled and the switch.
Continuing to use the above example, writing the system image file to be installed into the disk through the RAMOS, running the system image file to be installed written into the disk through the RAMOS, establishing a network connection between the server 1 and the switch, and performing binding configuration on the server to be reinstalled according to the obtained binding parameter configuration.
By the method, the bound common port does not need to be disassembled when the system is reassembled, and the system reassembly efficiency is effectively improved.
Based on the same idea, the system reloading method provided in the embodiment of the present application further provides a system reloading apparatus, as shown in fig. 2.
Fig. 2 is a schematic structural diagram of a system reloading apparatus according to an embodiment of the present application, including:
an obtaining module 201, configured to obtain a system image file to be installed by the apparatus;
a restart module 202, configured to restart the apparatus to enter a pre-installed memory operating system;
and the running module 203 is configured to run the system image file to be installed through the memory operating system, and perform system reinstallation.
The obtaining module 201 is specifically configured to send a system reinstallation request to the webpex platform, and receive a system image file to be installed corresponding to the system reinstallation request returned by the webpex platform.
The running module 203 is specifically configured to write the system image file to be installed into the memory through the memory operating system, run the system image file to be installed, which is written into the memory, through the memory operating system, and perform system reinstallation.
The obtaining module 201 is further configured to obtain, by the apparatus, a binding parameter configuration.
The running module 203 is specifically configured to run the system image file to be installed through the memory operating system, establish a network connection, and perform binding configuration on the server to be reinstalled according to the obtained binding parameter configuration.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A system reloading method applied to a server to be reloaded connected to a switch in a server cluster, the switch binding ports of the servers in the server cluster to a common port, the method comprising:
a server to be reloaded sends a system reloading request to the webpxe platform through the switch;
receiving a system image file to be installed corresponding to the system reinstallation request returned by the webpex platform;
restarting the server to be reinstalled to enter a pre-installed memory operating system;
and running the system image file to be installed through the memory operating system to reinstall the system.
2. The method according to claim 1, wherein the running of the system image file to be installed by the memory operating system to perform system reinstallation specifically includes:
writing the system image file to be installed into a memory through the memory operating system;
and running the system image file to be installed written into the memory through the memory operating system to reinstall the system.
3. The method of claim 1, wherein the method further comprises:
and the server to be reinstalled acquires the binding parameter configuration.
4. The method according to claim 3, wherein the running of the system image file to be installed by the memory operating system to perform system reinstallation specifically includes:
running the system image file to be installed through the memory operating system;
establishing network connection;
and according to the obtained binding parameter configuration, carrying out binding configuration on the server to be reassembled.
5. A system reloading apparatus for a server to be reloaded in a server cluster connected to a switch, the switch binding ports of the servers in the server cluster to a common port, the apparatus comprising:
the acquisition module is used for sending a system reloading request to the webpex platform by the server to be reloaded through the switch; receiving a system image file to be installed corresponding to the system reinstallation request returned by the webpex platform;
the restarting module is used for restarting the device to enter a pre-installed memory operating system;
and the operation module is used for operating the system image file to be installed through the memory operation system and reinstalling the system.
6. The apparatus according to claim 5, wherein the running module is specifically configured to write the system image file to be installed into a memory through the memory operating system, and run the system image file to be installed, which is written into the memory, through the memory operating system to perform system reinstallation.
7. The apparatus of claim 6, wherein the obtaining module is further for the apparatus to obtain a binding parameter configuration.
8. The apparatus according to claim 7, wherein the running module is specifically configured to run the system image file to be installed through the memory operating system, establish a network connection, and perform binding configuration on the server to be reinstalled according to the obtained binding parameter configuration.
CN201611254363.3A 2016-12-30 2016-12-30 System reinstallation method and device Active CN106681771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611254363.3A CN106681771B (en) 2016-12-30 2016-12-30 System reinstallation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611254363.3A CN106681771B (en) 2016-12-30 2016-12-30 System reinstallation method and device

Publications (2)

Publication Number Publication Date
CN106681771A CN106681771A (en) 2017-05-17
CN106681771B true CN106681771B (en) 2020-12-29

Family

ID=58872764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611254363.3A Active CN106681771B (en) 2016-12-30 2016-12-30 System reinstallation method and device

Country Status (1)

Country Link
CN (1) CN106681771B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547274B (en) * 2017-08-22 2021-03-30 新华三大数据技术有限公司 Multi-network-port aggregation method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025709A (en) * 2006-02-22 2007-08-29 联想(北京)有限公司 System and method for obtaining fault in-situ information for computer operating system
CN101114228A (en) * 2006-07-25 2008-01-30 华为技术有限公司 Method for rapid installing operating system and system thereof
CN101866295A (en) * 2010-06-21 2010-10-20 清华大学 Network installation method of operating system
CN102193813A (en) * 2010-03-09 2011-09-21 上海拜翰网络科技有限公司 Embedded type virtualized quick start method and system
CN102750364A (en) * 2012-06-13 2012-10-24 华为技术有限公司 Method, compiler and system for distributing memory address space for image files
CN103167050A (en) * 2011-12-13 2013-06-19 台达电子工业股份有限公司 Automatic installation and setting method of server
CN103268252A (en) * 2013-05-12 2013-08-28 南京载玄信息科技有限公司 Virtualization platform system based on distributed storage and achieving method thereof
CN103729211A (en) * 2013-12-10 2014-04-16 华为技术有限公司 Operating system recovery method and device and terminal equipment
CN104246698A (en) * 2012-03-27 2014-12-24 章寅生 Computer with flexible operating system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU1885800A (en) * 2000-01-06 2001-07-16 Kam-Fu Chan Running microsoft windows 95/98 on ramdisk
US8171182B2 (en) * 2007-12-07 2012-05-01 Canon Kabushiki Kaisha Method of indicating connectivity of peripheral device to computer operating system
US10282211B2 (en) * 2015-01-09 2019-05-07 Avago Technologies International Sales Pte. Limited Operating system software install and boot up from a storage area network device
CN105740011A (en) * 2016-01-25 2016-07-06 合肥联宝信息技术有限公司 Method for installing operation system for computer through network

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025709A (en) * 2006-02-22 2007-08-29 联想(北京)有限公司 System and method for obtaining fault in-situ information for computer operating system
CN101114228A (en) * 2006-07-25 2008-01-30 华为技术有限公司 Method for rapid installing operating system and system thereof
CN102193813A (en) * 2010-03-09 2011-09-21 上海拜翰网络科技有限公司 Embedded type virtualized quick start method and system
CN101866295A (en) * 2010-06-21 2010-10-20 清华大学 Network installation method of operating system
CN103167050A (en) * 2011-12-13 2013-06-19 台达电子工业股份有限公司 Automatic installation and setting method of server
CN104246698A (en) * 2012-03-27 2014-12-24 章寅生 Computer with flexible operating system
CN102750364A (en) * 2012-06-13 2012-10-24 华为技术有限公司 Method, compiler and system for distributing memory address space for image files
CN103268252A (en) * 2013-05-12 2013-08-28 南京载玄信息科技有限公司 Virtualization platform system based on distributed storage and achieving method thereof
CN103729211A (en) * 2013-12-10 2014-04-16 华为技术有限公司 Operating system recovery method and device and terminal equipment

Also Published As

Publication number Publication date
CN106681771A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
US11093148B1 (en) Accelerated volumes
US9729612B2 (en) Distributed stream processing
US20220058050A1 (en) System and method for distributed security forensics
CN107196982B (en) User request processing method and device
US10146556B2 (en) System and method to perform an OS boot using service location protocol and launching OS using a dynamic update of network boot order without a reboot
US9614931B2 (en) Identifying a resource set require for a requested application and launching the resource set in a container for execution in a host operating system
JP6859340B2 (en) Equipment, systems and methods for retrieving, processing and updating global information
US10409658B2 (en) Batch processing of messages
US10728169B1 (en) Instance upgrade migration
CN111787126B (en) Container creation method, server, and storage medium
US10362110B1 (en) Deployment of client data compute kernels in cloud
US10572294B1 (en) Automated application footprint discovery for application migration to containers
US10484835B2 (en) Publishing messages based on geographic area
CN111930396B (en) Upgrading method of communication module in 4G router based on notify mechanism
CN110928557A (en) Method, device and system for realizing migration of operating system
WO2017148382A1 (en) Method and apparatus for accessing storage device by virtual machine in cloud computing management platform
CN111857956A (en) Virtual machine starting method and equipment
CN112346818A (en) Container application deployment method and device, electronic equipment and storage medium
CN110764930B (en) Request or response processing method and device based on message mode
US10572268B2 (en) Network booting in a peer-to-peer environment using dynamic magnet links
CN106681771B (en) System reinstallation method and device
CN115562871A (en) Memory allocation management method and device
CN114840307A (en) Container loading method, device, equipment and storage medium
CN110968333A (en) Configuration information replacement method and device, machine-readable storage medium and processor
CN115134373A (en) Data synchronization method and device, storage medium and electronic equipment

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
CB02 Change of applicant information

Address after: 100080 A 5 C, block A, China International Steel Plaza, 8 Haidian Avenue, Haidian District, Beijing.

Applicant after: Youku network technology (Beijing) Co., Ltd.

Address before: 100080 A 5 C, block A, China International Steel Plaza, 8 Haidian Avenue, Haidian District, Beijing.

Applicant before: 1Verge Inc.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20200603

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant before: Youku network technology (Beijing) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant