CN111221709B - Server maintenance method and device, computer equipment and readable storage medium - Google Patents

Server maintenance method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111221709B
CN111221709B CN202010302930.8A CN202010302930A CN111221709B CN 111221709 B CN111221709 B CN 111221709B CN 202010302930 A CN202010302930 A CN 202010302930A CN 111221709 B CN111221709 B CN 111221709B
Authority
CN
China
Prior art keywords
target
disk
information
array
server
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.)
Active
Application number
CN202010302930.8A
Other languages
Chinese (zh)
Other versions
CN111221709A (en
Inventor
熊帮发
陈军
胡阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Xingtian Electronic Technology Co.,Ltd.
Original Assignee
Hunan Xing Tian Electronic 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 Hunan Xing Tian Electronic Technology Co ltd filed Critical Hunan Xing Tian Electronic Technology Co ltd
Priority to CN202010302930.8A priority Critical patent/CN111221709B/en
Publication of CN111221709A publication Critical patent/CN111221709A/en
Application granted granted Critical
Publication of CN111221709B publication Critical patent/CN111221709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a server maintenance method, a server maintenance device, computer equipment and a readable storage medium, which relate to the technical field of server maintenance, and the server maintenance method comprises the following steps: determining a target single board blade server from the plurality of single board blade servers in response to a first selection operation on a display interface of the computer device; acquiring an internet protocol address of a target single-board blade server according to a preset data table; logging in a target single board blade server according to the Internet protocol address of the target single board blade server; and responding to the running state checking instruction, and conveniently checking the running state of the target single-board blade server.

Description

Server maintenance method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the technical field of server maintenance, and in particular, to a server maintenance method, an apparatus, a computer device, and a readable storage medium.
Background
With the increasing size of computer networks, servers corresponding to management networks have been developed, and in order to ensure the normal operation of various services, personnel are required to perform various configurations on the servers. Currently, most of server operating environments are based on known operating systems (e.g., Linux systems), and in order to monitor the state of the server or configure the server under these operating systems, a very professional person is required to input various commands (e.g., Linux commands) to implement the monitoring, and most of information fed back by the system is push data, and the returned data needs to be processed to obtain required information. The running state of the server is difficult to obtain, so that the server is inconvenient to maintain.
In view of this, how to provide a convenient server maintenance solution is needed to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a server maintenance method, a server maintenance device, computer equipment and a readable storage medium.
The embodiment of the application can be realized as follows:
in a first aspect, an embodiment of the present application provides a server maintenance method, which is applied to a computer device, where the computer device is in communication connection with a blade server, the blade server includes a plurality of single board blade servers, and a preset data table is stored in the computer device, where the preset data table includes an internet protocol address of each single board blade server;
the method comprises the following steps:
determining a target single board blade server from the plurality of single board blade servers in response to a first selection operation on a display interface of the computer device;
acquiring an internet protocol address of the target single-board blade server according to the preset data table;
logging in the target single board blade server according to the Internet protocol address of the target single board blade server;
and responding to the running state checking instruction to check the running state of the target single-board blade server.
In an optional embodiment, the computer device is in communication connection with a maintenance server, and the target single-board blade server includes a plurality of disks;
the method also includes a step of establishing a disk array of the target single board blade server, which includes:
responding to a disk information acquisition instruction, and acquiring detailed information of each disk;
transmitting the detailed information of each disk to the maintenance server so that the maintenance server processes the detailed information of each disk to obtain a disk information table, wherein the disk information table comprises a plurality of pieces of disk information and a plurality of pieces of array type information;
receiving the disk information table sent by the maintenance server, and transmitting the disk information table to the display interface for displaying;
responding to a second selection operation of the display interface, determining target disk information from the plurality of disk information, and determining a target array type from the plurality of array type information;
determining a target disk from the plurality of disks according to the target disk information, wherein the target disk information and the target disk have a corresponding relation;
and combining the target disks to form the disk array of the target array type.
In an optional embodiment, the method further includes a step of establishing a hot spare of the disk array, where the step includes:
determining a backup disk from the plurality of disks in response to a disk backup instruction;
and adding the backup disk into the disk array to serve as a hot backup disk of the disk array.
In an optional implementation manner, the method further includes a step of establishing a logical volume of the target single board blade server, where the step includes:
responding to a new logical volume creating instruction, and acquiring target array information from the disk array according to a block device listing command;
merging the target arrays corresponding to the target array information according to the target array information to create a physical volume;
responding to a creating instruction, and acquiring a physical volume two-dimensional array of the physical volume according to a physical volume operation command;
sending the two-dimensional array of the physical volume to the maintenance server so that the maintenance server processes the two-dimensional array of the physical volume to obtain a physical volume table, wherein the physical volume table comprises physical volume information;
receiving the physical volume table sent by the maintenance server, and transmitting the physical volume table to the display interface for displaying;
responding to a third selection operation on the display interface, and determining target physical volume information from the physical volume information;
receiving a volume group name input from the outside, and creating a volume group according to the volume group name and the target physical volume information, wherein the volume group is formed by combining target physical volumes corresponding to the target physical volume information;
and responding to the partition instruction, and creating the logical volume according to the externally input logical volume name and the logical volume size.
In an optional implementation manner, the step of acquiring target array information from the disk array in response to the logical volume new creation instruction includes:
responding to the new establishment instruction of the logical volume, and acquiring an array two-dimensional array of the disk array according to a block device listing command;
sending the array two-dimensional array to the maintenance server so that the maintenance server processes the array two-dimensional array to obtain an array information table, wherein the array information table comprises array information;
receiving the array information table sent by the maintenance server, and transmitting the array information table to the display interface for displaying;
determining target array information from the array information in response to a fourth selection operation of a display interface of the computer device.
In an optional embodiment, the step of creating a logical volume according to an externally input logical volume name and a logical volume size in response to the partition instruction includes:
responding to the partitioning instruction, acquiring a volume group two-dimensional array of the volume group, and sending the volume group two-dimensional array to the maintenance server so that the maintenance server processes the volume group two-dimensional array to obtain a volume group selection frame;
receiving a volume group selection frame sent by the maintenance server, and transmitting the volume group selection frame to the display interface for displaying;
responding to a fifth selection operation of a display interface of the computer equipment, and determining a target volume group from the volume group selection frame;
receiving a logical volume name and a logical volume size which are input from the outside;
and creating the logical volume according to the logical volume name, the logical volume size and the target volume group.
In a second aspect, an embodiment of the present application provides a server maintenance apparatus, which is applied to a computer device, where the computer device is in communication connection with a blade server, the blade server includes a plurality of single board blade servers, and a preset data table is stored in the computer device, where the preset data table includes an internet protocol address of each single board blade server;
the device comprises:
a determining module, configured to determine a target single board blade server from the multiple single board blade servers in response to a first selection operation on a display interface of the computer device; acquiring an internet protocol address of the target single-board blade server according to the preset data table; logging in the target single board blade server according to the Internet protocol address of the target single board blade server;
and the checking module is used for responding to the running state checking instruction and checking the running state of the target single-board blade server.
In an optional embodiment, the computer device is in communication connection with a maintenance server, and the target single-board blade server includes a plurality of disks;
the apparatus further comprises an establishment module configured to:
responding to a disk information acquisition instruction, and acquiring detailed information of each disk; transmitting the detailed information of each disk to the maintenance server so that the maintenance server processes the detailed information of each disk to obtain a disk information table, wherein the disk information table comprises a plurality of pieces of disk information and a plurality of pieces of array type information; receiving the disk information table sent by the maintenance server, and transmitting the disk information table to the display interface for displaying; responding to a second selection operation of the display interface, determining target disk information from the plurality of disk information, and determining a target array type from the plurality of array type information; determining a target disk from the plurality of disks according to the target disk information, wherein the target disk information and the target disk have a corresponding relation; and combining the target disks to form the disk array of the target array type.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device performs the aforementioned server maintenance method.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when executed, a computer device on which the readable storage medium is located to perform the foregoing server maintenance method.
The beneficial effects of the embodiment of the application include, for example: by adopting the server maintenance method, the server maintenance device, the computer equipment and the readable storage medium provided by the embodiment of the application, a target single board blade server is determined from the plurality of single board blade servers by responding to a first selection operation on a display interface of the computer equipment; further, according to the preset data table, acquiring an internet protocol address of the target single-board blade server; logging in the target single-board blade server according to the Internet protocol address of the target single-board blade server; and finally, responding to the running state checking instruction, checking the running state of the target single-board blade server, and needing no complicated code input by an operator. The running state of the target single board blade server can be checked conveniently so as to be maintained.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic block diagram of a server maintenance system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating steps of a server maintenance method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating steps of another server maintenance method according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating steps of another server maintenance method according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a server maintenance apparatus according to an embodiment of the present application;
fig. 6 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present disclosure.
Icon: 100-a computer device; 110-a server maintenance device; 1101-a determination module; 1102-view module; 1103-establishing module; 111-a memory; 112-a processor; 113-a communication unit; 200-a blade server; 300-maintain the server.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
With the rapid development of computer networks, the functions of servers for managing the networks are also enhanced, and in order to ensure that various functions of the servers can be normally used, maintenance personnel are required to monitor the operating states of the servers, and the servers are also required to be reasonably configured. In the prior art, many servers operate in a Linux system, and when the operating states of the servers are to be checked or maintained, the operating states of the servers can be checked or maintained only by inputting corresponding Linux commands, and information returned by the servers according to the input commands is also mostly returned in a code form. That is, to monitor the operation status of the server or maintain the server 300, a professional operator is required to implement the operation, so that the labor cost of the enterprise is increased. Based on this, an embodiment of the present application provides a server maintenance method, which is applied to a computer device 100, as shown in fig. 1, the computer device 100 is in communication connection with a blade server 200, the blade server 200 includes a plurality of single board blade servers, and the computer device 100 stores a preset data table, where the preset data table includes an internet protocol address of each single board blade server. Referring to fig. 2, the server maintenance method is implemented through steps 201 to 204.
Step 201, in response to a first selection operation on the display interface of the computer device 100, determines a target single board blade server from the multiple single board blade servers.
The first selection operation may be an operation of selecting, by the user, a target single board blade server that the user wants to view on the display interface, for example, the name of each single board blade server included in the blade server 200 may be presented in a list form on the display interface, or an icon of each single board blade server may be presented in a tiled manner on the display interface, and the user may select the target single board blade server by clicking the corresponding name or icon.
Step 202, obtaining the internet protocol address of the target single board blade server according to the preset data table.
As described above, the preset data table may store the internet protocol address of each board blade server, and the internet protocol address of the corresponding target board blade server may be determined from the preset data table according to the icon or name of the target board blade server selected by the user.
Step S203, according to the Internet protocol address of the target single board blade server, logging in the target single board blade server.
When logging in the target single board blade server, a secret-free logging form can be adopted, so that the checking efficiency is improved. Specifically, the password-free setting may be performed when the target single board server is first logged in, the name (identification) of the target single board blade server, the internet protocol address of the target single board blade server, and the root user password of the operating system of the target single board blade server may be input, the name of the target single board blade server, the internet protocol address of the target single board blade server, and the root user password of the operating system of the target single board blade server may be obtained by Ajax (Asynchronous Javascript and XML), the name of the target single board blade server, the internet protocol address of the target single board blade server, and the root user password of the operating system of the target single board blade server obtained in the interactive script band may be called, and when the script is successfully run, the interactive script may complete the ssh (Secure Shell, short for secure shell protocol) to store the name of the target veneer blade server and the internet protocol address of the target veneer blade server in the preset data table, and through the above setting, the secret-free authorization of logging in the target veneer blade server can be completed, which is convenient for the user to check more quickly. In this embodiment, the preset data table may be a data table in an open source database (e.g., MySQL database).
And step 204, responding to the running state checking instruction, and checking the running state of the target single-board blade server.
After a user logs in a target single board blade server, a display interface may display various operating state names (identifiers) of the target single board blade server, for example, a cpu (central processing unit, for short), a main frequency, a temperature, a voltage, an internal memory, a network utilization rate, and the like of the target single board blade server, and the user may visually check data of each parameter, or may process the data into a corresponding statistical chart and the like for display after clicking a specific parameter.
Through the above steps, the user can monitor the system resource usage of each single board blade server of the blade server 200, and can conveniently check the running state and other information of each single board blade server only by once establishing the ssh privacy-free login trust relationship between the main control board and each single board blade server. Compared with the method for monitoring the blade server 200 in the prior art, the user needs to log in each single-board blade server, run various commands to check related information, return data is not visual at all, and the user needs to compare and analyze the data, so that the method is very convenient. It should be understood that, in the embodiment of the present application, when a command, a script, and a file are executed, a PHP (PHP: Hypertext Preprocessor for short) may be used to implement the command, the script, and the file may be edited, a root user right is required, and when a user uses the blade Server 200 (for example, when accessing a web service), a default user is an Apache (Apache HTTP Server for short), and the Apache user often has a problem of insufficient rights when executing the command, the script, and the file is edited, so that the problem may be solved by adopting a ssh privacy-free authorization manner in the embodiment of the present application.
On this basis, referring to fig. 1 again, the computer device 100 is communicatively connected to the maintenance server 300, and the target single-board blade server includes a plurality of disks. The embodiment of the present application further provides an example of establishing a disk array of a target single-board blade server, which can be implemented through the following steps as shown in fig. 3.
Step 301, responding to the disk information obtaining instruction, obtaining the detailed information of each disk.
The page displayed on the display interface for interaction with the user may be an html5 (hypertext 5.0) page, and the maintenance server 300 is used to process data of the html5 page. The user may trigger the disk information obtaining instruction by pressing a key or clicking a specific identifier on the html5 page, so as to obtain the detailed information of each disk in the target single board blade server, where the detailed information of the disk may include information such as the name, size, and remaining space of the disk.
Step 302, transmitting the detailed information of each disk to the maintenance server 300, so that the maintenance server 300 processes the detailed information of each disk to obtain a disk information table.
In order to facilitate the maintenance server 300 to process the detailed information of each disk, a two-dimensional disk array may be obtained by parsing according to the detailed information of each disk, and the two-dimensional disk array is sent to the maintenance server 300 for processing, so as to obtain a disk information table, where the disk information table includes a plurality of disk information and a plurality of array type information, the disk information may be information of names, sizes, remaining spaces, and the like of the aforementioned disks, and the array type information may include seven basic RAID levels from RAID (array) 0 to RAID 6.
Step 303, receiving the disk information table sent by the maintenance server 300, and transmitting the disk information table to a display interface for displaying.
The disk information table sent by the maintenance server 300 can be received and displayed on an html5 page in the display interface.
Step 304, in response to the second selection operation on the display interface, determining target disk information from the plurality of disk information and a target array type from the plurality of array type information.
The second selection operation may refer to an operation in which the user selects a disk that is desired to be composed as a disk array from the disk information table on the html5 page, and selects the type of the manufactured disk array.
And 305, determining a target disk from the plurality of disks according to the target disk information, wherein the target disk information and the target disk have a corresponding relation.
The target disk information selected by the user through the second selection operation has a corresponding target disk, and the target disk to be used as a component of the disk array can be determined according to the corresponding relationship between the target disk information and the target disk.
Step 306, combining the target disks to form a disk array of the target array type.
The selected target disks are combined according to the target array category determined by the user through the second selection operation, so as to obtain the required disk array, and it should be understood that the operation parameters generated by the second selection operation may be obtained through analysis by a jQuery (JavaScript frame). When the creation of the disk array is successful, an array creation success prompt can be sent out, and correspondingly, if the creation is failed, corresponding error reporting information can be popped up for the adjustment of a user.
Through the operation, a user wants to configure a disk array, and can quickly create an array only by selecting a few parameters (disk, array type and hot spare disk). In the prior art, the disk arrays are created by firstly being familiar with commands of the disk arrays and simultaneously being familiar with the principle of the disk arrays. For a non-professional operation and maintenance person, the early preparation requires much time cost and learning cost.
On the basis of the foregoing, an example of creating a hot spare disk of a disk array is further provided in the embodiments of the present application, and may be implemented through the following steps.
And responding to the disk backup command, and determining a backup disk from the plurality of disks.
After the disk array is created, the same steps as described above may be used to determine a backup disk from the plurality of disks in response to the disk backup instruction.
And adding the backup disk into the disk array to serve as a hot backup disk of the disk array.
After the backup disk is determined, the operation parameters can be obtained through jQuery analysis, and the backup disk is added into the disk array as a hot backup disk. Through the steps, the creation of the disk array with the hot standby function is completed.
Referring to fig. 4, an example that the method further includes establishing a logical volume of the target single board blade server may be implemented through the following steps.
Step 401, responding to the new command of the logical volume, and acquiring target array information from the disk array according to the block device list command.
The disk array that is part of the physical volume may be selected and then the target array information may be obtained from the selected disk array based on a list block device command (lsblk command).
Step 402, merging the target arrays corresponding to the target array information according to the target array information to create a physical volume.
The target array information has corresponding target arrays, and selected target arrays can be merged to obtain the physical volume.
And step 403, responding to the creation instruction, and acquiring the physical volume two-dimensional array of the physical volume according to the physical volume operation command.
In order to facilitate the processing of the subsequent maintenance server 300, the physical volume two-dimensional array of the physical volume may be acquired by a physical volume operation command (pvdisplay command).
Step 404, sending the two-dimensional array of the physical volume to the maintenance server 300, so that the maintenance server 300 processes the two-dimensional array of the physical volume to obtain a physical volume table.
The physical volume table may include physical volume information, which may refer to information such as the size, remaining space, name, etc. of the physical volume.
Step 405, receiving the physical volume table sent by the maintenance server 300, and transmitting the physical volume table to a display interface for displaying.
The name of the physical volume table can be displayed in a tabular form in an html5 page of the display interface, and the identifier of the physical volume table can also be displayed in a tiled manner.
Step 406, determining target physical volume information from the physical volume information in response to a third selection operation on the display interface.
The third selection operation may refer to an operation in which the user selects physical volume information as target physical volume information for constructing the logical volume from the physical volume information in the physical volume table in the html5 page.
Step 407, receiving a volume group name input from outside, and creating a volume group according to the volume group name and the target physical volume information, where the volume group is formed by combining target physical volumes corresponding to the target physical volume information.
The user can name the volume group, the target physical volume information has the corresponding target physical volume, the selected target physical volumes can be combined, and the setting is carried out according to the volume group name input by the user, so that the volume group is established.
Step 408, responding to the partition command, creating the logical volume according to the external input logical volume name and the logical volume size.
After a volume group is established, a user may enter a name and a size of a logical volume based on the logical volume under the volume group. For example, the volume group name is a, and the size is 100GB, the user can input the logical volume name a, and the size is 20 GB; logical volume name b, size 30 GB; logical volume name c, size 50GB, so far, three logical volumes can be created.
On the basis, the embodiment of the present application provides an example of acquiring target array information from a disk array in response to a logical volume new creation instruction, which can be implemented by the following steps.
Responding to the new creation instruction of the logical volume, and acquiring the array two-dimensional array of the disk array according to the listing block device command.
Specifically, the lsblk command may be executed to obtain array two-dimensional arrays of all disk arrays.
And sending the array two-dimensional array to the maintenance server 300, so that the maintenance server 300 processes the array two-dimensional array to obtain an array information table, wherein the array information table comprises array information.
The maintenance server 300 may process the array two-dimensional array to obtain an array information table, where the array information table includes array information, and the array information may include information such as an array name, an array size, and an array remaining space.
And receiving the array information table sent by the maintenance server 300, and transmitting the array information table to a display interface for displaying.
After the maintenance server 300 completes the processing, the array information table may be displayed on the html5 page.
The target array information is determined from the array information in response to a fourth selection operation on the display interface of the computer apparatus 100.
The fourth selection operation may be an operation in which the user clicks the determination target array information from the array information in the array information table on the html5 page.
On the basis of the foregoing, an example of creating a logical volume according to a logical volume name and a logical volume size that are input from the outside in response to a partition instruction is provided in the embodiments of the present application, and the following steps may be performed.
And responding to the partitioning instruction, acquiring the volume group two-dimensional array of the volume group, and sending the volume group two-dimensional array to the maintenance server 300, so that the maintenance server 300 processes the volume group two-dimensional array to obtain a volume group selection frame.
As described above, in order to facilitate the processing of the maintenance server 300, the volume group two-dimensional array of the volume group may be acquired and sent to the maintenance server 300 for processing. The volume group selection box may include a plurality of volume groups for a user to select one of them as a basis for building a logical volume.
And receiving the volume group selection frame sent by the maintenance server 300, and transmitting the volume group selection frame to a display interface for displaying.
In response to a fifth selection operation to the display interface of the computer apparatus 100, the target volume group is determined from the volume group selection box.
The fifth selection operation may be an operation by which the user determines the target volume group from the volume group selection box in the html5 page.
And receiving the external input of the logical volume name and the logical volume size.
After determining the target volume group, the user considers and inputs the name of the logical volume to be created and the size of the logical volume.
The logical volume is created from the logical volume name, the logical volume size, and the target volume group.
With the logical volume name and the logical volume size, a logical volume may be created based on the volume group.
Through the steps, the user only needs to select a device (namely a disk array) to create the physical volume when the user wants to create the logical volume. Fill in volume group name, select physical volume, create volume group. Filling in the name and size of the logical volume, selecting volume group and creating the logical volume. The whole process does not require any command input by the user. It is sufficient to know one creation flow (create physical volume, create volume group, create logical volume). In the prior art, a user needs to master the use of a series of commands for logical volume management when the user wants to create a logical volume, and the combination of the commands consumes a lot of time and effort.
The embodiment of the present application provides a server maintenance apparatus 110, which is applied to a computer device 100, where the computer device 100 is in communication connection with a blade server 200, the blade server 200 includes a plurality of single board blade servers, and a preset data table is stored in the computer device 100, where the preset data table includes an internet protocol address of each single board blade server. Referring to fig. 5, the server maintenance apparatus 110 includes:
a determining module 1101, configured to determine, in response to a first selection operation on a display interface of the computer device 100, a target single board blade server from the multiple single board blade servers; acquiring an internet protocol address of a target single-board blade server according to a preset data table; and logging in the target single board blade server according to the Internet protocol address of the target single board blade server.
And a checking module 1102, configured to respond to the operation status checking instruction and check the operation status of the target single board blade server.
Further, the computer device 100 is communicatively connected to the maintenance server 300, and the target single board blade server includes a plurality of disks. The server maintenance apparatus 110 further includes a building module 1103, and the building module 1103 is configured to:
responding to a disk information acquisition instruction, and acquiring detailed information of each disk; transmitting the detailed information of each disk to the maintenance server 300, so that the maintenance server 300 processes the detailed information of each disk to obtain a disk information table, where the disk information table includes a plurality of pieces of disk information and a plurality of pieces of array category information; receiving a disk information table sent by the maintenance server 300, and transmitting the disk information table to a display interface for displaying; responding to a second selection operation on the display interface, determining target disk information from the plurality of disk information, and determining a target array type from the plurality of array type information; determining a target disk from a plurality of disks according to the target disk information, wherein the target disk information and the target disk have a corresponding relation; and combining the target disks to form the disk array of the target array type.
In this embodiment of the application, the implementation principle of the server maintenance apparatus 110 may refer to the implementation principle of the server maintenance method, which is not described herein again.
The embodiment of the present application provides a computer device 100, where the computer device 100 includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device 100 executes the aforementioned server maintenance method. As shown in fig. 6, fig. 6 is a block diagram of a computer device 100 according to an embodiment of the present disclosure. The computer apparatus 100 includes a server maintenance device 110, a memory 111, a processor 112, and a communication unit 113.
The memory 111, the processor 112 and the communication unit 113 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The server maintenance device 110 includes at least one software function module which can be stored in the memory 111 in the form of software or firmware (firmware) or is fixed in an Operating System (OS) of the computer device 100. The processor 112 is used for executing executable modules stored in the memory 111, such as software functional modules and computer programs included in the server maintenance device 110.
The Memory 111 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and when the computer program runs, the computer device 100 where the readable storage medium is located is controlled to execute the foregoing server maintenance method.
To sum up, the embodiment of the present application provides a server maintenance method, an apparatus, a computer device, and a readable storage medium, and a target one-board blade server is determined from a plurality of one-board blade servers by responding to a first selection operation on a display interface of the computer device; further, according to the preset data table, acquiring an internet protocol address of the target single-board blade server; logging in the target single-board blade server according to the Internet protocol address of the target single-board blade server; and finally, responding to the running state checking instruction, checking the running state of the target single-board blade server, and needing no complicated code input by an operator. The running state of the target single board blade server can be checked conveniently so as to be maintained.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A server maintenance method is characterized in that the method is applied to computer equipment, the computer equipment is in communication connection with a blade server, the blade server comprises a plurality of single-board blade servers, a preset data table is stored in the computer equipment, the preset data table comprises an internet protocol address of each single-board blade server, the computer equipment is in communication connection with a maintenance server, and a target single-board blade server comprises a plurality of magnetic disks;
the method comprises the following steps:
determining a target single board blade server from the plurality of single board blade servers in response to a first selection operation on a display interface of the computer device;
acquiring an internet protocol address of the target single-board blade server according to the preset data table;
logging in the target single board blade server according to the Internet protocol address of the target single board blade server;
responding to an operation state checking instruction, and checking the operation state of the target single-board blade server;
the method also includes a step of establishing a disk array of the target single board blade server, which includes:
responding to a disk information acquisition instruction, and acquiring detailed information of each disk;
transmitting the detailed information of each disk to the maintenance server so that the maintenance server processes the detailed information of each disk to obtain a disk information table, wherein the disk information table comprises a plurality of pieces of disk information and a plurality of pieces of array type information;
receiving the disk information table sent by the maintenance server, and transmitting the disk information table to the display interface for displaying;
responding to a second selection operation of the display interface, determining target disk information from the plurality of disk information, and determining a target array type from the plurality of array type information;
determining a target disk from the plurality of disks according to the target disk information, wherein the target disk information and the target disk have a corresponding relation;
and combining the target disks to form the disk array of the target array type.
2. The method of claim 1, further comprising the step of establishing a hot spare for the disk array, the step comprising:
determining a backup disk from the plurality of disks in response to a disk backup instruction;
and adding the backup disk into the disk array to serve as a hot backup disk of the disk array.
3. The method according to claim 1, wherein said method further comprises a step of establishing a logical volume of said target single board blade server, said step comprising:
responding to a new logical volume creating instruction, and acquiring target array information from the disk array according to a block device listing command;
merging the target arrays corresponding to the target array information according to the target array information to create a physical volume;
responding to a creating instruction, and acquiring a physical volume two-dimensional array of the physical volume according to a physical volume operation command;
sending the two-dimensional array of the physical volume to the maintenance server so that the maintenance server processes the two-dimensional array of the physical volume to obtain a physical volume table, wherein the physical volume table comprises physical volume information;
receiving the physical volume table sent by the maintenance server, and transmitting the physical volume table to the display interface for displaying;
responding to a third selection operation on the display interface, and determining target physical volume information from the physical volume information;
receiving a volume group name input from the outside, and creating a volume group according to the volume group name and the target physical volume information, wherein the volume group is formed by combining target physical volumes corresponding to the target physical volume information;
and responding to the partition instruction, and creating the logical volume according to the externally input logical volume name and the logical volume size.
4. The method according to claim 3, wherein the step of obtaining target array information from the disk array according to the list block device command in response to the logical volume new command comprises:
responding to the new establishment instruction of the logical volume, and acquiring an array two-dimensional array of the disk array according to a block device listing command;
sending the array two-dimensional array to the maintenance server so that the maintenance server processes the array two-dimensional array to obtain an array information table, wherein the array information table comprises array information;
receiving the array information table sent by the maintenance server, and transmitting the array information table to the display interface for displaying;
determining target array information from the array information in response to a fourth selection operation of a display interface of the computer device.
5. The method according to claim 3, wherein the step of creating the logical volume according to the externally input logical volume name and the logical volume size in response to the partition instruction comprises:
responding to the partitioning instruction, acquiring a volume group two-dimensional array of the volume group, and sending the volume group two-dimensional array to the maintenance server so that the maintenance server processes the volume group two-dimensional array to obtain a volume group selection frame;
receiving a volume group selection frame sent by the maintenance server, and transmitting the volume group selection frame to the display interface for displaying;
responding to a fifth selection operation of a display interface of the computer equipment, and determining a target volume group from the volume group selection frame;
receiving a logical volume name and a logical volume size which are input from the outside;
and creating the logical volume according to the logical volume name, the logical volume size and the target volume group.
6. A server maintenance device is characterized in that the server maintenance device is applied to computer equipment, the computer equipment is in communication connection with a blade server, the blade server comprises a plurality of single-board blade servers, a preset data table is stored in the computer equipment, the preset data table comprises an internet protocol address of each single-board blade server, the computer equipment is in communication connection with a maintenance server, and a target single-board blade server comprises a plurality of magnetic disks;
the device comprises:
a determining module, configured to determine a target single board blade server from the multiple single board blade servers in response to a first selection operation on a display interface of the computer device; acquiring an internet protocol address of the target single-board blade server according to the preset data table; logging in the target single board blade server according to the Internet protocol address of the target single board blade server;
the checking module is used for responding to the running state checking instruction and checking the running state of the target single-board blade server;
the apparatus further comprises an establishment module configured to:
responding to a disk information acquisition instruction, and acquiring detailed information of each disk; transmitting the detailed information of each disk to the maintenance server so that the maintenance server processes the detailed information of each disk to obtain a disk information table, wherein the disk information table comprises a plurality of pieces of disk information and a plurality of pieces of array type information; receiving the disk information table sent by the maintenance server, and transmitting the disk information table to the display interface for displaying; responding to a second selection operation of the display interface, determining target disk information from the plurality of disk information, and determining a target array type from the plurality of array type information; determining a target disk from the plurality of disks according to the target disk information, wherein the target disk information and the target disk have a corresponding relation; and combining the target disks to form the disk array of the target array type.
7. A computer device comprising a processor and a non-volatile memory having computer instructions stored thereon, wherein when the computer instructions are executed by the processor, the computer device performs the server maintenance method of any one of claims 1-5.
8. A readable storage medium, characterized in that the readable storage medium comprises a computer program, which when executed controls a computer device on which the readable storage medium is located to perform the server maintenance method according to any one of claims 1 to 5.
CN202010302930.8A 2020-04-17 2020-04-17 Server maintenance method and device, computer equipment and readable storage medium Active CN111221709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010302930.8A CN111221709B (en) 2020-04-17 2020-04-17 Server maintenance method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010302930.8A CN111221709B (en) 2020-04-17 2020-04-17 Server maintenance method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111221709A CN111221709A (en) 2020-06-02
CN111221709B true CN111221709B (en) 2020-08-25

Family

ID=70828481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010302930.8A Active CN111221709B (en) 2020-04-17 2020-04-17 Server maintenance method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111221709B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667477B (en) * 2020-12-30 2023-05-12 湖南博匠信息科技有限公司 Recording and monitoring method and system for blade type board card
CN112667164A (en) * 2020-12-30 2021-04-16 湖南博匠信息科技有限公司 Shared storage unit management monitoring method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6718436B2 (en) * 2001-07-27 2004-04-06 Electronics And Telecommunications Research Institute Method for managing logical volume in order to support dynamic online resizing and software raid and to minimize metadata and computer readable medium storing the same
CN101132571A (en) * 2006-08-22 2008-02-27 薛飞 Method and system for displaying and operating remote computer on mobile phone
US7805633B2 (en) * 2006-09-18 2010-09-28 Lsi Corporation Optimized reconstruction and copyback methodology for a disconnected drive in the presence of a global hot spare disk
CN104954189A (en) * 2015-07-07 2015-09-30 上海斐讯数据通信技术有限公司 Automatic server cluster detecting method and system
CN106161145A (en) * 2016-07-25 2016-11-23 天脉聚源(北京)传媒科技有限公司 A kind of monitoring method and system of server system operation status information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5559958A (en) * 1991-06-24 1996-09-24 Compaq Computer Corporation Graphical user interface for computer management system and an associated management information base
CN110543400A (en) * 2019-08-30 2019-12-06 苏州浪潮智能科技有限公司 Server test platform, server configuration information test method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6718436B2 (en) * 2001-07-27 2004-04-06 Electronics And Telecommunications Research Institute Method for managing logical volume in order to support dynamic online resizing and software raid and to minimize metadata and computer readable medium storing the same
CN101132571A (en) * 2006-08-22 2008-02-27 薛飞 Method and system for displaying and operating remote computer on mobile phone
US7805633B2 (en) * 2006-09-18 2010-09-28 Lsi Corporation Optimized reconstruction and copyback methodology for a disconnected drive in the presence of a global hot spare disk
CN104954189A (en) * 2015-07-07 2015-09-30 上海斐讯数据通信技术有限公司 Automatic server cluster detecting method and system
CN106161145A (en) * 2016-07-25 2016-11-23 天脉聚源(北京)传媒科技有限公司 A kind of monitoring method and system of server system operation status information

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Raid阵列与lvm逻辑卷组(上);liuyatao666;《51CTO博客https://blog.51cto.com/5503845/1123453》;20130121;全文 *
Raid阵列与lvm逻辑卷组(下);liuyatao666;《51CTO博客https://blog.51cto.com/5503845/1125110》;20130123;全文 *
Raid阵列与lvm逻辑卷组(中);liuyatao666;《51CTO博客https://blog.51cto.com/5503845/1124332》;20130123;全文 *

Also Published As

Publication number Publication date
CN111221709A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
US10635433B2 (en) Cross application behavior customization
US10671368B2 (en) Automatic creation of delivery pipelines
US10515000B2 (en) Systems and methods for performance testing cloud applications from multiple different geographic locations
US11550596B2 (en) Dynamic generated web UI for configuration
US10360087B2 (en) Web API recommendations based on usage in cloud-provided runtimes
US10826757B2 (en) Operational analytics in managed networks
US9426026B2 (en) Cluster configuration
CN111221709B (en) Server maintenance method and device, computer equipment and readable storage medium
US10664535B1 (en) Retrieving log data from metric data
US10498747B1 (en) Using program code with a monitoring service
US10243804B2 (en) Continuous delivery of hierarchical products using executor for software configuration automation
CN103957133A (en) Log monitoring method and device
US11631011B2 (en) Automatically remediating storage device issues using machine learning techniques
US20180026854A1 (en) Intuitive user interface (ui) for device or vendor independent network switch management via embedded management controller
CN110618990B (en) List report setting method, system and list report acquisition method
US12020073B2 (en) Workflow automation utilizing metadata structure
CN113190286B (en) MES system, loading method, terminal and medium for dynamically and remotely loading functional plug-ins
US9575531B2 (en) Multi-vendor power distribution unit support in rack management software
US20230334027A1 (en) System and method for automatic infrastructure cloud cost optimization and comparison
Dell
Brandt et al. OVIS 3.2 user’s guide
CN114428710B (en) Queue state checking method and device and electronic equipment
CN114024842B (en) Weblogic domain building method and device, storage medium and electronic equipment
US20240095099A1 (en) Decentralized framework for providing application programming interface gateways
KR100807831B1 (en) Method for batch change the password

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 410000 room 801, accelerator production workshop, building B1, Haichuang science and Technology Industrial Park, No. 627 Lugu Avenue, Changsha high tech Development Zone, Changsha City, Hunan Province

Patentee after: Hunan Xingtian Electronic Technology Co.,Ltd.

Address before: 410000 room 8a01, building B1, new Changhai center, No. 627 Lugu Avenue, high tech Zone, Changsha, Hunan

Patentee before: HUNAN XING TIAN ELECTRONIC TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address