CN107168819A - A kind of operating system method for restarting and device - Google Patents

A kind of operating system method for restarting and device Download PDF

Info

Publication number
CN107168819A
CN107168819A CN201710209823.9A CN201710209823A CN107168819A CN 107168819 A CN107168819 A CN 107168819A CN 201710209823 A CN201710209823 A CN 201710209823A CN 107168819 A CN107168819 A CN 107168819A
Authority
CN
China
Prior art keywords
detection project
operating system
equipment
project
testing result
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.)
Granted
Application number
CN201710209823.9A
Other languages
Chinese (zh)
Other versions
CN107168819B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710209823.9A priority Critical patent/CN107168819B/en
Publication of CN107168819A publication Critical patent/CN107168819A/en
Application granted granted Critical
Publication of CN107168819B publication Critical patent/CN107168819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/1438Restarting or rejuvenating
    • 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/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiments of the invention provide a kind of operating system method for restarting and device, methods described includes:Receive operating system instruction of restarting;Operating system is detected according to default detection project, wherein, the detection project includes:Configure detection project and equipment detection project;The testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization test equipment, so that virtualization test equipment simulated operating system is restarted;The analog result that the virtualization test equipment is sent is received, reboot operation system is determined whether according to the analog result.Using scheme reboot operation system provided in an embodiment of the present invention, it is possible to reduce operating system restarts the probability of failure.

Description

A kind of operating system method for restarting and device
Technical field
The present invention relates to O&M technical field, more particularly to a kind of operating system method for restarting and device.
Background technology
Equipment is in the process of running it is possible that some failures, and reboot operation system is used as a kind of effective processing side Method is widely used.
At present, the way generally used is the direct reboot operation system, it is necessary to during reboot operation system.Using above-mentioned straight Connecing the mode restarted usually can succeed reboot operation system, but in some cases, the failure occurred in equipment running process It can cause mistake, loss etc. occur for the information of reboot operation system, and then cause reboot operation thrashing.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of operating system method for restarting and device, to realize that reducing operation is System restarts the purpose of the probability of failure.Concrete technical scheme is as follows:
To reach above-mentioned purpose, the embodiments of the invention provide a kind of operating system method for restarting, methods described includes:
Receive operating system instruction of restarting;
Operating system is detected according to default detection project, wherein, the detection project includes:Configure detection Mesh and equipment detection project;
The testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization Test equipment, so that virtualization test equipment simulated operating system is restarted;
The analog result that the virtualization test equipment is sent is received, reboot operation is determined whether according to the analog result System.
Optionally, the detection project also includes:Condition monitoring project;
It is described the step of detected according to default detection project to operating system, including:
On the basis of configuring detection project, equipment detection project and the corresponding standard value of condition monitoring project difference, Operating system is detected according to each detection project;
It is described the step of determine whether reboot operation system according to the analog result, including:
Reboot operation system is determined whether according to the testing result of the analog result and the condition monitoring project.
Optionally, methods described also includes:
In the case where determining to restart without operating system according to the analog result, according to the virtualization test knot Really, testing result, the testing result of the equipment detection project and the condition monitoring of the configuration detection project Warning information is restarted in purpose testing result, output.
Optionally, the testing result by the testing result of the configuration detection project and the equipment detection project is sent out The step of delivering to virtualization test equipment, including:
It is abnormal in the testing result of the configuration detection project or the testing result of the equipment detection project In the case of, the testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization and surveyed Try equipment.
Optionally, the step of virtualization test equipment simulated operating system is restarted, including:
The virtualization test equipment is according to the testing result and the equipment detection project of the configuration detection project Testing result, generates interim operating system mirror image;
Virtual machine is set up using the interim operating system mirror image;
Restarted using the virtual machine simulated operating system.
To reach above-mentioned purpose, the embodiment of the present invention additionally provides a kind of operating system rebooting device, and described device includes: Receiving module, detection module, sending module and determining module, wherein,
The receiving module, for receiving operating system instruction of restarting;
The detection module, for being detected according to default detection project to operating system, wherein, the detection Mesh includes:Configure detection project and equipment detection project;
The sending module, for by it is described configuration detection project testing result and the equipment detection project detection As a result send to virtualization test equipment, so that virtualization test equipment simulated operating system is restarted;
The determining module, for receiving the analog result that the virtualization test equipment is sent, is tied according to the simulation Fruit determines whether reboot operation system.
Optionally, the detection project also includes:Condition monitoring project;
The detection module, specifically for:
On the basis of configuring detection project, equipment detection project and the corresponding standard value of condition monitoring project difference, Operating system is detected according to each detection project;
The determining module, specifically for:
Reboot operation system is determined whether according to the testing result of the analog result and the condition monitoring project.
Optionally, described device also includes output module, for being determined according to the analog result without operation system In the case that system is restarted, detected according to the virtualization test result, the testing result of the configuration detection project, the equipment Warning information is restarted in the testing result of the testing result of project and the condition monitoring project, output.
Optionally, the sending module, specifically for:
It is abnormal in the testing result of the configuration detection project or the testing result of the equipment detection project In the case of, the testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization and surveyed Try equipment.
Optionally, the sending module, specifically for the testing result and the equipment of the configuration detection project are examined The testing result of survey project is sent to virtualization test equipment, so that the virtualization test equipment is according to the configuration detection The testing result of purpose testing result and the equipment detection project, generates interim operating system mirror image;
Virtual machine is set up using the interim operating system mirror image;
Restarted using the virtual machine simulated operating system.
A kind of operating system method for restarting and device provided in an embodiment of the present invention, methods described include:Receive operation system System instruction of restarting;Operating system is detected according to default detection project, wherein, the detection project includes:Configuration inspection Survey project and equipment detection project;By the testing result of the configuration detection project and the testing result of the equipment detection project Send to virtualization test equipment, so that virtualization test equipment simulated operating system is restarted;The virtualization test is received to set The analog result that preparation is sent, reboot operation system is determined whether according to the analog result.
During using scheme reboot operation system provided in an embodiment of the present invention, because virtualization test equipment is according to current What the simulated operating systems such as testing result, the testing result of equipment detection project of the configuration detection project of equipment were restarted, so Obtained analog result can reflect the situation of restarting of current device operating system to a certain extent, thus, relative to existing The direct reboot operation system of technology, reduces the probability that operating system restarts failure.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of operating system method for restarting provided in an embodiment of the present invention;
Fig. 2 is the first structural representation of operating system rebooting device provided in an embodiment of the present invention;
Fig. 3 is second of structural representation of operating system rebooting device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
To solve prior art problem, the embodiments of the invention provide a kind of operating system method for restarting and device, below A kind of operating system method for restarting provided first with regard to embodiment is introduced.
Fig. 1 is a kind of schematic flow sheet of operating system method for restarting provided in an embodiment of the present invention, as shown in figure 1, should Method includes:
S101:Receive operating system instruction of restarting.
Exemplary, the equipment for being provided with operating system is delayed and machine, failure or had when restarting demand, it is necessary to be grasped Make system reboot, the equipment is received after the instruction of reboot operation system, kidnap the operating system instruction of restarting.Equipment is kidnapped should After operating system instruction of restarting, operating system would not be restarted.
In a kind of implementation of the application, it can be kidnapped and operated by the Daemon processes (finger daemon) of operating system System reboot is instructed.The effect of Daemon processes is whether monitoring device receives operating system instruction of restarting, when equipment is received To after operating system instruction of restarting, the operating system instruction of restarting, and temporarily refusal respond operating system instruction of restarting are kidnapped, It can also postpone or cancel the execution of operating system instruction of restarting.
It should be noted that the source of operating system instruction of restarting includes but are not limited to be inputted by user, other equipment Sent to the current device for being provided with operating system, the operating system of current device is voluntarily generated etc..In addition, the equipment includes But it is not limited only to server, apparatus such as computer.
S102:Operating system is detected according to default detection project, wherein, the detection project includes:Configuration Detection project and equipment detection project.
Exemplary, configuration detection project and equipment detection project are illustrated respectively below.
In a first aspect, detection method and standard value can be pre-set for configuration detection project.According to configuration detection project , can be according to the above-mentioned detection method set for configuration detection project, with above-mentioned for configuration inspection when being detected to operating system Operating system is detected on the basis of the standard value for surveying item setup.Wherein, configuration detection project can be understood as to behaviour Make the project that the various configuration items of system are detected, that is to say, that using it is above-mentioned be configure detection project set standard value as When benchmark is detected to operating system, it can be understood as:Detect operating system each configuration item parameter value whether with phase The standard value answered matches.
Specifically, when whether the parameter value of each configuration item of detection operating system matches with corresponding standard value, can Matched so that the parameter value of operating system configuration item is interpreted as into both more than corresponding standard value, operating system can also be matched somebody with somebody The parameter value for putting item is interpreted as both matchings less than corresponding standard value, can also be equal to the parameter value of operating system configuration item Corresponding standard value is interpreted as both and matched.It should be noted that the application is only illustrated exemplified by above-mentioned, it is actual to answer It is not limited in above-mentioned situation with the criterion for judging whether matching.
Specifically, above-mentioned detection method, the standard value set for configuration detection project can be that user detects for configuration Particular detection method, the specified standard value of project settings, can also be the detection method and standard value of acquiescence, and the application is not right This is defined.
Configuring detection project can include starting boot configuration, system generic configuration (CPU configurations, memory configurations, file system It is under unified central planning put, equipment manager configuration etc.), the sub- detection project of the configuration such as device configuration.
User can be that configuration detection project part therein or all sub- detection projects of configuration pre-set detection Method and standard value.So that the cpu frequency configuration in being configured to CPU is detected as an example, the detection method of user preset is direct CPU current frequency configuration parameter value is read, the current frequency configuration parameter value of reading is 3.2GHz, the CPU frequencies that user is set Rate configuration parameter standard value is 3.0GHz, then CPU current frequency configuration parameter exceedes the standard value 0.2GHz of user preset.
In addition, user or equipment can also be according to the matchings between configuration detection project parameter value and corresponding standard value As a result testing result is divided into different ranks, for example:Normally, three ranks of alarm and failure.Cpu frequency is configured with above-mentioned Exemplified by being detected, the cpu frequency configuration standard value that CPU current frequency configuration parameter value is not more than user's setting be it is normal, CPU current frequency configuration parameter value be above standard value to the value 0.1GHz that is above standard for alarm, CPU current frequency configuration ginseng More than the cpu frequency configuration standard value 0.1GHz that numerical value exceedes user's setting is failure, according to the above-mentioned criteria for classifying, for CPU It is failure to configure the testing result detected.
It should be noted that the application is only illustrated exemplified by above-mentioned, to testing result partition level in concrete application It is not limited in above-mentioned dividing mode.
Second aspect, can pre-set detection method and standard value for equipment detection project.According to equipment detection project , can be according to the above-mentioned detection method set for equipment detection project, with above-mentioned for equipment inspection when being detected to operating system Operating system is detected on the basis of the standard value for surveying item setup.Wherein, equipment detection project can be understood as to behaviour The project that performance, driving of equipment all parts etc. where making system are detected, that is to say, that with above-mentioned for equipment detection When being detected on the basis of the standard value that mesh is set to operating system, it can be understood as:Detect all parts of operating system Whether performance, driving etc. match with corresponding standard value.
Specifically, the parameter value of the performance of all parts of operating system, driving can be managed more than corresponding standard value Solve and match for both, the parameter value of the performance of all parts of operating system, driving can also be less than corresponding standard value It is interpreted as both to match, the parameter value of the performance of all parts of operating system, driving can also be equal to corresponding standard value Both are interpreted as to match.It should be noted that the application is only illustrated exemplified by above-mentioned, practical application judges whether The criterion matched somebody with somebody is not limited in above-mentioned situation.
Detected specifically, the above-mentioned detection method set for equipment detection project, standard value can be users for equipment Particular detection method, the specified standard value of project settings, can also be the detection method and standard value of acquiescence, and the application is not right This is defined.
Generally, equipment detection project can include the sub- detection projects such as the power supply of equipment, the version of driving.User Can be that equipment detection project part therein or all sub- detection projects of equipment pre-set detection method and standard value. By taking the sub- detection project of the version of driving as an example, default driving version detection method is to directly read the driving version in driving file This current Number, it is assumed that the current Number of the driving version of reading is 1.1, if the number of default driving version is standard Value 1.2, then drive the standard value of number of the current Number less than default driving version of version.
In addition, user or equipment can also be according to the matchings between equipment detection project parameter value and corresponding standard value As a result testing result is divided into different stage, for example:It is divided into normal, three ranks of alarm and failure.With the version of above-mentioned driving Exemplified by sub- detection project, it is normal that the current Number of driving version, which is not less than standard value, and the current Number of driving version is less than mark Quasi- value 0.2 is alarm, and it is failure that the current Number of driving version, which is less than standard value 0.4, according to the above-mentioned criteria for classifying, for driving The testing result that version is detected is alarm.
Exemplary, the third aspect can pre-set detection method and standard value for condition monitoring project, according to , can be according to the above-mentioned detection side for condition monitoring item setup when condition monitoring project is detected to operating system Method, is detected on the basis of the above-mentioned standard value for condition monitoring item setup to operating system.Wherein, running status Detection project can be understood as:The project that working condition to each part of operating system is detected, that is to say, that When being detected on the basis of the above-mentioned standard value for condition monitoring item setup to operating system, it can be understood as:Inspection Whether the parameter value for surveying the working condition of each part of operating system matches with corresponding standard value.
Specifically, more than corresponding standard value the parameter value of the working condition of each part can be interpreted as into both Match, the parameter value of the working condition of each part can also be interpreted as both less than corresponding standard value and matched, The parameter value of the working condition of each part can also be interpreted as into both equal to corresponding standard value to match.Need Bright, the application is only illustrated exemplified by above-mentioned, and it is above-mentioned that practical application judges whether that the criterion of matching is not limited in Situation.
Specifically, above-mentioned detection method, standard value for condition monitoring item setup, which can be user, is directed to operation Particular detection method, the specified standard value of state-detection project settings, can also be the detection method and standard value of acquiescence, this Shen Please it is defined not to this.
Condition monitoring project can include the operation such as system load, disk utilization rate, memory usage, network state State subgroup detection project.User can be condition monitoring project part therein or all sub- detections of running status Mesh pre-sets detection method and standard value.Exemplary, by taking disk utilization rate as an example, the disk utilization rate detection of user preset Method is:The capacity and the ratio of total capacity that all disks that the equipment is installed are used are disk utilization rate;Default disk The standard value of utilization rate is 80%.Capacity divided by total capacity that all disks that the equipment is installed are used, it can be deduced that should The disk utilization rate of equipment, it is assumed that the disk utilization rate of the equipment is 85%, has exceeded standard value 5%.
In addition, user or equipment can also be between the parameter values and corresponding standard value according to condition monitoring project Matching result testing result is divided into different brackets, for example:It is divided into normal, three ranks of alarm and failure.With above-mentioned to magnetic Exemplified by the detection of disk utilization rate, disk utilization rate is normal less than 80%, and disk utilization rate higher than 80% and is police less than 90% Report, disk utilization rate is failure higher than 90%, and according to the above-mentioned criteria for classifying, the testing result for disk utilization rate is alarm.
Using the above embodiment of the present invention, except configuration detection project and equipment detection project to equipment detected with Outside, the condition monitoring project also to equipment detects that the detection for the equipment is more complete, can preferably assess and set Standby current state, advantageously restarting in operating system.
, can be to configure detection project, equipment detection when being detected according to default detection project to operating system Mesh and condition monitoring project are distinguished on the basis of corresponding standard value, and operating system is examined according to each detection project Survey.
Under normal circumstances, user preset detection project, and preset detection method and/or preset standard for each detection project The process of value, also referred to as user's registration detection project or user configuring detection project, and register inspection for each detection project Survey method and/or preset standard value.The condition monitoring project of operating system, configuration detection project, equipment can be detected The title of any sub- detection project in project, the detection project title belonging to the sub- detection project, for the sub- detection project Detection method, for standard value of the sub- detection project etc. storage into an information, this information can be referred to as allocation list Project, a plurality of configuration table entry may be constructed allocation list.User can utilize user's operational administrative interface such as configuration management tool Allocation list is configured or set, common configuration includes inquiry, increase, editor's configuration table entry etc..
Generally, equipment can be provided with the detection project of acquiescence for each detection project of operating system.Example Such as, the detection project of acquiescence is configuration detection project and equipment detection project, then when being detected to operating system, just not Condition monitoring project can be detected, the work load of equipment can be so reduced.
Equipment can also be provided with the sub- detection project of acquiescence for each detection project of operating system, give tacit consent to detection Mesh can be understood as carrying out operating system indispensable sub- detection project during complete detection, for example, configuration detection project Acquiescence detection sub-project can just include the sub- detection project of image file, the sub- detection project of System guides configuration, file system and match somebody with somebody Put the sub- detection project of sub- detection project, the network equipment and the sub- detection project of network configuration.User can be in each detection project Increase on the basis of acquiescence detection project or reduce sub- detection project.User can preset on the basis of acquiescence detection project Detection project, facilitates user to take different inspection policies for different equipment, improves the spirit using the embodiment of the present invention Activity.
It should be noted that for the condition monitoring project of tested measurement equipment, the configuration detection project of equipment and setting The testing result of standby detection project can also include the current parameter value of the running status of tested measurement equipment, device configuration file The equipment current parameter value of current parameter value and the equipment.Under normal circumstances, the running status current parameter value of the equipment can be with The current parameter value of the working condition of each part of operating system is interpreted as, the current parameter value of device configuration file can To be interpreted as the current parameter value of each configuration item in the configuration file of operating system;The current parameter value of the equipment is appreciated that For the current parameter value of equipment detection project, it is understood that be the current parameter value of facility information.
S103:The testing result of the testing result of the configuration detection project and the equipment detection project is sent to void Planization test equipment, so that virtualization test equipment simulated operating system is restarted.
Optionally, can be in the testing result or described for configuring detection project in a kind of specific implementation In the case of the testing result of equipment detection project is abnormal, by the testing result and the equipment of the configuration detection project The testing result of detection project is sent to virtualization test equipment.
Optionally, in a kind of specific implementation, the virtualization test equipment can be according to the configuration detection The testing result of purpose testing result and the equipment detection project, generates interim operating system mirror image;Utilize the interim behaviour Virtual machine is set up as system image;Restarted using the virtual machine simulated operating system.
Exemplary, the detection of configuration detection project and equipment detection project due to being directed to the equipment in S102 steps As a result it is not normal, therefore, the testing result of configuration detection project and equipment detection project for the equipment is sent to virtual Change test equipment.
Under normal circumstances, virtualization test equipment is another equipment, and virtualization test equipment is led to detected equipment Network is crossed to be communicated., will be according to quilt after virtualization test equipment receives the virtualization test request of tested measurement equipment The testing result that detection device is sent carries out virtualization test for detected equipment, and virtualization test equipment can be according to above-mentioned The restarting process of testing result simulated operating system, to determine that can operating system restart success.
Using the above embodiment of the present invention, the only inspection in configuration detection project or equipment detection project for the equipment In the case of survey result is not normal, just testing result is sent to virtualization test equipment, virtualization test equipment is reduced Work load.
Exemplary, virtualization test equipment is provided with operating system mirror image Core Generator and the original text of standard operation system Part.Virtualization test equipment is received after the virtualization test request of tested measurement equipment, will be by matching somebody with somebody that tested measurement equipment is sent Put the testing result of detection project and equipment detection project, replacement operation system respective items purpose standard value:As that will be above standard Value 0.2GHz cpu frequency configuration parameter replaces the cpu frequency configuration parameter in standard operation system, will be lower than standard version number The driving version of four versions replaces the driving version in standard operation system.The conversion of parameter can also be carried out if necessary with true Protect detected device parameter not clash, and then generate the operating system image file of tested measurement equipment.Virtualization test is set It is standby to set up virtual machine using the operating system mirror image, and the operating system mirror image is installed to the virtual machine for virtualizing test equipment On, and then the restarting process for being detected device operating system is simulated using the virtual machine.
It should be noted that operating system image file is also referred to as interim operating system mirror image;Virtualize test equipment It is referred to as virtual machine host machine, and virtualization test equipment can be server, apparatus such as computer.Furthermore it is possible to utilize tested The facility information of the running state information of measurement equipment, device configuration file information and the equipment, replacement operation system correspondence project Standard value, and then generate the operating system image file of tested measurement equipment.
Using the above embodiment of the present invention, virtual machine is according to the configuration detection project and equipment detection project for being detected measurement equipment Testing result, the operating system of the tested measurement equipment of operating system mirror image simulation of generation restarts, can big degree as far as possible Process that the operating system of the upper tested measurement equipment of simulation is restarted, it is to avoid the risk for restarting failure that reboot operation system is brought.
S104:The analog result that the virtualization test equipment is sent is received, weight is determined whether according to the analog result Open operating system.
Optionally, can be according to the analog result and the condition monitoring in a kind of embodiment Purpose testing result determines whether reboot operation system.
Exemplary, tested measurement equipment receives the analog result that virtualization test equipment is sended over, wherein, simulation knot Fruit includes, and restarts successfully or restarts unsuccessfully;If analog result restarts tested measurement equipment to restart success;If analog result To restart unsuccessfully, tested measurement equipment is not restarted.
Using embodiment illustrated in fig. 1 of the present invention provide scheme reboot operation system when, due to virtualization test equipment be Restarted according to simulated operating systems such as the testing result of the configuration detection project of current device, the testing results of equipment detection project , so obtained analog result can reflect the situation of restarting of current device operating system to a certain extent, thus, relatively In the direct reboot operation system of prior art, the probability that operating system restarts failure is reduced.
In addition, the embodiment of the present invention can also be in the situation for determining to restart without operating system according to the analog result Under, according to the detection knot for virtualizing test result, the testing result of the configuration detection project, the equipment detection project Warning information is restarted in fruit and the testing result of the condition monitoring project, output.
Exemplary, if illustrating the detection knot for configuring detection project without being detected restarting for measurement equipment in S104 steps Really, some or all of occur in that in the testing result of the equipment detection project and the condition monitoring project is compared Serious the problem of.In this case, the warning information of restarting that tested measurement equipment is determined is:It is not recommended that restarting and testing result In abnormal project, wherein, abnormal project is such as in testing result:CPU frequency configuration parameter is 3.2GHz, standard value For 3.0GHz, testing result is failure;The version number of driving is 1.1, and standard value is 1.2, and testing result is alarm;Disk makes It is 85% with rate, standard value is 80%, and testing result is alarm.
In actual applications, the problem of user can select to ignore Alert Level, is worked on restarting for system.
Using the embodiment of the present invention, the result of failure and the detection for being detected measurement equipment can be restarted according to operating system As a result warning information is restarted in output, and user, which is known that, causes the reason for operating system is restarted unsuccessfully, is conducive to user to tested Measurement equipment is targetedly safeguarded.
Fig. 2 is the first structural representation of operating system rebooting device provided in an embodiment of the present invention, as shown in Fig. 2 The device includes:Receiving module 201, detection module 202, sending module 203 and determining module 204, wherein,
Receiving module 201, for receiving operating system instruction of restarting..
Detection module 202, for being detected according to default detection project to operating system, wherein, the detection Mesh includes:Configure detection project and equipment detection project.
Detection module 202, specifically for:To configure detection project, equipment detection project and condition monitoring project point On the basis of not corresponding standard value, operating system is detected according to each detection project.
Sending module 203, for by it is described configuration detection project testing result and the equipment detection project detection As a result send to virtualization test equipment, so that virtualization test equipment simulated operating system is restarted.
Sending module 203, specifically for:In the testing result or the equipment detection project of the configuration detection project Testing result in the case of abnormal, by the inspection of the testing result and the equipment detection project of the configuration detection project Result is surveyed to send to virtualization test equipment.
Sending module 203, specifically for:By the testing result and the equipment detection project of the configuration detection project Testing result is sent to virtualization test equipment, so that detection of the virtualization test equipment according to the configuration detection project As a result with the testing result of the equipment detection project, interim operating system mirror image is generated;Utilize the interim operating system mirror As setting up virtual machine;Restarted using the virtual machine simulated operating system.
Determining module 204, for receiving the analog result that the virtualization test equipment is sent, according to the analog result Determine whether reboot operation system.
Determining module 204, specifically for:According to the analog result and the testing result of the condition monitoring project Determine whether reboot operation system.
Using embodiment illustrated in fig. 2 of the present invention provide scheme reboot operation system when, due to virtualization test equipment be Restarted according to simulated operating systems such as the testing result of the configuration detection project of current device, the testing results of equipment detection project , so obtained analog result can reflect the situation of restarting of current device operating system to a certain extent, thus, relatively In the direct reboot operation system of prior art, the probability that operating system restarts failure is reduced.
Fig. 3 is second of structural representation of operating system rebooting device provided in an embodiment of the present invention, as shown in figure 3, On the basis of embodiment illustrated in fig. 2, the embodiment of the present invention also includes output module 205, for according to the analog result It is determined that in the case of restarting without operating system, according to the detection of the virtualization test result, the configuration detection project As a result early warning is restarted in, the testing result of the testing result of the equipment detection project and the condition monitoring project, output Information.
Using embodiment illustrated in fig. 3 of the present invention, the result of failure can be restarted according to operating system and is set for being detected Warning information is restarted in standby testing result output, and user, which is known that, causes the reason for operating system is restarted unsuccessfully, is conducive to using Family is targetedly safeguarded by tested measurement equipment.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for system Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of operating system method for restarting, it is characterised in that methods described includes:
Receive operating system instruction of restarting;
Operating system is detected according to default detection project, wherein, the detection project includes:Configure detection project and Equipment detection project;
The testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization test Equipment, so that virtualization test equipment simulated operating system is restarted;
The analog result that the virtualization test equipment is sent is received, reboot operation system is determined whether according to the analog result System.
2. according to the method described in claim 1, it is characterised in that the detection project also includes:Condition monitoring project;
It is described the step of detected according to default detection project to operating system, including:
On the basis of configuring detection project, equipment detection project and the corresponding standard value of condition monitoring project difference, according to Each detection project is detected to operating system;
It is described the step of determine whether reboot operation system according to the analog result, including:
Reboot operation system is determined whether according to the testing result of the analog result and the condition monitoring project.
3. method according to claim 2, it is characterised in that methods described also includes:
According to the analog result determine restart without operating system in the case of, according to it is described virtualization test result, The testing result, the testing result of the equipment detection project and the condition monitoring project for configuring detection project Warning information is restarted in testing result, output.
4. according to the method described in claim 1, it is characterised in that described by the testing result of the configuration detection project and institute The step of testing result for stating equipment detection project is sent to virtualization test equipment, including:
It is abnormal situation in the testing result of the configuration detection project or the testing result of the equipment detection project Under, the testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization test and set It is standby.
5. according to the method described in claim 1, it is characterised in that what the virtualization test equipment simulated operating system was restarted Step, including:
The detection that test equipment is virtualized according to the testing result and the equipment detection project of the configuration detection project As a result, interim operating system mirror image is generated;
Virtual machine is set up using the interim operating system mirror image;
Restarted using the virtual machine simulated operating system.
6. a kind of operating system rebooting device, it is characterised in that described device includes:Receiving module, detection module, sending module And determining module, wherein,
The receiving module, for receiving operating system instruction of restarting;
The detection module, for being detected according to default detection project to operating system, wherein, the detection project bag Include:Configure detection project and equipment detection project;
The sending module, for by it is described configuration detection project testing result and the equipment detection project testing result Send to virtualization test equipment, so that virtualization test equipment simulated operating system is restarted;
The determining module, it is true according to the analog result for receiving the analog result that the virtualization test equipment is sent It is fixed whether reboot operation system.
7. device according to claim 6, it is characterised in that the detection project also includes:Condition monitoring project;
The detection module, specifically for:
On the basis of configuring detection project, equipment detection project and the corresponding standard value of condition monitoring project difference, according to Each detection project is detected to operating system;
The determining module, specifically for:
Reboot operation system is determined whether according to the testing result of the analog result and the condition monitoring project.
8. device according to claim 7, it is characterised in that described device also includes output module, for according to institute State analog result to determine in the case of without operating system restarting, detected according to the virtualization test result, the configuration The testing result of the testing result of project, the testing result of the equipment detection project and the condition monitoring project, it is defeated Go out to restart warning information.
9. device according to claim 6, it is characterised in that the sending module, specifically for:
It is abnormal situation in the testing result of the configuration detection project or the testing result of the equipment detection project Under, the testing result of the testing result of the configuration detection project and the equipment detection project is sent to virtualization test and set It is standby.
10. device according to claim 6, it is characterised in that the sending module, specifically for the configuration is detected The testing result of the testing result of project and the equipment detection project is sent to virtualization test equipment, so that the virtualization Test equipment is according to the testing result of the configuration detection project and the testing result of the equipment detection project, the interim behaviour of generation Make system image;
Virtual machine is set up using the interim operating system mirror image;
Restarted using the virtual machine simulated operating system.
CN201710209823.9A 2017-03-31 2017-03-31 Method and device for restarting operating system Active CN107168819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209823.9A CN107168819B (en) 2017-03-31 2017-03-31 Method and device for restarting operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209823.9A CN107168819B (en) 2017-03-31 2017-03-31 Method and device for restarting operating system

Publications (2)

Publication Number Publication Date
CN107168819A true CN107168819A (en) 2017-09-15
CN107168819B CN107168819B (en) 2020-02-28

Family

ID=59849789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209823.9A Active CN107168819B (en) 2017-03-31 2017-03-31 Method and device for restarting operating system

Country Status (1)

Country Link
CN (1) CN107168819B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608827A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Virtualized cluster node checking method and device, electronic equipment and storage medium
CN115016987A (en) * 2022-07-13 2022-09-06 统信软件技术有限公司 Operating system checking method, computing device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477474A (en) * 2009-01-04 2009-07-08 中国科学院计算技术研究所 Combined simulation system and its operation method
CN102289398A (en) * 2010-06-17 2011-12-21 英业达股份有限公司 Restart testing method
CN102331946A (en) * 2011-09-28 2012-01-25 宇龙计算机通信科技(深圳)有限公司 Method and system for installing application program
CN103092672A (en) * 2012-11-23 2013-05-08 厦门美亚中敏电子科技有限公司 Dynamic computer simulation method for realizing virtual start and intelligent repair
CN104834576A (en) * 2015-04-30 2015-08-12 捷鼎国际股份有限公司 Computer system for testing hardware device based on virtual machine and method thereof
US20150331694A1 (en) * 2014-05-14 2015-11-19 American Megatrends, Inc. Installation of operating system on host computer using virtual storage of bmc
CN105653326A (en) * 2015-12-29 2016-06-08 上海爱数信息技术股份有限公司 System and method for batch Linux system installation and detection
CN105718340A (en) * 2016-01-13 2016-06-29 浪潮电子信息产业股份有限公司 Crontab-based CPU stability test method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477474A (en) * 2009-01-04 2009-07-08 中国科学院计算技术研究所 Combined simulation system and its operation method
CN102289398A (en) * 2010-06-17 2011-12-21 英业达股份有限公司 Restart testing method
CN102331946A (en) * 2011-09-28 2012-01-25 宇龙计算机通信科技(深圳)有限公司 Method and system for installing application program
CN103092672A (en) * 2012-11-23 2013-05-08 厦门美亚中敏电子科技有限公司 Dynamic computer simulation method for realizing virtual start and intelligent repair
US20150331694A1 (en) * 2014-05-14 2015-11-19 American Megatrends, Inc. Installation of operating system on host computer using virtual storage of bmc
CN104834576A (en) * 2015-04-30 2015-08-12 捷鼎国际股份有限公司 Computer system for testing hardware device based on virtual machine and method thereof
CN105653326A (en) * 2015-12-29 2016-06-08 上海爱数信息技术股份有限公司 System and method for batch Linux system installation and detection
CN105718340A (en) * 2016-01-13 2016-06-29 浪潮电子信息产业股份有限公司 Crontab-based CPU stability test method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608827A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Virtualized cluster node checking method and device, electronic equipment and storage medium
CN115016987A (en) * 2022-07-13 2022-09-06 统信软件技术有限公司 Operating system checking method, computing device and storage medium

Also Published As

Publication number Publication date
CN107168819B (en) 2020-02-28

Similar Documents

Publication Publication Date Title
JP6530774B2 (en) Hardware failure recovery system
US9471474B2 (en) Cloud deployment infrastructure validation engine
US9619314B2 (en) Management system and management program
KR100530710B1 (en) Method and apparatus for reporting global errors on heterogeneous partitioned systems
CN107688531B (en) Geo-database integration test method, device, computer equipment and storage medium
CN105589776B (en) A kind of Fault Locating Method and server
US20160019131A1 (en) Methods and Arrangements to Collect Data
US20100186010A1 (en) Dynamic Checking of Hardware Resources for Virtual Environments
CN104360878B (en) A kind of method and device of application software deployment
CN103399781B (en) Cloud Server and virtual machine management method thereof
CN103701627A (en) Cloud computing platform fault detection method, cloud computing platform fault detection method, solving method and solving device
CN104932963B (en) The method and device of management terminal
WO2017120106A1 (en) Deferred server recovery in computing systems
CN109654666A (en) Method, device and equipment for debugging unit
WO2015120687A1 (en) Method and apparatus for diagnosing and solving mobile terminal fault
US20170132102A1 (en) Computer readable non-transitory recording medium storing pseudo failure generation program, generation method, and generation apparatus
CN107102929A (en) The detection method and device of failure
CN101989220A (en) Pressure testing method
CN106021054A (en) Method and apparatus for testing upgrading and downgrading stability of BMC
CN109783390A (en) PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium
CN115185777A (en) Abnormity detection method and device, readable storage medium and electronic equipment
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN107168819A (en) A kind of operating system method for restarting and device
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN107145304A (en) Server, storage system and correlation technique

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