CN103019920A - Complete machine non-power-off startup and shutdown method based on Linux system - Google Patents
Complete machine non-power-off startup and shutdown method based on Linux system Download PDFInfo
- Publication number
- CN103019920A CN103019920A CN2012105414786A CN201210541478A CN103019920A CN 103019920 A CN103019920 A CN 103019920A CN 2012105414786 A CN2012105414786 A CN 2012105414786A CN 201210541478 A CN201210541478 A CN 201210541478A CN 103019920 A CN103019920 A CN 103019920A
- Authority
- CN
- China
- Prior art keywords
- test
- restart
- warmboot
- complete machine
- memory
- 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
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a complete machine non-power-off startup and shutdown method based on a Linux system. The method comprises the following specific steps: preparing a test platform; starting up a test host and logging in; copying and setting a warmboot script, and setting restart times and restart preparation time; starting restart testing, detecting and comparing internal storage capacity by using the warmboot script during each restart till the test record reaches the preset times, and finishing a restart process; and checking a relevant startup file, and ending entire test. Compared with the prior art, the complete machine non-power-off startup and shutdown method based on the Linux system has the advantages that test results are intuitional, and the internal storage capacities before and after startup and shutdown and switch-on/off times can be judged directly; and meanwhile, the test method is suitable for various currently popular Linux operating systems.
Description
Technical field
The present invention relates to the computer server technical field, specifically the non-electricity cut-off type method for start-up and shutdown of a kind of complete machine based on linux system.
Background technology
At present industry is restarted in the pressure test in system, how to restart test under Windows OS, simultaneously to restarting Count of Jobs, can only restart and without tally function by manual setting under Linux OS.Be (SuSE) Linux OS and current most high-end server uses, restarting needs in the pressure restarting operation time counting number considering as pressure test.Existence can go out active before and after restarting in addition, repeatedly restarting rear memory size replys normal, need to consider and restart the stability that test is counted in the unattended pressure and memory size records, whole system moves under linux system, assess the stability that tester table is restarted rear system stability and internal memory continuous firing with this.
Summary of the invention
Technical assignment of the present invention is to solve the deficiencies in the prior art, provides a kind of complete machine based on linux system non-electricity cut-off type method for start-up and shutdown.
Technical scheme of the present invention realizes in the following manner, the non-electricity cut-off type method for start-up and shutdown of this a kind of complete machine based on linux system, and its concrete operation step is:
1) setup test platform: the server test main frame of namely preparing to be equipped with (SuSE) Linux OS;
2) open Test Host and login enters operating system;
3) copy arranges the warmboot script, arranges to restart number of times and prepare reboot time;
4) begin to restart test, the warmboot script all detects and contrasts memory size when restarting at every turn: with initial memory size as reference, restart operation all can be with current memory size and internal memory reference capacity comparison at every turn, and the record internal memory did not compare Time To Failure and content when memory size was inconsistent; The accounting file counting is set simultaneously, until test record reaches pre-determined number, finishes restarting process;
5) check relevant startup file, finish whole test.
Preparing the setting of reboot time and number of times in the described step 3) finishes by operation warmboot script under the terminal terminal program.
Restart internal memory checkout, the simulation impact on system and internal memory after server is restarted in actual environment by system in technique scheme: test is considered and interiorly can be caused in the infull situation of identification after existing system to restart, the special memory size testing mechanism that adds, in persistent switch machine environment, guarantee the stability of internal memory continuous firing.
The beneficial effect that the present invention compared with prior art produces is:
The non-electricity cut-off type method for start-up and shutdown of a kind of complete machine based on linux system of the present invention is restarted the stability that test is counted in the unattended pressure and memory size records, system moves by considering under linux system, assess the stability that tester table is restarted rear system stability and internal memory continuous firing with this; Operation directly, be easy to realize, can directly set the preparation reboot time, maximum is restarted number of times and internal memory testing mechanism, more effectively assesses the reliability that tester table is restarted rear internal memory identification; The scope of application is extensive, can be widely used in the test of restarting under present all Linux OS. have good popularizing and generalization.
Description of drawings
Accompanying drawing 1 is realization flow figure of the present invention.
Concrete test flow chart of the present invention during accompanying drawing 2.
Embodiment
Below in conjunction with accompanying drawing the non-electricity cut-off type method for start-up and shutdown of a kind of complete machine based on linux system of the present invention is described in detail below.
Such as accompanying drawing 1, shown in Figure 2; the non-electricity cut-off type method for start-up and shutdown of this a kind of complete machine based on linux system; comprise server power supply, CPU; current detection circuit and Rapid Alarm circuit are set in server power supply inside; be provided with buffer capacitor between described server power supply and the CPU; as shown in Figure 2, its concrete system protection step is:
1) setup test platform: the server test main frame of namely preparing to be equipped with (SuSE) Linux OS;
2) open Test Host and login enters operating system;
3) copy arranges the warmboot script, arranges to restart number of times and prepare reboot time;
4) begin to restart test, the warmboot script all detects and contrasts memory size when restarting at every turn: with initial memory size as reference, restart operation all can be with current memory size and internal memory reference capacity comparison at every turn, and the record internal memory did not compare Time To Failure and content when memory size was inconsistent; The accounting file counting is set simultaneously, until test record reaches pre-determined number, finishes restarting process;
5) check relevant startup file, finish whole test.
Preparing the setting of reboot time and number of times in the described step 3) finishes by operation warmboot script under the terminal terminal program.
As shown in Figure 1, the present invention is by periodically being performed instruction crontab under the linux, regularly executive system carry/the sbin/reboot instruction is to the crontab file, start being set automatically starting timed power on/off test under the crontabcrond service operation linux system; At the beginning of this script running job under the crawl/pro/meminfo initial memory size as reference, restart operation at every turn and all can with current memory size and internal memory reference capacity comparison, not record internal memory relatively fail time and content under warmboot.log and the faillog.log if internal memory is inconsistent to move at script.
As shown in Figure 2, now restarting 500 times, prepare reboot time and be to be example in 6 minutes, use said method to restart test.
1, is ready to the Linux test platform: comprise the Test Host platform, at Test Host (SuSE) Linux OS be installed.
2, Test Host is powered on start enters operating system, uses root user's login.
3, the warmboot script is copied on the linux system desktop.
4, operation terminal terminal program under linux system, under terminal, carry out following operation:
#cd/root/Desktop carriage return
#sh warmboot-m-max 500-time 6 carriage returns
Point out under the Terminal
#creating crontab service...
Stopping crond: [ OK ]
Starting crond: [ OK ]
System will reboot in 6 minutes.
5 ,/root/warmboot/ will generate and can carry out warmboot master routine warmboot.sh.
6, system will grasp under the current system/pro/meminfo in memory size deposit as under/the root/warmboot/conf as internal memory reference value.
7, at this moment/counting count file, warmboot.log and faillog.log file appear restarting in root/Desktop/RebootResult file next time.
8, system will begin to restart test in 6min.
9, restart for the first time that warmboot.sh moves automatically on the backstage after the system, by read/the root/Desktop/RebootResult/count file counts restarting; Grasp simultaneously memory size and the comparison of benchmark memory size under current/proc/meminfo, and warmboot.log and faillog.log are filled in.
10, the test machine continuous service is restarted test 500 times.
11, restart after 500 tests finish, check the warmboot.log file under/root/Desktop/RebootResult, record the preparation reboot time in the file record, test result is Pass entirely; The faillog.log file, the abnormal occurrence such as deadlock, power down or blue screen does not appear that internal memory is lost, in the record that do not report an error, and tester table stable operation in the whole test process.
Test data is as follows:
Warmboot.log deposits restarts record:
Start system reboot test at Sun Sep 9 18:35:12 EDT 2012
No. 1 Sun Sep 9 18:36:01 EDT 2012 Memory check pass
No. 2 Sun Sep 9 18:42:01 EDT 2012 memory check fail
No. 3 Sun Sep 9 18:48:01 EDT 2012 memory check fail
No. 4 Sun Sep 9 18:54:01 EDT 2012 memory check fail
No. 5 Sun Sep 9 19:00:01 EDT 2012 memory check fail
No. 6 Sun Sep 9 19:06:01 EDT 2012 memory check fail
No. 7 Sun Sep 9 19:12:01 EDT 2012 memory check fail
No. 8 Sun Sep 9 19:18:01 EDT 2012 memory check fail
No. 9 Sun Sep 9 19:24:01 EDT 2012 memory check fail
No. 10 Sun Sep 9 19:30:01 EDT 2012 memory check fail
No. 11 Sun Sep 9 19:36:01 EDT 2012 memory check fail
No. 12 Sun Sep 9 19:42:01 EDT 2012 memory check fail
No. 13 Sun Sep 9 19:48:01 EDT 2012 memory check fail
No. 14 Sun Sep 9 19:54:01 EDT 2012 memory check fail
No. 15 Sun Sep 9 20:00:01 EDT 2012 memory check fail
No. 16 Sun Sep 9 20:06:01 EDT 2012 memory check fail
No. 17 Sun Sep 9 20:12:01 EDT 2012 memory check fail
No. 18 Sun Sep 9 20:18:01 EDT 2012 memory check fail
No. 19 Sun Sep 9 20:24:01 EDT 2012 memory check fail
No. 20 Sun Sep 9 20:30:01 EDT 2012 memory check fail
No. 21 Sun Sep 9 20:36:01 EDT 2012 memory check fail
No. 22 Sun Sep 9 20:42:01 EDT 2012 memory check fail
No. 23 Sun Sep 9 20:48:01 EDT 2012 memory check fail
No. 24 Sun Sep 9 20:54:01 EDT 2012 memory check fail
The concrete fail record of depositing among the Faillog.log:
**ERROR** No. 2 Memory check fail Sun Sep 9 18:42:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 3 Memory check fail Sun Sep 9 18:48:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 4 Memory check fail Sun Sep 9 18:54:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 5 Memory check fail Sun Sep 9 19:00:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 6 Memory check fail Sun Sep 9 19:06:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 7 Memory check fail Sun Sep 9 19:12:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 8 Memory check fail Sun Sep 9 19:18:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 9 Memory check fail Sun Sep 9 19:24:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
**ERROR** No. 10 Memory check fail Sun Sep 9 19:30:01 EDT 2012
*Total memory size must be 32905116
------------------------------
*but right now is 32905112
12, after test record detects and finishes, deletion/root/warmboot/warmboot.sh file.
This implementation method mainly is for switching on and shutting down pressure test under the linux system, adopt the program loop tally function that switching on and shutting down are counted, simultaneously coupling system level internal memory and benchmark internal memory contrast mechanism in each system switching machine process to the memory size implementing monitoring.Assess whereby testing service applicator platform operation stability and come the interior purpose that exists system to start self-consistentency and switching on and shutting down test run number of times.
This program has added internal memory identification and counting procedure first in linux operating system switching on and shutting down test, having broken the test of the non-power-off restarting of present linux system complete machine can't the real-time monitoring system memory size and the limitation of switching on and shutting down time counting number, and next has replenished the method for testing that present industry can only be carried out simple linux system switching on and shutting down; The last test result is also comparatively directly perceived, can directly judge switch front and back memory size and switching on and shutting down number of times; This kind method of testing is applicable in the at present popular various (SuSE) Linux OS simultaneously.
Claims (2)
1. non-electricity cut-off type method for start-up and shutdown of the complete machine based on linux system, it is characterized in that: its concrete operation step is:
1) setup test platform: the server test main frame of namely preparing to be equipped with (SuSE) Linux OS;
2) open Test Host and login enters operating system;
3) copy arranges the warmboot script, arranges to restart number of times and prepare reboot time;
4) begin to restart test, the warmboot script all detects and contrasts memory size when restarting at every turn: with initial memory size as reference, restart operation all can be with current memory size and internal memory reference capacity comparison at every turn, and the record internal memory did not compare Time To Failure and content when memory size was inconsistent; The accounting file counting is set simultaneously, until test record reaches pre-determined number, finishes restarting process;
5) check relevant startup file, finish whole test.
2. the non-electricity cut-off type method for start-up and shutdown of a kind of complete machine based on linux system according to claim 1 is characterized in that: the setting of preparing reboot time and number of times in the described step 3) is finished by operation warmboot script under the terminal terminal program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105414786A CN103019920A (en) | 2012-12-14 | 2012-12-14 | Complete machine non-power-off startup and shutdown method based on Linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105414786A CN103019920A (en) | 2012-12-14 | 2012-12-14 | Complete machine non-power-off startup and shutdown method based on Linux system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103019920A true CN103019920A (en) | 2013-04-03 |
Family
ID=47968546
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105414786A Pending CN103019920A (en) | 2012-12-14 | 2012-12-14 | Complete machine non-power-off startup and shutdown method based on Linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103019920A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593269A (en) * | 2013-11-01 | 2014-02-19 | 浪潮电子信息产业股份有限公司 | Automatic cyclic test method of restart pressure of multiple PCIe devices |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN103970660A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Total system stability automatic test method based on crontab |
CN104134467A (en) * | 2014-07-28 | 2014-11-05 | 浪潮(北京)电子信息产业有限公司 | Method for testing reliability of storage system |
CN104572422A (en) * | 2015-02-03 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Memory monitoring achievement method based on startup and shutdown of Linux system |
CN104615519A (en) * | 2015-03-10 | 2015-05-13 | 浪潮集团有限公司 | Method for detecting whether memory capacity of server is lost or not under LINUX system |
CN105718340A (en) * | 2016-01-13 | 2016-06-29 | 浪潮电子信息产业股份有限公司 | Crontab-based CPU stability test method |
CN106776189A (en) * | 2017-01-11 | 2017-05-31 | 郑州云海信息技术有限公司 | It is a kind of that method of testing is restarted based on platform of soaring automatically |
CN109240850A (en) * | 2018-08-21 | 2019-01-18 | 郑州云海信息技术有限公司 | Server DC Reboot test method under a kind of linux system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090292950A1 (en) * | 2008-05-20 | 2009-11-26 | Inventec Corporation | Method for making test fixture |
CN102289398A (en) * | 2010-06-17 | 2011-12-21 | 英业达股份有限公司 | Restart testing method |
CN102411526A (en) * | 2011-12-31 | 2012-04-11 | 曙光信息产业股份有限公司 | Test method for blade server mainboard |
-
2012
- 2012-12-14 CN CN2012105414786A patent/CN103019920A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090292950A1 (en) * | 2008-05-20 | 2009-11-26 | Inventec Corporation | Method for making test fixture |
CN102289398A (en) * | 2010-06-17 | 2011-12-21 | 英业达股份有限公司 | Restart testing method |
CN102411526A (en) * | 2011-12-31 | 2012-04-11 | 曙光信息产业股份有限公司 | Test method for blade server mainboard |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593269A (en) * | 2013-11-01 | 2014-02-19 | 浪潮电子信息产业股份有限公司 | Automatic cyclic test method of restart pressure of multiple PCIe devices |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN103970660A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Total system stability automatic test method based on crontab |
CN104134467A (en) * | 2014-07-28 | 2014-11-05 | 浪潮(北京)电子信息产业有限公司 | Method for testing reliability of storage system |
CN104572422A (en) * | 2015-02-03 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Memory monitoring achievement method based on startup and shutdown of Linux system |
CN104615519A (en) * | 2015-03-10 | 2015-05-13 | 浪潮集团有限公司 | Method for detecting whether memory capacity of server is lost or not under LINUX system |
CN105718340A (en) * | 2016-01-13 | 2016-06-29 | 浪潮电子信息产业股份有限公司 | Crontab-based CPU stability test method |
CN106776189A (en) * | 2017-01-11 | 2017-05-31 | 郑州云海信息技术有限公司 | It is a kind of that method of testing is restarted based on platform of soaring automatically |
CN109240850A (en) * | 2018-08-21 | 2019-01-18 | 郑州云海信息技术有限公司 | Server DC Reboot test method under a kind of linux system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103019920A (en) | Complete machine non-power-off startup and shutdown method based on Linux system | |
CN103744764A (en) | Crontab based whole computer memory stability test method | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN107688531B (en) | Geo-database integration test method, device, computer equipment and storage medium | |
CN101576860B (en) | Detection method and detection system of linux or windows operation system | |
CN104281520B (en) | Tracking and method, the apparatus and system of debugging | |
CN102760090B (en) | Debugging method and computer system | |
CN110750396B (en) | Server operating system compatibility testing method and device and storage medium | |
CN102279787A (en) | Method and device for testing average fault-free time | |
CA2836333A1 (en) | Firmware upgrade error detection and automatic rollback | |
CN101887393A (en) | Equipment fault reproduction method and system based on para-virtualization technique | |
CN107590042A (en) | A kind of server method for testing open/close machine and system based on linux system | |
CN105718340A (en) | Crontab-based CPU stability test method | |
CN107656705B (en) | Computer storage medium and data migration method, device and system | |
CN106528354B (en) | A kind of automatic method of burning memory power fru id | |
CN103593269A (en) | Automatic cyclic test method of restart pressure of multiple PCIe devices | |
CN104714863A (en) | Method for completely storing Raid card logs on basis of Linux operation system after system crashes | |
CN110825569B (en) | Hard disk stability test method and test system | |
CN114706708B (en) | Fault analysis method and system for Linux operating system | |
CN110427289A (en) | The method and device that automatic test SSD power down influences data consistency | |
CN110704287B (en) | RAID card abnormal log collection method and system under Linux system and storage medium | |
CN105718330A (en) | Linux system backup data recovery method and device | |
CN102520880B (en) | System raid management module design method | |
CN104346239A (en) | Method and device for recovering anomaly of application program in embedded system | |
CN112463623A (en) | Method and device for realizing RMT automatic test based on OSES |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130403 |