Construction method, device and equipment of hyper-fusion system and readable storage medium
Through the processor in the hyper-converged system, it selects the system disk according to the preset strategy and determines the construction conditions, which solves the problems of low efficiency and poor performance in the delivery process of the hyper-converged system, and achieves efficient system installation and delivery.
Patent Information
- Application Number
- CN202410903176.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-06
AI Technical Summary
During the delivery process of hyper-converged systems, existing technologies are inefficient and installation solutions vary widely, which affects system performance and results in poor delivery efficiency and user experience.
The processor selects an appropriate disk as the system disk based on the preset system disk selection strategy and the server's disk mounting architecture. After installing the hyper-converged software, it determines whether it meets the preset construction conditions and makes necessary corrections.
It improves the installation efficiency and performance of hyper-converged systems, ensures delivery efficiency and user experience, and prevents and corrects projects that do not meet the conditions by optimizing system disk selection and judgment of environment construction conditions.
Smart Images

Figure CN118605901A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of servers, and in particular to a method, device, equipment and readable storage medium for constructing a server system. Background Art
[0002] A hyper-converged system is a computer technology that integrates computing, storage, and network functions. It is designed to provide a high-performance and efficient computing environment. It usually includes storage management software and commercial hardware. When a hyper-converged system is delivered, staff are often required to install the hyper-converged software at the delivery site. This is not only inefficient, but different staff have different installation solutions for the hyper-converged software, which may reduce the performance of the hyper-converged system and thus affect the product image.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, equipment and readable storage medium for constructing a hyper-converged system. The processor selects a disk as a system disk according to a preset system disk selection strategy and the disk mounting architecture of the server of the hyper-converged system to be constructed, which is beneficial to improving work efficiency and the performance of the hyper-converged system. The processor pre-discovers projects that do not meet the requirements of building a hyper-converged environment and corrects them, thereby improving the delivery efficiency of the hyper-converged system.
[0005] In order to solve the above technical problems, the present invention provides a method for constructing a hyper-convergence system, which is applied to a processor and includes:
[0006] Determine the disk mounting architecture of the server for the hyper-converged system to be built;
[0007] According to a preset system disk selection strategy and the disk mounting architecture, a disk is selected from the disks mounted on the server as a system disk;
[0008] Based on the image file of the hyper-convergence software, installing the hyper-convergence software in the image file on the system disk;
[0009] Determine whether the server after installing the hyper-convergence software meets the preset conditions for building a hyper-convergence environment;
[0010] If not, a prompt will be given for the unsatisfied items in the preset building conditions.
[0011] On the other hand, the system disk selection strategy includes preferentially selecting a disk with a high priority disk mounting mode as the system disk;
[0012] The disk mounting methods include: directly connecting to the mainboard, mounting on the server through a first array card, and mounting on the server through a second array card, wherein the first array card is a serial connection small computer system interface card, and the second array card is an independent redundant disk array card;
[0013] The priority of the disk mounting method directly connected to the mainboard is the first priority, the priority of the disk mounting method mounted on the server through the first array card is the second priority, and the priority of the disk mounting method mounted on the server through the second array card is the third priority; the second priority is lower than the first priority and higher than the third priority;
[0014] According to the preset system disk selection strategy and the disk mounting architecture, selecting a disk from the disks mounted on the server as the system disk includes:
[0015] Determine whether there is a disk mounted in the disk mounting architecture by a disk mounting method of a first priority;
[0016] If there is a disk mounted by the first priority disk mounting method, select the disk as the system disk from the disks directly connected to the motherboard;
[0017] If there is no disk mounted by the disk mounting method of the first priority, determining whether there is a disk mounted by the disk mounting method of the second priority in the disk mounting architecture;
[0018] If there is a disk mounted by the second priority disk mounting method, a disk is selected as the system disk from the disks mounted on the server by the first array card;
[0019] If there is no disk mounted by the disk mounting method of the second priority, determining whether there is a disk mounted by the disk mounting method of the third priority in the disk mounting architecture;
[0020] If there is a disk mounted by the disk mounting method of the third priority, a disk is selected as the system disk from the disks mounted on the server by the second array card.
[0021] On the other hand, from the disks mounted on the server through the second array card, selecting a disk as a system disk includes:
[0022] From the disks mounted on the server through the second array card, select the target disk as the system disk;
[0023] Controlling the target disk to work in independent redundant disk array mode and serve as a system disk;
[0024] Control the disks mounted on the second array card except the target system disk to work in a pass-through mode;
[0025] From the disks mounted on the second array card and working in the pass-through mode, select disks as cache disks and data disks respectively.
[0026] On the other hand, the second array card has first-class disks and second-class disks with different reading and writing speed levels mounted thereon;
[0027] The read and write speed of the first type of disk is higher than the read and write speed of the second type of disk;
[0028] From the disks mounted on the server through the second array card, select the target disks as the system disks, including:
[0029] If the number of first-type disks mounted on the second array card is not greater than 2, all first-type disks mounted on the second array card are used as target disks;
[0030] If the number of first-category disks mounted on the second array card is greater than 2, selecting at most two disks from the first-category disks mounted on the second array card as target disks according to the principle of low capacity first priority;
[0031] From the disks mounted on the second array card and working in the pass-through mode, selecting disks as cache disks and data disks respectively includes:
[0032] If the disks mounted by the second array card and working in pass-through mode include first-type disks, the first-type disks mounted by the second array card and working in pass-through mode are used as cache disks, and the second-type disks mounted by the second array card and working in pass-through mode are used as data disks.
[0033] On the other hand, according to the principle of low capacity first, selecting at most two disks as target disks from the first type disks mounted on the second array card includes:
[0034] If the number of first-category disks whose capacities are smaller than the preset threshold value among the first-category disks mounted on the second array card is 1, the first-category disk whose capacities are smaller than the preset threshold value is used as the target disk;
[0035] If the number of first-class disks with capacities smaller than the preset threshold is greater than 1, the two first-class disks with the smallest capacities are selected as target disks;
[0036] Controlling the target disk to work in independent redundant disk array mode and serving as a system disk includes:
[0037] If the number of target disks is 1, control the target disk to work in independent redundant disk array mode, and construct the target disk in the first array mode as a system disk;
[0038] If the number of target disks is 2, control the target disk to work in independent redundant disk array mode, and construct the target disk in the second array mode as a system disk;
[0039] The first array mode refers to an independent redundant disk array mode of stripes without parity check, and the second array mode refers to a mirrored independent redundant disk array mode;
[0040] From each first-category disk mounted on the second array card, two disks with the smallest capacity are selected as target disks.
[0041] On the other hand, the following are the conditions for determining whether the server after installing the hyper-convergence software meets the preset conditions for building a hyper-convergence environment:
[0042] Determine the specified configuration information of the server after installing the hyper-converged software;
[0043] Based on the specified configuration information, determine whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment;
[0044] Among them, the preset construction conditions include: the data packet is complete, the key services are in normal operation, the ratio of various disks meets the standards, the network specifications meet the standards, and the memory capacity meets the standards; the specified configuration information includes the data packet list, the operating status of key services, the ratio of various disks, the network specifications, and the memory capacity.
[0045] On the other hand, based on the image file of the hyper-convergence software, installing the hyper-convergence software in the image file on the system disk includes:
[0046] Determine the specified version of the image file to be used;
[0047] Get the image file of the specified version from the preset image library;
[0048] Determine the boot file in the image file;
[0049] Under the guidance of the boot file, the hyper-convergence software in the image file is installed on the system disk;
[0050] Configure a configuration item of a specified type for the server.
[0051] In order to solve the above technical problems, the present invention also provides a device for constructing a hyper-convergence system, comprising:
[0052] A first determination module is used to determine the disk mounting architecture of the server of the hyper-converged system to be constructed;
[0053] A first selection module, configured to select a disk as a system disk from the disks mounted on the server according to a preset system disk selection strategy and the disk mounting architecture;
[0054] A first action module is used to install the hyper-convergence software in the image file on the system disk based on the image file of the hyper-convergence software;
[0055] A first judgment module is used to judge whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment, and if not, trigger the first prompt module;
[0056] The first prompt module is used to prompt unsatisfied items in the preset construction conditions.
[0057] In order to solve the above technical problems, the present invention further provides a construction device of a hyper-convergence system, comprising:
[0058] Memory for storing computer programs;
[0059] A processor is used to implement the steps of the method for constructing a hyper-converged system as described above when executing the computer program.
[0060] In order to solve the above technical problems, 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 method for constructing a hyper-converged system as described above are implemented.
[0061] Beneficial effect: The present invention provides a method for constructing a hyper-converged system. Considering that (1) the selection of a system disk is related to the disk mounting architecture of a server, and (2) the construction of a hyper-converged environment needs to meet several conditions, the processor in the present invention can first select a disk as a system disk from the disks mounted on the server according to a preset system disk selection strategy and the disk mounting architecture of the server of the hyper-converged system to be constructed, and then install the hyper-converged software on the system disk. This not only improves the installation efficiency, but also obtains the optimal system disk selection solution through the system disk selection strategy, which is beneficial to improving the performance of the hyper-converged system. In addition, through the processor's judgment of the preset construction conditions of the hyper-converged environment, projects that do not meet the requirements for building a hyper-converged environment can be discovered in advance and corrected, thereby improving the delivery efficiency of the hyper-converged system.
[0062] The present invention also provides a hyper-converged system construction device, equipment and computer-readable storage medium, which have the same beneficial effects as the above hyper-converged system construction method. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the relevant technologies 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.
[0064] Figure 1 A schematic diagram of a process for constructing a hyper-convergence system provided by the present invention;
[0065] Figure 2 A schematic diagram of a process flow of another method for constructing a hyper-convergence system provided by the present invention;
[0066] Figure 3 A structural schematic diagram of a disk mounting architecture provided by the present invention;
[0067] Figure 4 A schematic diagram of a flow chart of a construction condition detection provided by the present invention;
[0068] Figure 5 A schematic diagram of the structure of a device for constructing a hyper-convergence system provided by the present invention;
[0069] Figure 6 A schematic diagram of the structure of a construction device of a hyper-convergence system provided by the present invention;
[0070] Figure 7 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0071] The core of the present invention is to provide a method, device, equipment and readable storage medium for building a hyper-converged system. The processor selects a disk as a system disk according to a preset system disk selection strategy and the disk mounting architecture of the server of the hyper-converged system to be built, which is beneficial to improving work efficiency and the performance of the hyper-converged system. The processor pre-discovers projects that do not meet the requirements of building a hyper-converged environment and corrects them, thereby improving the delivery efficiency of the hyper-converged system.
[0072] 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.
[0073] Figure 1A schematic diagram of a process flow of a method for constructing a hyper-converged system provided by the present invention, wherein the method for constructing a hyper-converged system is applied to a processor, and includes:
[0074] S101: Determine a disk mounting architecture of a server of a hyper-converged system to be constructed;
[0075] Specifically, taking into account the technical problems in the above background technology, and considering that the selection of the system disk is related to the disk mounting architecture of the server, however, due to differences in experience, the staff did not realize how to more reasonably select the system disk based on the disk mounting architecture when delivering the hyper-converged system. Therefore, in the embodiment of the present invention, the system disk is selected based on the disk mounting architecture of the server. In this step, the disk mounting architecture of the server to be built for the hyper-converged system can be determined, and it can be used as the data basis for subsequent steps.
[0076] Among them, the disk mounting architecture of the server refers to the number of disks and the types of disks belonging to different disk mounting methods among the disks mounted on the server. The disk mounting methods may include direct mounting on the motherboard, mounting through a SAS (Serial Attached SCSI, disk array card) card, or mounting through a RAID (Redundant Array of Independent Disks, independent redundant disk array) card, etc., which is not limited in the embodiments of the present invention.
[0077] S102: selecting a disk from the disks mounted on the server as the system disk according to a preset system disk selection strategy and a disk mounting architecture;
[0078] Specifically, in order to be able to automatically select a disk as a system disk according to a disk mounting architecture and reasonable logic, a system disk selection strategy can be pre-set in an embodiment of the present invention. The strategy is summarized by experienced staff after analyzing the requirements for system disks and the characteristics of different disk mounting architectures. Therefore, after determining the disk mounting architecture of the server to be built with the hyper-converged system, in this step, a disk can be selected from the disks mounted on the server as the system disk according to the preset system disk selection strategy and disk mounting architecture.
[0079] S103: Based on the image file of the hyper-convergence software, the hyper-convergence software in the image file is installed on the system disk;
[0080] Specifically, in order to efficiently install the hyper-convergence software, in the embodiment of the present invention, based on the image file of the hyper-convergence software, the hyper-convergence software in the image file can be installed on the system disk, which is simple and efficient.
[0081] Of course, in addition to this specific method, the hyper-convergence software may be installed on the system disk in other ways, which are not limited in the embodiments of the present invention.
[0082] S104: Determine whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment;
[0083] Specifically, further considering that the construction of a hyper-converged environment needs to meet several conditions, if during the construction of the hyper-converged environment at the delivery site of the hyper-converged system, it is found that the construction of the hyper-converged environment fails because the relevant configuration of the server does not meet the conditions, it will greatly affect the delivery efficiency and user experience. Therefore, in the embodiment of the present invention, the preset construction conditions of the hyper-converged environment can be set in advance, and it can be determined whether the server after the hyper-converged software is installed meets the preset construction conditions of the hyper-converged environment, so that by pre-verifying the preset construction conditions, projects that do not meet the requirements for building a hyper-converged environment can be discovered in advance and corrected, which is beneficial to improving the delivery efficiency and user experience of the hyper-converged system.
[0084] Among them, this step can be performed during the production phase of the server where the hyper-converged system is to be deployed, thereby ensuring that the hyper-converged environment can be successfully built during on-site delivery and improving delivery efficiency.
[0085] S105: If not, prompt the unsatisfied items in the preset building conditions.
[0086] Specifically, when the server after installing the hyper-converged software does not meet the preset construction conditions of the hyper-converged environment, in order to improve work efficiency, prompts can be given for the unmet items in the preset construction conditions, so that the staff can adjust the server configuration in time according to the prompt content.
[0087] In addition, when the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment, this information can also be pushed to facilitate the staff to determine the verification results in a timely manner.
[0088] The specific method of prompting can be selected independently, for example, it can be a display method, etc., and the embodiment of the present invention does not limit this.
[0089] To better illustrate the embodiments of the present invention, please refer to Figure 2 , Figure 2A flow chart of another method for constructing a hyper-converged system provided by the present invention, after the hyper-converged server is powered on, system disk production is S102, S103 may include image file acquisition and system pre-installation boot, pre-installation information configuration is the configuration work of a specified type of configuration items after the image file is installed, the hardware self-check process is S104, and the self-check result feedback is to push the judgment result of S104 for feedback, and the system pre-installation completes the aforementioned system pre-installation work.
[0090] The present invention provides a method for constructing a hyper-converged system. Considering that (1) the selection of a system disk is related to the disk mounting architecture of a server, and (2) the construction of a hyper-converged environment needs to meet several conditions, the processor in the present invention can first select a disk as a system disk from the disks mounted on the server according to a preset system disk selection strategy and the disk mounting architecture of the server of the hyper-converged system to be constructed, and then install the hyper-converged software on the system disk. This not only improves the installation efficiency, but also obtains the optimal system disk selection scheme through the system disk selection strategy, which is beneficial to improving the performance of the hyper-converged system. In addition, through the processor's judgment of the preset construction conditions of the hyper-converged environment, projects that do not meet the requirements of building a hyper-converged environment can be discovered in advance and corrected, thereby improving the delivery efficiency of the hyper-converged system.
[0091] Based on the above embodiments:
[0092] As an optional embodiment, the system disk selection strategy includes preferentially selecting a disk with a high priority disk mounting mode as the system disk;
[0093] The disk mounting methods include: directly connecting to the mainboard, mounting on the server through the first array card, and mounting on the server through the second array card, wherein the first array card is a serial connection small computer system interface card, and the second array card is an independent redundant disk array card;
[0094] The priority of the disk mounting method directly connected to the mainboard is the first priority, the priority of the disk mounting method mounted on the server through the first array card is the second priority, and the priority of the disk mounting method mounted on the server through the second array card is the third priority; the second priority is lower than the first priority and higher than the third priority;
[0095] According to the preset system disk selection strategy and disk mounting architecture, the disks mounted on the server are selected as system disks, including:
[0096] Determine whether there is a disk mounted in the disk mounting architecture by using the first priority disk mounting method;
[0097] If there is a disk mounted by the first priority disk mounting method, select the disk as the system disk from the disks directly connected to the motherboard;
[0098] If there is no disk mounted by the disk mounting method of the first priority, determine whether there is a disk mounted by the disk mounting method of the second priority in the disk mounting architecture;
[0099] If there is a disk mounted by the second priority disk mounting method, a disk is selected as the system disk from the disks mounted on the server by the first array card;
[0100] If there is no disk mounted by the disk mounting method of the second priority, it is determined whether there is a disk mounted by the disk mounting method of the third priority in the disk mounting architecture;
[0101] If there is a disk mounted by the disk mounting method of the third priority, a disk is selected as the system disk from the disks mounted on the server by the second array card.
[0102] Specifically, considering that among the disks mounted on the server, disks with different disk mounting methods have different characteristics, the system disk selection strategy can be set based on the difference in disk mounting methods. In the embodiment of the present invention, the priorities of different disk mounting methods can be set: the priority of the disk mounting method directly connected to the motherboard is the first priority, the priority of the disk mounting method mounted on the server through the first array card (SAS card) is the second priority, and the priority of the disk mounting method mounted on the server through the second array card (RAID card) is the third priority.
[0103] Among them, the reason why the disk mounting method directly connected to the motherboard is given the first priority is that the data reading and writing speed of the disk directly connected to the motherboard is relatively high, and the system disk has a high requirement for data reading and writing speed. The reason why the disk mounting method mounted on the server through the first array card is given the second priority is that compared with the RAID card, the RAID type that can be constructed by the SAS card is relatively high, and the SAS card happens to be able to construct the RAID0 and RAID1 required by the system disk; the reason why the disk mounting method mounted on the server through the second array card is given the third priority is related to the construction reason of the second priority. When there is no disk mounting method of the first priority and the second priority, the disk with the third priority disk mounting method can be selected as the system disk.
[0104] To better illustrate the embodiments of the present invention, please refer to Figure 3 , Figure 3 A schematic diagram of a disk mounting architecture provided by the present invention. Figure 3Three types of disk mounting architectures, from the first to the third category, are shown in the figure. The first category includes the first-priority disk mounting method and the third-priority disk mounting method, the second category includes the second-priority and third-priority disk mounting methods, and the third category includes the first-priority disk mounting method. Each type of disk mounting architecture includes two types of disks, solid-state drives and non-solid-state drives. Solid-state drives usually have higher data reading and writing speeds.
[0105] As an optional embodiment, selecting a disk as a system disk from the disks mounted on the server through the second array card includes:
[0106] From the disks mounted on the server through the second array card, select the target disk as the system disk;
[0107] Control the target disk to work in independent redundant disk array mode and serve as a system disk;
[0108] Control the disks mounted on the second array card except the target system disk to work in pass-through mode;
[0109] From the disks mounted on the second array card and working in the pass-through mode, select disks as cache disks and data disks respectively.
[0110] Specifically, when selecting a system disk, a traditional hyper-converged system may set the RAID card to RAID mode and only implement the system disk under the RAID card, while the cache disk and data disk may need to be implemented under another RAID card or on an onboard disk, which increases the complexity of the disk architecture. Considering that the MIX mode of the RAID card can support both RAID mode and HBA (pass-through) mode, when selecting a disk under the second array card as the system disk, a target disk as the system disk can be selected from the disks mounted on the server through the second array card, and the target disk can be controlled to work in independent redundant disk array mode and serve as the system disk. The disks mounted under the second array card except the target system disk can be controlled to work in pass-through mode, and disks can be selected from the disks mounted on the second array card that work in pass-through mode as cache disks and data disks. In this case, the server only needs a single RAID card to implement the system disk, cache disk, and data disk at the same time, which simplifies the disk mounting architecture and saves costs.
[0111] Of course, in addition to this specific form, "selecting a disk as a system disk from the disks mounted on the server through the second array card" can also be implemented in other forms, which are not limited in the embodiment of the present invention.
[0112] As an optional embodiment, the second array card is mounted with a first type disk and a second type disk having different reading and writing speed levels;
[0113] The read and write speeds of the first type of disks are higher than those of the second type of disks;
[0114] From the disks mounted on the server through the second array card, select the target disks as the system disks, including:
[0115] If the number of first-class disks mounted on the second array card is not greater than 2, all first-class disks mounted on the second array card are used as target disks;
[0116] If the number of first-class disks mounted on the second array card is greater than 2, at most two disks are selected as target disks from the first-class disks mounted on the second array card according to the principle of low capacity first.
[0117] From the disks mounted on the second array card and working in pass-through mode, select the disks as cache disks and data disks respectively, including:
[0118] If the disks mounted on the second array card and working in pass-through mode include first-type disks, the first-type disks mounted on the second array card and working in pass-through mode are used as cache disks, and the second-type disks mounted on the second array card and working in pass-through mode are used as data disks.
[0119] Specifically, when the highest priority disk mounting method in the server is to mount the disk through the second array card, considering that there may be two types of disks with different speed levels mounted in the server, and the system disk, cache disk and data disk have different requirements for disk data reading and writing speeds, usually the system disk and cache disk have higher requirements for disk data reading and writing speeds, and the system disk is more suitable for using a higher-speed disk than the cache disk. In addition, considering that the disk is usually set to RAID0 (requires 1 disk) or RAID1 (requires 2 disks) as the system disk under the RAID card, and the priority of RAID1 is higher than RAID0, In this embodiment of the present invention, when the number of first-class disks mounted on the second array card is not greater than 2, all first-class disks mounted on the second array card can be used as target disks to construct system disks, that is, when the number of target disks is 1, RAID0 can be constructed, and when the number of target disks is 2, RAID1 can be constructed; and when the number of first-class disks mounted on the second array card is greater than 2, considering that the system disk usually has a lower disk capacity requirement than the cache disk, at most two disks can be selected as target disks from each first-class disk mounted on the second array card according to the principle of low capacity priority.
[0120] Among them, in order to improve the performance of the cache disk and the data disk, disks can be selected from the disks in the pass-through mode mounted on the second array card to build the cache disk and the data disk. Since the cache disk has higher requirements on the data reading and writing speed of the disk than the data disk, when the disks in the pass-through mode mounted on the second array card include the first type of disks, the first type of disks in the pass-through mode mounted on the second array card can be used as cache disks, and the second type of disks in the pass-through mode mounted on the second array card can be used as data disks.
[0121] In addition, it is worth mentioning that in order to ensure that various types of disks support the hyper-converged system and promptly discover possible problems with the disks in the system, the embodiment of the present invention may also include:
[0122] In response to the detection trigger instruction, determining a detection item corresponding to the disk function type;
[0123] For any disk in the hyper-converged system, the disk is tested according to the test items corresponding to the disk function type of the disk;
[0124] Push the detection results of each disk.
[0125] Specifically, the disk function types may include system disks, cache disks, and data disks, etc., which are not limited in the embodiments of the present invention. The detection items corresponding to the system disk may be available capacity estimation, thereby preventing the system disk from being full. The detection items corresponding to the cache disk may include wear detection and life detection, thereby ensuring the cache performance of the system. The detection items of the data disk may include bad sector detection (performed by disk scanning, etc.), etc., thereby preventing abnormal business data from being stored on the disk.
[0126] The detection trigger instruction may be generated in a variety of ways, for example, it may be automatically generated periodically or received through a human-machine interface, which is not limited in the embodiment of the present invention.
[0127] In addition, you can also use the RAID card management tool to obtain detailed disk information about the system disk, cache disk, and data disk under the same RAID card in real time, integrate the disk information, and centrally manage and maintain it.
[0128] As an optional embodiment, selecting at most two disks as target disks from the first-class disks mounted on the second array card according to the principle of low capacity first includes:
[0129] If the number of first-class disks whose capacities are smaller than the preset threshold value among the first-class disks mounted under the second array card is 1, the first-class disk whose capacities are smaller than the preset threshold value is used as the target disk;
[0130] If the number of first-class disks with capacities smaller than the preset threshold is greater than 1, the two first-class disks with the smallest capacities are selected as target disks;
[0131] The control target disk works in independent redundant disk array mode and as a system disk includes:
[0132] If the number of target disks is 1, the target disk is controlled to work in independent redundant disk array mode, and the target disk is constructed in the first array mode and used as a system disk;
[0133] If the number of target disks is 2, the target disk is controlled to work in independent redundant disk array mode, and the target disk is constructed in the second array mode and used as a system disk;
[0134] The first array mode refers to an independent redundant disk array mode of stripes without parity check, and the second array mode refers to a mirrored independent redundant disk array mode;
[0135] From the first-class disks mounted on the second array card, select the two disks with the smallest capacity as the target disks.
[0136] Specifically, in order to further reduce the occupation of disk capacity by the system disk, a preset threshold can be pre-set in an embodiment of the present invention. When the number of first-class disks with a capacity less than the preset threshold among the first-class disks mounted on the second array card is 1, the first-class disks with a capacity less than the preset threshold can be used as target disks. When the number of first-class disks with a capacity less than the preset threshold is greater than 1, the two first-class disks with the smallest capacity are selected as target disks, so that the system disk can occupy less disk capacity.
[0137] Among them, in the embodiment of the present invention, RAID0 can be constructed and used as a system disk when the target disk is one, and RAID1 can be constructed and used as a system disk when the target disk is two. In the case of RAID1, due to the existence of mirror redundancy, the reliability of the system disk data can be improved.
[0138] Among them, it is worth mentioning that when selecting the onboard directly connected disk as the system disk, there is no need to build RAID, but when selecting the disk mounted under the array card as the system disk, RAID can be built and used as the system disk.
[0139] Of course, in addition to this specific method, "selecting at most two disks as target disks from each first-category disk mounted on the second array card according to the low-capacity priority principle" can also be performed in other ways, which are not limited in this embodiment of the present invention.
[0140] As an optional embodiment, determining whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment includes:
[0141] Determine the specified configuration information of the server after installing the hyper-converged software;
[0142] Based on the specified configuration information, determine whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment;
[0143] Among them, the preset construction conditions include: the data packet is complete, the key services are in normal operation, the ratio of various disks meets the standards, the network specifications meet the standards, and the memory capacity meets the standards; the specified configuration information includes the data packet list, the operating status of key services, the ratio of various disks, the network specifications, and the memory capacity.
[0144] To better illustrate the embodiments of the present invention, please refer to Figure 4 , Figure 4 A schematic diagram of a flow chart of a construction condition detection provided by the present invention, Figure 4 The system hardware self-check in the starts, that is, the process of detecting the construction conditions of the hyper-converged system begins. The installation package integrity check corresponds to the integrity of the data packets in the preset construction conditions. The key service running status check corresponds to the normal operation of the key services in the preset construction conditions. The server disk ratio check corresponds to the various disk ratios in the preset construction conditions that meet the standards. The network card type and memory check correspond to the network specifications and memory capacity in the preset construction conditions that meet the standards. At this point, the self-check results of each test item can be obtained, and the system hardware self-check results can be echoed.
[0145] Specifically, considering that the relevant configuration information of the server after the hyper-convergence software is installed can reflect whether the preset construction conditions of the hyper-convergence environment are met, the embodiment of the present invention can determine the specified configuration information of the server after the hyper-convergence software is installed, and then based on the specified configuration information, judge whether the server after the hyper-convergence software is installed meets the preset construction conditions of the hyper-convergence environment, which is simple and efficient.
[0146] Among them, the construction conditions involving data packet integrity, key services in normal operation, various disk ratios meeting standards, network specifications meeting standards, and memory capacity meeting standards are relatively comprehensive and can be selected and set as needed. The specified configuration information can include data packet lists, operating status of key services, various disk ratios, network specifications, and memory capacity.
[0147] Specifically, the data packet may include various key RPM packages and development packages, etc., and the network specification may refer to network bandwidth and / or network rate, etc., which is not limited in the embodiment of the present invention.
[0148] Among them, the disks mounted on the server in the hyper-converged system may include multiple types, such as solid-state drives, mechanical hard drives, and disks based on NVMe (Non Volatile Memory Host Controller Interface Specification), etc., which are not limited in the embodiments of the present invention.
[0149] Of course, in addition to the above specific forms, the preset construction conditions and the specified configuration information may also be in other forms, which are not limited in the embodiments of the present invention.
[0150] As an optional embodiment, based on the image file of the hyper-convergence software, installing the hyper-convergence software in the image file on the system disk includes:
[0151] Determine the specified version of the image file to be used;
[0152] Get the image file of the specified version from the preset image library;
[0153] Determine the boot file in the image file;
[0154] Under the guidance of the boot file, install the hyper-convergence software in the image file to the system disk;
[0155] Configure the configuration items of the specified type for the server.
[0156] Specifically, considering that hyper-converged systems in different scenarios or batches have different requirements for hyper-converged software, in order to adapt to different requirements, a plurality of different versions of image files can be set in an embodiment of the present invention to form an image library. In this way, different versions of image files can be installed for hyper-converged servers of various batches and scenarios, which is conducive to further improving work efficiency.
[0157] The configuration items of the specified type may be set autonomously, for example, may include a host name, a super user password, and network information (DHCP (Dynamic Host Configuration Protocol)), etc., which is not limited in the embodiment of the present invention.
[0158] Specifically, a specific embodiment of mounting solid state drives (SSDs) only through a RAID card and the number of SSDs is 4 is as follows:
[0159] 1) According to the server order number and the existence of hyper-convergence software in the order, determine whether the system needs to pre-install the hyper-convergence software. If necessary, turn on the hyper-convergence server and start the pre-installation process;
[0160] 2) During the pre-installation process, according to the situation that the server has 4 disks and only one RAID card, a customized instruction is sent to select the first and second SSDs of the 4 SSDs as RAID1 to build the system disk;
[0161] 3) After the system disk is built, the image file of the released hyper-convergence software is downloaded from the image library through TFTP (Trivial File Transfer Protocol), and the kickstart boot file in the image is requested and downloaded;
[0162] 4) Boot through the kickstart boot file, select the system disk just built by the system to install the system, and automatically configure the host name, ROOT password and network information (DHCP), etc.;
[0163] 5) After the hyper-converged system is installed, the system restarts and enters the hardware self-check process to check the integrity of the system package, the operating status of key services, and hardware configuration information;
[0164] 6) The system displays in the background that the current hardware configuration meets the requirements for hyper-convergence construction and the hardware check has passed. The system pre-installation is now complete and the system can be shut down for subsequent packaging and shipment.
[0165] Please refer to Figure 5 , Figure 5 A schematic diagram of the structure of a device for constructing a hyper-convergence system provided by the present invention, wherein the device for constructing a hyper-convergence system comprises:
[0166] A first determination module 51 is used to determine the disk mounting architecture of the server of the hyper-converged system to be constructed;
[0167] A first selection module 52, configured to select a disk as a system disk from the disks mounted on the server according to a preset system disk selection strategy and a disk mounting architecture;
[0168] The first action module 53 is used to install the hyper-convergence software in the image file on the system disk based on the image file of the hyper-convergence software;
[0169] The first judgment module 54 is used to judge whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment. If not, the first prompt module 55 is triggered;
[0170] The first prompt module 55 is used to prompt the unsatisfied items in the preset building conditions.
[0171] Based on the above embodiments:
[0172] As an optional embodiment, the system disk selection strategy includes preferentially selecting a disk with a high priority disk mounting mode as the system disk;
[0173] The disk mounting methods include: directly connecting to the mainboard, mounting on the server through the first array card, and mounting on the server through the second array card, wherein the first array card is a serial connection small computer system interface card, and the second array card is an independent redundant disk array card;
[0174] The priority of the disk mounting method directly connected to the mainboard is the first priority, the priority of the disk mounting method mounted on the server through the first array card is the second priority, and the priority of the disk mounting method mounted on the server through the second array card is the third priority; the second priority is lower than the first priority and higher than the third priority;
[0175] The first selection module 52 includes:
[0176] The second judgment module is used to judge whether there is a disk mounted by the disk mounting method of the first priority in the disk mounting architecture, and if there is a disk mounted by the disk mounting method of the first priority, the first selection submodule is triggered; if there is no disk mounted by the disk mounting method of the first priority, the third judgment module is triggered;
[0177] The first selection submodule is used to select a disk as a system disk from the disks directly connected to the mainboard;
[0178] The third judgment module is used to judge whether there is a disk mounted by the second priority disk mounting method in the disk mounting architecture, and if there is a disk mounted by the second priority disk mounting method, the second selection submodule is triggered; if there is no disk mounted by the second priority disk mounting method, the fourth judgment module is triggered;
[0179] A second selection submodule is used to select a disk as a system disk from the disks mounted on the server through the first array card;
[0180] The fourth judgment module is used to judge whether there is a disk mounted by the disk mounting method of the third priority in the disk mounting architecture, and if there is a disk mounted by the disk mounting method of the third priority, the third selection submodule is triggered;
[0181] The third selection submodule is used to select a disk as a system disk from the disks mounted on the server through the second array card.
[0182] As an optional embodiment, the third selection submodule includes:
[0183] The fourth selection submodule is used to select a target disk as a system disk from the disks mounted on the server through the second array card;
[0184] The second action module is used to control the target disk to work in an independent redundant disk array mode and serve as a system disk;
[0185] The third action module is used to control the disks mounted on the second array card except the target system disk to work in a pass-through mode;
[0186] The fifth selection submodule is used to select disks from the disks mounted on the second array card and working in the pass-through mode, respectively, as the cache disk and the data disk.
[0187] As an optional embodiment, the second array card is mounted with a first type disk and a second type disk having different reading and writing speed levels;
[0188] The read and write speeds of the first type of disks are higher than those of the second type of disks;
[0189] The fourth selection submodule includes:
[0190] A fourth action module is used for taking all the first-class disks mounted on the second array card as target disks if the number of the first-class disks mounted on the second array card is not greater than 2;
[0191] A fifth action module is used for selecting at most two disks from the first-class disks mounted on the second array card as target disks according to a low-capacity priority principle if the number of the first-class disks mounted on the second array card is greater than 2;
[0192] The fifth selection submodule is specifically used for:
[0193] If the disks mounted on the second array card and working in pass-through mode include first-type disks, the first-type disks mounted on the second array card and working in pass-through mode are used as cache disks, and the second-type disks mounted on the second array card and working in pass-through mode are used as data disks.
[0194] As an optional embodiment, the fifth action module includes:
[0195] A sixth action module is used for, if the number of first-category disks with a capacity less than a preset threshold value among the first-category disks mounted on the second array card is 1, taking the first-category disk with a capacity less than the preset threshold value as a target disk;
[0196] A seventh action module is used for selecting two first-category disks with the smallest capacity as target disks if the number of first-category disks with capacity smaller than a preset threshold is greater than 1;
[0197] The second action module includes:
[0198] An eighth action module is used for controlling the target disk to work in an independent redundant disk array mode if the number of the target disk is 1, and constructing the target disk in a first array mode as a system disk;
[0199] A ninth action module is used for controlling the target disk to work in an independent redundant disk array mode if the number of the target disk is 2, and constructing the target disk in a second array mode as a system disk;
[0200] The first array mode refers to an independent redundant disk array mode of stripes without parity check, and the second array mode refers to a mirrored independent redundant disk array mode;
[0201] The sixth selection submodule is used to select two disks with the smallest capacity from the first-category disks mounted on the second array card as target disks.
[0202] As an optional embodiment, the first judgment module includes:
[0203] A second determination module is used to determine the specified configuration information of the server after the hyper-convergence software is installed;
[0204] A fifth judgment module is used to judge whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment based on the specified configuration information;
[0205] Among them, the preset construction conditions include: the data packet is complete, the key services are in normal operation, the ratio of various disks meets the standards, the network specifications meet the standards, and the memory capacity meets the standards; the specified configuration information includes the data packet list, the operating status of key services, the ratio of various disks, the network specifications, and the memory capacity.
[0206] As an optional embodiment, the first action module 53 includes:
[0207] A third determination module is used to determine a specified version of the image file to be used;
[0208] The first acquisition module is used to obtain an image file of a specified version from a preset image library;
[0209] A fourth determining module, used to determine the boot file in the image file;
[0210] The tenth action module is used to install the hyper-convergence software in the image file on the system disk under the guidance of the boot file;
[0211] The configuration module is used to configure the configuration items of the specified type of the server.
[0212] For an introduction to the apparatus for constructing a hyper-converged system provided in an embodiment of the present invention, please refer to the embodiment of the method for constructing a hyper-converged system described above, and the embodiment of the present invention will not be described in detail here.
[0213] Please refer to Figure 6 , Figure 6 A schematic diagram of a structure of a hyper-convergence system construction device provided by the present invention, wherein the hyper-convergence system construction device comprises:
[0214] A memory 61, used for storing computer programs;
[0215] The processor 62 is used to implement the steps of the method for constructing a hyper-converged system in the aforementioned embodiment when executing a computer program.
[0216] For an introduction to the construction device of the hyper-convergence system provided in the embodiment of the present invention, please refer to the embodiment of the construction method of the aforementioned hyper-convergence system, and the embodiment of the present invention will not be repeated here.
[0217] Please refer to Figure 7 , Figure 7 This is a structural diagram of a computer-readable storage medium provided by the present invention. A computer program 72 is stored on the computer-readable storage medium 71. When the computer program 72 is executed by the processor, the steps of the method for constructing a hyper-converged system in the aforementioned embodiment are implemented.
[0218] For an introduction to the computer-readable storage medium provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the method for constructing a hyper-converged system, and the embodiment of the present invention will not be described in detail here.
[0219] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the method for constructing a hyper-converged system in the aforementioned embodiment.
[0220] For an introduction to the computer program product provided in the embodiment of the present invention, please refer to the embodiment of the method for constructing a hyper-converged system described above, and the embodiment of the present invention will not be described in detail here.
[0221] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and 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 description. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.
[0222] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for constructing a hyper-convergence system, characterized in that: Applicable to processors, including: Determine the disk mounting architecture of the server for the hyper-converged system to be built; According to a preset system disk selection strategy and the disk mounting architecture, a disk is selected from the disks mounted on the server as a system disk; Based on the image file of the hyper-convergence software, installing the hyper-convergence software in the image file on the system disk; Determine whether the server after installing the hyper-convergence software meets the preset conditions for building a hyper-convergence environment; If not, a prompt will be given for the unsatisfied items in the preset building conditions.
2. The method for constructing a hyper-convergence system according to claim 1, characterized in that: The system disk selection strategy includes preferentially selecting a disk with a high priority disk mounting mode as the system disk; The disk mounting methods include: directly connecting to the mainboard, mounting on the server through a first array card, and mounting on the server through a second array card, wherein the first array card is a serial connection small computer system interface card, and the second array card is an independent redundant disk array card; The priority of the disk mounting method directly connected to the mainboard is the first priority, the priority of the disk mounting method mounted on the server through the first array card is the second priority, and the priority of the disk mounting method mounted on the server through the second array card is the third priority; the second priority is lower than the first priority and higher than the third priority; According to the preset system disk selection strategy and the disk mounting architecture, selecting a disk from the disks mounted on the server as the system disk includes: Determine whether there is a disk mounted in the disk mounting architecture by a disk mounting method of a first priority; If there is a disk mounted by the first priority disk mounting method, select the disk as the system disk from the disks directly connected to the motherboard; If there is no disk mounted by the disk mounting method of the first priority, determining whether there is a disk mounted by the disk mounting method of the second priority in the disk mounting architecture; If there is a disk mounted by the second priority disk mounting method, a disk is selected as the system disk from the disks mounted on the server by the first array card; If there is no disk mounted by the disk mounting method of the second priority, determining whether there is a disk mounted by the disk mounting method of the third priority in the disk mounting architecture; If there is a disk mounted by the disk mounting method of the third priority, a disk is selected as the system disk from the disks mounted on the server by the second array card.
3. The method for constructing a hyper-convergence system according to claim 2, characterized in that: From the disks mounted on the server through the second array card, select the disks as system disks including: From the disks mounted on the server through the second array card, select the target disk as the system disk; Controlling the target disk to work in independent redundant disk array mode and serve as a system disk; Control the disks mounted on the second array card except the target system disk to work in a pass-through mode; From the disks mounted on the second array card and working in the pass-through mode, select disks as cache disks and data disks respectively.
4. The method for constructing a hyper-convergence system according to claim 3, characterized in that: The second array card has first-category disks and second-category disks with different reading and writing speed levels mounted thereon; The read and write speed of the first type of disk is higher than the read and write speed of the second type of disk; From the disks mounted on the server through the second array card, select the target disks as the system disks, including: If the number of first-type disks mounted on the second array card is not greater than 2, all first-type disks mounted on the second array card are used as target disks; If the number of first-category disks mounted on the second array card is greater than 2, selecting at most two disks from the first-category disks mounted on the second array card as target disks according to the principle of low capacity first priority; From the disks mounted on the second array card and working in the pass-through mode, selecting disks as cache disks and data disks respectively includes: If the disks mounted by the second array card and working in pass-through mode include first-type disks, the first-type disks mounted by the second array card and working in pass-through mode are used as cache disks, and the second-type disks mounted by the second array card and working in pass-through mode are used as data disks.
5. The method for constructing a hyper-convergence system according to claim 4, characterized in that: According to the principle of low capacity first, at most two disks are selected from the first type disks mounted on the second array card as target disks, including: If the number of first-category disks whose capacities are smaller than the preset threshold value among the first-category disks mounted on the second array card is 1, the first-category disk whose capacities are smaller than the preset threshold value is used as the target disk; If the number of first-class disks with capacities smaller than the preset threshold is greater than 1, the two first-class disks with the smallest capacities are selected as target disks; Controlling the target disk to work in independent redundant disk array mode and serving as a system disk includes: If the number of target disks is 1, control the target disk to work in independent redundant disk array mode, and construct the target disk in the first array mode as a system disk; If the number of target disks is 2, control the target disk to work in independent redundant disk array mode, and construct the target disk in the second array mode as a system disk; The first array mode refers to an independent redundant disk array mode of stripes without parity check, and the second array mode refers to a mirrored independent redundant disk array mode; From each first-category disk mounted on the second array card, two disks with the smallest capacity are selected as target disks.
6. The method for constructing a hyper-convergence system according to claim 1, characterized in that: Determine whether the server after installing the hyper-convergence software meets the preset conditions for building a hyper-convergence environment, including: Determine the specified configuration information of the server after installing the hyper-converged software; Based on the specified configuration information, determine whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment; Among them, the preset construction conditions include: the data packet is complete, the key services are in normal operation, the ratio of various disks meets the standards, the network specifications meet the standards, and the memory capacity meets the standards; the specified configuration information includes the data packet list, the operating status of key services, the ratio of various disks, the network specifications, and the memory capacity.
7. The method for constructing a hyper-convergence system according to any one of claims 1 to 6, characterized in that: Based on the image file of the hyper-convergence software, installing the hyper-convergence software in the image file on the system disk includes: Determine the specified version of the image file to be used; Get the image file of the specified version from the preset image library; Determine the boot file in the image file; Under the guidance of the boot file, the hyper-convergence software in the image file is installed on the system disk; Configure a configuration item of a specified type for the server.
8. A device for constructing a hyper-convergence system, characterized in that: include: A first determination module is used to determine the disk mounting architecture of the server of the hyper-converged system to be constructed; A first selection module, configured to select a disk as a system disk from the disks mounted on the server according to a preset system disk selection strategy and the disk mounting architecture; A first action module is used to install the hyper-convergence software in the image file on the system disk based on the image file of the hyper-convergence software; A first judgment module is used to judge whether the server after installing the hyper-convergence software meets the preset construction conditions of the hyper-convergence environment, and if not, trigger the first prompt module; The first prompt module is used to prompt unsatisfied items in the preset construction conditions.
9. A device for constructing a hyper-converged system, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for constructing a hyper-converged system as claimed in any one of claims 1 to 7 when executing the computer program.
10. 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 the processor, the steps of the method for constructing a hyper-converged system according to any one of claims 1 to 7 are implemented.
