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
- monitoring module
- end operating
- product data
- 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 OR CALCULATING; 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
Description
技术领域technical field
本发明涉及计算机系统软件设计技术领域,特别是涉及一种安全关闭发起端操作系统的方法和组件。The invention relates to the technical field of computer system software design, in particular to a method and components for safely shutting down an operating system at an initiator.
背景技术Background technique
在某些情况下,SCSI(Small Computer System Interface的简写,小型计算机系统接口)标准目标端控制器被要求处于离线状态,例如:设备操作者发出指令,设备的主供电电源丢失,或者检测到存在数据一致性风险的条件满足。在这些事件发生的情况下,目标端控制器变成离线状态,而发起端操作系统未被安全关闭,这时会产生很严重的后果。潜在的破坏包括数据丢失及关键操作系统数据的损坏。因此,需要一种安全关闭操作系统的方法,以避免关键系统数据潜在的损失和崩溃。In some cases, the SCSI (Short for Small Computer System Interface, small computer system interface) standard target controller is required to be offline, for example: the equipment operator issues instructions, the main power supply of the equipment is lost, or the presence of The conditions for data consistency risk are met. In the event of these events, the target controller goes offline without the initiator operating system being shut down safely, which can have serious consequences. Potential damage includes data loss and corruption of critical operating system data. Therefore, there is a need for a method of safely shutting down an operating system to avoid potential loss and crash of critical system data.
发明内容Contents of the invention
本发明的目的是提供一种安全关闭发起端操作系统的方法和组件,避免了关键系统数据潜在的损失和崩溃,提高了操作系统的可靠性。The purpose of the present invention is to provide a method and components for safely shutting down the operating system of the initiator, avoiding potential loss and collapse of key system data, and improving the reliability of the operating system.
为解决上述技术问题,本发明实施例提供了一种安全关闭发起端操作系统的方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a method for safely shutting down the operating system of the initiator, including:
关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作;The shutdown monitoring module regularly sends SCSI commands to the SCSI target end to inquire whether to perform a shutdown operation on the initiator operating system;
所述SCSI目标端接收所述SCSI命令并回复重要产品数据给所述关闭监控模块;The SCSI target end receives the SCSI command and replies important product data to the shutdown monitoring module;
所述关闭监控模块接收并分析所述重要产品数据,获得分析结果;The shutdown monitoring module receives and analyzes the important product data, and obtains analysis results;
判断所述分析结果是否为需要关闭所述发起端操作系统;Judging whether the analysis result indicates that the initiator operating system needs to be shut down;
若是,则关闭发起端操作系统。If so, shut down the initiator operating system.
其中,所述关闭监控模块定时发送SCSI命令到SCSI目标端,包括;Wherein, the shutdown monitoring module regularly sends SCSI commands to the SCSI target end, including;
所述关闭监控模块定时通过所述SCSI发起端发送所述SCSI命令到SCSI目标端。The shutdown monitoring module regularly sends the SCSI command to the SCSI target through the SCSI initiator.
其中,所述SCSI目标端接收所述SCSI命令并回复重要产品数给所述关闭监控模块,包括;Wherein, the SCSI target end receives the SCSI command and replies important product numbers to the shutdown monitoring module, including;
所述SCSI目标端接收所述SCSI命令,并从重要产品数据页获得所述重要产品数回复数据,并将所述重要产品数据发送到所述关闭监控模块。The SCSI target end receives the SCSI command, obtains the important product number reply data from the important product data page, and sends the important product data to the shutdown monitoring module.
其中,所述重要产品数据为目标设备控制器接收到关闭所述发起端操作系统的请求后,由所述目标设备控制器的关闭处理模块写入到所述重要产品数据页的所述关闭所述发起端操作系统的请求的相关数据。Wherein, the important product data is the shutdown information written into the important product data page by the shutdown processing module of the target device controller after the target device controller receives the request to shut down the initiator operating system. Relevant data describing the request of the initiator operating system.
其中,所述关闭发起端操作系统,包括:Wherein, the said shutdown initiator operating system includes:
所述关闭监控模块通过API关闭所述发起端操作系统。The shutting down monitoring module shuts down the initiator operating system through an API.
除此之外,本发明实施例还提供了一种安全关闭发起端操作系统的组件,包括发起端操作系统和目标设备控制器,所述发起端操作系统包括关闭监控模块和SCSI发起端,所述目标设备控制器包括重要产品数据页和SCSI目标端,所述目标设备控制器接收关闭所述发起端操作系统的请求,并将所述关闭所述发起端操作系统的请求的相关数据写到所述重要产品数据页,所述关闭监控模块通过所述SCSI发起端定时发送SCSI命令到所述SCSI目标端,并通过SCSI目标端查询否要对所述发起端操作系统执行关闭操作,所述SCSI目标端在接收到所述SCSI命令后,将所述重要产品数据页的重要产品数据发送到所述关闭监控模块,所述关闭监控模块接收并分析所述重要产品数据,若分析结果为关闭所述发起端操作系统,则关闭所述发起端操作系统。In addition, the embodiment of the present invention also provides a component for safely shutting down the initiator operating system, including the initiator operating system and the target device controller. The initiator operating system includes a shutdown monitoring module and a SCSI initiator, so The target device controller includes an important product data page and a SCSI target end, the target device controller receives the request for closing the operating system of the initiator, and writes the relevant data of the request for closing the operating system of the initiator to For the important product data page, the shutdown monitoring module regularly sends SCSI commands to the SCSI target through the SCSI initiator, and inquires through the SCSI target whether to perform a shutdown operation on the initiator operating system, the After receiving the SCSI command, the SCSI target sends the important product data of the important product data page to the closing monitoring module, and the closing monitoring module receives and analyzes the important product data, if the analysis result is closed The initiator operating system shuts down the initiator operating system.
其中,所述目标设备控制器还包括关闭处理模块,所述目标设备控制器接收所述关闭所述发起端操作系统的请求,并通过所述关闭处理模块将所述关闭所述发起端操作系统的请求的相关数据写到所述重要产品数据页。Wherein, the target device controller further includes a shutdown processing module, the target device controller receives the request for shutting down the initiator operating system, and through the shutdown processing module closes the initiator operating system The requested relevant data is written to the Important Product Data page.
其中,所述发起端操作系统还包括至少一个API,所述关闭监控模块通过所述API关闭所述发起端操作系统。Wherein, the initiator operating system further includes at least one API, and the shutdown monitoring module shuts down the initiator operating system through the API.
本发明实施例所提供的安全关闭发起端操作系统的方法和组件,与现有技术相比,具有以下优点:Compared with the prior art, the method and components for safely shutting down the operating system of the initiator provided by the embodiment of the present invention have the following advantages:
本发明实施例提供的安全关闭发起端操作系统的方法,包括:The method for safely shutting down the operating system of the initiator provided by the embodiment of the present invention includes:
关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作;The shutdown monitoring module regularly sends SCSI commands to the SCSI target end to inquire whether to perform a shutdown operation on the initiator operating system;
所述SCSI目标端接收所述SCSI命令并回复重要产品数据给所述关闭监控模块;The SCSI target end receives the SCSI command and replies important product data to the shutdown monitoring module;
所述关闭监控模块接收并分析所述重要产品数据,获得分析结果;The shutdown monitoring module receives and analyzes the important product data, and obtains analysis results;
判断所述分析结果是否为需要关闭所述发起端操作系统;Judging whether the analysis result indicates that the initiator operating system needs to be shut down;
若是,则关闭发起端操作系统。If so, shut down the initiator operating system.
本发明实施例提供的安全关闭发起端操作系统的组件,包括发起端操作系统和目标设备控制器,所述发起端操作系统包括关闭监控模块和SCSI发起端,所述目标设备控制器包括重要产品数据页和SCSI目标端,所述目标设备控制器接收关闭所述发起端操作系统的请求,并将所述关闭所述发起端操作系统的请求的相关数据写到所述重要产品数据页,所述关闭监控模块通过所述SCSI发起端定时发送SCSI命令到所述SCSI目标端,并通过SCSI目标端查询否要对所述发起端操作系统执行关闭操作,所述SCSI目标端在接收到所述SCSI命令后,将所述重要产品数据页的重要产品数据发送到所述关闭监控模块,所述关闭监控模块接收并分析所述重要产品数据,若分析结果为关闭所述发起端操作系统,则关闭所述发起端操作系统。The components of the safe shutdown initiator operating system provided by the embodiment of the present invention include an initiator operating system and a target device controller, the initiator operating system includes a shutdown monitoring module and a SCSI initiator, and the target device controller includes an important product data page and SCSI target end, the target device controller receives the request of closing the operating system of the initiator, and writes the relevant data of the request of closing the operating system of the initiator to the important product data page, so The shutdown monitoring module regularly sends SCSI commands to the SCSI target through the SCSI initiator, and inquires whether to perform a shutdown operation on the initiator operating system through the SCSI target, and the SCSI target receives the SCSI target. After the SCSI command, send the important product data of the important product data page to the shutdown monitoring module, the shutdown monitoring module receives and analyzes the important product data, if the analysis result is to close the initiator operating system, then Shut down the initiator operating system.
所述安全关闭发起端操作系统的方法和组件,通过在发起端操作系统增加关闭监控模块,关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作,分析从SCSI目标端返回的重要产品数据,以判断是否可以关闭发起端操作系统,这样就可以避免关键系统数据潜在的损失和崩溃。The method and component for safely shutting down the operating system of the initiator, by adding a shutdown monitoring module in the operating system of the initiator, the monitoring module of the shutdown regularly sends SCSI commands to the SCSI target end for querying whether to perform a shutdown operation on the operating system of the initiator, Analyze the important product data returned from the SCSI target to determine whether the initiator operating system can be shut down, so as to avoid potential loss and crash of critical system data.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例提供的安全关闭发起端操作系统的方法的一种具体实施方式的步骤流程示意图;FIG. 1 is a schematic flow chart of steps in a specific implementation of a method for safely shutting down an operating system at an initiator provided by an embodiment of the present invention;
图2为本发明实施例提供的安全关闭发起端操作系统的组件的一种具体实施方式的结构示意图。FIG. 2 is a schematic structural diagram of a specific implementation manner of components of a secure shutdown initiator operating system provided by an embodiment of the present invention.
具体实施方式detailed description
正如背景技术部分所述,某些情况下,SCSI标准目标端控制器被要求处于离线状态,而发起端操作系统未被安全关闭,这时会产生很严重的后果。潜在的破坏包括数据丢失及关键操作系统数据的损坏。As mentioned in the background technology section, in some cases, the SCSI standard target controller is required to be offline, and the initiator operating system is not shut down safely, and serious consequences will be produced at this time. Potential damage includes data loss and corruption of critical operating system data.
基于此,本发明实施例所提供了一种安全关闭发起端操作系统的方法,包括:Based on this, an embodiment of the present invention provides a method for safely shutting down the operating system of the initiator, including:
关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作;The shutdown monitoring module regularly sends SCSI commands to the SCSI target end to inquire whether to perform a shutdown operation on the initiator operating system;
所述SCSI目标端接收所述SCSI命令并回复重要产品数据给所述关闭监控模块;The SCSI target end receives the SCSI command and replies important product data to the shutdown monitoring module;
所述关闭监控模块接收并分析所述重要产品数据,获得分析结果;The shutdown monitoring module receives and analyzes the important product data, and obtains analysis results;
判断所述分析结果是否为需要关闭所述发起端操作系统;Judging whether the analysis result indicates that the initiator operating system needs to be shut down;
若是,则关闭发起端操作系统。If so, shut down the initiator operating system.
本发明实施例提供的安全关闭发起端操作系统的组件,包括发起端操作系统和目标设备控制器,所述发起端操作系统包括关闭监控模块和SCSI发起端,所述目标设备控制器包括重要产品数据页和SCSI目标端,所述目标设备控制器接收关闭所述发起端操作系统的请求,并将所述关闭所述发起端操作系统的请求的相关数据写到所述重要产品数据页,所述关闭监控模块通过所述SCSI发起端定时发送SCSI命令到所述SCSI目标端,并通过SCSI目标端查询否要对所述发起端操作系统执行关闭操作,所述SCSI目标端在接收到所述SCSI命令后,将所述重要产品数据页的重要产品数据发送到所述关闭监控模块,所述关闭监控模块接收并分析所述重要产品数据,若分析结果为关闭所述发起端操作系统,则关闭所述发起端操作系统。The components of the safe shutdown initiator operating system provided by the embodiment of the present invention include an initiator operating system and a target device controller, the initiator operating system includes a shutdown monitoring module and a SCSI initiator, and the target device controller includes an important product data page and SCSI target end, the target device controller receives the request of closing the operating system of the initiator, and writes the relevant data of the request of closing the operating system of the initiator to the important product data page, so The shutdown monitoring module regularly sends SCSI commands to the SCSI target through the SCSI initiator, and inquires whether to perform a shutdown operation on the initiator operating system through the SCSI target, and the SCSI target receives the SCSI target. After the SCSI command, send the important product data of the important product data page to the shutdown monitoring module, the shutdown monitoring module receives and analyzes the important product data, if the analysis result is to close the initiator operating system, then Shut down the initiator operating system.
综上所述,本发明实施例提供的安全关闭发起端操作系统的方法和组件,通过在发起端操作系统增加关闭监控模块,关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作,分析从SCSI目标端返回的重要产品数据,以判断是否可以关闭发起端操作系统,这样就可以避免关键系统数据潜在的损失和崩溃。In summary, the method and components for safely shutting down the operating system of the initiator provided by the embodiments of the present invention add a shutdown monitoring module to the operating system of the initiator, and the shutdown monitoring module regularly sends SCSI commands to the SCSI target for querying whether to Perform the shutdown operation on the initiator operating system, and analyze the important product data returned from the SCSI target to determine whether the initiator operating system can be shut down, so as to avoid potential loss and crash of key system data.
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, specific implementations of the present invention will be described in detail below in conjunction with the accompanying drawings.
在以下描述中阐述了具体细节以便于充分理解本发明。但是本发明能够以多种不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广。因此本发明不受下面公开的具体实施的限制。In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. However, the present invention can be implemented in many other ways than those described here, and those skilled in the art can make similar extensions without departing from the connotation of the present invention. Accordingly, the invention is not limited to the specific implementations disclosed below.
请参考图1,图1为本发明实施例提供的安全关闭发起端操作系统的方法的一种具体实施方式的步骤流程示意图。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of steps in a specific implementation manner of a method for securely shutting down an operating system at an initiator provided by an embodiment of the present invention.
在一种具体实施方式中,所述安全关闭发起端操作系统的方法,包括:In a specific implementation manner, the method for safely shutting down the operating system of the initiator includes:
步骤1,关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作;Step 1, the shutdown monitoring module regularly sends SCSI commands to the SCSI target end to inquire whether to perform a shutdown operation on the initiator operating system;
步骤2,所述SCSI目标端接收所述SCSI命令并回复重要产品数据给所述关闭监控模块;Step 2, the SCSI target end receives the SCSI command and replies important product data to the shutdown monitoring module;
步骤3,所述关闭监控模块接收并分析所述重要产品数据,获得分析结果;Step 3, the closing monitoring module receives and analyzes the important product data, and obtains the analysis result;
步骤4,判断所述分析结果是否为需要关闭所述发起端操作系统;Step 4, judging whether the analysis result indicates that the initiator operating system needs to be shut down;
若是,则步骤5,关闭发起端操作系统。If yes, then step 5, shut down the initiator operating system.
所述安全关闭发起端操作系统的方法,通过在发起端操作系统增加关闭监控模块,关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作,分析从SCSI目标端返回的重要产品数据,以判断是否可以关闭发起端操作系统,这样就可以避免关键系统数据潜在的损失和崩溃。The method for safely shutting down the initiator operating system is to increase the shutdown monitoring module in the initiator operating system, and the shutdown monitor module regularly sends SCSI commands to the SCSI target end for querying whether to perform a shutdown operation on the initiator operating system. Important product data returned by the SCSI target to determine whether the initiator operating system can be shut down, so as to avoid potential loss and crash of key system data.
由于关闭监控模块定时发送SCSI命令到SCSI目标端,不是直接将SCSI命令到SCSI目标端,而是通过位于发起端操作系统的SCSI发起端,发送到目标设备控制器的SCSI目标端,因此,所述关闭监控模块定时发送SCSI命令到SCSI目标端,包括:Since the shutdown monitoring module regularly sends SCSI commands to the SCSI target, instead of directly sending the SCSI command to the SCSI target, it sends the SCSI command to the SCSI target of the target device controller through the SCSI initiator located in the operating system of the initiator. Therefore, the The shutdown monitoring module regularly sends SCSI commands to the SCSI target, including:
所述关闭监控模块定时通过所述SCSI发起端发送所述SCSI命令到SCSI目标端。The shutdown monitoring module regularly sends the SCSI command to the SCSI target through the SCSI initiator.
而在SCSI目标端接收所述SCSI命令后,由于SCSI目标端没有直接存储关于关闭发起端操作系统的请求,而是通过从目标设备控制器的重要产品数据页中获得。因此,所述SCSI目标端接收所述SCSI命令并回复重要产品数给所述关闭监控模块,包括:After the SCSI target receives the SCSI command, the SCSI target does not directly store the request for shutting down the operating system of the initiator, but obtains it from the important product data page of the target device controller. Therefore, the SCSI target end receives the SCSI command and replies with the important product number to the shutdown monitoring module, including:
所述SCSI目标端接收所述SCSI命令,并从重要产品数据页获得所述重要产品数回复数据,并将所述重要产品数据发送到所述关闭监控模块。The SCSI target end receives the SCSI command, obtains the important product number reply data from the important product data page, and sends the important product data to the shutdown monitoring module.
在本发明实施例中,所述重要产品数据为目标设备控制器接收到关闭所述发起端操作系统的请求后,由所述目标设备控制器的关闭处理模块写入到所述重要产品数据页的所述关闭所述发起端操作系统的请求的相关数据。即在本发明中,目标设备控制器的关闭处理模块定时检查目标设备控制器的运行状态,检查到处于离线状态,而发起端操作系统未被安全关闭时,将关闭发起端操作系统的请求的相关数据写入到目标设备控制器的重要产品数据页中,该重要产品数据页被配置为听过SCSI目标端访问。这样,能够保证发起端操作系统关闭前相近型的必要操作,以避免数据丢失或关键操作系统数据的破坏。In the embodiment of the present invention, the important product data is written into the important product data page by the shutdown processing module of the target device controller after the target device controller receives a request to shut down the initiator operating system Relevant data of the request to shut down the initiator operating system. That is, in the present invention, the shutdown processing module of the target device controller regularly checks the operating status of the target device controller, and if it is found to be in an offline state, and the initiator operating system is not closed safely, it will close the request of the initiator operating system. The relevant data is written to the Vital Product Data page of the target device controller, which is configured to be accessed by the SCSI target. In this way, similar necessary operations before the shutdown of the initiator operating system can be ensured, so as to avoid data loss or damage to key operating system data.
而为了进一步实现安全关闭发起端操作系统,所述关闭发起端操作系统,包括:In order to further realize the safe shutdown of the initiator operating system, the shutdown of the initiator operating system includes:
所述关闭监控模块通过API关闭所述发起端操作系统。The shutting down monitoring module shuts down the initiator operating system through an API.
即在关闭监控模块确认需要关闭发起端操作系统后,由设置在发起端操作系统的API发起关闭发起端操作系统的操作。That is, after the shutdown monitoring module confirms that the initiator operating system needs to be shut down, the API set in the initiator operating system initiates the operation of shutting down the initiator operating system.
除此之外,本发明实施例还提供了一种安全关闭发起端操作系统的组件,如图2所示,包括发起端操作系统10和目标设备控制器20,所述发起端操作系统10包括关闭监控模块12和SCSI发起端11,所述目标设备控制器20包括重要产品数据页22和SCSI目标端21,所述目标设备控制器20接收关闭所述发起端操作系统10的请求,并将所述关闭所述发起端操作系统10的请求的相关数据写到所述重要产品数据页22,所述关闭监控模块12通过所述SCSI发起端11定时发送SCSI命令到所述SCSI目标端21,并通过SCSI目标端21查询否要对所述发起端操作系统10执行关闭操作,所述SCSI目标端21在接收到所述SCSI命令后,将所述重要产品数据页22的重要产品数据发送到所述关闭监控模块12,所述关闭监控模块12接收并分析重要产品数据,若分析结果为关闭所述发起端操作系统10,则关闭所述发起端操作系统10。In addition, the embodiment of the present invention also provides a component for safely shutting down the initiator operating system, as shown in FIG. 2 , including the initiator operating system 10 and the target device controller 20. Close the monitoring module 12 and the SCSI initiator 11, the target device controller 20 includes an important product data page 22 and the SCSI target end 21, the target device controller 20 receives the request to close the initiator operating system 10, and The relevant data of the request of closing the initiator operating system 10 is written to the important product data page 22, and the shutdown monitoring module 12 sends a SCSI command to the SCSI target end 21 through the SCSI initiator 11 at regular intervals, And by SCSI target end 21 inquiry whether to carry out closing operation to described initiator operating system 10, described SCSI target end 21 is after receiving described SCSI command, sends the important product data of described important product data page 22 to The shutdown monitoring module 12, the shutdown monitoring module 12 receives and analyzes important product data, and if the analysis result is to shut down the initiator operating system 10, shut down the initiator operating system 10.
本发明中,发起端操作系统10和目标设备控制器20,通过SCSI总线进行通信。In the present invention, the initiator operating system 10 and the target device controller 20 communicate through the SCSI bus.
通过在SCSI发起端11增加关闭监控模块12,分析从SCSI目标端21返回的数据以判断是否可以关闭发起端操作系统10。By adding a shutdown monitoring module 12 to the SCSI initiator 11, the data returned from the SCSI target 21 is analyzed to determine whether the initiator operating system 10 can be shut down.
所述目标设备控制器20还包括关闭处理模块23,所述目标设备控制器20接收所述关闭所述发起端操作系统10的请求,并通过所述关闭处理模块23将所述关闭所述发起端操作系统10的请求的相关数据写到所述重要产品数据页22。The target device controller 20 also includes a closing processing module 23, the target device controller 20 receives the request to close the initiator operating system 10, and closes the initiator operating system 10 through the closing processing module 23. Relevant data requested by the terminal operating system 10 is written to the important product data page 22 .
通过在SCSI发起端11增加关闭发起端操作系统10的API13接口,以实现安全关闭。By adding the API13 interface of the shutdown initiator operating system 10 at the SCSI initiator 11, a safe shutdown is realized.
所述发起端操作系统10还包括至少一个API13,所述关闭监控模块12通过所述API13关闭所述发起端操作系统10。The initiator operating system 10 also includes at least one API 13 , and the shutdown monitoring module 12 shuts down the initiator operating system 10 through the API 13 .
通过在SCSI控制器增加关闭处理程序,以保证在发起端操作系统10关闭前进行必要的操作,以避免数据丢失或关键操作系统数据的损坏。By adding a shutdown processing program to the SCSI controller, it is ensured that necessary operations are performed before the initiator operating system 10 is shut down, so as to avoid data loss or damage to key operating system data.
综上所述,本发明实施例提供的安全关闭发起端操作系统的方法和组件,通过在发起端操作系统增加关闭监控模块,关闭监控模块定时发送SCSI命令到SCSI目标端,用于查询是否要对发起端操作系统执行关闭操作,分析从SCSI目标端返回的重要产品数据,以判断是否可以关闭发起端操作系统,这样就可以避免关键系统数据潜在的损失和崩溃。In summary, the method and components for safely shutting down the operating system of the initiator provided by the embodiments of the present invention add a shutdown monitoring module to the operating system of the initiator, and the shutdown monitoring module regularly sends SCSI commands to the SCSI target for querying whether to Perform the shutdown operation on the initiator operating system, and analyze the important product data returned from the SCSI target to determine whether the initiator operating system can be shut down, so as to avoid potential loss and crash of key system data.
以上对本发明所提供的安全关闭发起端操作系统的方法和组件进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and components for safely shutting down the operating system of the initiator provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (8)
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 dual operating devices and monitoring method thereof |
| CN101859248A (en) * | 2010-05-28 | 2010-10-13 | 上海市共进通信技术有限公司 | The method of ejecting the external optical drive device without warning in Windows operating 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 dual operating devices and monitoring method thereof |
| CN101859248A (en) * | 2010-05-28 | 2010-10-13 | 上海市共进通信技术有限公司 | The method of ejecting the external optical drive device without warning in Windows operating system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107957712B (en) | Engineering tool and method for testing process control system | |
| US8566799B2 (en) | Resuming a prior debug session | |
| US20160300044A1 (en) | Anti-debugging method | |
| CN108959117B (en) | H2D write operation acceleration method and device, computer equipment and storage medium | |
| CN102301344B (en) | A kind of operating system kernel debugging method and virtual debugging service module | |
| CN104317690A (en) | Memory Demand Scrub testing method based on ITP tool | |
| CN114356811B (en) | Communication link updating method, device and related equipment | |
| CN105138438A (en) | MEMORY PATROL SCRUB testing method | |
| TW201419029A (en) | Accessing system and method thereof | |
| WO2018000918A1 (en) | Network-based set-top box testing method and system | |
| US9377966B2 (en) | Method and apparatus for efficiently processing storage commands | |
| CN110716818B (en) | Exception handling method, device, hardware protection device and storage medium | |
| CN106528227A (en) | Method and assembly for safely closing initial end operating system | |
| CN109635027B (en) | Method for realizing database access result set detection | |
| CN103631682A (en) | Data backup implement method and device | |
| CN108734033B (en) | Method and device for realizing safety interaction between systems | |
| CN109522281A (en) | A kind of method of Distributed File System Data rapid copy | |
| US7822959B2 (en) | Method for a SCSI target controller to safely shut down an operating system by the use of a standard SCSI initiator command | |
| CN112559248B (en) | Preprocessing service recovery method, device, equipment and storage medium | |
| CN115328692A (en) | Execution program checking method and device based on solid state disk and computer equipment | |
| EP3134789B1 (en) | Monitor performance analysis | |
| CN106897188A (en) | A kind of method of monitor in real time Sandisk_SSD temperature | |
| CN106527989A (en) | SCSI (Small Computer System Interface) command control method and system for storage system | |
| CN115114650A (en) | An operation review method, device and computer equipment | |
| CN107193595A (en) | The method and device that a kind of NVIDIA video drivers are installed |
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 |
Application publication date: 20170322 |
|
| WD01 | Invention patent application deemed withdrawn after publication |