[go: up one dir, main page]

CN106528227A - Method and assembly for safely closing initial end operating system - Google Patents

Method and assembly for safely closing initial end operating system Download PDF

Info

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
Application number
CN201610970359.0A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201610970359.0A priority Critical patent/CN106528227A/en
Publication of CN106528227A publication Critical patent/CN106528227A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

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

一种安全关闭发起端操作系统的方法和组件A method and component for safely shutting down the operating system of the initiator

技术领域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)

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.
CN201610970359.0A 2016-11-03 2016-11-03 Method and assembly for safely closing initial end operating system Pending CN106528227A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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