Automatic configuration method and device for server and computer readable storage medium

By automating the configuration method in the storage cluster master node processor, obtaining server platform information and installing operating systems and applications, the problem of low server configuration efficiency on different platforms is solved, and the process of efficient automated configuration and joining of the storage cluster is realized.

CN115134225BActive Publication Date: 2024-10-11JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210753311.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-10-11
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The existing technology is inefficient and labor-consuming when configuring newly added servers of different platforms. Especially when multiple servers are added at the same time, the manual configuration method is inefficient.

Method used

By implementing an automated configuration method in the master node processor of the storage cluster, the platform information is obtained after receiving the server's presence signal, the operating system and applications are determined, the system image and application are automatically sent for installation, and the server is installed after the installation is determined to be successful. Added storage cluster, optimized network segment configuration and connectivity judgment.

Benefits of technology

It realizes automated configuration of servers on different platforms, improves configuration efficiency, reduces manual intervention, and improves the efficiency and accuracy of multi-server configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134225B_ABST
    Figure CN115134225B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic configuration method and device for a server and a computer-readable storage medium, and relates to the field of automatic management of servers. When receiving a server in-place signal, the platform information of the server is obtained, the operating system corresponding to the server is determined according to the platform information, and then the system image of the corresponding operating system is sent to the server so that the server can install the operating system, and then the server is controlled to install the application corresponding to the platform information according to the platform information, and the application includes a firmware program and a software program. Finally, it is determined whether the application is successfully installed on the server. If the application is successfully installed, the server is added to a storage cluster. When a new server needs to be added, the operating system and application required by the server are determined by determining the platform information of the server, so that servers of different platforms can be configured. In addition, since manual configuration is not required, the efficiency of server configuration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server automation management, and in particular to a server automation configuration method, device and computer readable storage medium. Background Art

[0002] With the development of technology, users need to store more and more data, making the scale of storage clusters larger and larger. When users need to build or expand storage clusters, users choose to use servers of different platforms to build or expand storage clusters. Therefore, it is necessary to configure all newly added servers of different platforms. Configuring the server means formatting the server and installing various applications required by the storage cluster, such as firmware and software, and then adding the server to the storage cluster so that the server can normally realize the storage function. In the prior art, when configuring a newly added server, the server is usually configured manually. Since the firmware and applications that need to be installed when configuring servers of different platforms are different, when multiple servers are added at the same time, the manual configuration method is inefficient and labor-intensive. Summary of the invention

[0003] The purpose of the present invention is to provide a method and device for automatic configuration of a server and a computer-readable storage medium, which can configure servers of different platforms and improve the efficiency of server configuration because manual configuration is not required.

[0004] In order to solve the above technical problems, the present invention provides an automatic configuration method of a server, which is applied to a processor of a master node of a storage cluster. The automatic configuration method of the server includes:

[0005] When receiving a server presence signal, obtaining platform information of the server;

[0006] Determine the operating system corresponding to the server according to the platform information;

[0007] Sending a system image of the operating system corresponding to the server to the server so that the server can install the operating system;

[0008] Determining whether the server has successfully installed the operating system;

[0009] If the operating system is successfully installed, controlling the server to install an application corresponding to the platform information according to the platform information, the application including a firmware program and a software program;

[0010] Determining whether the server successfully installs the application;

[0011] If the application is successfully installed, the server is added to the storage cluster.

[0012] Preferably, adding the server to the storage cluster includes:

[0013] According to the network segment where the master node is located, configuring the network segment of the server to be the same network segment as the master node;

[0014] Determine whether the configured server is connected to the master node;

[0015] If connected, it is determined that the server has successfully joined the storage cluster;

[0016] If not, it is determined that the server fails to join the storage cluster.

[0017] Preferably, configuring the network segment of the server to be the same network segment as the master node according to the network segment where the master node is located includes:

[0018] Determine the IP address of the master node;

[0019] Determine each available IP address in the network segment where the master node is located according to the IP address of the master node;

[0020] Allocate any of the available IP addresses to the server.

[0021] Preferably, determining whether the configured server is connected to the master node includes:

[0022] Determine the IP address information assigned to the server;

[0023] Obtain the current IP address information of the server;

[0024] Determine whether the current IP address information of the server is consistent with the IP address information assigned to the server;

[0025] If they are consistent, they are considered connected;

[0026] If they are inconsistent, it is determined to be disconnected.

[0027] Preferably, before obtaining the platform information of the server, the method further includes:

[0028] Determine whether data exists in the server;

[0029] If the data exists, the server is formatted and the step of obtaining platform information of the server is entered;

[0030] If the data does not exist, the step of obtaining the platform information of the server is entered.

[0031] Preferably, before obtaining the platform information of the server, the method further includes:

[0032] Determining preset identification information of the server;

[0033] Obtaining real identification information of the server, and determining whether the real identification information is consistent with the preset identification information;

[0034] If they are consistent, proceed to the step of obtaining the platform information of the server;

[0035] If they are inconsistent, it is determined that the server fails to connect to the master node.

[0036] Preferably, obtaining the platform information of the server includes:

[0037] Determine the information of each hardware in the server through ipmi hardware instructions;

[0038] The platform information of the server is determined according to the information of each hardware in the server.

[0039] Preferably, after adding the server to the storage cluster, the method further includes:

[0040] Determining preset functional requirements of the storage cluster for the server;

[0041] According to the preset functional requirement, controlling the server to install the functional program corresponding to the preset functional requirement;

[0042] When it is determined that the functional program of the server has been installed, the server is controlled to start the functional program.

[0043] The present invention also provides an automatic configuration device for a server, comprising:

[0044] Memory for storing computer programs;

[0045] The processor is used to implement the steps of the automatic configuration method of the server as described above when executing the computer program.

[0046] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the automatic configuration method of the server as described above are implemented.

[0047] The present invention provides a method and device for automatically configuring a server, and a computer-readable storage medium, which relates to the field of automatic management of servers. When receiving a server in-place signal, the platform information of the server is obtained, the operating system corresponding to the server is determined according to the platform information, and then the system image of the operating system corresponding to the server is sent to the server so that the server can install the operating system. After the operating system is installed, the server is controlled to install the application corresponding to the platform information according to the platform information, and the application includes a firmware program and a software program. Finally, it is determined whether the application is successfully installed on the server. If the application is successfully installed, the server is added to a storage cluster. When a new server needs to be added, the operating system and application required by the server are determined by determining the platform information of the server, so that servers of different platforms can be configured. In addition, since manual configuration is not required, the efficiency of server configuration is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 A flowchart of an automatic configuration method for a server provided in this application;

[0050] Figure 2 A flowchart of another method for automatically configuring a server provided by the present application;

[0051] Figure 3 A schematic diagram of the structure of another automatic configuration device for a server provided in this application. DETAILED DESCRIPTION

[0052] The core of the present invention is to provide a method and device for automatic configuration of a server and a computer-readable storage medium, which can configure servers of different platforms. In addition, since manual configuration is not required, the efficiency of server configuration is improved.

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Please refer to Figure 1 , Figure 1 A flowchart of an automatic configuration method for a server provided in the present application is applied to a processor of a master node of a storage cluster. The automatic configuration method for the server includes:

[0055] S1: When receiving the server's presence signal, obtain the server's platform information;

[0056] In order to improve the management efficiency of storage clusters, management software based on the Browser / Server structure is currently usually used to manage storage clusters. Through the web browser technology of the Browser / Server structure, the storage cluster management function that originally required special software to achieve is realized, which not only saves development costs, but also enables users to manage storage clusters simply and efficiently through the browser interface. When building or expanding a storage cluster, users usually choose servers that they like to build or expand, that is, they will choose servers of different platforms. The hardware models and parameters of servers of different platforms are different. When building or expanding, it is necessary to operate according to the specific platform of the server. Therefore, when receiving the server's in-place signal, it is necessary to first obtain the platform information of the server in order to determine the specific platform of the server and the internal hardware model and parameters. In addition, the master node can be a server designated by the user in the storage cluster as the master node, or it can be a server outside the storage cluster as the master node. The master node stores the platform information of the servers under each platform, the required operating system, application programs, and the unique function programs of the storage cluster.

[0057] S2: Determine the operating system corresponding to the server according to the platform information;

[0058] Since the hardware models and parameters of servers on different platforms are different, the required operating systems are also different. Specifically, the operating systems supported by each piece of hardware in the server are different. When determining the operating system corresponding to the server, it is necessary to determine an operating system supported by all the hardware in the server as the operating system corresponding to the server to avoid the problem of hardware not being supported. For example, if the CPU (central processing unit) in the server is model A, the operating system required by the server is version X, and the operating system required when the CPU is model B is version Y. When other hardware is further considered, such as when the CPU is model A and the motherboard is model M, the operating system required by the server may be version X-1 instead of version X.

[0059] S3: sending the system image of the operating system corresponding to the server to the server so that the server can install the operating system;

[0060] After determining the operating system corresponding to the server, the system image file of the operating system is sent to the server. Since the server has a preset method for automatically installing the operating system, when the server detects that it has obtained the system image file, it will automatically start to use the system image file to install the corresponding operating system. Therefore, the image file of the operating system corresponding to the server can be directly sent to the server, and the server can install the operating system by itself without manual operation.

[0061] S4: Determine whether the server has successfully installed the operating system;

[0062] Considering that during the process of installing the operating system on the server, the server may fail to install the operating system due to a logical error or hardware error within the server itself, or due to interference from external devices. If the server fails to install the operating system, it cannot normally implement the functions it should have implemented. Therefore, after sending the system image to the server, it is necessary to determine whether the server has successfully installed the operating system. Specifically, it can be determined by determining whether the server can be started and shut down normally, or determining whether the server can be controlled to execute certain processes normally.

[0063] S5: If the operating system is successfully installed, the server is controlled to install the application corresponding to the platform information according to the platform information, and the application includes a firmware program and a software program;

[0064] After the operating system is successfully installed on the server, the server system at this time usually only contains default applications or programs, that is, it cannot realize the functions required by the storage cluster. Therefore, in order to enable the server to meet the functional requirements of the storage cluster for the server and the functional requirements of the user for the server, it is also necessary to install the application programs corresponding to these functional requirements for the server, and the application programs include firmware programs and software programs, such as BMC (Baseboard Management Controller, baseboard controller) firmware, SAS (Serial Attached SCSI, serial connection SCSI interface) card, RAID (Redundant Arrays of Independent Disks, disk array) card, nginx, PHP (PHP: Hypertext Preprocessor, computer programming language) and other applications. Since the hardware models inside servers of different platforms are different, the corresponding firmware programs are also different. In addition, since the operating systems corresponding to servers of different platforms are different, the software programs that can run on different operating systems are also different. Therefore, it is necessary to install the corresponding firmware programs and software programs according to the platform information of the server so that the server can meet the functional requirements of the storage cluster for the server and the functional requirements of the user for the server.

[0065] S6: Determine whether the server has successfully installed the application;

[0066] During the process of installing the application, the server may fail to install the application due to logical errors or hardware errors within the server itself, or there may be conflicts between the currently installed application and other installed applications. Therefore, it is necessary to determine whether the server has successfully installed the application. Specifically, the determination can be made immediately after each application is installed, or after all applications have been installed. The determination process can be based on whether the application is started or shut down normally, or on whether a specific function in the application can be implemented. This is not limited in the present application.

[0067] S7: If the application is successfully installed, the server is added to the storage cluster.

[0068] If the server successfully installs all the applications that need to be installed, it means that the server is not only functioning normally but also can meet the functional requirements of the storage cluster and the user for the server. Then the server can be added to the storage cluster for subsequent use.

[0069] In summary, when the server's in-place signal is received, the server's platform information is obtained, the server's corresponding operating system is determined based on the platform information, and then the system image of the server's corresponding operating system is sent to the server so that the server can install the operating system. After the operating system is installed, the server is controlled to install the application corresponding to the platform information based on the platform information. The application includes a firmware program and a software program. Finally, it is determined whether the server has successfully installed the application. If the application is successfully installed, the server is added to the storage cluster. When a new server needs to be added, the operating system and application required by the server are determined by determining the server's platform information, so that servers of different platforms can be configured. In addition, since manual configuration is not required, the efficiency of server configuration is improved.

[0070] Based on the above embodiments:

[0071] As a preferred embodiment, adding a server to a storage cluster includes:

[0072] Configure the server's network segment to be the same as the master node's network segment according to the master node's network segment;

[0073] Determine whether the configured server is connected to the master node;

[0074] If connected, it is determined that the server has successfully joined the storage cluster;

[0075] If not, it is determined that the server has failed to join the storage cluster.

[0076] In order to simply manage the server, in this application, when adding the server to the storage cluster, when the scale of the storage cluster is large, considering that if all the servers are connected to the master node through data cables, it will not only make the internal wires of the storage cluster complicated and increase the economic cost, but also cause safety hazards, so the server can be connected to the master node through the network. Specifically, since the network segments of the master node and the server and the ip (internet protocol) address and other information can be predetermined, the network segment where the server is located can be modified according to the network segment where the master node is located, so that the server and the master node are located in the same network segment, that is, the server and the master node are connected through the network. After modifying the network segment where the server is located, it is also necessary to determine whether the server is connected to the master node, that is, to determine whether the network segment modified by the server is correct. If the server is connected to the master node normally, it means that a connection relationship has been established between the server and the master node. At this time, the staff can access the server through the master node. It can be seen that by setting the network segment of the server to be the same network segment as the master node, the management of the server can be simply achieved.

[0077] As a preferred embodiment, the network segment of the server is configured to be the same network segment as the master node according to the network segment where the master node is located, including:

[0078] Determine the IP address of the master node;

[0079] Determine each available IP address in the network segment where the master node is located based on the IP address of the master node;

[0080] Assign any available IP address to the server.

[0081] In order to configure the network segment of the server to be the same network segment as that of the main node, in this application, considering that there are usually multiple IP addresses in a network segment, the network segment where the main node is located can be determined based on the IP address of the main node, and then an available IP address, that is, an IP address not occupied by other servers, can be determined in the network segment where the main node is located, and then any available IP address can be assigned to the server. For example, the IP address closest to the main node in the available IP addresses can be assigned to the server. Since the IP address assigned to the server and the IP address of the main node are both IP addresses in the same network segment, the network segment configuration of the server and the main node is achieved to be the same network segment, so that the server can be managed.

[0082] As a preferred embodiment, determining whether the configured server is connected to the master node includes:

[0083] Determine the IP address information assigned to the server;

[0084] Get the current IP address information of the server;

[0085] Determine whether the current IP address information of the server is consistent with the IP address information assigned to the server;

[0086] If they are consistent, they are considered connected;

[0087] If they are inconsistent, it is determined to be disconnected.

[0088] In order to simply determine whether the server is connected to the main node, in this application, after the IP address is assigned to the server, under normal circumstances, since the IP address assigned to the server and the IP address of the main node are IP addresses in the same network segment, if the IP address is successfully assigned to the server, the server will be in the same network segment as the main node, and the server must be connected to the main node at this time. However, if the IP address is not successfully assigned to the server, for example, the server receives an unused IP address or receives an IP address that has been used, it will cause the server to fail to connect to the main node. Therefore, in order to determine whether the server is connected to the main node, after the IP address is assigned to the server, it is determined whether the current IP address of the server is consistent with the IP address assigned to the server. If it is consistent, it means that the server has successfully received an IP address in the same network segment as the IP address of the main node. At this time, it can be determined that the server is connected to the main node, otherwise it is determined to be disconnected. It can be seen that by judging the IP address, it is possible to simply determine whether the server is connected to the main node.

[0089] As a preferred embodiment, before obtaining the platform information of the server, the method further includes:

[0090] Determine whether there is data in the server;

[0091] If data exists, the server is formatted and the step of obtaining the platform information of the server is entered;

[0092] If the data does not exist, proceed to the step of obtaining the platform information of the server.

[0093] In order to avoid the server itself from affecting the storage cluster, in this application, it is considered that when users build or expand a storage cluster, they may use servers that originally belonged to other storage clusters to build or expand, that is, they will use used servers, but because the used servers have already been installed with operating systems and various applications, and even the storage space inside the server may store a large amount of data. Since different storage clusters have different requirements for servers, when using servers that originally belonged to other storage clusters, the operating system and various applications inside the server may affect the current storage cluster. Secondly, the storage space in the server stores a large amount of data, which will also leave less space for the storage cluster in the server. Therefore, when using a used server, it is first necessary to determine whether there is any data in the server, which includes stored data and operating systems or applications, etc. If there is, the server is formatted, that is, the server is completely cleared to avoid the impact it brings, and then proceed to the subsequent steps. It can be seen that by formatting the server, the server itself can be prevented from affecting the storage cluster.

[0094] As a preferred embodiment, before obtaining the platform information of the server, the method further includes:

[0095] Determine preset identification information of the server;

[0096] Obtaining the real identification information of the server, and determining whether the real identification information is consistent with the preset identification information;

[0097] If they are consistent, proceed to the step of obtaining the platform information of the server;

[0098] If they are inconsistent, it is determined that the server fails to connect to the primary node.

[0099] In order to determine whether the server is normally connected to the master node, in this application, before obtaining the platform information of the server, it is first necessary to ensure that the server can operate normally and communicate, so the identification information of the server can be pre-stored in the master node. The identification information of the server can specifically be information that can reflect whether the server can operate normally and communicate, such as IP address or platform information as identification information. When the server is connected to the master node, it is determined whether the real identification information in the server is consistent with the pre-stored preset identification information. If it is consistent, it means that the server is operating normally and can communicate, otherwise it can be directly determined that the server connection fails. For example, when a server needs to be added to a storage cluster, since the IP address of the server can be known in advance, the IP address of the server can be used as the preset identification information of the server. If the real IP address of the server is inconsistent with the preset IP address, it may indicate that there are problems such as logical errors or network errors in the server, or there may be problems with the connection line between the master node and the server. At this time, it can be determined that the server fails to connect to the master node. It can be seen that by judging the identification information of the server, it can be determined whether the server is normally connected to the master node.

[0100] As a preferred embodiment, obtaining the platform information of the server includes:

[0101] Determine the information of each hardware in the server through ipmi hardware instructions;

[0102] Determine the platform information of the server based on the information of each hardware in the server.

[0103] In order to accurately determine the platform information of the server, in this application, taking into account the different brands, models and parameters of the hardware inside servers of different platforms, it can be seen that there is a one-to-one correspondence between the specific information of each hardware and the platform corresponding to the server, so the information of each hardware inside the server can be obtained through ipmi (Intelligent Platform Management Interface) hardware instructions, and then the platform information of the server can be reversed through the hardware information. Since there is a corresponding relationship between the hardware information and the platform corresponding to the server, the platform information of the server can be accurately determined.

[0104] As a preferred embodiment, after adding the server to the storage cluster, the method further includes:

[0105] Determine the preset functional requirements of the storage cluster for the server;

[0106] According to the preset functional requirements, the server is controlled to install the functional program corresponding to the preset functional requirements;

[0107] When it is determined that the functional program of the server is installed completely, the control server starts the functional program.

[0108] In order to enable the server to meet the requirements of the storage cluster, in this application, it is taken into account that in addition to installing corresponding applications on the control server according to general needs, different storage clusters have unique functional requirements for the server. Therefore, after the server is added to the storage cluster, it is also necessary to control the server to install the corresponding functional programs according to the specific unique functional requirements of the storage cluster for the server. After the installation is completed, the control server needs to start these functional programs so that the storage cluster can be used at any time.

[0109] In addition, to enable the server to be successfully added to the storage cluster, please refer to Figure 2 , Figure 2A flowchart of another automatic configuration method for a server provided by the present application, first, the server to be added to the storage cluster is added to the management list, when the server is connected to the master node, the management list is used to check whether the server is connected, and when connected, the server is checked whether there is data in the server, if there is, the server is formatted and a corresponding prompt message is given to remind the staff that the server has been formatted, and if not, a corresponding prompt message can also be given to remind the staff that the server can be used normally; then the platform information of the server is determined, and the server is controlled to install the operating system according to the platform information, and the corresponding application is controlled to be installed on the server after the installation is successful, and the server is configured to be the same network segment as the master node after the server successfully installs the application, so that the master node can manage the server, and finally the server is added to the storage cluster for use, and various functional programs required in various storage clusters are installed at this time, so that the storage cluster can use the server at any time. In the above process, if any step fails to execute or judge, the corresponding error message can be displayed on the task manager of the master node, and the error message specifically includes the step name of the server error, the server name, and the data information used in the step, such as the operating system information or the application information, so that the staff can accurately know the reason for the server error.

[0110] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of an automatic configuration device for a server provided in this application includes:

[0111] A memory 21, used for storing computer programs;

[0112] The processor 22 is used to implement the steps of the above-mentioned method for automatic configuration of the server when executing the computer program.

[0113] For a detailed introduction to an automatic configuration device for a server provided in the present application, please refer to the embodiment of the automatic configuration method for the server described above, and the present application will not go into details here.

[0114] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the automatic configuration method of the server as described above are implemented.

[0115] For a detailed introduction to a computer-readable storage medium provided in the present application, please refer to the embodiment of the above-mentioned method for automatic configuration of the server, and the present application will not go into details here.

[0116] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0117] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

Claims

1. A method for automatic configuration of a server, characterized in that: Applied to a processor of a master node of a storage cluster, the automatic configuration method of the server includes: When receiving a server presence signal, obtaining platform information of the server; Determine the operating system corresponding to the server according to the platform information; Sending a system image of the operating system corresponding to the server to the server so that the server can install the operating system; Determining whether the server has successfully installed the operating system; If the operating system is successfully installed, controlling the server to install an application corresponding to the platform information according to the platform information, the application including a firmware program and a software program; Determining whether the server successfully installs the application; If the application is successfully installed, adding the server to the storage cluster; The adding the server to the storage cluster includes: configuring the network segment of the server to be the same network segment as the master node according to the network segment where the master node is located; judging whether the configured server is connected to the master node; if so, judging that the server has successfully joined the storage cluster; if not, judging that the server has failed to join the storage cluster; The configuring the network segment of the server to be the same network segment as the master node according to the network segment where the master node is located comprises: determining the IP address of the master node; determining each available IP address in the network segment where the master node is located according to the IP address of the master node; allocating any of the available IP addresses to the server; The determining whether the configured server is connected to the master node comprises: determining the IP address information assigned to the server; obtaining the current IP address information of the server; determining whether the current IP address information of the server is consistent with the IP address information assigned to the server; if consistent, determining that the server is connected; if inconsistent, determining that the server is not connected; Before obtaining the platform information of the server, the method further includes: determining whether there is data in the server; if the data exists, formatting the server and entering the step of obtaining the platform information of the server; if the data does not exist, entering the step of obtaining the platform information of the server; Before obtaining the platform information of the server, the method further includes: determining the preset identification information of the server; obtaining the real identification information of the server, and judging whether the real identification information is consistent with the preset identification information; if they are consistent, entering the step of obtaining the platform information of the server; if they are inconsistent, judging that the server fails to connect to the master node; The method further includes: adding a server that needs to be added to the storage cluster to a management list, and when the server is connected to the master node, verifying whether the server is connected through the management list, and if so, verifying whether there is data in the server, and if so, formatting the server and giving corresponding prompt information to remind the staff that the server has been formatted, and if not, giving corresponding prompt information to remind the staff that the server can be used normally; During the process of configuring the server, it also includes: if any step fails to execute or judge, the corresponding error information is displayed on the task manager of the main node; the error information includes the step name of the server error, the server name and the data information used in the step, so that the staff can accurately know the reason for the server error.

2. The automatic configuration method of a server according to claim 1, characterized in that: Obtain the platform information of the server, including: Determine the information of each hardware in the server through ipmi hardware instructions; The platform information of the server is determined according to the information of each hardware in the server.

3. The automatic configuration method of a server according to any one of claims 1 to 2, characterized in that: After adding the server to the storage cluster, the method further includes: Determining preset functional requirements of the storage cluster for the server; According to the preset functional requirement, controlling the server to install the functional program corresponding to the preset functional requirement; When it is determined that the functional program of the server has been installed, the server is controlled to start the functional program.

4. An automatic configuration device for a server, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the automatic configuration method for a server as claimed in any one of claims 1 to 3 when executing the computer program.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the automatic configuration method of the server according to any one of claims 1 to 3 are implemented.