A method and device for restarting a large host
Through the automation of the restart auxiliary system, parallel downtime and startup of mainframe logical partitions are realized, which solves the problem of low efficiency and poor reliability of manual complex restarts and improves the efficiency and reliability of mainframe restarts.
Patent Information
- Application Number
- CN202210356431.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-06
AI Technical Summary
The mainframe restart process is complex and performed manually, resulting in low efficiency, high cost and reduced reliability, seriously affecting business continuity.
Provide a method and device for restarting a large host, automatically realize parallel downtime and start-up of logical partitions by restarting the auxiliary system, and use the hardware management console to perform configuration parameter query, downtime and start-up operations to reduce manual intervention.
It improves the efficiency and reliability of mainframe restart, reduces restart time, reduces labor costs, and enhances business continuity.
Smart Images

Figure CN114691427B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for restarting a large host. Background Art
[0002] Mainframes usually run important core application systems and databases to complete various complex computing tasks. In order to ensure the stable operation of the system, the mainframe needs to be restarted regularly.
[0003] Currently, a series of restart operations of mainframes can be performed manually. Due to the requirements of business continuity on mainframes, the time for restarting mainframes is strictly limited. If a problem occurs, the consequences are very serious. Since the process of restarting a mainframe is relatively complicated, the manual method of performing the mainframe restart operation not only consumes manpower costs and is inefficient, but also is likely to bring risks and reduce the reliability of the restart. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a large host restart method and device, which can save the time of large host restart, improve the restart efficiency, and improve the reliability of restart.
[0005] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:
[0006] The embodiment of the present application provides a large host restart method, which is applied to a restart auxiliary system and includes:
[0007] Obtaining configuration parameters and restart requests sent by the user at the front end; the configuration parameters include a startup volume flag, a logical partition name list, and login information;
[0008] In response to the restart request, query the configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes a logical partition identification number, a logical partition volume address, a logical partition mounting parameter, and a logical partition address space status list; the component status of the address space in the logical partition address space status list is all in the startup state; the logical partition name list includes the names of multiple logical partitions to be restarted;
[0009] Log in to the hardware management console of the mainframe according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel;
[0010] In response to the start button triggered by the user on the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list, the hardware management console is controlled to start each address space of the logical partition in the logical partition name list in parallel.
[0011] Optionally, the controlling the hardware management console to shut down each address space of each logical partition in the logical partition name list in parallel includes:
[0012] Opening a system command channel of the first target logical partition, connecting to a message channel of the first target logical partition, and sending a shutdown command to the hardware management console through the system command channel to shutdown each address space in the first target logical partition; the first target logical partitions are each logical partition in the logical partition name list that is shut down in parallel;
[0013] Sending an address space list query command to the hardware management console through the system command channel of the first target logical partition, obtaining the address space list of the first target logical partition from the message channel of the first target logical partition, and obtaining the number of address spaces corresponding to the first target logical partition according to the address space list of the first target logical partition;
[0014] Sending an address space component status query command to the hardware management console through the system command channel of the first target logical partition, and acquiring the component status of each address space of the first target logical partition from the message channel of the first target logical partition;
[0015] Repeat the step of sending an address space list query command to the hardware management console through the system command channel of the first target logical partition and subsequent steps until the number of address spaces corresponding to the first target logical partition is 0 and the component status of each address space of the first target logical partition is in a down state.
[0016] Optionally, the method further comprises:
[0017] Sending a first target logical partition isolation instruction to the hardware management console through the system command channel of the first target logical partition, obtaining a message number of the highlighted information triggered by the first target logical partition isolation instruction from the message channel of the first target logical partition, and responding to the highlighted information triggered by the first target logical partition isolation instruction based on the message number, and determining that the isolation of the first target logical partition is completed;
[0018] The message channel of the first target logical partition is detected, and when a message number indicating that the first target logical partition is downlinked is obtained from the message channel of the first target logical partition, it is determined that the downlink of each address space of the first target logical partition is completed.
[0019] Optionally, the controlling the hardware management console to start each address space of each of the logical partitions in the logical partition name list in parallel based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list comprises:
[0020] According to the boot volume flag, the logical partition identification number of the second target logical partition, the logical partition volume address of the second target logical partition and the logical partition mounting parameter of the second target logical partition, the mounting operation of the second target logical partition is performed; the second target logical partition is each of the logical partitions in the logical partition name list that are started in parallel;
[0021] Sending a mount query command of the second target logical partition to the hardware management console, and obtaining a mount operation query link of the second target logical partition returned by the hardware management console;
[0022] After determining that the loading operation of the second target logical partition is completed according to the loading operation query link of the second target logical partition, the hardware management console is controlled to start each address space of the second target logical partition based on the logical partition address space status list of the second target logical partition.
[0023] Optionally, the controlling the hardware management console to start each address space of the second target logical partition based on the logical partition address space status list of the second target logical partition includes:
[0024] Opening a system command channel of the second target logical partition and connecting to a message channel of the second target logical partition;
[0025] After receiving the loading completion message number in the message channel of the second target logical partition, sending a console activation command to the hardware management console through the system command channel of the second target logical partition to activate the console of the second target logical partition;
[0026] Sending a boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition, and acquiring the boot address space list of the second target logical partition from the message channel of the second target logical partition;
[0027] querying whether the boot address space list of the second target logical partition includes the job management subsystem address space, and if not, re-executing the sending of the boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition and subsequent steps until the boot address space list of the second target logical partition includes the job management subsystem address space;
[0028] Sending an address space component status query command to the hardware management console through the system command channel of the second target logical partition, and acquiring the component status of each address space of the second target logical partition from the message channel of the second target logical partition;
[0029] Repeat the steps of sending a startup address space list acquisition command to the hardware management console through the system command channel of the second target logical partition and subsequent steps until each address space started in the startup address space list of the second target logical partition is the same as each address space in the logical partition address space status list of the second target logical partition and the component status of each address space of the second target logical partition is in the startup state.
[0030] Optionally, the method further comprises:
[0031] During the restart of the mainframe, the current component status of the logical partition, the name of the currently executed operation and the command result are written into the monitoring record table in real time, so that the monitoring record table can be displayed on the front end.
[0032] Optionally, the current component status of the logical partition includes at least normal, down, down, waiting to be started, starting, and forced skip.
[0033] The embodiment of the present application further provides a large host restart device, which is applied to a restart auxiliary system, including:
[0034] An acquisition unit, used to acquire configuration parameters and a restart request sent by a user at the front end; the configuration parameters include a startup volume flag, a logical partition name list, and login information;
[0035] A query unit, configured to query, in response to the restart request, configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes a logical partition identification number, a logical partition volume address, a logical partition loading parameter, and a logical partition address space status list; the component status of the address space in the logical partition address space status list is all in a startup state; the logical partition name list includes the names of multiple logical partitions to be restarted;
[0036] A first control unit, configured to log in to the hardware management console of the mainframe according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel;
[0037] A second control unit is used to respond to the start button triggered by the user on the front end, and control the hardware management console to parallelly start each address space of each logical partition in the logical partition name list based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list.
[0038] The present application also provides an electronic device, including:
[0039] one or more processors;
[0040] a storage device having one or more programs stored thereon,
[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the mainframe restart methods described above.
[0042] An embodiment of the present application further provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the mainframe restart method as described above is implemented.
[0043] Through the above technical solution, it can be seen that the present application has the following beneficial effects:
[0044] The embodiment of the present application provides a method and device for restarting a large mainframe, which is automatically implemented by a restart auxiliary system. First, the configuration parameters and the restart request sent by the user at the front end are obtained. The configuration parameters include a startup volume flag, a logical partition name list, and login information. In response to the restart request, the configuration information corresponding to each logical partition in the logical partition name list is queried according to the logical partition name list. The configuration information includes a logical partition identification number, a logical partition volume address, a logical partition loading parameter, and a logical partition address space status list, and the component status of the address space in the logical partition address space status list is all in the startup state. The logical partitions recorded in the logical partition name list are all logical partitions to be restarted. Based on this, the hardware management console of the large mainframe is logged in according to the login information, and the hardware management console is controlled to download each address space of each logical partition in the logical partition name list in parallel. After the download is completed, in response to the start button triggered by the user at the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list, the hardware management console is controlled to start each address space of each logical partition in the logical partition name list in parallel. In this way, the restart auxiliary system automatically implements the shutdown process and startup process of each logical partition in the logical partition name list, and the shutdown process and startup process are performed in parallel for multiple logical partitions, which reduces the restart time of the large host and improves the restart efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 A flowchart of a large host restart method provided in an embodiment of the present application;
[0047] Figure 2 A flowchart of a first target logical partition downtime process provided in an embodiment of the present application;
[0048] Figure 3 A flowchart of a second target logical partition startup process provided by an embodiment of the present application;
[0049] Figure 4 A schematic diagram of the structure of a large host restart device provided in an embodiment of the present application;
[0050] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0052] In order to facilitate the understanding and explanation of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application is first introduced.
[0053] In banks and other institutions, mainframes usually run important core application systems and databases to complete various complex computing tasks. In order to ensure the stable operation of the system, the mainframe needs to be restarted regularly.
[0054] The mainframe system uses the system automation SA component to manage the downtime and startup sequence of all address spaces, and is configured with corresponding commands. The address space can be effectively managed by command operations on the SA component. The system complex SYSPLEX is a system complex created by the mainframe IBM, which comes from the first half of the SYSTEM system and the second half of the COMPLEX complex. Multiple logical partitions LPAR on the mainframe form a SYSPLEX. Each LPAR can run an independent operating system and provide complete software isolation between each other. The mainframe restart process is relatively complicated. At present, a series of mainframe restart operations can be performed manually. Specifically, the manual restart process of the mainframe operating system is divided into two stages: downtime and startup.
[0055] In the manual operation process of downlink, the user sends the SA command to all LPARs in the SYSPLEX to start downlinking all address spaces. Then, the user sends a command on each LPAR to poll the address space downlink result. When the address space is completely downlinked, the user sends a command to isolate the current LPAR from the current SYSPLEX. Finally, when all LPARs in the SYSPLEX are isolated, the system downlink is complete.
[0056] In addition, in the manual operation process of startup, the user configures the volume address, mounting parameters, etc. of each LPAR startup. The user performs the mounting operation on each LPAR in turn. After the mounting is completed, the user sends a command to activate the console of the current LPAR. The user monitors the startup status of the address space until all address spaces have completed the startup and the status is correct, and the system is started.
[0057] Based on the above content, it can be seen that the user sends commands to the host system, configures startup parameters, monitors the downtime and startup of functional modules, etc. Due to the business continuity requirements of banks and other institutions, the time for restarting large hosts is strictly limited. If a problem occurs, the consequences will be very serious. Since the process of restarting a large host is relatively complicated, the manual method of performing the restart operation of the large host not only consumes manpower costs and is inefficient, but is also very likely to bring risks and reduce the reliability of the restart.
[0058] Based on this, the embodiment of the present application provides a method and device for restarting a large mainframe, which is automatically implemented by a restart auxiliary system. First, the configuration parameters and the restart request sent by the user at the front end are obtained. The configuration parameters include a startup volume flag, a logical partition name list, and login information. In response to the restart request, the configuration information corresponding to each logical partition in the logical partition name list is queried according to the logical partition name list. The configuration information includes a logical partition identification number, a logical partition volume address, a logical partition loading parameter, and a logical partition address space status list, and the component status of the address space in the logical partition address space status list is all in the startup state. The logical partitions recorded in the logical partition name list are all logical partitions to be restarted. Based on this, the hardware management console of the large mainframe is logged in according to the login information, and the hardware management console is controlled to download each address space of each logical partition in the logical partition name list in parallel. After the download is completed, in response to the start button triggered by the user at the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list, the hardware management console is controlled to start each address space of each logical partition in the logical partition name list in parallel. In this way, the restart auxiliary system automatically implements the shutdown process and startup process of each logical partition in the logical partition name list, and the shutdown process and startup process are performed in parallel for multiple logical partitions, which reduces the restart time of the large host and improves the restart efficiency.
[0059] The large host restart method provided in the embodiment of the present application is automatically implemented by the restart auxiliary system. In order to facilitate the understanding of the large host restart method provided in the embodiment of the present application, the restart auxiliary system provided in the embodiment of the present application is first described.
[0060] Mainframes are usually equipped with a hardware management platform HMC. HMC is a graphical interface software provided by the mainframe to manage the host partitions. Users can configure and manage the host partitions through HMC. HMC provides a set of interfaces for mainframe hardware management. The following are the interfaces, interface functions, and interface examples or descriptions used in the mainframe restart process.
[0061]
[0062] In a possible implementation, the above interface used in the mainframe is encapsulated into a Web Service for implementing the restart of the operating system. Among them, Web Service is a platform-independent, low-coupling Web application. WebService technology enables applications running on different machines to exchange data or integrate with each other without the help of other software or hardware. Based on this, as an optional example, the restart auxiliary system is implemented by Web Service. The restart auxiliary system receives the restart request passed in from the front end, reads the configuration parameters from the database after parsing, and then implements the restart operation of the mainframe.
[0063] To facilitate understanding of the present application, a large host restart method provided in an embodiment of the present application is described below with reference to the accompanying drawings.
[0064] See also Figure 1 As shown in FIG. 1 , this figure is a flow chart of a large host restart method provided by an embodiment of the present application, and the method is applied to restart the auxiliary system. Figure 1 As shown, the method may include S101-S104:
[0065] S101: Acquire configuration parameters and a restart request sent by a user at the front end; the configuration parameters include a startup volume flag, a logical partition name list, and login information.
[0066] The interface functions in the restart assistance system are already available, and the restart assistance system can automatically implement the downtime process and startup process of the large host. First, the user will select various configuration parameters on the front end, such as the startup volume flag, the logical partition name list and the login information. Specifically, the logical partition to be restarted selected by the user is reflected in the form of a logical partition name list on the front end. The user selects the volume flag used during the startup process on the front end. It can be understood that during the startup process, the program needs to be loaded into a specific volume, such as A set of volumes, B set of volumes and C set of volumes. The volume flags are A set of volumes, B set of volumes and C set of volumes. The user enters the login information used to log in to the hardware management console on the front end, and the login information includes account information and password information.
[0067] As an optional example, the user may also select a specific system complex SYSPLEX in the front end.
[0068] For example, the SYSPLEX selected by the user is PLEXP2, and the boot volume flag is volume set C. The logical partition name list is BP20-BP29, a total of 9 logical partitions, and the login information is entered on the front end. Then, the user triggers the restart button or the down button on the front end page to send a restart request to the restart auxiliary system. The restart auxiliary system obtains the configuration parameters and restart request sent by the user on the front end.
[0069] S102: In response to the restart request, query the configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list; the component status of the address space in the logical partition address space status list is all in the startup state; the logical partition name list includes the names of multiple logical partitions to be restarted.
[0070] In response to the restart request, the restart auxiliary system (specifically, the background of the restart auxiliary system) receives the logical partition name list and queries the database for the configuration information corresponding to each logical partition in the logical partition name list. Among them, the configuration information includes the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list. Among them, the logical partition identification number is used to represent the logical partition, for example, the logical partition identification number is 01. The logical partition volume address is the specific address of the logical partition in the volume, such as the specific address in the C set volume. After knowing the logical partition volume address, the program can be loaded into the specific volume address. The component status of the address space in the logical partition address space status list is all the startup state, or called the UP state. During the startup process of the mainframe, the address space of the startup state in the logical partition address space status list can be used as a reference. If the address spaces in the startup process can be the same as the address space of the startup state in the logical partition address space status list, it proves that the startup of the logical partition is complete.
[0071] It is understandable that the configuration parameters sent by the user at the front end and the configuration information corresponding to the logical partition are used to restart the auxiliary system to subsequently shut down and restart the mainframe. The configuration information is persisted in the database, and it is only necessary to maintain the records in the database in advance to ensure that the parameters are correct during the mainframe restart execution.
[0072] S103: Log in to the hardware management console of the large host according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel.
[0073] After the restart auxiliary system successfully logs into the hardware management console of the mainframe, the Session ID will be saved. The Session ID is used for authentication. The restart auxiliary system needs to carry the Session ID in the request during the downtime process.
[0074] After the restart auxiliary system logs in to the hardware management console of the mainframe according to the login information, it controls the hardware management console to parallelly shut down each address space of each logical partition in the logical partition name list. When each logical partition in the logical partition name list is shut down, the shut down process of the mainframe is completed.
[0075] It can be understood that controlling the parallel shutdown of each logical partition by the restart auxiliary system can save the downtime of the large host and improve the downtime efficiency.
[0076] In a possible implementation, an embodiment of the present application provides a specific implementation method for controlling the address space of each logical partition in the logical partition name list of the hardware management console to be shut down in parallel, please see below.
[0077] S104: In response to the start button triggered by the user at the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list, the hardware management console is controlled to parallelly start each address space of each logical partition in the logical partition name list.
[0078] After each logical partition in the logical partition name list is completely downloaded, the user triggers a start button on the front page. In response to the start button triggered by the user on the front page, the restart auxiliary system controls the hardware management console to start each address space of each logical partition in the logical partition name list in parallel based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list. When each logical partition in the logical partition name list is completely started, the startup process of the mainframe is completed.
[0079] It can be understood that controlling the parallel startup of each logical partition by the restart auxiliary system can save the startup time of the large host and improve the startup efficiency.
[0080] In a possible implementation, during the mainframe restart process, the current component status of the logical partition, the name of the currently executed operation, and the command result are written into the monitoring record table in real time. In addition, the monitoring record table may also include step summary, operation result, start time, end time, and time consumption. The monitoring record table is displayed on the front end, and the user can know the progress of the entire process through the monitoring record table displayed on the front end page.
[0081] The current component status of the logical partition includes at least normal, down, down, waiting to start, starting, and forced skip. The name of the currently executed operation includes sending down command, monitoring address space down, isolating the logical partition from the current system complex, downing the current logical partition, monitoring address space startup, etc.
[0082] In one possible implementation, an embodiment of the present application provides a specific implementation method for controlling the hardware management console to parallelly start each address space of each logical partition in the logical partition name list based on the boot volume flag, logical partition identification number, logical partition volume address, logical partition loading parameters and logical partition address space status list. Please see below for details.
[0083] The embodiment of the present application provides a method for restarting a large mainframe, which is automatically implemented by a restart auxiliary system. First, the configuration parameters and the restart request sent by the user at the front end are obtained. The configuration parameters include a startup volume flag, a logical partition name list, and login information. In response to the restart request, the configuration information corresponding to each logical partition in the logical partition name list is queried according to the logical partition name list. The configuration information includes a logical partition identification number, a logical partition volume address, a logical partition loading parameter, and a logical partition address space status list, and the component status of the address space in the logical partition address space status list is all in the startup state. The logical partitions recorded in the logical partition name list are all logical partitions to be restarted. Based on this, the hardware management console of the large mainframe is logged in according to the login information, and the hardware management console is controlled to download each address space of each logical partition in the logical partition name list in parallel. After the download is completed, in response to the start button triggered by the user at the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list, the hardware management console is controlled to start each address space of each logical partition in the logical partition name list in parallel. In this way, the restart auxiliary system automatically implements the shutdown process and startup process of each logical partition in the logical partition name list, and the shutdown process and startup process are performed in parallel for multiple logical partitions, which reduces the restart time of the large host and improves the restart efficiency.
[0084] See also Figure 2 , Figure 2 A flowchart of a first target logical partition downtime process provided in an embodiment of the present application. In a possible implementation, in combination with Figure 2 The embodiment of the present application provides a specific implementation method for controlling the address space of each logical partition in the logical partition name list of the hardware management console to be shut down in parallel, including:
[0085] S201: Open the system command channel of the first target logical partition, connect to the message channel of the first target logical partition, and send a shutdown command to the hardware management console through the system command channel to shut down each address space in the first target logical partition; the first target logical partitions are each logical partition in the logical partition name list that is shut down in parallel.
[0086] For ease of understanding and description, the first target logical partition is determined to be each logical partition that is shut down in parallel in the logical partition name list. After the restart auxiliary system logs in to the hardware management console, first open the system command channel of the first target logical partition and connect to the message channel of the first target logical partition. The system command channel of the first target logical partition is used by the restart auxiliary system to send commands to the hardware management console. The message channel of the first target logical partition is used by the restart auxiliary system to receive the results returned by the hardware management console.
[0087] Then, the restart auxiliary system automatically sends a shutdown command to the hardware management console through the system command channel to shut down each address space in the first target logical partition. The shutdown command is an SA command. In actual applications, each logical partition has a corresponding console on the hardware management console. Therefore, in the actual shutdown process, the restart auxiliary system automatically sends a shutdown command to the console corresponding to the first target logical partition through the system command channel to shut down each address space in the first target logical partition.
[0088] In addition, after the message channel of the first target logical partition is opened, all messages on the first target logical partition will be obtained by the client, and the proportion of information related to the mainframe restart process is relatively small. Therefore, the embodiment of the present application formulates message filtering rules. Specifically, after opening the message channel of the first target logical partition and obtaining the message, a consumed message queue is established. Once the message has been consumed, the ID of the message is placed in the queue. Before each message is consumed, it will be compared with the existing messages in the queue to avoid the problem of duplicate consumption.
[0089] S202: Send an address space list query command to the hardware management console through the system command channel of the first target logical partition, obtain the address space list of the first target logical partition from the message channel of the first target logical partition, and obtain the number of address spaces corresponding to the first target logical partition according to the address space list of the first target logical partition.
[0090] As an optional example, the address space list query command is a "DA, L" command.
[0091] After obtaining the address space list of the first target logical partition, the address space list is parsed to obtain the number of address spaces, wherein none of the address spaces in the address space list is a downgraded address space.
[0092] S203: Send an address space component status query command to the hardware management console through the system command channel of the first target logical partition, and obtain the component status of each address space of the first target logical partition from the message channel of the first target logical partition.
[0093] As an optional example, the address space component status query command is a "SA39 DISPSTAT" command. The component status of each address space of the first target logical partition includes normal, down, down, waiting to start, starting, forced skip, etc.
[0094] In actual applications, since the component status of the address space will be written into the monitoring record table, if the user finds in the front-end monitoring record table that some abnormal address spaces cannot be shut down normally, and appear in the command return result for a long time, and affect the subsequent address space shutdown, user intervention is required. The user will send a forced shutdown command to shut down the abnormal address space. At this time, the restart auxiliary system responds to the user's forced shutdown command and shuts down the abnormal address space.
[0095] S204: Repeat the steps of sending an address space list query command to the hardware management console through the system command channel of the first target logical partition and subsequent steps until the number of address spaces corresponding to the first target logical partition is 0 and the component status of each address space of the first target logical partition is in a down state.
[0096] Repeat S202-S203 to obtain the number of address spaces and the component status of each address space in the address space list of the first target logical partition in real time. When the number of address spaces corresponding to the first target logical partition is 0 and the component status of each address space of the first target logical partition is all down, it means that the address spaces corresponding to the first target logical partition have all been down.
[0097] As an optional example, during the downlink process, the progress of the downlink operation is judged by the ratio of the number of address spaces with a component status of "UP" in the return of the "SA39 DISPSTAT" command to the number of address spaces with a component status of "UP" in the same command result of the logical partition under normal circumstances. Among them, the address space component status in the address space list returned by the "SA39DISPSTAT" command is all "UP", and the address spaces in the address space list have not been downlinked. Under normal circumstances, the component status of the address space in the same command result of the logical partition is all "UP". For example: during the downlink process, the ratio is 1 / 3, then the proportion of address space components with a status of "UP" is 1 / 3, and the downlink progress is about 67%.
[0098] S205: Send a first target logical partition isolation instruction to the hardware management console through the system command channel of the first target logical partition, obtain the message number of the highlighted information triggered by the first target logical partition isolation instruction from the message channel of the first target logical partition, and respond to the highlighted information triggered by the first target logical partition isolation instruction based on the message number, and determine that the isolation of the first target logical partition is completed.
[0099] As an optional example, the first target logical partition isolation instruction is “V XCF, LPAR, OFFLINE.” The first target logical partition isolation instruction is used to isolate the first target logical partition from the system complex in which it is located.
[0100] The first target logical partition isolation instruction will trigger a highlighted message, which requires a response confirmation. The message number of the highlighted information triggered by the first target logical partition isolation instruction is obtained from the message channel of the first target logical partition, and the highlighted information triggered by the first target logical partition isolation instruction is responded to based on the message number. The message number is used to uniquely identify the message. For example, the response "R message number, SYSNAME = LPAR" determines the isolation of the first target logical partition. After sending the first target logical partition isolation instruction, the console of the first target logical partition is closed.
[0101] S206: Detect the message channel of the first target logical partition, and when the first target logical partition downlink completion message number is obtained from the message channel of the first target logical partition, determine that the downlink of each address space of the first target logical partition is completed.
[0102] It is understandable that, although it is determined in S204 that the address spaces of the first target logical partition are all downlinked, there are still some subsequent operations to be processed. Based on this, the message channel of the first target logical partition is detected. When the downlink completion message number of the first target logical partition is obtained from the message channel of the first target logical partition, it is determined that the downlink of each address space of the first target logical partition is all completed.
[0103] As an optional example, the first target logical partition downtime completion message number is "IXC220W" or "IXL004W", which indicates that the first target logical partition has been completely downtime.
[0104] Based on the contents of S201-S206, it can be known that by restarting the auxiliary system, the downtime process of the large mainframe can be automatically realized, which can reduce the time of the downtime process of the large mainframe and improve the efficiency of the downtime process of the large mainframe.
[0105] See also Figure 3 , Figure 3 A flowchart of a second target logical partition startup process provided by an embodiment of the present application. In a possible implementation, in combination with Figure 3 The embodiment of the present application provides a specific implementation method for controlling the hardware management console to start each address space of each logical partition in the logical partition name list in parallel based on the boot volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter and the logical partition address space status list, including:
[0106] S301: Execute the loading operation of the second target logical partition according to the boot volume flag, the logical partition identification number of the second target logical partition, the logical partition volume address of the second target logical partition and the logical partition loading parameters of the second target logical partition; the second target logical partitions are each logical partition started in parallel in the logical partition name list.
[0107] For ease of understanding and description, the second target logical partition is determined to be each logical partition started in parallel in the logical partition name list. In actual application, the second target logical partition is first loaded and then started.
[0108] In the loading operation, the loading operation of the second target logical partition is performed according to the startup volume flag, the logical partition identification number of the second target logical partition, the logical partition volume address of the second target logical partition, and the logical partition loading parameters of the second target logical partition. For example, if the volume flag is set C volume, the program of the second target logical partition is loaded into the set C volume. According to the logical partition identification number of the second target logical partition and the logical partition volume address of the second target logical partition, the specific location of the second target logical partition in the set C volume can be clearly determined. Then, the program of the second target logical partition is loaded based on the logical partition loading parameters of the second target logical partition.
[0109] S302: Send a mount query command of the second target logical partition to the hardware management console, and obtain a mount operation query link of the second target logical partition returned by the hardware management console.
[0110] During the loading process, the restart auxiliary system sends a loading query command of the second target logical partition to the hardware management console, and obtains the loading operation query link of the second target logical partition returned by the hardware management console. Through this connection, the status of the loading operation can be polled until the loading is successful. During the loading process, the loading may fail, for example, the volume flag error, the loading content error, etc.
[0111] S303: After determining that the loading operation of the second target logical partition is completed according to the loading operation query link of the second target logical partition, open the system command channel of the second target logical partition and connect to the message channel of the second target logical partition.
[0112] After the loading is completed, the restart auxiliary system automatically opens the system command channel of the second target logical partition and connects to the message channel of the second target logical partition. It can be understood that the above S302 can be implemented without relying on the system command channel and message channel of the second target logical partition.
[0113] It should be noted that, based on the logical partition address space status list of the second target logical partition, the hardware management console may be controlled to start each address space of the second target logical partition, and the specific steps include S303-S308.
[0114] In addition, after the message channel of the first target logical partition is opened, all messages on the first target logical partition will be obtained by the client, and the proportion of information related to the mainframe restart process is relatively small. Therefore, the embodiment of the present application formulates message filtering rules. Specifically, after opening the message channel of the first target logical partition and obtaining the message, a consumed message queue is established. Once the message has been consumed, the ID of the message is placed in the queue. Before each message is consumed, it will be compared with the existing messages in the queue to avoid the problem of duplicate consumption.
[0115] S304: After receiving the loading completion message number in the message channel of the second target logical partition, a console activation command is sent to the hardware management console through the system command channel of the second target logical partition to activate the console of the second target logical partition.
[0116] In addition to determining whether the loading operation of the second target logical partition is completed through the loading operation query link of the second target logical partition, the loading completion message number is also received from the message channel of the second target logical partition. After the restart auxiliary system determines that the loading completion message number is received from the message channel of the second target logical partition, it sends a console activation command to the hardware management console through the system command channel of the second target logical partition to activate the console of the second target logical partition.
[0117] As an optional example, the loading completion message number is "IEE389I". The console activation command is "VCN(*),ACT".
[0118] It is understandable that after the second target logical partition is loaded, the startup process is automatically performed.
[0119] S305: Send a boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition, and acquire the boot address space list of the second target logical partition from the message channel of the second target logical partition.
[0120] The number of startup address spaces corresponding to the second target logical partition is obtained according to the address space list of the second target logical partition.
[0121] As an optional example, the boot address space list acquisition command is "DA, L". After acquiring the boot address space list of the second target logical partition, the boot address space list is parsed to acquire the number of address spaces of the second target logical partition. It can be understood that each space in the boot address space list is in the "UP" state.
[0122] S306: Query whether the boot address space list of the second target logical partition includes the job management subsystem address space. If not, re-execute the boot address space list acquisition command and subsequent steps sent to the hardware management console through the system command channel of the second target logical partition until the boot address space list of the second target logical partition includes the job management subsystem address space.
[0123] As an optional example, the job management subsystem address space is the "JES2" address space. After the job management subsystem address space is started, the subsequent work of the mainframe depends on the job management subsystem. Therefore, it is necessary to query whether the startup address space list of the second target logical partition contains the job management subsystem address space. If not, re-execute S305-S306 until the startup address space list of the second target logical partition contains the job management subsystem address space.
[0124] S307: Send an address space component status query command to the hardware management console through the system command channel of the second target logical partition, and obtain the component status of each address space of the second target logical partition from the message channel of the second target logical partition.
[0125] As an optional example, the address space component status query command is a "SA39 DISPSTAT" command. The component status of each address space of the second target logical partition is obtained from the message channel of the second target logical partition.
[0126] S308: Repeat the steps of sending the startup address space list acquisition command and subsequent steps to the hardware management console through the system command channel of the second target logical partition until each address space started in the startup address space list of the second target logical partition and each address space in the logical partition address space status list of the second target logical partition are the same and the component status of each address space of the second target logical partition is in the startup state.
[0127] Repeat S305-S308 to update the startup address space list and obtain the address space list with the status "UP". When the address spaces started in the startup address space list of the second target logical partition are the same as the address spaces in the logical partition address space status list of the second target logical partition and the component status of the address spaces of the second target logical partition are all in the startup state, it means that the startup of the address spaces of the second target logical partition is completed. In addition, it is also possible to check whether the number of startup address spaces in the startup address space list of the second target logical partition is the same as the number of address spaces in the logical partition address space status list of the second target logical partition.
[0128] In addition, during the boot process, the operation progress can also be judged by the ratio of the number of address spaces with the status "UP" in the "SA39 DISPSTAT" command return and the number of address spaces with the status "UP" in the same command result of the second target logical partition under normal circumstances. For example: during the boot process, if the ratio is 1 / 3, the boot progress is about 33%.
[0129] It is understandable that when the user is viewing the monitoring record table, if he finds that some address spaces are abnormal and cannot be changed to "UP" normally, the user can select "Forced Skip". In response to the "Forced Skip" command selected by the user, the startup process of the address space is terminated. At this time, the state of the address space is Forced Skip.
[0130] Based on the contents of S301-S308, it can be known that by restarting the auxiliary system, the startup process of the mainframe can be automatically realized, which can reduce the time of the mainframe startup process and improve the efficiency of the mainframe startup process.
[0131] Based on a large host restart method provided by the above method embodiment, the embodiment of the present application also provides a large host restart device, and the large host restart device will be described below in conjunction with the accompanying drawings.
[0132] See also Figure 4 As shown in FIG. 1 , this figure is a schematic diagram of the structure of a large host restart device provided in an embodiment of the present application, and the device is applied to a restart auxiliary system. Figure 4 As shown, the mainframe restart device includes:
[0133] The acquisition unit 401 is used to acquire the configuration parameters and the restart request sent by the user at the front end; the configuration parameters include the startup volume flag, the logical partition name list and the login information;
[0134] A query unit 402 is used to query, in response to the restart request, configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes a logical partition identification number, a logical partition volume address, a logical partition mounting parameter, and a logical partition address space status list; the component status of the address space in the logical partition address space status list is all in a startup state; the logical partition name list includes the names of multiple logical partitions to be restarted;
[0135] A first control unit 403 is used to log in to the hardware management console of the mainframe according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel;
[0136] The second control unit 404 is used to respond to the start button triggered by the user on the front end, and control the hardware management console to parallelly start each address space of each logical partition in the logical partition name list based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list.
[0137] In a possible implementation, the first control unit 403 includes:
[0138] The first connection subunit is used to open a system command channel of a first target logical partition, connect to a message channel of the first target logical partition, and send a shutdown command to the hardware management console through the system command channel to shutdown each address space in the first target logical partition; the first target logical partition is each logical partition in the logical partition name list that is shut down in parallel;
[0139] a first sending subunit, configured to send an address space list query command to the hardware management console through a system command channel of the first target logical partition, obtain an address space list of the first target logical partition from a message channel of the first target logical partition, and obtain a number of address spaces corresponding to the first target logical partition according to the address space list of the first target logical partition;
[0140] an acquisition subunit, configured to send an address space component status query command to the hardware management console through a system command channel of the first target logical partition, and acquire component status of each address space of the first target logical partition from a message channel of the first target logical partition;
[0141] The first execution sub-unit is used to repeatedly execute the sending of the address space list query command to the hardware management console through the system command channel of the first target logical partition and subsequent steps until the number of address spaces corresponding to the first target logical partition is 0 and the component status of each address space of the first target logical partition is in a down state.
[0142] In a possible implementation manner, the device further includes:
[0143] a sending unit, configured to send a first target logical partition isolation instruction to the hardware management console through a system command channel of the first target logical partition, obtain a message number of the highlighted information triggered by the first target logical partition isolation instruction from a message channel of the first target logical partition, and respond to the highlighted information triggered by the first target logical partition isolation instruction based on the message number, and determine that the isolation of the first target logical partition is completed;
[0144] The detection unit is used to detect the message channel of the first target logical partition, and when the first target logical partition downtime completion message number is obtained from the message channel of the first target logical partition, it is determined that the downtime of each address space of the first target logical partition is completed.
[0145] In a possible implementation, the second control unit 404 includes:
[0146] The second execution sub-unit is used to perform the mounting operation of the second target logical partition according to the boot volume flag, the logical partition identification number of the second target logical partition, the logical partition volume address of the second target logical partition and the logical partition mounting parameter of the second target logical partition; the second target logical partition is each of the logical partitions in the logical partition name list that are started in parallel;
[0147] A second sending subunit is used to send a mount query command of the second target logical partition to the hardware management console, and obtain a mount operation query link of the second target logical partition returned by the hardware management console;
[0148] The control subunit is used to control the hardware management console to start each address space of the second target logical partition based on the logical partition address space status list of the second target logical partition after determining that the loading operation of the second target logical partition is completed according to the loading operation query link of the second target logical partition.
[0149] In a possible implementation, the control subunit includes:
[0150] A second connection subunit, used to open a system command channel of the second target logical partition and connect to a message channel of the second target logical partition;
[0151] a third sending subunit, configured to, after receiving the loading completion message number in the message channel of the second target logical partition, send a console activation command to the hardware management console through the system command channel of the second target logical partition to activate the console of the second target logical partition;
[0152] a fourth sending subunit, configured to send a boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition, and acquire the boot address space list of the second target logical partition from the message channel of the second target logical partition;
[0153] a query subunit, configured to query whether the boot address space list of the second target logical partition includes the job management subsystem address space, and if not, re-execute the step of sending the boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition and subsequent steps until the boot address space list of the second target logical partition includes the job management subsystem address space;
[0154] a fifth sending subunit, configured to send an address space component status query command to the hardware management console through the system command channel of the second target logical partition, and obtain the component status of each address space of the second target logical partition from the message channel of the second target logical partition;
[0155] The third execution sub-unit is used to repeatedly execute the sending of the startup address space list acquisition command and subsequent steps to the hardware management console through the system command channel of the second target logical partition until the respective address spaces started in the startup address space list of the second target logical partition are the same as the respective address spaces in the logical partition address space status list of the second target logical partition and the component status of each address space of the second target logical partition is in the startup state.
[0156] In a possible implementation manner, the device further includes:
[0157] The writing unit is used to write the current component status of the logical partition, the name of the current execution operation and the command result into the monitoring record table in real time during the restart of the mainframe, so as to display the monitoring record table on the front end.
[0158] In a possible implementation, the current component status of the logical partition includes at least normal, down, down, waiting to be started, starting, and forced skip.
[0159] The embodiment of the present application provides a large host restart device, which is applied to a restart auxiliary system. First, the configuration parameters and the restart request sent by the user at the front end are obtained. The configuration parameters include a startup volume flag, a logical partition name list, and login information. In response to the restart request, the configuration information corresponding to each logical partition in the logical partition name list is queried according to the logical partition name list. The configuration information includes a logical partition identification number, a logical partition volume address, a logical partition loading parameter, and a logical partition address space status list, and the component status of the address space in the logical partition address space status list is all in the startup state. The logical partitions recorded in the logical partition name list are all logical partitions to be restarted. Based on this, the hardware management console of the large host is logged in according to the login information, and the hardware management console is controlled to download each address space of each logical partition in the logical partition name list in parallel. After the download is completed, in response to the start button triggered by the user at the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list, the hardware management console is controlled to start each address space of each logical partition in the logical partition name list in parallel. In this way, the restart auxiliary system automatically implements the shutdown process and startup process of each logical partition in the logical partition name list, and the shutdown process and startup process are performed in parallel for multiple logical partitions, which reduces the restart time of the large host and improves the restart efficiency.
[0160] An embodiment of the present application further provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the mainframe restart method as described above is implemented.
[0161] See also Figure 5 , Figure 5 A schematic diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure.
[0162] Reference Figure 5 According to an exemplary embodiment of the present disclosure, an electronic device includes a storage device 51 and one or more processors 52, wherein the storage device 51 stores one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement any of the mainframe restart methods described above.
[0163] In an exemplary embodiment of the present disclosure, when the computer program is executed by the processor 52, the following steps may be implemented:
[0164] Obtaining configuration parameters and restart requests sent by the user at the front end; the configuration parameters include a startup volume flag, a logical partition name list, and login information;
[0165] In response to the restart request, query the configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes a logical partition identification number, a logical partition volume address, a logical partition mounting parameter, and a logical partition address space status list; the component status of the address space in the logical partition address space status list is all in the startup state; the logical partition name list includes the names of multiple logical partitions to be restarted;
[0166] Log in to the hardware management console of the mainframe according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel;
[0167] In response to the start button triggered by the user on the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list, the hardware management console is controlled to start each address space of the logical partition in the logical partition name list in parallel.
[0168] It can be known from the description of the above implementation mode that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0169] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the system part description.
[0170] It should also be noted that, in this article, the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0171] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for restarting a large host, characterized in that: The method is applied to a restart assistance system, comprising: Obtaining configuration parameters and restart requests sent by the user at the front end; the configuration parameters include a startup volume flag, a logical partition name list, and login information; In response to the restart request, query the configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes a logical partition identification number, a logical partition volume address, a logical partition mounting parameter, and a logical partition address space status list; the component status of the address space in the logical partition address space status list is all in the startup state; the logical partition name list includes the names of multiple logical partitions to be restarted; Log in to the hardware management console of the mainframe according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel; In response to the start button triggered by the user on the front end, based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list, the hardware management console is controlled to start each address space of the logical partition in the logical partition name list in parallel.
2. The method according to claim 1, characterized in that The controlling the hardware management console to download each address space of each logical partition in the logical partition name list in parallel includes: Opening a system command channel of the first target logical partition, connecting to a message channel of the first target logical partition, and sending a shutdown command to the hardware management console through the system command channel to shutdown each address space in the first target logical partition; the first target logical partitions are each logical partition in the logical partition name list that is shut down in parallel; Sending an address space list query command to the hardware management console through the system command channel of the first target logical partition, obtaining the address space list of the first target logical partition from the message channel of the first target logical partition, and obtaining the number of address spaces corresponding to the first target logical partition according to the address space list of the first target logical partition; Sending an address space component status query command to the hardware management console through the system command channel of the first target logical partition, and acquiring the component status of each address space of the first target logical partition from the message channel of the first target logical partition; Repeat the step of sending an address space list query command to the hardware management console through the system command channel of the first target logical partition and subsequent steps until the number of address spaces corresponding to the first target logical partition is 0 and the component status of each address space of the first target logical partition is in a down state.
3. The method according to claim 2, characterized in that The method further comprises: Sending a first target logical partition isolation instruction to the hardware management console through the system command channel of the first target logical partition, obtaining a message number of the highlighted information triggered by the first target logical partition isolation instruction from the message channel of the first target logical partition, and responding to the highlighted information triggered by the first target logical partition isolation instruction based on the message number, and determining that the isolation of the first target logical partition is completed; The message channel of the first target logical partition is detected, and when a message number indicating that the first target logical partition is downlinked is obtained from the message channel of the first target logical partition, it is determined that the downlink of each address space of the first target logical partition is completed.
4. The method according to claim 1, characterized in that The method of controlling the hardware management console to start each address space of each of the logical partitions in the logical partition name list in parallel based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameter, and the logical partition address space status list comprises: According to the boot volume flag, the logical partition identification number of the second target logical partition, the logical partition volume address of the second target logical partition and the logical partition mounting parameter of the second target logical partition, the mounting operation of the second target logical partition is performed; the second target logical partition is each of the logical partitions in the logical partition name list that are started in parallel; Sending a mount query command of the second target logical partition to the hardware management console, and obtaining a mount operation query link of the second target logical partition returned by the hardware management console; After determining that the loading operation of the second target logical partition is completed according to the loading operation query link of the second target logical partition, the hardware management console is controlled to start each address space of the second target logical partition based on the logical partition address space status list of the second target logical partition.
5. The method according to claim 4, characterized in that The controlling the hardware management console to start each address space of the second target logical partition based on the logical partition address space status list of the second target logical partition comprises: Opening a system command channel of the second target logical partition and connecting to a message channel of the second target logical partition; After receiving the loading completion message number in the message channel of the second target logical partition, sending a console activation command to the hardware management console through the system command channel of the second target logical partition to activate the console of the second target logical partition; Sending a boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition, and acquiring the boot address space list of the second target logical partition from the message channel of the second target logical partition; querying whether the boot address space list of the second target logical partition includes the job management subsystem address space, and if not, re-executing the sending of the boot address space list acquisition command to the hardware management console through the system command channel of the second target logical partition and subsequent steps until the boot address space list of the second target logical partition includes the job management subsystem address space; Sending an address space component status query command to the hardware management console through the system command channel of the second target logical partition, and acquiring the component status of each address space of the second target logical partition from the message channel of the second target logical partition; Repeat the steps of sending a startup address space list acquisition command to the hardware management console through the system command channel of the second target logical partition and subsequent steps until each address space started in the startup address space list of the second target logical partition is the same as each address space in the logical partition address space status list of the second target logical partition and the component status of each address space of the second target logical partition is in the startup state.
6. The method according to claim 1, characterized in that The method further comprises: During the restart of the mainframe, the current component status of the logical partition, the name of the currently executed operation and the command result are written into the monitoring record table in real time, so that the monitoring record table can be displayed on the front end.
7. The method according to claim 6, characterized in that The current component status of the logical partition includes at least normal, down, down, waiting to be started, starting, and forced skip.
8. A large host restart device, characterized in that: The device is applied to a restart auxiliary system, comprising: An acquisition unit, used to acquire configuration parameters and a restart request sent by a user at the front end; the configuration parameters include a startup volume flag, a logical partition name list, and login information; A query unit, configured to query, in response to the restart request, configuration information corresponding to each logical partition in the logical partition name list according to the logical partition name list; the configuration information includes a logical partition identification number, a logical partition volume address, a logical partition loading parameter, and a logical partition address space status list; the component status of the address space in the logical partition address space status list is all in a startup state; the logical partition name list includes the names of multiple logical partitions to be restarted; A first control unit, configured to log in to the hardware management console of the mainframe according to the login information, and control the hardware management console to download each address space of each logical partition in the logical partition name list in parallel; A second control unit is used to respond to the start button triggered by the user on the front end, and control the hardware management console to parallelly start each address space of each logical partition in the logical partition name list based on the startup volume flag, the logical partition identification number, the logical partition volume address, the logical partition loading parameters and the logical partition address space status list.
9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the mainframe restart method as described in any one of claims 1-7.
10. A computer-readable medium, characterized in that A computer program is stored thereon, wherein when the program is executed by a processor, the mainframe restart method as claimed in any one of claims 1 to 7 is implemented.
