Methods, apparatus, equipment, and storage media for expanding capacity in server systems

By introducing the data storage configuration page into the server system, users can dynamically manage hardware resources according to business needs, solving the problems of high energy consumption and low storage reliability caused by frequent switching of PCIe Switch, and achieving the effects of capacity expansion and energy consumption saving. .

CN118349190BActive Publication Date: 2024-09-20SHENZHEN JIAHUA ZHONGLI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410772368.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-20
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

When the existing server system is being expanded, the PCIe Switch frequently switches on and off, resulting in high energy consumption, shortened service life, and reduced data storage reliability.

Method used

By introducing the data storage configuration page in the server system, users can set the data storage amount for different time periods on specific dates according to actual needs, and dynamically turn on or off hardware resources, including the first NVMe hard drive, PCIe Switch and second NVMe hard drive. Power, optimize power management, extend hardware life and improve storage reliability.

Benefits of technology

It can expand capacity while saving energy consumption, reducing the frequent opening and closing of the PCIe Switch and the second NVMe hard drive power supply, extending the life of the hardware, and improving the reliability of data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349190B
    Figure CN118349190B
Patent Text Reader

Abstract

The present application relates to the technical field of server systems, and provides a method, device, equipment and storage medium for expanding capacity in a server system, wherein the method comprises: determining the size of the data storage capacity according to the data storage capacity input by a user, and when the data storage capacity is large, turning on the power of a first NVMe hard disk, the power of a PCIe Switch and the power of a second NVMe hard disk, transferring all the data of the first NVMe hard disk to the second NVMe hard disk to ensure the integrity of the stored data, and after all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, turning off the power of the first NVMe hard disk, and directly storing the data in the second NVMe hard disk without turning on the power of the first NVMe hard disk, thereby saving energy consumption. In addition, since the amount of data within a preset time period is large, directly storing the data in the second NVMe hard disk can eliminate the need to frequently turn off and on the power of the PCIe Switch and the second NVMe hard disk as in the prior art, thereby reducing damage to the PCIe Switch, thereby improving the reliability of data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of server systems, and in particular to a method, device, equipment and storage medium for expanding capacity in a server system. Background Art

[0002] In the field of server storage technology, the commonly used expansion method is to set up a PCIe Switch to connect multiple second NVMe hard disks to achieve the purpose of expansion, wherein the input end of the PCIe Switch is connected to the processing module, and the PCIe Switch includes multiple output ends, each of which is connected to a second NVMe hard disk. Due to the high energy consumption of the PCIe Switch, in order to save energy, Figure 1 As shown, the prior art also sets a first NVMe hard disk for temporarily storing data and connects it to the processing module. When the storage capacity of the first NVMe hard disk is greater than a preset threshold, the power supply of the PCIe Switch and the power supply of the second NVMe hard disk are turned on, so that the data of the first NVMe hard disk can be stored in the second NVMe hard disk, and when all the data of the first NVMe hard disk are transferred to the second NVMe hard disk, the power supply of the PCIe Switch and the power supply of the second NVMe hard disk are disconnected. However, although this method can save energy consumption to a certain extent, the frequent on and off of the PCIe Switch will cause the PCIe Switch to be not durable, shorten its life and be prone to failure, resulting in reduced reliability of data storage. Therefore, how to expand capacity, save energy consumption and improve storage reliability is a technical problem that urgently needs to be solved. Summary of the invention

[0003] In response to the above technical problems, the purpose of the present application is to provide a method, device, equipment and storage medium for expanding capacity in a server system, aiming to achieve both capacity expansion and energy saving and improved storage reliability.

[0004] In a first aspect, an embodiment of the present application provides a method for expanding capacity in a server system, comprising:

[0005] The server system includes a processing module, a first NVMe hard disk, a second NVMe hard disk and a PCIe Switch, wherein a first output end of the processing module is connected to an input end of the first NVMe hard disk, an output end of the first NVMe hard disk is connected to a first input end of the PCIe Switch, a second output end of the processing module is connected to a second output end of the PCIe Switch, and each output end of the PCIe Switch is connected to a second NVMe hard disk, and the method includes:

[0006] In response to a configuration request from a user, displaying a data storage capacity configuration page; wherein the data storage capacity configuration page includes a date option;

[0007] After detecting that the user selects the first target date, displaying a time period division option on the data storage configuration page; wherein the time period division option is used to divide a day into multiple time periods;

[0008] After detecting that the user divides a day into multiple time periods, a prompt message is displayed on the data storage capacity configuration page asking the user to enter the data storage capacity corresponding to each time period;

[0009] After detecting that the user inputs the data storage volume corresponding to each time period, the first target date, time period and data storage volume are correspondingly bound and stored;

[0010] After the first target date arrives, the data storage volume corresponding to each time period is read respectively to determine whether the data storage volume is greater than a preset first threshold;

[0011] If it is greater than the preset first threshold, the power of the first NVMe hard disk, the power of the PCIe Switch, and the power of the second NVMe hard disk are turned on within the time period corresponding to the first target date, and all the data of the first NVMe hard disk is transferred to the second NVMe hard disk. After all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, the power of the first NVMe hard disk is turned off, and the data is directly stored in the second NVMe hard disk;

[0012] If it is not greater than the preset first threshold, then within the time period corresponding to the target date, the power of the first NVMe hard disk is turned on, the power of the PCIe Switch and the power of the second NVMe hard disk are turned off, the data is stored in the first NVMe hard disk, and the data volume of the first NVMe hard disk is monitored to see whether it is greater than the preset second threshold;

[0013] If it is greater than the preset second threshold, the power supplies of the PCIe Switch and the second NVMe hard disk are turned on, and the data stored in the first NVMe hard disk is stored in the second NVMe hard disk. When all the data of the first NVMe hard disk is migrated to the second NVMe hard disk, the power supply of the PCIe Switch and the power supply of the second NVMe hard disk are turned off, the step of storing the data in the first NVMe hard disk and monitoring whether the data amount of the first NVMe hard disk is greater than the preset second threshold is re-executed.

[0014] Furthermore, after the first target date arrives, before the step of respectively reading the data storage amount corresponding to each time period and determining whether the data storage amount is greater than a preset first threshold, the method further includes:

[0015] Get the capacity of the first NVMe hard disk;

[0016] Calculate C*the capacity of the first NVMe hard disk to obtain the preset second threshold; wherein C is a preset first constant and is less than 1;

[0017] Obtain a preset second constant; wherein the second constant is greater than 1;

[0018] The preset second threshold is obtained by multiplying the preset second constant by the preset second threshold.

[0019] Furthermore, the method further comprises:

[0020] When the power of the first NVMe hard disk is turned on, the redundant data of the first NVMe hard disk is cleaned up regularly.

[0021] Furthermore, the method further comprises:

[0022] When the first NVMe hard disk is powered on, the first NVMe hard disk is scanned regularly to find and repair potential file system errors.

[0023] In the embodiment of the present application, after detecting that the user inputs the data storage amount corresponding to each time period, and binding and storing the time period and the data storage amount accordingly, the method further includes:

[0024] In response to a user-initiated request for quick configuration of data storage capacity for other dates, an electronic calendar is displayed on the data storage capacity configuration page; wherein the electronic calendar is used to select a second target date;

[0025] After receiving information confirming that all second target dates have been selected on the electronic calendar, the time periods of the second target dates are divided and the data storage amount of each time period is set in the same manner as the first target date.

[0026] Furthermore, before the step of displaying the data storage capacity configuration page in response to the user's configuration request, the method further includes:

[0027] Collect the cumulative data storage volume of the server system every day and every hour in the past n days; wherein the data storage volume of the server system at the beginning of each day is 0;

[0028] Draw a first line graph with time as the horizontal axis and data storage volume as the vertical axis according to the accumulated data storage volume of each hour; the line graph is used to reflect the change of the data storage volume of the server system within one day;

[0029] Each of the line graphs is sent to a user terminal for display.

[0030] Furthermore, before the step of displaying the data storage capacity configuration page in response to the user's configuration request, the method further includes:

[0031] Collect the data storage volume of the server system every day in the past n days;

[0032] Draw a second line graph with time as the horizontal axis and data storage volume as the vertical axis according to the data storage volume of each day in the past; the line graph is used to reflect the change of the data storage volume of the server system in the past n days;

[0033] The second line graph is sent to the user terminal for display.

[0034] In a second aspect, an embodiment of the present application provides a device for expanding capacity in a server system, the server system comprising a processing module, a first NVMe hard disk, a second NVMe hard disk and a PCIe Switch, the first output end of the processing module is connected to the input end of the first NVMe hard disk, the output end of the first NVMe hard disk is connected to the first input end of the PCIe Switch, the second output end of the processing module is connected to the second output end of the PCIe Switch, each output end of the PCIe Switch is connected to a second NVMe hard disk, and the device comprises:

[0035] A response module, configured to display a data storage capacity configuration page in response to a configuration request from a user; wherein the data storage capacity configuration page includes a date option;

[0036] A first display module is used to display a time period division option on the data storage configuration page after detecting that the user selects a first target date; wherein the time period division option is used to divide a day into multiple time periods;

[0037] The second display module is used to display a prompt message on the data storage capacity configuration page asking the user to enter the data storage capacity corresponding to each time period after detecting that the user divides a day into multiple time periods;

[0038] A binding module, configured to bind and store the first target date, time period and data storage volume accordingly after detecting that the user inputs the data storage volume corresponding to each time period;

[0039] A reading module, configured to read the data storage amount corresponding to each time period after the first target date arrives, and determine whether the data storage amount is greater than a preset first threshold;

[0040] A first control module is configured to, if the value is greater than a preset first threshold, turn on the power of the first NVMe hard disk, the power of the PCIe Switch, and the power of the second NVMe hard disk within a time period corresponding to the first target date, transfer all the data of the first NVMe hard disk to the second NVMe hard disk, and after all the data of the first NVMe hard disk are transferred to the second NVMe hard disk, turn off the power of the first NVMe hard disk and directly store the data in the second NVMe hard disk;

[0041] A second control module is configured to, if the amount of data is not greater than a preset first threshold, turn on the power of the first NVMe hard disk, turn off the power of the PCIe Switch and the power of the second NVMe hard disk within a time period corresponding to the target date, store the data in the first NVMe hard disk, and monitor whether the amount of data in the first NVMe hard disk is greater than a preset second threshold;

[0042] The third control module is used to turn on the power of the PCIe Switch and the second NVMe hard disk if it is greater than a preset second threshold, store the data of the first NVMe hard disk in the second NVMe hard disk, and when all the data of the first NVMe hard disk are migrated to the second NVMe hard disk, return to turn off the power of the PCIe Switch and the power of the second NVMe hard disk, store the data in the first NVMe hard disk and monitor whether the data amount of the first NVMe hard disk is greater than the preset second threshold and re-execute the step.

[0043] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method for expanding capacity in a server system as described in any one of the above items are implemented.

[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for expanding capacity in a server system as described in any one of the above items are implemented.

[0045] The embodiment of the present application provides a data storage configuration page, and the user can set the data storage capacity of different time periods within a specific date according to actual needs. This flexibility allows the user to dynamically turn on or off hardware resources according to the busy period of the business, which can not only save energy consumption, but also extend the service life of the hardware. Specifically, the size of the data storage capacity is determined according to the data storage capacity input by the user. When the data storage capacity is large, the power supply of the first NVMe hard disk, the power supply of the PCIe Switch, and the power supply of the second NVMe hard disk are turned on, and all the data of the first NVMe hard disk are transferred to the second NVMe hard disk to ensure the integrity of the stored data. After all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, the power supply of the first NVMe hard disk is turned off, and the data is directly stored in the second NVMe hard disk without turning on the power supply of the first NVMe hard disk, which can save energy consumption. In addition, due to the large amount of data in the preset time period, directly storing the data in the second NVMe hard disk can eliminate the need to frequently turn off and on the power supply of the PCIe Switch and the second NVMe hard disk like the prior art, thereby reducing damage to the PCIe Switch, thereby improving the reliability of data storage. When the amount of data is small, the power of the first NVMe hard disk is turned on, and the power of the PCIe Switch and the second NVMe hard disk is turned on. The data is temporarily stored in the first NVMe hard disk. When the amount of data on the first NVMe hard disk is greater than a preset second threshold, the power of the PCIe Switch and the second NVMe hard disk is turned on again, and the data of the first NVMe hard disk is stored in the second NVMe hard disk. Since only the power of the first NVMe hard disk is turned on when the amount of data on the first NVMe hard disk is less than the second threshold, the power of the PCIe Switch and the second NVMe hard disk is not turned on, thereby saving energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the implementation manner will be briefly introduced below. Obviously, the drawings described below are only some implementation manners of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 It is a schematic diagram of the structure of the capacity expansion part in the existing server system;

[0048] Figure 2 It is a flowchart of a method for expanding capacity in a server system provided in an embodiment of the present application;

[0049] Figure 3 It is another structural schematic diagram of the capacity expansion part of the existing server system;

[0050] Figure 4 It is a structural schematic diagram of a device for expanding capacity in a server system provided in an embodiment of the present application;

[0051] Figure 5 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "a", "an", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any module and all combinations of one or more associated listed items.

[0054] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0055] like Figure 1 , Figure 2As shown, an embodiment of the present application provides a method for expanding capacity in a server system, the server system includes a processing module, a first NVMe hard disk, a second NVMe hard disk and a PCIe Switch, the first output end of the processing module is connected to the input end of the first NVMe hard disk, the output end of the first NVMe hard disk is connected to the first input end of the PCIeSwitch, the second output end of the processing module is connected to the second output end of the PCIe Switch, and each output end of the PCIe Switch is connected to a second NVMe hard disk. The processing module includes a CPU.

[0056] The method comprises:

[0057] S1. In response to a configuration request from a user, display a data storage capacity configuration page; wherein the data storage capacity configuration page includes a date option.

[0058] In an embodiment of the present application, a user accesses a configuration page provided by a server system through a user terminal (such as a computer, mobile phone, tablet, etc.). This page can be a web interface or a specific part of an application. Specifically, on the user terminal, the user finds and clicks or triggers a "configure data storage capacity" button or link. This operation sends a configuration request to the server system, and the server system returns to display the configuration page after verifying that the request is passed. This data storage capacity configuration page includes a date option, and the user can use this option to select the specific date on which the data storage capacity needs to be configured.

[0059] S2. After detecting that the user selects the first target date, displaying a time period division option on the data storage configuration page; wherein the time period division option is used to divide a day into multiple time periods.

[0060] In an embodiment of the present application, the date selected by the user in the date option is the first target date. After the user selects the first target date, the data storage capacity configuration page will display the time period division option. The time period division option is a text input box. The user needs to enter the start and end time of each time period in the text input box. However, it should be noted that the end time of the previous time period is the start time of the next time period, so that a day can be divided into multiple consecutive time periods without missing some time periods and not performing the subsequent data storage capacity configuration.

[0061] S3. After detecting that the user divides a day into multiple time periods, a prompt message is displayed on the data storage capacity configuration page asking the user to input the data storage capacity corresponding to each time period.

[0062] In an embodiment of the present application, specifically, after detecting that the user divides a day into multiple time periods, one or more prompt messages are displayed on the data storage configuration page, informing the user that the corresponding data storage capacity needs to be set for each divided time period. These prompt messages can be presented to the user in the form of text, icons, buttons or other visual forms, so that the user can intuitively understand the operations to be performed. For example, a text may be displayed on the page: "Please set the data storage capacity for the following time periods:", and then the start and end time of each time period are listed, and an input box is provided next to each time period for the user to enter the data storage capacity. The data storage capacity is the amount of data that the user predicts that the server system needs to store during the time period. For example, the data storage capacity corresponding to 8:00-18:00 is A TB, and the data storage capacity from 18:00 to 8:00 is B TB, where A can be greater than B or less than B.

[0063] S4. After detecting that the user inputs the data storage volume corresponding to each time period, the first target date, time period and data storage volume are correspondingly bound and stored.

[0064] In the embodiment of the present application, for example, the first target date is 2024.4.29, the data storage capacity corresponding to 8:00-18:00 is A TB, and the data storage capacity corresponding to 18:00-8:00 is B TB, and these three are bound and stored. In addition, by repeating steps S2-S4, the user can divide time periods for multiple dates and set the corresponding time period data storage capacity, that is, the user can divide time periods for different dates and set the corresponding time period data storage capacity on the configuration page.

[0065] S5. After the first target date arrives, read the data storage amount corresponding to each time period respectively, and determine whether the data storage amount is greater than a preset first threshold.

[0066] In the embodiment of the present application, taking the above example, after 2024.4.29 arrives, the storage capacity corresponding to 8:00-18:00 will be read, that is, the data storage capacity corresponding to 8:00-18:00 will be read as A TB, and then the data storage capacity A TB is converted to the same unit as the first threshold. For example, if the unit of the first threshold is GB (Gigabytes), then A TB needs to be converted to GB. In order to simplify the calculation process and increase the calculation rate, the unit of the data storage capacity input by the user is limited to the same unit as the first threshold.

[0067] S6. If it is greater than the preset first threshold, turn on the power of the first NVMe hard disk, the power of the PCIe Switch, and the power of the second NVMe hard disk within the time period corresponding to the first target date, transfer all the data of the first NVMe hard disk to the second NVMe hard disk, and after all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, turn off the power of the first NVMe hard disk and directly store the data in the second NVMe hard disk.

[0068] In the embodiment of the present application, if it is greater than the preset first threshold, it means that the amount of data is large. At this time, the power supply of the first NVMe hard disk, the power supply of the PCIe Switch and the power supply of the second NVMe hard disk will be turned on, and all the data of the first NVMe hard disk will be transferred to the second NVMe hard disk to ensure the integrity of the stored data. After all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, the power supply of the first NVMe hard disk is turned off, and the data is directly stored in the second NVMe hard disk without turning on the power supply of the first NVMe hard disk, which can save energy consumption. In addition, due to the large amount of data in the preset time period, directly storing the data in the second NVMe hard disk can save energy consumption by not frequently turning off and on the power supply of the PCIe Switch and the power supply of the second NVMe hard disk like the prior art, thereby reducing damage to the PCIe Switch, thereby improving the reliability of data storage. In addition, in the process of transferring all the data of the first NVMe hard disk to the second NVMe hard disk, the new data is stored in the cache area of ​​the memory, and after turning off the power supply of the first NVMe hard disk, the data stored in the cache area is stored in the second NVMe hard disk. In addition, for the convenience of the following description, step S6 is used as mode 1 to control the operation of the server system.

[0069] S7. If it is not greater than the preset first threshold, then within the time period corresponding to the target date, turn on the power of the first NVMe hard disk, turn off the power of the PCIe Switch and the power of the second NVMe hard disk, store the data in the first NVMe hard disk, and monitor whether the data volume of the first NVMe hard disk is greater than the preset second threshold;

[0070] S8. If it is greater than a preset second threshold, turn on the power of the PCIe Switch and the second NVMe hard disk, store the data of the first NVMe hard disk in the second NVMe hard disk, and when all the data of the first NVMe hard disk is migrated to the second NVMe hard disk, return to turn off the power of the PCIe Switch and the power of the second NVMe hard disk, store the data in the first NVMe hard disk, and monitor whether the data amount of the first NVMe hard disk is greater than the preset second threshold and execute again.

[0071] In an embodiment of the present application, if it is not greater than the preset first threshold, it means that the amount of data is small, the power of the first NVMe hard disk is turned on, the power of the PCIe Switch and the power of the second NVMe hard disk are turned on, and the data is temporarily stored in the first NVMe hard disk, and when the amount of data on the first NVMe hard disk is greater than the preset second threshold, the power of the PCIe Switch and the power of the second NVMe hard disk are turned on again, and the data of the first NVMe hard disk is stored in the second NVMe hard disk. Since the amount of data on the first NVMe hard disk is less than the second threshold, only the power of the first NVMe hard disk is turned on, and the power of the PCIe Switch and the second NVMe hard disk is not turned on, so that energy consumption can be saved. In addition, in the process of transferring all the data of the first NVMe hard disk to the second NVMe hard disk, the new data is stored in the cache area of ​​the memory, and after turning off the power of the PCIeSwitch and the power of the second NVMe hard disk, the data stored in the cache area is stored in the first NVMe hard disk. In addition, for the convenience of the following description, step S7 is used as mode 2 to control the operation of the server system.

[0072] The embodiment of the present application provides a configuration page, and the user can set the data storage capacity for different time periods within a specific date according to actual needs. This flexibility allows the user to dynamically turn on or off hardware resources according to the busy periods of the business, which not only saves energy consumption, but also extends the service life of the hardware and improves the reliability of data storage.

[0073] In one embodiment, after the first target date arrives, before the step of respectively reading the data storage amount corresponding to each time period and determining whether the data storage amount is greater than a preset first threshold, the step further includes:

[0074] Get the capacity of the first NVMe hard disk;

[0075] Calculate C*the capacity of the first NVMe hard disk to obtain the preset second threshold; wherein C is a preset first constant and is less than 1;

[0076] Obtain a preset second constant; wherein the second constant is greater than 1;

[0077] The preset second threshold is obtained by multiplying the preset second constant by the preset second threshold.

[0078] In the embodiment of the present application, by setting the second threshold value equal to C*the capacity of the first NVMe hard disk, C is less than 1, the problem of abnormal data storage can be reduced, and by setting the first threshold value equal to the second constant D multiplied by the second threshold value, the first constant is determined according to the relationship between the life of the PCIe Switch and the power off frequency, and the value is obtained by statistical analysis, that is, if (data storage capacity / A*the capacity of the first NVMe hard disk)>the second constant, it is determined that the data storage capacity is large, and under this data storage capacity, mode 1 is used to control the operation of the server system, otherwise the data storage capacity is small, and mode 2 is used to control the operation of the server system. By setting it in this way, the embodiment of the present application can more reasonably control the opening and closing of the power supply of the first NVMe hard disk, the PCIe Switch, and the power supply of the second NVMe hard disk, thereby helping to achieve both capacity expansion and energy saving and improve storage reliability.

[0079] In one embodiment, the method further comprises:

[0080] When the power of the first NVMe hard disk is turned on, the redundant data of the first NVMe hard disk is cleaned up regularly.

[0081] In an embodiment of the present application, when the power of the first NVMe hard disk is turned on, the time for the first NVMe hard disk to reach the second threshold can be slowed down by regularly cleaning up the redundant data of the first NVMe hard disk, thereby reducing the number of times the power of the PCIeSwitch and the second NVMe hard disk is turned on, saving energy consumption.

[0082] In one embodiment, the method further comprises:

[0083] When the first NVMe hard disk is powered on, the first NVMe hard disk is scanned regularly to find and repair potential file system errors.

[0084] In the embodiment of the present application, regularly scanning the first NVMe hard disk can timely discover and repair potential file system errors, which helps to ensure the integrity and accuracy of the data stored on the hard disk, thereby improving the reliability of the data. In addition, ensuring that the first NVMe hard disk is in a healthy state can ensure that the first NVMe hard disk can play a role in the embodiment of the present application, thereby helping to ensure energy saving and data storage reliability.

[0085] In one embodiment, after detecting that the user inputs the data storage amount corresponding to each time period, and binding and storing the time period and the data storage amount accordingly, the method further includes:

[0086] In response to a user-initiated request for quick configuration of data storage capacity for other dates, an electronic calendar is displayed on the data storage capacity configuration page; wherein the electronic calendar is used to select a second target date;

[0087] After receiving information confirming that all second target dates have been selected on the electronic calendar, the time periods of the second target dates are divided and the data storage amount of each time period is set in the same manner as the first target date.

[0088] In the embodiment of the present application, specifically, after detecting that the user inputs the data storage volume corresponding to each time period, and after the time period and the data storage volume are bound and stored accordingly, the data storage volume configuration page will display an additional prompt message, asking the user whether he wants to quickly configure the data storage volume of other dates. This prompt is usually presented in the form of a dialog box and a button to facilitate the user to understand the prompt information and make choices. If the user chooses to quickly configure other dates, the data storage volume configuration page will immediately switch to the electronic calendar view. This electronic calendar allows the user to select other dates that need to be configured, that is, the second target date. The user can select multiple second target dates at a time, and the user confirms the selection of all second target dates by clicking the "Confirm" or "Save" button. After receiving the information confirmed by the user, the selected second target date is automatically configured in a copy-style quick manner in the same way as the time period and data storage capacity are set for the first target date. For example, if the user selects two second target dates, 2024.4.30 and 2024.05.06, 2024.4.30 is automatically set to: 8:00-18:00 The corresponding data storage capacity is A TB, and the data storage capacity of 18:00-8:00 is B TB, and 2024.05.06 is automatically set to 8:00-18:00 The corresponding data storage capacity is A TB, and the data storage capacity of 18:00-8:00 is B TB. The embodiment of the present application can be easily extended to the quick configuration of multiple dates, greatly improving the user's operating efficiency and experience.

[0089] In one embodiment, before the step of displaying the data storage capacity configuration page in response to the user's configuration request, the method further includes:

[0090] Collect the cumulative data storage volume of the server system every day and every hour in the past n days; wherein the data storage volume of the server system at the beginning of each day is 0;

[0091] Draw a first line graph with time as the horizontal axis and data storage volume as the vertical axis according to the accumulated data storage volume of each hour; the line graph is used to reflect the change of the data storage volume of the server system within one day;

[0092] Each of the line graphs is sent to a user terminal for display.

[0093] In the embodiment of the present application, specifically, the cumulative data storage capacity of the server system every day and every hour in the past n days is first collected, such as collecting the cumulative data storage capacity of every day and every hour in the past week. The cumulative data storage capacity of each hour, for example, the data storage capacity at 00:00 is 0, the cumulative data storage capacity at 01:00 is 0.1TB, and the cumulative data storage capacity at 02:00 is 0.23TB, that is, the data storage capacity increased by 0.13TB between 02:00 and 01:00. Then, a first line graph is drawn with time as the horizontal axis and data storage volume as the vertical axis according to the cumulative data storage volume of each hour, and each of the line graphs is sent to the user terminal for display, that is, on the user terminal, the user can see the line graph of each day in the past n days. These line graphs can help users understand the changing trends and rules of the data storage volume of the server system in each time period. Users can formulate a more reasonable data storage volume configuration plan based on this information and their own business needs, which helps to more reasonably control the power supply of the first NVMe hard drive, the power supply of the PCIe Switch, and the power supply of the second NVMe hard drive, thereby helping to achieve both capacity expansion and energy saving and improved storage reliability.

[0094] In one embodiment, before the step of displaying the data storage capacity configuration page in response to the user's configuration request, the method further includes:

[0095] Collect the data storage volume of the server system every day in the past n days;

[0096] Draw a second line graph with time as the horizontal axis and data storage volume as the vertical axis according to the data storage volume of each day in the past; the line graph is used to reflect the change of the data storage volume of the server system in the past n days;

[0097] The second line graph is sent to the user terminal for display.

[0098] In the embodiment of the present application, the data storage capacity of the server system for each day in the past n days is collected, and then a second line graph with time as the horizontal axis and data storage capacity as the vertical axis is drawn according to the data storage capacity of each day in the past, and the second line graph is sent to the user terminal for display. The user can understand the growth trend and fluctuation of the data storage capacity of each day by observing the trend of the line graph. The user can formulate a more reasonable data storage capacity configuration plan based on this information and in combination with their own business needs, so as to more reasonably control the power supply of the first NVMe hard disk, the power supply of the PCIeSwitch, and the power supply of the second NVMe hard disk, thereby helping to expand capacity, save energy consumption, and improve storage reliability.

[0099] In one embodiment, the first NVMe hard disk may be multiple, and the number of the PCIe Switch may be multiple, such as Figure 3 shown.

[0100] Embodiment 2:

[0101] like Figure 4 As shown, an embodiment of the present application provides a device for expanding capacity in a server system, the server system comprising a processing module, a first NVMe hard disk, and a second NVMe hard disk, the first output end of the processing module is connected to the input end of the first NVMe hard disk, the output end of the first NVMe hard disk is connected to the first input end of the PCIe Switch, the second output end of the processing module is connected to the second output end of the PCIe Switch, each output end of the PCIe Switch is connected to a second NVMe hard disk, and the device comprises:

[0102] A response module 1 is used to respond to a configuration request from a user and display a data storage capacity configuration page; wherein the data storage capacity configuration page includes a date option;

[0103] A first display module 2 is used to display a time period division option on the data storage configuration page after detecting that the user selects a first target date; wherein the time period division option is used to divide a day into multiple time periods;

[0104] The second display module 3 is used to display a prompt message on the data storage configuration page asking the user to input the data storage capacity corresponding to each time period after detecting that the user divides a day into multiple time periods;

[0105] Binding module 4, for binding and storing the first target date, time period and data storage volume correspondingly after detecting that the user inputs the data storage volume corresponding to each time period;

[0106] A reading module 5, configured to read the data storage volume corresponding to each time period after the first target date arrives, and determine whether the data storage volume is greater than a preset first threshold;

[0107] The first control module 6 is configured to, if the value is greater than a preset first threshold, turn on the power of the first NVMe hard disk, the power of the PCIe Switch, and the power of the second NVMe hard disk within a time period corresponding to the first target date, transfer all the data of the first NVMe hard disk to the second NVMe hard disk, and after all the data of the first NVMe hard disk are transferred to the second NVMe hard disk, turn off the power of the first NVMe hard disk and directly store the data in the second NVMe hard disk;

[0108] The second control module 7 is configured to, if the amount of data is not greater than a preset first threshold, turn on the power of the first NVMe hard disk, turn off the power of the PCIe Switch and the power of the second NVMe hard disk within a time period corresponding to the target date, store the data in the first NVMe hard disk, and monitor whether the amount of data in the first NVMe hard disk is greater than a preset second threshold;

[0109] The third control module 8 is used to turn on the power of the PCIe Switch and the second NVMe hard disk if it is greater than a preset second threshold, store the data of the first NVMe hard disk in the second NVMe hard disk, and when all the data of the first NVMe hard disk are migrated to the second NVMe hard disk, return to turn off the power of the PCIe Switch and the power of the second NVMe hard disk, store the data in the first NVMe hard disk and monitor whether the data amount of the first NVMe hard disk is greater than the preset second threshold and re-execute the step.

[0110] In one embodiment, after the first target date arrives, the data storage amount corresponding to each time period is read respectively, and before determining whether the data storage amount is greater than a preset first threshold, the method further includes:

[0111] Get the capacity of the first NVMe hard disk;

[0112] Calculate C*the capacity of the first NVMe hard disk to obtain the preset second threshold; wherein C is a preset first constant and is less than 1;

[0113] Obtain a preset second constant; wherein the second constant is greater than 1;

[0114] The preset second threshold is obtained by multiplying the preset second constant by the preset second threshold.

[0115] In one embodiment, the device further comprises:

[0116] A cleaning module is used to regularly clean up redundant data of the first NVMe hard disk when the power of the first NVMe hard disk is turned on.

[0117] In one embodiment, the device further comprises:

[0118] The scanning and repairing module is used to periodically scan the first NVMe hard disk when the power of the first NVMe hard disk is turned on to find and repair potential file system errors.

[0119] In one embodiment, the device further comprises:

[0120] A second response module is used to respond to a user-initiated request for rapid configuration of data storage capacity for other dates, and to display an electronic calendar on the data storage capacity configuration page; wherein the electronic calendar is used to select a second target date;

[0121] The division setting module is used to divide the time periods of the second target date and set the data storage volume of each time period in the same way as the first target date after receiving the information that the user confirms that all the second target dates have been selected on the electronic calendar.

[0122] In one embodiment, the device further comprises:

[0123] The first collection module is used to collect the cumulative data storage volume of the server system every day and every hour in the past n days; wherein the data storage volume of the server system at the beginning of each day is 0;

[0124] A first drawing module is used to draw a first line graph with time as the horizontal axis and data storage volume as the vertical axis according to the accumulated data storage volume of each hour; the line graph is used to reflect the change of the data storage volume of the server system within one day;

[0125] The first sending module is used to send each of the line graphs to a user terminal for display.

[0126] In one embodiment, the device further comprises:

[0127] The second collection module is used to collect the data storage volume of the server system every day in the past n days;

[0128] The second drawing module is used to draw a second line graph with time as the horizontal axis and the data storage amount as the vertical axis according to the data storage amount of each day in the past; the line graph is used to reflect the change of the data storage amount of the server system in the past n days;

[0129] The first sending module is used to send the second line chart to the user terminal for display.

[0130] Embodiment three:

[0131] Reference Figure 5 The present application also provides a computer device, the internal structure of which can be as follows: Figure 5As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as a method for expanding capacity in a server system. The network interface of the computer device is used to communicate with an external terminal through a network connection. Furthermore, the above-mentioned computer device can also be provided with an input device and a display screen, etc.When the computer program is executed by a processor, a method for expanding capacity in a server system is implemented. The server system includes a processing module, a first NVMe hard disk, and a second NVMe hard disk. The first output end of the processing module is connected to the input end of the first NVMe hard disk, the output end of the first NVMe hard disk is connected to the first input end of the PCIe Switch, the second output end of the processing module is connected to the second output end of the PCIe Switch, and the PCIe Each output end of the switch is connected to a second NVMe hard disk, and the method includes: in response to a configuration request from a user, displaying a data storage capacity configuration page; wherein the data storage capacity configuration page includes a date option; after detecting that the user selects a first target date, displaying a time period division option on the data storage capacity configuration page; wherein the time period division option is used to divide a day into multiple time periods; after detecting that the user divides a day into multiple time periods, displaying a prompt message on the data storage capacity configuration page asking the user to enter the data storage capacity corresponding to each time period; after detecting that the user enters the data storage capacity corresponding to each time period, the first target date, time period and data storage capacity are bound and stored accordingly; after the first target date is reached, the data storage capacity corresponding to each time period is read respectively to determine whether the data storage capacity is greater than a preset first threshold; if it is greater than the preset first threshold, turning on the power supply, PCIe 400, and 400 of the first NVMe hard disk in the time period corresponding to the first target date. The power supply of the switch and the power supply of the second NVMe hard disk are turned on, and all the data of the first NVMe hard disk is transferred to the second NVMe hard disk. After all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, the power supply of the first NVMe hard disk is turned off, and the data is directly stored in the second NVMe hard disk; if it is not greater than the preset first threshold, then within the time period corresponding to the target date, the power supply of the first NVMe hard disk is turned on, the power supply of the PCIe switch and the power supply of the second NVMe hard disk are turned off, the data is stored in the first NVMe hard disk and the data volume of the first NVMe hard disk is monitored to be greater than the preset second threshold; if it is greater than the preset second threshold, the power supply of the PCIe switch and the second NVMe hard disk is turned on, and the data of the first NVMe hard disk is stored in the second NVMe hard disk, and when all the data of the first NVMe hard disk is migrated to the second NVMe hard disk, the step of turning off the power supply of the PCIe switch and the power supply of the second NVMe hard disk, storing the data in the first NVMe hard disk and monitoring whether the data volume of the first NVMe hard disk is greater than the preset second threshold is re-executed. Those skilled in the art can understand that. Figure 5The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0132] Embodiment 4:

[0133] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method for expanding capacity in a server system is implemented. The server system includes a processing module, a first NVMe hard disk, and a second NVMe hard disk. The first output end of the processing module is connected to the input end of the first NVMe hard disk, the output end of the first NVMe hard disk is connected to the first input end of the PCIe Switch, the second output end of the processing module is connected to the second output end of the PCIe Switch, and the PCIe Each output end of the switch is connected to a second NVMe hard disk, and the method includes: in response to a configuration request from a user, displaying a data storage capacity configuration page; wherein the data storage capacity configuration page includes a date option; after detecting that the user selects a first target date, displaying a time period division option on the data storage capacity configuration page; wherein the time period division option is used to divide a day into multiple time periods; after detecting that the user divides a day into multiple time periods, displaying a prompt message on the data storage capacity configuration page asking the user to enter the data storage capacity corresponding to each time period; after detecting that the user enters the data storage capacity corresponding to each time period, the first target date, time period and data storage capacity are bound and stored accordingly; after the first target date is reached, the data storage capacity corresponding to each time period is read respectively to determine whether the data storage capacity is greater than a preset first threshold; if it is greater than the preset first threshold, turning on the power supply, PCIe 400, and 400 of the first NVMe hard disk in the time period corresponding to the first target date. The power supply of the PCIe Switch and the power supply of the second NVMe hard disk are turned on to transfer all the data of the first NVMe hard disk to the second NVMe hard disk. After all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, the power supply of the first NVMe hard disk is turned off to directly store the data in the second NVMe hard disk. If it is not greater than the preset first threshold, then within the time period corresponding to the target date, the power supply of the first NVMe hard disk is turned on, the power supply of the PCIe Switch and the power supply of the second NVMe hard disk are turned off, the data is stored in the first NVMe hard disk, and the data amount of the first NVMe hard disk is monitored to be greater than the preset second threshold. If it is greater than the preset second threshold, the power supply of the PCIe Switch and the second NVMe hard disk is turned on to store the data of the first NVMe hard disk in the second NVMe hard disk, and when all the data of the first NVMe hard disk is migrated to the second NVMe hard disk, the step of turning off the power supply of the PCIe Switch and the power supply of the second NVMe hard disk, storing the data in the first NVMe hard disk, and monitoring whether the data amount of the first NVMe hard disk is greater than the preset second threshold is executed again.

[0134] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0135] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0136] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for expanding capacity in a server system, the server system comprising a processing module, a first NVMe hard disk, a second NVMe hard disk and a PCIe Switch, wherein a first output end of the processing module is connected to an input end of the first NVMe hard disk, an output end of the first NVMe hard disk is connected to a first input end of the PCIe Switch, a second output end of the processing module is connected to a second output end of the PCIe Switch, and each output end of the PCIe Switch is connected to a second NVMe hard disk, characterized in that: The method comprises: In response to a configuration request from a user, displaying a data storage capacity configuration page; wherein the data storage capacity configuration page includes a date option; After detecting that the user selects the first target date, displaying a time period division option on the data storage configuration page; wherein the time period division option is used to divide a day into multiple time periods; After detecting that the user divides a day into multiple time periods, a prompt message is displayed on the data storage capacity configuration page asking the user to enter the data storage capacity corresponding to each time period; After detecting that the user inputs the data storage volume corresponding to each time period, the first target date, time period and data storage volume are correspondingly bound and stored; After the first target date arrives, the data storage volume corresponding to each time period is read respectively to determine whether the data storage volume is greater than a preset first threshold; If it is greater than the preset first threshold, the power of the first NVMe hard disk, the power of the PCIe Switch, and the power of the second NVMe hard disk are turned on within the time period corresponding to the first target date, and all the data of the first NVMe hard disk is transferred to the second NVMe hard disk. After all the data of the first NVMe hard disk is transferred to the second NVMe hard disk, the power of the first NVMe hard disk is turned off, and the data is directly stored in the second NVMe hard disk; If it is not greater than the preset first threshold, then within the time period corresponding to the target date, the power of the first NVMe hard disk is turned on, the power of the PCIe Switch and the power of the second NVMe hard disk are turned off, the data is stored in the first NVMe hard disk, and the data volume of the first NVMe hard disk is monitored to see whether it is greater than the preset second threshold; If it is greater than the preset second threshold, the power supplies of the PCIe Switch and the second NVMe hard disk are turned on, and the data of the first NVMe hard disk is stored in the second NVMe hard disk. When all the data of the first NVMe hard disk is migrated to the second NVMe hard disk, the power supply of the PCIe Switch and the power supply of the second NVMe hard disk are turned off, the data is stored in the first NVMe hard disk, and the step of monitoring whether the data amount of the first NVMe hard disk is greater than the preset second threshold is performed again; Before the step of respectively reading the data storage amount corresponding to each time period after the first target date is reached and determining whether the data storage amount is greater than a preset first threshold, the method further includes: Get the capacity of the first NVMe hard disk; Calculate C*the capacity of the first NVMe hard disk to obtain the preset second threshold; wherein C is a preset first constant and is less than 1; Obtain a preset second constant; wherein the second constant is greater than 1; Multiplying the preset second constant by the preset second threshold to obtain the preset first threshold; After detecting that the user inputs the data storage amount corresponding to each time period, and then binding and storing the time period and the data storage amount accordingly, the method further includes: In response to a user-initiated request for quick configuration of data storage capacity for other dates, an electronic calendar is displayed on the data storage capacity configuration page; wherein the electronic calendar is used to select a second target date; After receiving information confirming that all second target dates have been selected on the electronic calendar, the time periods of the second target dates are divided and the data storage amount of each time period is set in the same manner as the first target date.

2. The method for expanding capacity in a server system according to claim 1, characterized in that: The method further comprises: When the power of the first NVMe hard disk is turned on, the redundant data of the first NVMe hard disk is cleaned up regularly.

3. The method for expanding capacity in a server system according to claim 1, characterized in that: The method further comprises: When the first NVMe hard disk is powered on, the first NVMe hard disk is scanned regularly to find and repair potential file system errors.

4. The method for expanding capacity in a server system according to claim 1, characterized in that: Before the step of displaying the data storage capacity configuration page in response to the user's configuration request, the method further includes: Collect the cumulative data storage volume of the server system every day and every hour in the past n days; wherein the data storage volume of the server system at the beginning of each day is 0; Draw a first line graph with time as the horizontal axis and data storage volume as the vertical axis according to the accumulated data storage volume of each hour; the line graph is used to reflect the change of the data storage volume of the server system within one day; Each of the line graphs is sent to a user terminal for display.

5. The method for expanding capacity in a server system according to claim 1, characterized in that: Before the step of displaying the data storage capacity configuration page in response to the user's configuration request, the method further includes: Collect the data storage volume of the server system every day in the past n days; Draw a second line graph with time as the horizontal axis and data storage volume as the vertical axis according to the data storage volume of each day in the past; the line graph is used to reflect the change of the data storage volume of the server system in the past n days; The second line graph is sent to the user terminal for display.

6. A device for expanding capacity in a server system, the server system comprising a processing module, a first NVMe hard disk, a second NVMe hard disk and a PCIe Switch, wherein a first output end of the processing module is connected to an input end of the first NVMe hard disk, an output end of the first NVMe hard disk is connected to a first input end of the PCIe Switch, a second output end of the processing module is connected to a second output end of the PCIe Switch, and each output end of the PCIe Switch is connected to a second NVMe hard disk, characterized in that: The device comprises: A response module, configured to display a data storage capacity configuration page in response to a configuration request from a user; wherein the data storage capacity configuration page includes a date option; A first display module is used to display a time period division option on the data storage configuration page after detecting that the user selects a first target date; wherein the time period division option is used to divide a day into multiple time periods; The second display module is used to display a prompt message on the data storage capacity configuration page asking the user to enter the data storage capacity corresponding to each time period after detecting that the user divides a day into multiple time periods; A binding module, configured to bind and store the first target date, time period and data storage volume accordingly after detecting that the user inputs the data storage volume corresponding to each time period; A reading module, configured to read the data storage amount corresponding to each time period after the first target date arrives, and determine whether the data storage amount is greater than a preset first threshold; A first control module is configured to, if the value is greater than a preset first threshold, turn on the power of the first NVMe hard disk, the power of the PCIe Switch, and the power of the second NVMe hard disk within a time period corresponding to the first target date, transfer all the data of the first NVMe hard disk to the second NVMe hard disk, and after all the data of the first NVMe hard disk are transferred to the second NVMe hard disk, turn off the power of the first NVMe hard disk and directly store the data in the second NVMe hard disk; A second control module is configured to, if the amount of data is not greater than a preset first threshold, turn on the power of the first NVMe hard disk, turn off the power of the PCIe Switch and the power of the second NVMe hard disk within a time period corresponding to the target date, store the data in the first NVMe hard disk, and monitor whether the amount of data in the first NVMe hard disk is greater than a preset second threshold; A third control module is configured to, if the amount of data is greater than a preset second threshold, turn on the power of the PCIe Switch and the second NVMe hard disk, store the data of the first NVMe hard disk in the second NVMe hard disk, and when all the data of the first NVMe hard disk are migrated to the second NVMe hard disk, return to turn off the power of the PCIe Switch and the power of the second NVMe hard disk, store the data in the first NVMe hard disk, and monitor whether the amount of data of the first NVMe hard disk is greater than the preset second threshold and execute again; After the first target date arrives, the step of reading the data storage amount corresponding to each time period and determining whether the data storage amount is greater than a preset first threshold value further includes: Get the capacity of the first NVMe hard disk; Calculate C*the capacity of the first NVMe hard disk to obtain the preset second threshold; wherein C is a preset first constant and is less than 1; Obtain a preset second constant; wherein the second constant is greater than 1; Multiplying the preset second constant by the preset second threshold to obtain the preset first threshold; The device also includes: A second response module is used to respond to a user-initiated request for rapid configuration of data storage capacity for other dates, and to display an electronic calendar on the data storage capacity configuration page; wherein the electronic calendar is used to select a second target date; The division setting module is used to divide the time periods of the second target date and set the data storage volume of each time period in the same way as the first target date after receiving the information that the user confirms that all the second target dates have been selected on the electronic calendar.

7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method for expanding capacity in a server system according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for expanding capacity in a server system according to any one of claims 1 to 5 are implemented.