CN114253609B - Method and system for installing OS system through network PXE based on Feiteng platform - Google Patents

Method and system for installing OS system through network PXE based on Feiteng platform Download PDF

Info

Publication number
CN114253609B
CN114253609B CN202111328645.4A CN202111328645A CN114253609B CN 114253609 B CN114253609 B CN 114253609B CN 202111328645 A CN202111328645 A CN 202111328645A CN 114253609 B CN114253609 B CN 114253609B
Authority
CN
China
Prior art keywords
file
raid
guide
grub
pxe
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
CN202111328645.4A
Other languages
Chinese (zh)
Other versions
CN114253609A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111328645.4A priority Critical patent/CN114253609B/en
Publication of CN114253609A publication Critical patent/CN114253609A/en
Application granted granted Critical
Publication of CN114253609B publication Critical patent/CN114253609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides a method and a system for installing an OS system through a network PXE based on a Feiteng platform. After the method is imported into a factory environment, the method can be completed only by manually obtaining the grub starting guide page in PXE and selecting the corresponding guide item, and instructions are not manually input by manpower, so that the labor cost is saved, the efficiency is improved, and the risk is reduced.

Description

Method and system for installing OS system through network PXE based on Feiteng platform
Technical Field
The invention relates to the technical field of server system installation, in particular to a method and a system for installing an OS system through a network PXE based on a Feiteng platform.
Background
The invention relates to a Feiteng storage server product, wherein in the diagnosis process of a factory, a UOS system is firstly installed on a machine to be tested, then the deployment of diagnostic software is executed on the UOS system, and finally the diagnosis before leaving the factory is finished. The predetermined configuration of the Feiteng storage server is to match a Botong 9440 or 9460RAID card, and two SSD system disks are installed on the RAID card and are required to do RAID1 (disk mirror image). Since the system disk is mounted on the RAID card, the system disk is not visible in the initial state, and cannot be found when the OS system is mounted through the network PXE (preboot execute environment, standard for booting the system through the network by Intel).
When an error occurs in entering the PXE installation interface, an operator operates and executes related instructions to complete RAID1, and after the RAID1 is completed, the operation is restarted and then the PXE is guided to complete the installation of the OS system. However, this method requires operators to connect a keyboard and a display to each machine to be tested, and manual operation instructions are completed, and 5-7 minutes are required for counting the completion of one operation.
Disclosure of Invention
The invention aims to provide a method and a system for installing an OS system through a network PXE based on a Feiteng platform, which aim to solve the problem that time and labor are wasted when the OS system is installed through the network PXE in the prior art, realize that instructions are not manually input any more, save labor cost, improve efficiency and reduce risks.
In order to achieve the technical purpose, the invention provides a method for installing an OS system through a network PXE based on a Feiteng platform, which comprises the following operations:
modifying init files under a system initrd path on an existing UOS operating system host, and configuring a demand group RAID according to a RAID card;
generating a customized guide img file according to the modified init file;
modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as a guide file, and completing the addition of the custom starting item;
and selecting a newly added starting item on a grub starting guide page of the PXE to complete automatic installation of the UOS system.
Preferably, the RAID according to the RAID card configuration requirement group is specifically:
the enc of the hard disk on the RAID controller is shown as slt;
extracting a complete enc corresponding to slt0 and slt 1;
and according to slt0, the corresponding enc of slt1 is slt group RAID1.
Preferably, the RAID according to the RAID card configuration requirement group is performed by adopting a garcali tool.
Preferably, the generating the customized guide img file is specifically that the file under the package initrd path is an img format compressed file.
The invention also provides a system for installing the OS system through the network PXE based on the Feiteng platform, which comprises:
the RAID group module is used for modifying init files under the initrd path of the system on the existing UOS operating system host, and configuring a required RAID group according to the RAID card;
the guide file customizing module is used for generating a customized guide img file according to the modified init file;
the guide item adding module is used for modifying a grub file started by the system, adding a corresponding menu item on a guide grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as the guide file, and completing the addition of the custom starting item;
and the system automatic installation module is used for selecting newly added starting items on a grub starting guide page of the PXE to complete automatic installation of the UOS system.
Preferably, the operations implemented by the group RAID module include:
the enc of the hard disk on the RAID controller is shown as slt;
extracting a complete enc corresponding to slt0 and slt 1;
and according to slt0, the corresponding enc of slt1 is slt group RAID1.
Preferably, the RAID according to the RAID card configuration requirement group is performed by adopting a garcali tool.
Preferably, the generating the customized guide img file is specifically that the file under the package initrd path is an img format compressed file.
The effects provided in the summary of the invention are merely effects of embodiments, not all effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the invention completes the RAID1 automation group on the premise of invisible system disk, generates the img file of the customized plate, finally adds corresponding guide items on the guide grub interface of PXE, achieves the purpose of automatically installing the UOS system by combining the three, and finally realizes the diagnosis of the product. After the method is imported into a factory environment, the method can be completed only by manually obtaining the grub starting guide page in PXE and selecting the corresponding guide item, and instructions are not manually input by manpower, so that the labor cost is saved, the efficiency is improved, and the risk is reduced.
Drawings
FIG. 1 is a flowchart of a method for installing an OS system via a network PXE based on a Feiteng platform according to an embodiment of the present invention;
fig. 2 is a block diagram of an OS installation system through a network PXE based on a Feiteng platform according to an embodiment of the present invention.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
The following describes in detail a method and a system for installing an OS system through a network PXE based on a Feiteng platform according to an embodiment of the present invention with reference to the accompanying drawings.
As shown in fig. 1, the present invention discloses a method for installing an OS system through a network PXE based on a Feiteng platform, the method comprising the following operations:
modifying init files under a system initrd path on an existing UOS operating system host, and configuring a demand group RAID according to a RAID card;
generating a customized guide img file according to the modified init file;
modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as a guide file, and completing the addition of the custom starting item;
and selecting a newly added starting item on a grub starting guide page of the PXE to complete automatic installation of the UOS system.
According to RAID card configuration of the server, the embodiment of the invention makes customized initrd. Img, wherein initrd is an internal memory disk initialized by an OS boot loader, modifies grub guide files and points to the modified initrd. Img, and finally completes preassembly of the UOS system, further completes diagnosis work of a tester by deploying a diagnosis program in the UOS system.
In the embodiment of the invention, the init file under the initrd path of the UOS is modified from another host or virtual machine installed with the UOS, and the RAID requirement of the product according to the embodiment completes the RAID of the automation group. And (3) issuing instructions by a system: the storli 64/c0 show|sed-n '/EID: slt/EID=/p', shows the hard disk list enc: slt on the RAID controller according to the Storcli tool. And (3) issuing instructions by a system: slt= $ (store li64/c 0/earl/sal show |sed-n '/EID: slt,/eid=/p' |grep-wE 0-9 +: [01] |awk '{ print $1}' |xargs|tr '",') extracting the complete enc: slt corresponding to Slt0, slt1, issuing instructions: the complete enc corresponding to slt0 and slt1 is used for the storcali 64/c0 add vd r1 drives= $slt, and slt group RAID1.
Since the foregoing steps modify the init file of the embodiment of the present invention, the instruction is issued by the system: find. I cpio-co. Gzip-9> AS13000G5.Img to generate a customized img file.
Modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of PXE, adding a custom starting item, generating a new grub configuration file, and completing the addition of the custom starting item by the following instructions:
wherein Run Diags Install UOS Server Sp2-http AS13000G5-C is the name of a guide item grub, and the guide item is configured with img files uos-server-arm-Sp2/AS 13000G5-C.img generated in the steps.
Before diagnosis aging is carried out on the Feiteng storage server, the automatic installation of the UOS system can be completed by selecting a starting item Run Diags Install UOS Server Sp2-http AS13000G5-C on a grub starting guide page of PXE.
According to the embodiment of the invention, the RAID1 of the automation group is completed on the premise of invisible system disk, the img file of the customized plate is generated, and finally, corresponding guide items are added on the guide grub interface of PXE, so that the purpose of automatically installing the UOS system is achieved through the combination of the three items, and finally, the diagnosis of the product is realized. After the method is imported into a factory environment, the method can be completed only by manually obtaining the grub starting guide page in PXE and selecting the corresponding guide item, and instructions are not manually input by manpower, so that the labor cost is saved, the efficiency is improved, and the risk is reduced.
As shown in fig. 2, the embodiment of the present invention further discloses a system for installing an OS system through a network PXE based on a flying platform, where the system includes:
the RAID group module is used for modifying init files under the initrd path of the system on the existing UOS operating system host, and configuring a required RAID group according to the RAID card;
the guide file customizing module is used for generating a customized guide img file according to the modified init file;
the guide item adding module is used for modifying a grub file started by the system, adding a corresponding menu item on a guide grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as the guide file, and completing the addition of the custom starting item;
and the system automatic installation module is used for selecting newly added starting items on a grub starting guide page of the PXE to complete automatic installation of the UOS system.
According to RAID card configuration of the server, the embodiment of the invention makes customized initrd. Img, wherein initrd is an internal memory disk initialized by an OS boot loader, modifies grub guide files and points to the modified initrd. Img, and finally completes preassembly of the UOS system, further completes diagnosis work of a tester by deploying a diagnosis program in the UOS system.
In the embodiment of the invention, the init file under the initrd path of the UOS is modified from another host or virtual machine installed with the UOS, and the RAID requirement of the product according to the embodiment completes the RAID of the automation group. And (3) issuing instructions by a system: the storli 64/c0 show|sed-n '/EID: slt/EID=/p', shows the hard disk list enc: slt on the RAID controller according to the Storcli tool. And (3) issuing instructions by a system: slt= $ (store li64/c 0/earl/sal show |sed-n '/EID: slt,/eid=/p' |grep-wE 0-9 +: [01] |awk '{ print $1}' |xargs|tr '",') extracting the complete enc: slt corresponding to Slt0, slt1, issuing instructions: the complete enc corresponding to slt0 and slt1 is used for the storcali 64/c0 add vd r1 drives= $slt, and slt group RAID1.
Since the foregoing steps modify the init file of the embodiment of the present invention, the instruction is issued by the system: find. I cpio-co. Gzip-9> AS13000G5.Img to generate a customized img file.
Modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of PXE, adding a custom starting item, generating a new grub configuration file, and completing the addition of the custom starting item by the following instructions:
wherein RunDiags Install UOS Server Sp2-http AS13000G5-C is the name of a guide item grub, and the guide item is configured with img files uos-server-arm-Sp2/AS 13000G5-C.img generated in the steps.
Before diagnosis aging is carried out on the Feiteng storage server, the automatic installation of the UOS system can be completed by selecting a starting item Run Diags Install UOS Server Sp2-http AS13000G5-C on a grub starting guide page of PXE.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (4)

1. A method for installing an OS system via a network PXE based on a Feiteng platform, the method comprising the operations of:
modifying init files under a system initrd path on an existing UOS operating system host, and configuring a demand group RAID according to a RAID card;
generating a customized guide img file according to the modified init file;
modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as a guide file, and completing the addition of the custom starting item;
selecting a newly added starting item on a grub starting guide page of PXE to finish automatic installation of the UOS system;
the RAID according to the RAID card configuration requirement group specifically comprises the following steps:
the enc of the hard disk on the RAID controller is shown as slt;
extracting a complete enc corresponding to slt0 and slt 1;
according to slt0 and the corresponding enc of slt1, slt group RAID1;
and the RAID is performed by adopting a garcili tool according to the RAID card configuration requirement group.
2. The method for installing an OS system via a network PXE based on a Feiteng platform of claim 1, wherein the generating the customized boot img file is specifically a packaged initrd path file that is an img format compressed file.
3. A system for installing an OS system over a network PXE based on a fly-by platform, the system comprising:
the RAID group module is used for modifying init files under the initrd path of the system on the existing UOS operating system host, and configuring a required RAID group according to the RAID card;
the guide file customizing module is used for generating a customized guide img file according to the modified init file;
the guide item adding module is used for modifying a grub file started by the system, adding a corresponding menu item on a guide grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as the guide file, and completing the addition of the custom starting item;
the system automatic installation module is used for selecting newly added starting items on a grub starting guide page of the PXE to complete automatic installation of the UOS system;
the operations implemented by the set of RAID modules include:
the enc of the hard disk on the RAID controller is shown as slt;
extracting a complete enc corresponding to slt0 and slt 1;
according to slt0 and the corresponding enc of slt1, slt group RAID1;
and the RAID is performed by adopting a garcili tool according to the RAID card configuration requirement group.
4. A system for installing an OS system over a network PXE based on a Feiteng platform according to claim 3, wherein the generating of the customized boot img file is specifically the packing of the file under the initrd path into an img format compressed file.
CN202111328645.4A 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform Active CN114253609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111328645.4A CN114253609B (en) 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111328645.4A CN114253609B (en) 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform

Publications (2)

Publication Number Publication Date
CN114253609A CN114253609A (en) 2022-03-29
CN114253609B true CN114253609B (en) 2023-07-18

Family

ID=80792430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111328645.4A Active CN114253609B (en) 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform

Country Status (1)

Country Link
CN (1) CN114253609B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514022A (en) * 2013-10-22 2014-01-15 浪潮电子信息产业股份有限公司 RAID card drive integration method under LINUX
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
US10180845B1 (en) * 2015-11-13 2019-01-15 Ivanti, Inc. System and methods for network booting
CN111966384A (en) * 2020-10-20 2020-11-20 腾讯科技(深圳)有限公司 System updating method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514022A (en) * 2013-10-22 2014-01-15 浪潮电子信息产业股份有限公司 RAID card drive integration method under LINUX
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
US10180845B1 (en) * 2015-11-13 2019-01-15 Ivanti, Inc. System and methods for network booting
CN111966384A (en) * 2020-10-20 2020-11-20 腾讯科技(深圳)有限公司 System updating method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114253609A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN110309071B (en) Test code generation method and module, and test method and system
US7908518B2 (en) Method, system and computer program product for failure analysis implementing automated comparison of multiple reference models
CN103514023A (en) Method and system for off-line and automatically installing software of virtual machine
CN113835644B (en) Complete machine migration method, device, equipment and storage medium
CN113326105B (en) Hardware equipment configuration method, device and equipment based on host migration
CN111459606A (en) Method for quickly creating virtual machine under virtualization and server
CN104461402A (en) Method for adjusting disk sequence among multiple controllers under linux system
CN112199273A (en) Virtual machine pressure/performance testing method and system
CN109558146A (en) Application issued method, apparatus and storage medium
CN115203054A (en) Virtual chip test system
CN111679889A (en) Virtual machine conversion migration method and system
CN113032246B (en) SSD firmware operation method and device, readable storage medium and electronic equipment
CN111694604A (en) Method, device and equipment for installing drivers in batches and machine-readable storage medium
CN112506772B (en) Web automatic test method, device, electronic equipment and storage medium
CN112764981B (en) Cooperative testing system and method
CN102880479B (en) A kind of method of remotely modifying BIOS property parameters and device
CN114253609B (en) Method and system for installing OS system through network PXE based on Feiteng platform
US20210034401A1 (en) Cross-hypervisor virtual machine conversion
CN103246544A (en) Virtual hardware drive terminal and method
CN116112412A (en) Virtual network card binding redundancy function test method, system, device and medium
CN115437948A (en) SR-IOV virtualization test method and system for SSD hard disk
CN103632090A (en) Method for operating virtual firewall on virtual machine
CN114327498A (en) Automated deployment method, system, electronic device and computer readable medium
CN113064698A (en) Method for providing product environment and corresponding device, system, equipment and medium
CN114443582B (en) File system mounting method, device, equipment and medium on operating 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