CN106528227A - Method and assembly for safely closing initial end operating system - Google Patents
Method and assembly for safely closing initial end operating system Download PDFInfo
- Publication number
- CN106528227A CN106528227A CN201610970359.0A CN201610970359A CN106528227A CN 106528227 A CN106528227 A CN 106528227A CN 201610970359 A CN201610970359 A CN 201610970359A CN 106528227 A CN106528227 A CN 106528227A
- Authority
- CN
- China
- Prior art keywords
- operating system
- scsi
- end operating
- originating end
- monitoring module
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
Abstract
The invention discloses a method and an assembly for safely closing an initial end operating system. The method comprises the following steps that: a closing monitoring module transmits an SCSI instruction to an SCSI objective end at certain time for inquiring whether to execute a closing operation on the initial end operating system or not; the SCSI objective end receives the SCSI instruction and replies important product data to the closing monitoring module; the closing monitoring module receives and analyzes the important product data to obtain an analysis result; whether the analysis result indicates that the initial end operating system needs to be closed or not is determined; and if so, the initial end operating system is closed. According to the method, by adding the closing monitoring module at the initial end operating system, and by analyzing the important product data returned by the SCSI objective end, whether the initial end operating system can be closed or not can be determined, so that potential loss and crash of key system data can be avoided consequently.
Description
Technical field
The present invention relates to computer system software design field, more particularly to a kind of safety shutdown originating end operation
The method and component of system.
Background technology
In some cases, (Small Computer System Interface's writes a Chinese character in simplified form SCSI, miniature computer
System interface) standard target side controller is required in off-line state, for example:Device operator sends instruction, the main confession of equipment
Electric loss of power, or detect the presence of the condition satisfaction of data consistency risk.In the case where these events occur, target
Side controller becomes off-line state, and at this moment originating end operating system can produce very serious consequence not by safety shutdown.It is potential
Destruction include loss of data and the damage of critical operating-system data.Accordingly, it would be desirable to a kind of side of safety shutdown operating system
Method, to avoid critical system data potentially loss and collapse.
The content of the invention
It is an object of the invention to provide the method and component of a kind of safety shutdown originating end operating system, it is to avoid crucial system
Potentially loss and the collapse of system data, improves the reliability of operating system.
To solve above-mentioned technical problem, a kind of side of safety shutdown originating end operating system is embodiments provided
Method, including:
Close monitoring module timing and scsi command is sent to scsi target end, for whether inquiry will be operated to originating end be
System performs shutoff operation;
The scsi target end receives the scsi command and replys vital product data to the closing monitoring module;
The closing monitoring module receives and analyzes the vital product data, obtains analysis result;
Judge whether the analysis result is to need to close the originating end operating system;
If so, then close originating end operating system.
Wherein, the closing monitoring module timing sends scsi command to scsi target end, including;
Closing monitoring module timing sends the scsi command to scsi target end by the SCSI originating ends.
Wherein, the scsi target end receives the scsi command and replys staple product number and closes monitoring mould to described
Block, including;
The scsi target end receives the scsi command, and obtains the staple product number time from vital product data page
Complex data, and the vital product data is sent to into the closing monitoring module.
Wherein, the vital product data is received for Target Device Controller and closes asking for the originating end operating system
After asking, described in the closing for be written to the vital product data page by the closing processing module of the Target Device Controller
The related data of the request of originating end operating system.
Wherein, the closing originating end operating system, including:
The closing monitoring module closes the originating end operating system by API.
In addition, the embodiment of the present invention additionally provides a kind of component of safety shutdown originating end operating system, including send out
Origin or beginning operating system and Target Device Controller, the originating end operating system include closing monitoring module and SCSI originating ends,
The Target Device Controller includes vital product data page and scsi target end, and the Target Device Controller is received closes institute
The request of originating end operating system is stated, and the related data of the request for closing the originating end operating system is write described
Vital product data page, the closing monitoring module send scsi command to the SCSI mesh by SCSI originating ends timing
Mark end, and shutoff operation, the scsi target end to be performed to the originating end operating system by the inquiry of scsi target end is no
After the scsi command is received, the vital product data of the vital product data page is sent to into described closing and monitors mould
Block, the closing monitoring module receive and analyze the vital product data, if analysis result is operated to close the originating end
System, then close the originating end operating system.
Wherein, the Target Device Controller also includes closing processing module, and the Target Device Controller receives described
The request of the originating end operating system is closed, and the originating end operation system is closed by described by the closing processing module
The related data of the request of system writes the vital product data page.
Wherein, the originating end operating system also includes at least one API, and the closing monitoring module passes through the API
Close the originating end operating system.
The method and component of the safety shutdown originating end operating system provided by the embodiment of the present invention, with prior art phase
Than with advantages below:
The method of safety shutdown originating end operating system provided in an embodiment of the present invention, including:
Close monitoring module timing and scsi command is sent to scsi target end, for whether inquiry will be operated to originating end be
System performs shutoff operation;
The scsi target end receives the scsi command and replys vital product data to the closing monitoring module;
The closing monitoring module receives and analyzes the vital product data, obtains analysis result;
Judge whether the analysis result is to need to close the originating end operating system;
If so, then close originating end operating system.
The component of safety shutdown originating end operating system provided in an embodiment of the present invention, including originating end operating system and mesh
Marking device controller, the originating end operating system include closing monitoring module and SCSI originating ends, the target device control
Device includes vital product data page and scsi target end, and the Target Device Controller is received closes the originating end operating system
Request, and the related data of the request for closing the originating end operating system is write into the vital product data page,
The closing monitoring module sends scsi command to the scsi target end by SCSI originating ends timing, and passes through SCSI
Destination end inquiry is no will to perform shutoff operation to the originating end operating system, and the scsi target end is receiving the SCSI
After order, the vital product data of the vital product data page is sent to into the closing monitoring module, the closing monitoring
Module receives and analyzes the vital product data, if analysis result is closed described to close the originating end operating system
Originating end operating system.
The method and component of the safety shutdown originating end operating system, closes prison by increasing in originating end operating system
Whether control module, closing monitoring module timing send scsi command to scsi target end, will be to originating end operation system for inquiry
System performs shutoff operation, analyzes from scsi target end the vital product data for returning, to judge whether to close originating end behaviour
Make system, can thus avoid critical system data potentially loss and collapse.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of specific embodiment of the method for safety shutdown originating end operating system provided in an embodiment of the present invention
The step of schematic flow sheet;
Fig. 2 is a kind of specific embodiment of the component of safety shutdown originating end operating system provided in an embodiment of the present invention
Structural representation.
Specific embodiment
Just as described in the background section, in some cases, SCSI target side controller is required in offline shape
State, and at this moment originating end operating system can produce very serious consequence not by safety shutdown.Potential destruction includes loss of data
And the damage of critical operating-system data.
Based on this, a kind of the provided method of safety shutdown originating end operating system of the embodiment of the present invention, including:
Close monitoring module timing and scsi command is sent to scsi target end, for whether inquiry will be operated to originating end be
System performs shutoff operation;
The scsi target end receives the scsi command and replys vital product data to the closing monitoring module;
The closing monitoring module receives and analyzes the vital product data, obtains analysis result;
Judge whether the analysis result is to need to close the originating end operating system;
If so, then close originating end operating system.
The component of safety shutdown originating end operating system provided in an embodiment of the present invention, including originating end operating system and mesh
Marking device controller, the originating end operating system include closing monitoring module and SCSI originating ends, the target device control
Device includes vital product data page and scsi target end, and the Target Device Controller is received closes the originating end operating system
Request, and the related data of the request for closing the originating end operating system is write into the vital product data page,
The closing monitoring module sends scsi command to the scsi target end by SCSI originating ends timing, and passes through SCSI
Destination end inquiry is no will to perform shutoff operation to the originating end operating system, and the scsi target end is receiving the SCSI
After order, the vital product data of the vital product data page is sent to into the closing monitoring module, the closing monitoring
Module receives and analyzes the vital product data, if analysis result is closed described to close the originating end operating system
Originating end operating system.
In sum, the method and component of safety shutdown originating end operating system provided in an embodiment of the present invention, by
Originating end operating system increases closes monitoring module, closes monitoring module timing and sends scsi command to scsi target end, is used for
Whether inquiry will perform shutoff operation to originating end operating system, analyze from scsi target end the vital product data for returning, with
Judge whether to close originating end operating system, can thus avoid critical system data potentially loss and collapse.
It is understandable to enable the above objects, features and advantages of the present invention to become apparent from, below in conjunction with the accompanying drawings to the present invention
Specific embodiment be described in detail.
Elaborate detail in order to fully understand the present invention in the following description.But the present invention can with it is various not
It is same as alternate manner described here to implement, those skilled in the art can do class in the case of without prejudice to intension of the present invention
Like popularization.Therefore the present invention is not embodied as being limited by following public.
Fig. 1 is refer to, Fig. 1 is a kind of tool of the method for safety shutdown originating end operating system provided in an embodiment of the present invention
The step of body embodiment schematic flow sheet.
In a kind of specific embodiment, the method for the safety shutdown originating end operating system, including:
Whether step 1, closes monitoring module timing and sends scsi command to scsi target end, will be to originating end for inquiry
Operating system performs shutoff operation;
Step 2, the scsi target end receives the scsi command and replys vital product data closes monitoring to described
Module;
Step 3, the closing monitoring module receive and analyze the vital product data, obtain analysis result;
Step 4, judges whether the analysis result is to need to close the originating end operating system;
If so, then step 5, closes originating end operating system.
The method of the safety shutdown originating end operating system, closes monitoring mould by increasing in originating end operating system
Whether block, close monitoring module timing and send scsi command to scsi target end, originating end operating system will be held for inquiry
Row shutoff operation, analyzes from scsi target end the vital product data for returning, to judge whether to close originating end operation system
System, can thus avoid critical system data potentially loss and collapse.
Scsi command is sent to scsi target end due to closing monitoring module timing, is not direct by scsi command to SCSI
Destination end, but by the SCSI originating ends positioned at originating end operating system, it is sent to the scsi target of Target Device Controller
End, therefore, the closing monitoring module timing transmission scsi command to scsi target end, including:
Closing monitoring module timing sends the scsi command to scsi target end by the SCSI originating ends.
And after scsi target end receives the scsi command, send out with regard to closing as scsi target end does not directly store
The request of origin or beginning operating system, but by obtaining from the vital product data page of Target Device Controller.Therefore, it is described
Scsi target end receives the scsi command and replys staple product number to the closing monitoring module, including:
The scsi target end receives the scsi command, and obtains the staple product number time from vital product data page
Complex data, and the vital product data is sent to into the closing monitoring module.
In embodiments of the present invention, the vital product data receives the closing originating end for Target Device Controller
After the request of operating system, the vital product data page is written to by the closing processing module of the Target Device Controller
The related data of the request for closing the originating end operating system.I.e. in the present invention, the closing of Target Device Controller
The running status of processing module regular check Target Device Controller, checks in off-line state, and originating end operating system
Not by during safety shutdown, the related data for closing the request of originating end operating system is written to into the important of Target Device Controller
In product data page, the vital product data page is configured to listen scsi target end to access.In such manner, it is possible to ensure that originating end is grasped
Make the necessary operation of phase plesiotype before system is closed, to avoid the destruction of loss of data or critical operating-system data.
And in order to further realize safety shutdown originating end operating system, the closing originating end operating system, including:
The closing monitoring module closes the originating end operating system by API.
Closing after monitoring module confirms to need to close originating end operating system, by being arranged on originating end operating system
API initiates the operation for closing originating end operating system.
In addition, the embodiment of the present invention additionally provides a kind of component of safety shutdown originating end operating system, such as Fig. 2 institutes
Show, including originating end operating system 10 and Target Device Controller 20, the originating end operating system 10 includes closing monitoring mould
Block 12 and SCSI originating ends 11, the Target Device Controller 20 include vital product data page 22 and scsi target end 21, institute
State Target Device Controller 20 and receive the request for closing the originating end operating system 10, and the originating end behaviour is closed by described
The related data for making the request of system 10 writes the vital product data page 22, and the closing monitoring module 12 is by described
The timing of SCSI originating ends 11 sends scsi command to the scsi target end 21, and by scsi target end 21 inquire about it is no will be to institute
State originating end operating system 10 and perform shutoff operation, the scsi target end 21, will be described after the scsi command is received
The vital product data of vital product data page 22 is sent to the closing monitoring module 12, and the closing monitoring module 12 is received
And vital product data is analyzed, if analysis result closes the originating end operation to close the originating end operating system 10
System 10.
In the present invention, originating end operating system 10 and Target Device Controller 20 are communicated by SCSI bus.
Monitoring module 12 is closed by increasing in SCSI originating ends 11, the data for returning is analyzed from scsi target end 21 to sentence
It is disconnected whether to close originating end operating system 10.
The Target Device Controller 20 also includes closing processing module 23, and the Target Device Controller 20 receives described
The request of the originating end operating system 10 is closed, and the originating end behaviour is closed by described by the closing processing module 23
The related data for making the request of system 10 writes the vital product data page 22.
By increasing the API13 interfaces for closing originating end operating system 10 in SCSI originating ends 11, to realize safety shutdown.
The originating end operating system 10 also includes at least one API13, and the closing monitoring module 12 is by described
API13 closes the originating end operating system 10.
Processing routine is closed by increasing in scsi controller, to ensure that carry out must before originating end operating system 10 is closed
The operation wanted, to avoid the damage of loss of data or critical operating-system data.
In sum, the method and component of safety shutdown originating end operating system provided in an embodiment of the present invention, by
Originating end operating system increases closes monitoring module, closes monitoring module timing and sends scsi command to scsi target end, is used for
Whether inquiry will perform shutoff operation to originating end operating system, analyze from scsi target end the vital product data for returning, with
Judge whether to close originating end operating system, can thus avoid critical system data potentially loss and collapse.
Above the method and component of safety shutdown originating end operating system provided by the present invention are described in detail.
Specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is simply used
The method of the present invention and its core concept are understood in help.It should be pointed out that for those skilled in the art,
Under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these improve and modify
Fall in the protection domain of the claims in the present invention.
Claims (8)
1. a kind of method of safety shutdown originating end operating system, it is characterised in that include:
Close monitoring module timing and scsi command is sent to scsi target end, whether originating end operating system will be held for inquiry
Row shutoff operation;
The scsi target end receives the scsi command and replys vital product data to the closing monitoring module;
The closing monitoring module receives and analyzes the vital product data, obtains analysis result;
Judge whether the analysis result is to need to close the originating end operating system;
If so, then close originating end operating system.
2. the method for safety shutdown originating end operating system as claimed in claim 1, it is characterised in that the closing monitoring module
Timing sends scsi command to scsi target end, including;
Closing monitoring module timing sends the scsi command to scsi target end by the SCSI originating ends.
3. the method for safety shutdown originating end operating system as claimed in claim 1, it is characterised in that the scsi target termination
Receive the scsi command and staple product number is replied to the closing monitoring module, including;
The scsi target end receives the scsi command, and obtains the staple product number reply number from vital product data page
According to, and the vital product data is sent to into the closing monitoring module.
4. the method for safety shutdown originating end operating system as claimed in claim 3, it is characterised in that the vital product data
Receive for Target Device Controller after closing the request of the originating end operating system, by the pass of the Target Device Controller
Close processing module be written to the vital product data page the closing originating end operating system request dependency number
According to.
5. the method for safety shutdown originating end operating system as claimed in claim 1, it is characterised in that the closing originating end behaviour
Make system, including:
The closing monitoring module closes the originating end operating system by API.
6. a kind of component of safety shutdown originating end operating system, it is characterised in that set including originating end operating system and target
Preparation controller, the originating end operating system include closing monitoring module and SCSI originating ends, the Target Device Controller bag
Vital product data page and scsi target end are included, the Target Device Controller is received closes asking for the originating end operating system
Ask, and the related data of the request for closing the originating end operating system is write into the vital product data page, it is described
Close monitoring module and scsi command is sent to the scsi target end by SCSI originating ends timing, and pass through scsi target
End inquiry is no will to perform shutoff operation to the originating end operating system, and the scsi target end is receiving the scsi command
Afterwards, the vital product data of the vital product data page is sent to into the closing monitoring module, the closing monitoring module
The vital product data is received and analyzes, if analysis result closes the initiation to close the originating end operating system
End operating system.
7. the component of safety shutdown originating end operating system as claimed in claim 6, it is characterised in that the target device control
Device processed also includes cutting out processing module, and the Target Device Controller receives asking for the closing originating end operating system
Ask, and the related data of the request for closing the originating end operating system is write by the closing processing module described
Vital product data page.
8. the component of safety shutdown originating end operating system as claimed in claims 6 or 7, it is characterised in that the originating end
Operating system also includes at least one API, and the closing monitoring module closes the originating end operating system by the API.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610970359.0A CN106528227A (en) | 2016-11-03 | 2016-11-03 | Method and assembly for safely closing initial end operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610970359.0A CN106528227A (en) | 2016-11-03 | 2016-11-03 | Method and assembly for safely closing initial end operating system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106528227A true CN106528227A (en) | 2017-03-22 |
Family
ID=58326753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610970359.0A Pending CN106528227A (en) | 2016-11-03 | 2016-11-03 | Method and assembly for safely closing initial end operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528227A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101788913A (en) * | 2009-01-23 | 2010-07-28 | 余俊德 | Computer system with double operating devices and monitoring method thereof |
CN101859248A (en) * | 2010-05-28 | 2010-10-13 | 上海市共进通信技术有限公司 | Method for popping out external CD-ROM equipment without caution by Windows operation system |
US7822959B2 (en) * | 2007-01-09 | 2010-10-26 | International Business Machines Corporation | Method for a SCSI target controller to safely shut down an operating system by the use of a standard SCSI initiator command |
-
2016
- 2016-11-03 CN CN201610970359.0A patent/CN106528227A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7822959B2 (en) * | 2007-01-09 | 2010-10-26 | International Business Machines Corporation | Method for a SCSI target controller to safely shut down an operating system by the use of a standard SCSI initiator command |
CN101788913A (en) * | 2009-01-23 | 2010-07-28 | 余俊德 | Computer system with double operating devices and monitoring method thereof |
CN101859248A (en) * | 2010-05-28 | 2010-10-13 | 上海市共进通信技术有限公司 | Method for popping out external CD-ROM equipment without caution by Windows operation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6769077B2 (en) | System and method for remotely creating a physical memory snapshot over a serial bus | |
CA2532717A1 (en) | End user data activation | |
CN104834602B (en) | A kind of program dissemination method, device and program delivery system | |
WO2019222261A4 (en) | Cloud based just in time memory analysis for malware detection | |
CN101488890B (en) | Method and system for network attack test | |
CN102830991B (en) | Methods and devices used for realizing document collection and automatic installation of software package | |
WO2023125590A1 (en) | Remote diagnosis method and apparatus, and electronic device and storage medium | |
CN106603540A (en) | Method and device for monitoring instant communication information | |
CN109648569A (en) | A kind of robot interactive Synergistic method and device | |
CN104199569A (en) | Keyboard and mouse switching and using method based on USB interfaces in KVM equipment | |
CN109960540A (en) | Small routine triggering method, computer equipment and storage medium | |
CN109635027B (en) | Method for realizing database access result set detection | |
JP5006959B2 (en) | Substation automation client control service testing apparatus and method | |
CN106528227A (en) | Method and assembly for safely closing initial end operating system | |
CN103685233A (en) | Windows kernel-driven Trojan monitoring method | |
CN105512151A (en) | Method and device for removing file occupation | |
US20090299951A1 (en) | Failure-handling procedure knowledge forming apparatus and method thereof | |
CN113852623B (en) | Virus industrial control behavior detection method and device | |
CN105447389A (en) | Vulnerability location and rapid reproduction based on Peach platform | |
CN109145609A (en) | A kind of data processing method and device | |
CN104023086B (en) | A kind of WEB cluster codes update method, apparatus and system | |
CN112416509B (en) | Virtual machine control system and related equipment | |
KR101188307B1 (en) | System and method of network activity monitoring to particular process | |
CN107341026A (en) | The control method and device of driver | |
CN105512144B (en) | A kind of file access method, device and Intelligent File System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170322 |