CN105528266A - Convenient SLES12 system auto reboot method - Google Patents
Convenient SLES12 system auto reboot method Download PDFInfo
- Publication number
- CN105528266A CN105528266A CN201610021057.9A CN201610021057A CN105528266A CN 105528266 A CN105528266 A CN 105528266A CN 201610021057 A CN201610021057 A CN 201610021057A CN 105528266 A CN105528266 A CN 105528266A
- Authority
- CN
- China
- Prior art keywords
- reboot
- sles12
- count
- boot
- local
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
Abstract
The invention discloses a convenient SLES12 system auto reboot method. The method comprises the steps of creating a reboot.sh document in a directory of SLES12 system/etc/, adding sh/etc/reboot.sh& to the last line of /etc/rc.d/boot.local, then carrying out a reboot test. The method provided by the invention can be used for conveniently testing the stability of an SLES12 system, and quickly checking a boot failure of a server provided with the SLES 12 system, by using the method, various hidden troubles in a computer starting link in the design of the server can be effectively found, working efficiency of testing personnel can be effectively improved, the labor cost is saved and the accuracy and reliability of work are improved.
Description
Technical field
The present invention relates to network SLES12 systems technology field, be specifically related to one SLES12 system autoboot method easily.
Background technology
Autoboot is the detection method of a kind of good system stability and startup separator.Server unloading phase can carry out initialization operation to all hardware in system, the state of each hardware in detection system, open thread, call and distribute hardware resource.Therefore server unloading phase more easily pinpoint the problems, expose the defect in server development and Design.
Largest domestic server provider has compared the autoboot test focusing on server, and has developed quite ripe RHEL system autoboot method.
SLES system is as one of the linux system of main flow, and apply also more and more general on the server, how the stability of this system detects fast, also becomes the problem that each company more and more payes attention to.Autoboot, as excellent system stability method of testing, becomes one of essential test.
But SLES system, particularly up-to-date SLES12 system, because there is bigger difference with RHEL system on " manage to start and serve ", it is perfect that the method that it realizes autoboot need exploitation.The maximum differential of SLES system and RHEL systematic influence autoreboot is: SLES Xi Tong No has rc.local file.Therefore other strategies of SLES system also cannot start service by rc.local management as RHEL system.In SLES12 system /etc/init.d/boot.local started by/this script of etc/init.d/boot.Boot.local prepares to perform before runlevel environment performs every rcscript at bootscript, and therefore boot.local is being perform script before runlevel starts, and comes into force to all runlevel.RHEL /etc/rc.d/rc.local file be runlevel environment when performing every rcscript the last stage perform, be perform script after runlevel starts, only can realize carrying out performing control to the rcscript of certain runlevel separately.
Summary of the invention
The technical problem to be solved in the present invention is: in order to solve the problem, and the present invention proposes one SLES12 system autoboot method easily, and the realization of simple and fast is tested the reboot of SLES12 system, the stability of rapid detection system and startup separator.
The technical solution adopted in the present invention is:
One is SLES12 system autoboot method easily, described method by creating reboot.sh file under SLES12 system/etc/ catalogue, in last column of/etc/rc.d/boot.local, add sh/etc/reboot.sh &, then carry out reboot test.
Described method performing step is as follows:
1) find/etc/ catalogue, under this catalogue, create count file;
2) under/etc/ catalogue, create reboot.sh file, and this file is edited, edited rear preservation and exited;
3) authority of reboot.sh file is changed for authority can be performed;
4) in last column of/etc/rc.d/boot.local, sh/etc/reboot.sh & is added;
5) authority can be performed for boot.local adds;
6) restart machine, carry out reboot test;
7) check and restart number of times;
8) stop test, enter/etc/rc.d/boot.local catalogue by last column order with " # " comment out; Or deleted, preservation is exited.
Described reboot.sh Document Editing content is as follows:
#!/bin/sh
Count=`cat/etc/count`(` is the key mapping above Tab)
count=$(($count+1))
echo$count>/etc/count
sleep100
init6。
Beneficial effect of the present invention is:
The inventive method can be tested SLES12 system stability simply and easily, rapidly the server having installed SLES12 system is carried out to the investigation of startup separator, utilize the various hidden danger that the method can effectively find in computer starting link in server design, effectively can improve the work efficiency of tester, save human cost, improve accuracy and the reliability of work.
Embodiment
Below in conjunction with embodiment, the present invention is further described:
Embodiment 1:
One is SLES12 system autoboot method easily, described method by creating reboot.sh file under SLES12 system/etc/ catalogue, in last column of/etc/rc.d/boot.local, add sh/etc/reboot.sh &, then carry out reboot test.
Embodiment 2:
On the basis of embodiment 1, described in the present embodiment, method performing step is as follows:
1) find/etc/ catalogue, under this catalogue, create count file;
#cd/etc/
#touchcount
2) under/etc/ catalogue, create reboot.sh file, and this file is edited, edited rear preservation and exited;
#vireboot.sh
3) authority of reboot.sh file is changed for authority can be performed;
#chmod777reboot.sh
4) in last column of/etc/rc.d/boot.local, sh/etc/reboot.sh & is added;
5) authority can be performed for boot.local adds;
#chmod777boot.local
6) restart machine, carry out reboot test;
#init6
7) check and restart number of times;
#cat/etc/count
8) stop test, enter/etc/rc.d/boot.local catalogue by last column order with " # " comment out; Or deleted, preservation is exited.
#vi/etc/rc.d/boot.local
#/etc/reboot.sh&
Embodiment 3:
On the basis of embodiment 2, described in the present embodiment, reboot.sh Document Editing content is as follows:
#!/bin/sh
Count=`cat/etc/count`(` is the key mapping above Tab)
count=$(($count+1))
echo$count>/etc/count
sleep100
init6。
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (3)
1. a SLES12 system autoboot method easily, it is characterized in that: described method by creating reboot.sh file under SLES12 system/etc/ catalogue, in last column of/etc/rc.d/boot.local, add sh/etc/reboot.sh &, then carry out reboot test.
2. one according to claim 1 SLES12 system autoboot method easily, it is characterized in that, described method performing step is as follows:
1) find/etc/ catalogue, under this catalogue, create count file;
2) under/etc/ catalogue, create reboot.sh file, and this file is edited, edited rear preservation and exited;
3) authority of reboot.sh file is changed for authority can be performed;
4) in last column of/etc/rc.d/boot.local, sh/etc/reboot.sh & is added;
5) authority can be performed for boot.local adds;
6) restart machine, carry out reboot test;
7) check and restart number of times;
8) stop test, enter/etc/rc.d/boot.local catalogue by last column order with " # " comment out; Or deleted, preservation is exited.
3. one according to claim 2 SLES12 system autoboot method easily, is characterized in that, described reboot.sh Document Editing content is as follows:
#!/bin/sh
count=`cat/etc/count`
count=$(($count+1))
echo$count>/etc/count
sleep100
init6。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610021057.9A CN105528266A (en) | 2016-01-13 | 2016-01-13 | Convenient SLES12 system auto reboot method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610021057.9A CN105528266A (en) | 2016-01-13 | 2016-01-13 | Convenient SLES12 system auto reboot method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105528266A true CN105528266A (en) | 2016-04-27 |
Family
ID=55770510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610021057.9A Pending CN105528266A (en) | 2016-01-13 | 2016-01-13 | Convenient SLES12 system auto reboot method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105528266A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153611A (en) * | 2017-05-09 | 2017-09-12 | 郑州云海信息技术有限公司 | A kind of method of RHEL7&CentOS7 systems Reboot tests |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060271782A1 (en) * | 2005-05-31 | 2006-11-30 | Masahiro Ishiyama | Network system and method for operating network system |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN104932977A (en) * | 2015-06-12 | 2015-09-23 | 浪潮电子信息产业股份有限公司 | Automatic reboot test method of Solaris system |
CN105068899A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Automatic reboot stability test method for Vmware system |
-
2016
- 2016-01-13 CN CN201610021057.9A patent/CN105528266A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060271782A1 (en) * | 2005-05-31 | 2006-11-30 | Masahiro Ishiyama | Network system and method for operating network system |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN104932977A (en) * | 2015-06-12 | 2015-09-23 | 浪潮电子信息产业股份有限公司 | Automatic reboot test method of Solaris system |
CN105068899A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Automatic reboot stability test method for Vmware system |
Non-Patent Citations (1)
Title |
---|
企图穿越: "在SuSE中设置开机自动启动程序", 《HTTPS://MY.OSCHINA.NET/CAPTAINTHERON/BLOG/3483》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153611A (en) * | 2017-05-09 | 2017-09-12 | 郑州云海信息技术有限公司 | A kind of method of RHEL7&CentOS7 systems Reboot tests |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Gunawi et al. | Why does the cloud stop computing? lessons from hundreds of service outages | |
KR102268355B1 (en) | Cloud deployment infrastructure validation engine | |
CN108418711B (en) | Storage medium for fault management | |
US9575830B2 (en) | Run-time error repairing method, device and system | |
US9396200B2 (en) | Auto-snapshot manager analysis tool | |
US10592237B2 (en) | Efficient detection of architecture related bugs during the porting process | |
CN107526647B (en) | Fault processing method, system and computer program product | |
US8661418B2 (en) | Setting program, workflow creating method, and work flow creating apparatus | |
CN104375910A (en) | Automated startup and shutdown testing method | |
CN104391765A (en) | Method for automatically diagnosing boot failure of server | |
WO2013102812A1 (en) | A fault tolerant system in a loosely-coupled cluster environment | |
CN105068900A (en) | Test method for remote control server cold reboot | |
US20180322029A1 (en) | Method and apparatus for automatic cross-system program debugging | |
Zhang et al. | Onion: identifying incident-indicating logs for cloud systems | |
US9329953B2 (en) | Reducing application downtime during failover | |
CN108572895B (en) | Stability test method for automatically checking software and hardware configuration under Linux | |
US20130185602A1 (en) | Heap dump occurrence detection | |
US10089167B2 (en) | Log file reduction according to problem-space network topology | |
CN104932977A (en) | Automatic reboot test method of Solaris system | |
CN106095680A (en) | A kind of out of order automated testing method of checking disk being applied to Linux | |
CN105760262A (en) | Method for carrying out cross validation on stability of hard disk based on dc and reboot under linux | |
CN105068899A (en) | Automatic reboot stability test method for Vmware system | |
CN105528266A (en) | Convenient SLES12 system auto reboot method | |
JP5495310B2 (en) | Information processing apparatus, failure analysis method, and failure analysis program | |
CN111404780B (en) | Function test method and device for remote direct memory access network cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160427 |
|
RJ01 | Rejection of invention patent application after publication |