CN109582373A - A kind of starting method and device of system test system - Google Patents

A kind of starting method and device of system test system Download PDF

Info

Publication number
CN109582373A
CN109582373A CN201811421677.7A CN201811421677A CN109582373A CN 109582373 A CN109582373 A CN 109582373A CN 201811421677 A CN201811421677 A CN 201811421677A CN 109582373 A CN109582373 A CN 109582373A
Authority
CN
China
Prior art keywords
file
nfs
server
catalogue
minimum image
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
Application number
CN201811421677.7A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811421677.7A priority Critical patent/CN109582373A/en
Publication of CN109582373A publication Critical patent/CN109582373A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of starting method and devices of system test system, which comprises makes minimum image file on a virtual machine respectively, makes NFS system on the server, and the minimum image file is mounted to NFS system;When server is switched on, minimum image starting is guided, and switch to NFS diagnostic system.The present invention starts minimum image file first, is then switched to NFS diagnostic system, complete the starting of system test system when server is switched on, and because mirror image is small, starting speed is fast.And NFS diagnostic system is switched to by the starting of minimum image file, greatly reduce the maintenance difficulties of NFS system.

Description

A kind of starting method and device of system test system
Technical field
The present invention relates to server diagnostic techniques field, the starting method and dress of specifically a kind of system test system It sets.
Background technique
For the quality of server for guaranteeing factory, diagnostic tool is required in the large-scale production stage of present plant server Carry out testing product quality, many-sided performance of server is required to diagnose, therefore is usually realized with diagnostic system.
Diagnostic system industry generally uses ramdisk without disc system, which increases new function, driving and tool, all Mirror image is remake, difficult in maintenance, with the continuous increase of image file, starting speed can be slower and slower.
Summary of the invention
A kind of starting method and device of system test system is provided in the embodiment of the present invention, to solve in the prior art Server diagnostic system starts slow-footed problem.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
First aspect present invention provides a kind of starting method of system test system, the described method comprises the following steps:
It makes minimum image file on a virtual machine respectively, makes NFS system on the server, and by the minimum mirror image File mount is to NFS system;
When server is switched on, minimum image starting is guided, and switch to NFS (Network File System, i.e. network File system) diagnostic system.
With reference to first aspect, in a first possible implementation of that first aspect, the production on a virtual machine is minimum The detailed process of image file are as follows:
Creation makes the environment of minimum image file on a virtual machine;
Under different directories, adds device file respectively and configuration file, the device file are added to ramdisk catalogue Under;
Under file where file where configuration file is copied to device file;
Using mirror image tools, ramdisk catalogue is fabricated to image file.
With reference to first aspect, in a first possible implementation of that first aspect, the ramdisk catalogue is in root Ramdisk file under, the device file includes console file and null file.
With reference to first aspect, in a first possible implementation of that first aspect, the configuration file is saved to root mesh Under the etc file of record, and the rc.local file under etc catalogue is modified, after making minimum image starting, switches to NFS diagnosis System.
With reference to first aspect, in a second possible implementation of that first aspect, described to make NFS on the server The detailed process of system are as follows:
The environment of creation production NFS system on the server;
By under root All Files and permission be copied under netroot catalogue, the netroot catalogue be/ Newly-built catalogue under tftpboot catalogue;
Etc/fstab/ File under netroot catalogue is modified, network carry mode is changed to.
With reference to first aspect, in a second possible implementation of that first aspect, when server is switched on, PXE is utilized (preboot execute environment, Pre-boot Execution Environment) guides minimum image starting.
Second aspect of the present invention provides a kind of starter of system test system, and described device includes
Minimum image file for making minimum image file on a virtual machine, and is mounted to NFS by mirror image production unit System;
NFS production unit for making NFS system on the server, and is set as network carry mode;
Be switched on guidance unit, for guiding minimum image starting, and switch to NFS diagnostic system in server booting.
The starter of the system test system of second aspect of the present invention can be realized first aspect and first aspect Each implementation in method, and obtain identical effect.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution have the following advantages that or the utility model has the advantages that
1, when server is switched on, starts minimum image file first, be then switched to NFS diagnostic system, complete complete machine and survey The starting of test system, because mirror image is small, starting speed is fast.And NFS diagnostic system is switched to by the starting of minimum image file, greatly The maintenance difficulties of NFS system are reduced greatly.
2, it when needing to increase new diagnostic function, tool and driving, does not need to remake NFS system, it is only necessary to Corresponding file copy can be called to respective directories in the operation of NFS system, carry out diagnostic test.
3, during the test suspension when, NFS system can be hung, but minimum image file is also being run, therefore is being inserted again After cable, diagnostic work can be restored, effectively improve server diagnosis efficiency and accuracy.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the method for the invention embodiment;
Fig. 2 is the production process schematic diagram of minimum image file of the invention;
Fig. 3 is the structural scheme of mechanism of system of the present invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, a kind of starting method of system test system of the invention the following steps are included:
S1 makes minimum image file on a virtual machine respectively, makes NFS system on the server, and by the minimum Image file is mounted to NFS system;
S2 when server is switched on, guides minimum image starting, and switch to NFS diagnostic system.
As shown in Fig. 2, the detailed process of minimum image file is made in step S1 on a virtual machine are as follows:
S11, creation makes the environment of minimum image file on a virtual machine;
The minimum system of Redhat7 is installed on a virtual machine, creation makes the environment of minimum image file.
S12 adds device file respectively and configuration file, the device file is added to ramdisk under different directories Under catalogue;
The file for creating a ramdisk under the root directory, executes order " mkdirusr/ under ramdisk file Bin usr/sbin usr/lib lib/modules dev etc " creates ramdisk catalogue;Then call instruction " mknod- 666 console c 51 of m " and " 666 null 13 of mknod-m " create device file and specified permission, in ramdisk Newly-built device file is added in catalogue.Device file includes console file and null file
Configuration file is added in the etc file under root.
File where configuration file is copied under the file of device file place by S13;
Etc file under root is copied in the etc under ramdisk catalogue, etc/rc.local is then modified File can automatically switch to NFS system after starting system.
Modification to etc/rc.local file is realized by mount and chroot instruction.
Ramdisk catalogue is fabricated to image file using mirror image tools by S14.
The catalogue of ramdisk is fabricated to image file by genext2fs, minimum ramdisk system just completes.
The detailed process of NFS system is made on the server are as follows:
Redhat full version is installed on the server, to create the environment of production NFS system;Server/ New netroot catalogue under tftpboot catalogue, and the All Files band permission under root is copied under netroot, then Etc/fstab/ file under netroot is modified, network carry mode is changed to.When needing to increase new function, new driving and new tool When, directly corresponding tool (or driving) is copied under the correspondence catalogue of NFS system, the NFS system without the property remake System.
In step S2, minimum image starting, start quickly speed are guided using PXE.
The configuration process of server PXE guidance are as follows:
Server etc/xinetd.d/tftp file is modified, specifies tftp service to/tftpboot catalogue.It is soft that NFS is installed Part packet is configured to server with DHCP (Dynamic Host Configuration Protocol, dynamic host configuration Agreement), the PXE server of TFTP (Trivial File Transfer Protocol, Simple File Transfer Protocol) function, draw It leads as ramdisk minimum mirror image.
After the operation of above-mentioned steps, server booting, PXE guides minimum ramdisk starting, minimum image starting Afterwards, automatic running rc.local, execution are switched to NFS system acting, and the operation of NFS controversial issue system starts to carry out diagnostic test.
As shown in figure 3, a kind of starter of system test system of the invention includes mirror image production unit 1, NFS production Unit 2 and booting guidance unit 3.
Minimum image file is mounted to NFS for making minimum image file on a virtual machine by mirror image production unit 1 System.NFS production unit 2 for making NFS system on the server, and it is network carry mode that NFS system, which is arranged,.Booting is drawn Unit is led for guiding minimum image starting, and switch to NFS diagnostic system in server booting.
The above is the preferred embodiment of the present invention, for those skilled in the art, Without departing from the principles of the invention, several improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection scope.

Claims (7)

1. a kind of starting method of system test system, characterized in that the described method comprises the following steps:
It makes minimum image file on a virtual machine respectively, makes NFS system on the server, and by the minimum image file It is mounted to NFS system;
When server is switched on, minimum image starting is guided, and switch to NFS diagnostic system.
2. a kind of starting method of system test system according to claim 1, characterized in that described to make on a virtual machine Make the detailed process of minimum image file are as follows:
Creation makes the environment of minimum image file on a virtual machine;
Under different directories, adds device file respectively and configuration file, the device file are added under ramdisk catalogue;
Under file where file where configuration file is copied to device file;
Using mirror image tools, ramdisk catalogue is fabricated to image file.
3. a kind of starting method of system test system according to claim 2, characterized in that the ramdisk catalogue Under the ramdisk file of root, the device file includes console file and null file.
4. a kind of starting method of system test system according to claim 2, characterized in that the configuration file saves To the etc file of root, and modifies the rc.local file under etc catalogue and switched to after making minimum image starting NFS diagnostic system.
5. a kind of starting method of system test system according to claim 1, characterized in that described to make on the server Make the detailed process of NFS system are as follows:
The environment of creation production NFS system on the server;
By under root All Files and permission be copied under netroot catalogue, the netroot catalogue be /tftpboot Newly-built catalogue under catalogue;
Etc/fstab/ File under netroot catalogue is modified, network carry mode is changed to.
6. a kind of starting method of system test system according to claim 1, characterized in that when server is switched on, benefit Minimum image starting is guided with PXE.
7. a kind of starter of system test system, characterized in that described device includes
Minimum image file for making minimum image file on a virtual machine, and is mounted to NFS system by mirror image production unit System;
NFS production unit for making NFS system on the server, and is set as network carry mode;
Be switched on guidance unit, for guiding minimum image starting, and switch to NFS diagnostic system in server booting.
CN201811421677.7A 2018-11-26 2018-11-26 A kind of starting method and device of system test system Pending CN109582373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811421677.7A CN109582373A (en) 2018-11-26 2018-11-26 A kind of starting method and device of system test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811421677.7A CN109582373A (en) 2018-11-26 2018-11-26 A kind of starting method and device of system test system

Publications (1)

Publication Number Publication Date
CN109582373A true CN109582373A (en) 2019-04-05

Family

ID=65924731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811421677.7A Pending CN109582373A (en) 2018-11-26 2018-11-26 A kind of starting method and device of system test system

Country Status (1)

Country Link
CN (1) CN109582373A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145121A (en) * 2006-09-13 2008-03-19 鸿富锦精密工业(深圳)有限公司 Computer test method
CN101944129A (en) * 2010-09-21 2011-01-12 广东威创视讯科技股份有限公司 Diskless system, workstation thereof, and building method of local root file by workstation
CN102457541A (en) * 2010-10-25 2012-05-16 鸿富锦精密工业(深圳)有限公司 System and method for avoiding resource competition during starting diskless workstation
CN106897064A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of method and device of configuration BIOS
CN108287773A (en) * 2018-01-17 2018-07-17 郑州云海信息技术有限公司 A kind of general board diagnostic method and device based on PXE

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145121A (en) * 2006-09-13 2008-03-19 鸿富锦精密工业(深圳)有限公司 Computer test method
CN101944129A (en) * 2010-09-21 2011-01-12 广东威创视讯科技股份有限公司 Diskless system, workstation thereof, and building method of local root file by workstation
CN102457541A (en) * 2010-10-25 2012-05-16 鸿富锦精密工业(深圳)有限公司 System and method for avoiding resource competition during starting diskless workstation
CN106897064A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of method and device of configuration BIOS
CN108287773A (en) * 2018-01-17 2018-07-17 郑州云海信息技术有限公司 A kind of general board diagnostic method and device based on PXE

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BOUGH22: "制作ramdisk,并测试小小的led驱动", 《HTTP://M.BLOG.CHINAUNIX.NET/UID-27025492-ID-3264724.HTML?IVK_SA=1024320U》 *

Similar Documents

Publication Publication Date Title
US11150952B2 (en) Accelerating and maintaining large-scale cloud deployment
CN103984575A (en) Rapid deployment method of cluster Linux operation system in cloud-computing environment
US7827548B1 (en) Environment-neutral application build
CN107463388B (en) UEFI diskless starting method
CN1731738A (en) Automated quick deployment method for large-scale computer cluster node
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
JP4840670B2 (en) Virtual machine deployment acceleration system, method and program thereof
WO2021107179A1 (en) Method and device for automatic generation of setting code of autosar-based application software
CN105068845A (en) Method for quickly updating firmware and guiding firmware to enter operating system
CN106803794A (en) A kind of kvm virtual machine network interface card direction connection methods and its device for main frame
CN111475172A (en) Bare machine deployment method and device
CN104407890A (en) Method for starting Android system from OTG (On-The-Go) equipment
CN102902526A (en) Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay
CN106789205A (en) Cluster command operation method and system
CN109582373A (en) A kind of starting method and device of system test system
CN102053845B (en) Electronic device for automatically and continuously mounting operating system and related method and system thereof
EP3193253A1 (en) Method, apparatus and system for displaying names of virtual machine
CN106878082B (en) Virtual network card hot migration method and device
CN105528237A (en) Openstack-based physical machine system packaging method
CN106406978B (en) Private cloud virtual machine template automatic manufacturing device and method
CN108287773A (en) A kind of general board diagnostic method and device based on PXE
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN110737444A (en) Remote self-adaptive dynamic deployment method and system for operating system based on firmware
Anuzelli et al. Dynamips/dynagen tutorial
CN109474500A (en) A kind of the virtual communication function test method and system of IB card

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190405