Storage device upgrading method and device, electronic device and storage medium
By automatically identifying and matching the registration information and upgrade packages of storage devices, combined with business load monitoring and exception handling, efficient and secure upgrades of data center storage devices are achieved, and the problems of low efficiency and security risks in the upgrade process in the existing technology are solved. .
Patent Information
- Application Number
- CN202411295462.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-01-07
AI Technical Summary
There are problems such as inefficiency, security risks and high labor costs during the upgrade of existing data center storage equipment, especially due to the risks brought by relying on manual operations and external personnel entering the data center.
By automatically identifying the registration information and types of the target storage device, matching the upgrade package uploaded by users, and upgrading when the business load is below the threshold, ensuring the automation, intelligence and security of the upgrade process, including real-time monitoring and exception handling mechanisms.
It improves the accuracy and efficiency of storage device upgrades, reduces the risk of manual operation errors and equipment failures, improves the operation and maintenance efficiency and resource utilization of data centers, and is suitable for storage devices of various manufacturers and models.
Smart Images

Figure CN119271236A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of device upgrades, and in particular to a storage device upgrade method, device, electronic device, and storage medium. Background Art
[0002] With the rapid development of information technology, the storage demand of data centers continues to increase, and various types and models of storage devices are emerging in an endless stream. In order to meet the enterprise's requirements for efficient, secure and reliable data storage, regular upgrades of storage devices have become particularly important.
[0003] However, current data center equipment upgrades usually rely on on-site upgrades by after-sales personnel from equipment manufacturers, which not only requires multiple communications and coordination between the data center and the equipment manufacturer to determine the appropriate upgrade time, but also may lead to uncertainty in the upgrade time due to uncontrollable factors such as traffic and weather. In addition, on-site operations increase labor costs and security risks, and outsiders entering the data center may cause data leakage or equipment damage. In addition, although remote support or recorded operation videos reduce the need for on-site operations, they still require data center maintenance personnel to have high operating skills, and there may be a risk of misoperation during the operation process, affecting the normal operation of the equipment. Therefore, there is an urgent need for a storage device upgrade management solution to improve the automation, intelligence and security of the upgrade process, thereby improving the overall operation and maintenance efficiency and resource utilization of the data center. Summary of the invention
[0004] The embodiments of the present disclosure provide a storage device upgrade method, apparatus, electronic device and storage medium, aiming to solve the problems existing in the above-mentioned background technology.
[0005] In order to solve the above technical problems, the present disclosure is implemented as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides a storage device upgrade method, the method comprising:
[0007] Connect the target storage device to be upgraded to the server cluster;
[0008] Identify the target storage device and define registration information of the target storage device;
[0009] Determining a target device type of the target storage device according to the registration information of the target storage device;
[0010] Obtain the upgrade package uploaded by the user, the upgrade package including version information and a list of applicable devices;
[0011] Matching the target storage device with the upgrade package based on the registration information of the target storage device and the target device type;
[0012] In the case that the target storage device matches the upgrade package successfully, the target storage device is upgraded using the upgrade package.
[0013] Optionally, before upgrading the target storage device using the upgrade package, the method further includes:
[0014] Real-time monitoring of the business load of each storage device in the server cluster;
[0015] According to the business load of each storage device, the business load of the server cluster is obtained;
[0016] When it is detected that the service load is lower than a preset load threshold, the service data of the target storage device is migrated to other storage devices, and the service of the target storage device is suspended;
[0017] When it is detected that the migration of the service data of the target storage device is completed, the target storage device is upgraded using the upgrade package.
[0018] Optionally, the registration information of the target storage device includes a verification user name and a verification password; before upgrading the target storage device using the upgrade package, the method further includes:
[0019] Get the username and password entered by the user;
[0020] Verifying the user name and password input by the user based on the verification user name and verification password in the registration information of the target storage device;
[0021] When the user name and password input by the user are successfully verified, the target storage device is upgraded using the upgrade package.
[0022] Optionally, determining the target device type of the target storage device according to the registration information of the target storage device includes:
[0023] According to the registration information of the target storage device, a preset device type database is retrieved to determine the target device type of the target storage device, wherein the registration information of the target storage device includes manufacturer information, model number and serial number;
[0024] The matching the target storage device with the upgrade package based on the registration information of the target storage device and the target device type includes:
[0025] Traversing the applicable device list of the upgrade package, and determining whether the target device type is included in the applicable device list;
[0026] In a case where the target device type is included in the applicable device list, performing integrity check on the upgrade package;
[0027] If the upgrade package passes the integrity check, checking the version of the upgrade package to determine whether the version of the upgrade package is compatible with the target device type;
[0028] In the case that the version of the upgrade package is compatible with the target device type, it is determined that the target storage device matches the upgrade package successfully.
[0029] Optionally, after upgrading the target storage device using the upgrade package, the method further includes:
[0030] Monitor the upgrade status of the target storage device in real time, and feed back the upgrade status to the management interface;
[0031] In the case where it is detected that the upgrade of the target storage device is completed, checking the device status of the target storage device;
[0032] When the device status of the target storage device is normal, the service data migrated from the target storage device to the other storage device is transmitted to the target storage device.
[0033] Optionally, after upgrading the target storage device using the upgrade package, the method further includes:
[0034] Monitoring the upgrade status of the target storage device in real time;
[0035] When an upgrade abnormality of the target storage device is detected, the target storage device is repaired accordingly according to a preset repair rule;
[0036] Rolling back the target storage device to a version before the upgrade when the target storage device fails to be repaired or the upgrade status returns to failure;
[0037] The service data of the target storage device before the upgrade is acquired, and the service data of the target storage device before the upgrade is reloaded to the target storage device.
[0038] Optionally, the identifying the target storage device and defining registration information of the target storage device includes:
[0039] When the target storage device is connected to the server cluster, obtaining basic attribute information of the target storage device;
[0040] Generate one-to-one registration information of the target storage device according to the basic attribute information of the target storage device, and store the registration information in the device registration library of the server cluster, wherein the registration information includes manufacturer information, model and serial number;
[0041] According to the registration information, a unique identifier of the target storage device in the server cluster is allocated to the target storage device, and the unique identifier is used to determine the target storage device from multiple storage devices in the server cluster.
[0042] In a second aspect, an embodiment of the present disclosure provides a hard disk management device, the device comprising:
[0043] An access module, used to connect the target storage device to be upgraded to the server cluster;
[0044] An identification module, used for identifying the target storage device and defining registration information of the target storage device;
[0045] A device type determination module, used to determine the target device type of the target storage device according to the registration information of the target storage device;
[0046] An upgrade package acquisition module is used to acquire the upgrade package uploaded by the user, wherein the upgrade package includes version information and a list of applicable devices;
[0047] A matching module, configured to match the target storage device with the upgrade package based on the registration information of the target storage device and the target device type;
[0048] The upgrade module is used to upgrade the target storage device using the upgrade package when the target storage device successfully matches the upgrade package.
[0049] Optionally, the device further comprises:
[0050] A load monitoring module, used to monitor the service load of each storage device in the server cluster in real time;
[0051] A service load determination module, used to obtain the service load of the server cluster according to the service load of each storage device;
[0052] A migration module, configured to migrate the service data of the target storage device to other storage devices and suspend the service of the target storage device when it is detected that the service load is lower than a preset load threshold;
[0053] The first conditional upgrade module is used to upgrade the target storage device using the upgrade package when it is detected that the migration of the service data of the target storage device is completed.
[0054] Optionally, the registration information of the target storage device includes a verification user name and a verification password; the apparatus further includes:
[0055] Username and password acquisition module, used to obtain the username and password entered by the user;
[0056] A user identity authentication module, used to verify the user name and password input by the user based on the verification user name and verification password in the registration information of the target storage device;
[0057] The second conditional upgrade module is used to upgrade the target storage device using the upgrade package if the username and password input by the user are successfully verified.
[0058] Optionally, the device type determination module includes:
[0059] A retrieval submodule, configured to retrieve a preset device type database according to the registration information of the target storage device, and determine the target device type of the target storage device, wherein the registration information of the target storage device includes manufacturer information, model number and serial number;
[0060] Optionally, the matching module includes:
[0061] A traversal submodule, used to traverse the applicable device list of the upgrade package and determine whether the target device type is included in the applicable device list;
[0062] an integrity check submodule, configured to perform integrity check on the upgrade package when the target device type is included in the applicable device list;
[0063] A compatibility determination submodule, configured to check the version of the upgrade package to determine whether the version of the upgrade package is compatible with the target device type when the upgrade package passes the integrity check;
[0064] The matching success submodule is used to determine that the target storage device matches the upgrade package successfully when the version of the upgrade package is compatible with the target device type.
[0065] Optionally, the device further comprises:
[0066] A first upgrade status monitoring module, used to monitor the upgrade status of the target storage device in real time and feed back the upgrade status to the management interface;
[0067] A device status checking module, configured to check the device status of the target storage device when it is detected that the upgrade of the target storage device is completed;
[0068] The switchback module is used to transfer the business data migrated from the target storage device to the other storage device to the target storage device when the device status of the target storage device is normal.
[0069] Optionally, the device further comprises:
[0070] A second upgrade status monitoring module, used to monitor the upgrade status of the target storage device in real time;
[0071] A repair module, configured to repair the target storage device accordingly according to a preset repair rule when an upgrade abnormality of the target storage device is detected;
[0072] A version rollback module, used for rolling back the target storage device to a version before the upgrade if the target storage device fails to be repaired or the upgrade status returns to fail;
[0073] The business data rollback module is used to obtain the business data of the target storage device before the upgrade, and reload the business data of the target storage device before the upgrade to the target storage device.
[0074] Optionally, the identification module includes:
[0075] A basic attribute information identification submodule, used to obtain basic attribute information of the target storage device when the target storage device is connected to the server cluster;
[0076] A generating submodule, for generating registration information of the target storage device in one-to-one correspondence according to the basic attribute information of the target storage device, and storing the registration information in a device registration library of the server cluster, wherein the registration information includes manufacturer information, model and serial number;
[0077] The unique identifier allocation submodule is used to allocate a unique identifier of the target storage device in the server cluster to the target storage device according to the registration information, and the unique identifier is used to determine the target storage device from multiple storage devices in the server cluster.
[0078] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of a storage device upgrade method when executed by the processor.
[0079] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of a storage device upgrade method are implemented.
[0080] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0081] The present disclosure automatically identifies the registration information and type of the target storage device, accurately determines the upgradeable version of the device, reduces manual operation errors, and improves the accuracy and efficiency of the upgrade. After the user uploads the upgrade package, the appropriate device is automatically matched, and the upgrade operation is automatically performed after the match is successful, simplifying the complex manual operation steps. At the same time, it ensures that only devices compatible with the upgrade package can perform the upgrade, preventing the upgrade operation of incompatible devices and reducing the risk of device failure. The present disclosure is applicable to storage devices of various manufacturers and models. Through standardized operating procedures, it can be easily expanded to different types of devices, improving the versatility and scalability of the storage device upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for describing the embodiments of the present disclosure are briefly introduced below.
[0083] Figure 1 It is a schematic diagram of the steps of a storage device upgrade method provided by an embodiment of the present disclosure;
[0084] Figure 2 It is a complete flow chart of a storage device upgrade method provided by an embodiment of the present disclosure;
[0085] Figure 3 The present invention is a structural block diagram of a storage device upgrade apparatus provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0086] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0087] In today's data-driven era, efficient management and upgrading of storage devices have become an important part of data center operation and maintenance. Traditional storage device upgrade methods often rely on manual operations, which have problems such as low efficiency, prone to errors and potential safety hazards, seriously affecting the business continuity and resource utilization of data centers. In order to solve this series of challenges, the present disclosure proposes an innovative storage device upgrade method, which aims to achieve efficient and accurate upgrades of storage devices through automated and intelligent management methods. The core concept of the present disclosure is to build a comprehensive storage device upgrade management system. First, by connecting the target storage device to be upgraded to the server cluster, automatically identifying and defining its registration information, and then determining the target device type. This process ensures the pertinence and effectiveness of subsequent upgrade operations. Through the upgrade package uploaded by the user, the compatibility of the target storage device and the upgrade package can be automatically matched, and the upgrade operation can be safely performed under low business load. In addition, it also has real-time monitoring, status feedback and exception handling capabilities to ensure the efficiency, safety and reliability of the upgrade process. The storage device upgrade method provided in the embodiment of the present disclosure can be widely applied to multi-vendor and multi-series device scenarios.
[0088] Figure 1 FIG. 1 is a schematic diagram of steps of a storage device upgrade method provided by an embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0089] Step S101: connecting a target storage device to be upgraded to a server cluster.
[0090] In the disclosed embodiment, the target storage device is a storage device to be upgraded, which may be one or more. A connection is established with the server cluster through a network or other connection methods, and the access method may be a physical connection (such as through an optical fiber, a network cable, etc.) or a virtual connection (such as through a cloud service, etc.). In the case of multiple target storage devices, the server cluster may be accessed through a unified compatible interface or through a storage interface pre-configured according to the type of each storage device.
[0091] Step S102: Identify the target storage device and define registration information of the target storage device.
[0092] After the target storage device is successfully connected to the server cluster, the server cluster can communicate with the target storage device, obtain its basic attribute information (that is, information that can reflect the storage device model or device identity), and generate registration information accordingly. The generated registration information will be stored in the device registration library of the server cluster. The device registration library serves as the basic data source for managing the target storage device. All subsequent operations (such as upgrades, monitoring, etc.) will rely on these registration information.
[0093] Step S103: determining the target device type of the target storage device according to the registration information of the target storage device.
[0094] The registration information of the target storage device is extracted from the device registration library. Based on the extracted registration information, the specific type of the target storage device, such as SSD, HDD, NAS, SAN, etc., is identified using a preset device type database or rule.
[0095] Step S104, obtaining the upgrade package uploaded by the user, wherein the upgrade package includes version information and a list of applicable devices.
[0096] The disclosed embodiment provides a user interface (UI) that allows a user to upload an upgrade package for a specific storage device through the interface. The user needs to select a suitable file to upload. Usually, the file is a compressed package or a file in a specific format that contains all the information required for the upgrade. When the user successfully uploads the upgrade package, the package will be decompressed or parsed to extract key information, including version information and a list of applicable devices. The version information indicates the version number of the upgrade package, including the major version number, minor version number, and revision number, which helps the system determine whether the upgrade package is an applicable version for the target device. The list of applicable devices contains all storage device models and series that are compatible with this upgrade package. This list is used to determine whether the target storage device meets the upgrade conditions.
[0097] Step S105: Match the target storage device with the upgrade package based on the registration information of the target storage device and the target device type.
[0098] Check whether the model of the target storage device is in the applicable device list of the upgrade package. If the device model exists in the applicable list, it means that the upgrade package is for this device. The current version information of the target storage device will also be compared with the version information in the upgrade package to ensure that the version of the upgrade package is appropriate (for example, the version of the upgrade package should be higher than the current version of the device). If necessary, other relevant compatibility information can be checked according to the user's setting options, such as whether the functional characteristics of the device (such as RAID support) are consistent with the requirements of the upgrade package.
[0099] Step S106: When the target storage device matches the upgrade package successfully, the target storage device is upgraded using the upgrade package.
[0100] When the target storage device successfully matches the uploaded upgrade package, the actual upgrade operation is performed. The upgrade process will be described in detail later and will not be repeated here.
[0101] The present disclosure automatically identifies the registration information and type of the target storage device, accurately determines the upgradeable version of the device, reduces manual operation errors, and improves the accuracy and efficiency of the upgrade. After the user uploads the upgrade package, the appropriate device is automatically matched, and the upgrade operation is automatically performed after the match is successful, simplifying the complex manual operation steps. At the same time, it ensures that only devices compatible with the upgrade package can perform the upgrade, preventing the upgrade operation of incompatible devices and reducing the risk of device failure. The present disclosure is applicable to storage devices of various manufacturers and models. Through standardized operating procedures, it can be easily expanded to different types of devices, improving the versatility and scalability of the storage device upgrade process.
[0102] Exemplarily, before using the upgrade package to upgrade the target storage device, the method also includes: monitoring the business load of each storage device in the server cluster in real time; obtaining the business load of the server cluster based on the business load of each storage device; when it is detected that the business load is lower than a preset load threshold, migrating the business data of the target storage device to other storage devices and suspending the business of the target storage device; when it is detected that the business data migration of the target storage device is completed, upgrading the target storage device using the upgrade package.
[0103] In a server cluster, each storage device will carry different degrees of business load. In order to avoid affecting the normal operation of the business due to excessive load during the upgrade process, it is necessary to monitor the business load of each storage device in real time, and perform the upgrade operation on the target storage device only when the business load is small. The business load situation includes but is not limited to the following indicators: number of I / O operations, bandwidth usage, CPU usage, memory usage, and the number of business threads on the storage device. In order to determine whether the business on the target storage device can be suspended and upgraded, the business load of the entire server cluster is calculated based on the business load situation and compared with the preset load threshold. The calculation formula for the business load TotalLoad is: In the formula, n is the total number of storage devices in the server cluster, IOPS is the number of I / O operations per second of the i-th storage device, Bandwidth is the bandwidth usage of the i-th storage device (unit: MB / s or GB / s), CPU Usage is the CPU usage of the i-th storage device (percentage), Memory Usage is the memory usage of the i-th storage device (percentage), α, β, γ, δ are weight coefficients of different indicators, and they are adjusted accordingly according to actual business needs. For example, if the system has higher requirements for I / O operations, you can set a larger value for α. The higher the load, the greater the pressure on the current server cluster, and it is not suitable for upgrade operations; the lower the load, the more idle the current server cluster is, and it is suitable for business migration and upgrade operations.
[0104] According to the calculated business load, it is compared with the preset load threshold. If the business load is lower than this business load, it is considered that the current load is low enough and the upgrade operation can be performed. For example, for I / O intensive services, the load threshold should be set lower to avoid the impact on I / O performance during the upgrade process. The recommended threshold is below 50%. For bandwidth-sensitive services, the bandwidth occupancy threshold should be lower, and it is recommended to be set below 60%. For CPU / memory sensitive services, if the business has high requirements for CPU or memory, the corresponding threshold can be set to 70%-80%.
[0105] When it is detected that the business load is lower than the preset threshold, the business data on the target storage device is first migrated to other storage devices. Specifically, based on the real-time monitored business load, a storage device with a low current load and sufficient resources is selected as the target device for business migration. The business data on the target storage device is transmitted to the target device through the network. After the data migration is completed, the business of the target storage device is suspended to ensure that the device does not process any new business requests during the upgrade process. When it is confirmed that the business data on the target storage device has been successfully migrated and business processing has been suspended, the upgrade operation is officially started.
[0106] By monitoring the server cluster business load in real time, the appropriate time is selected to upgrade the target storage device, ensuring that the upgrade operation is performed when the load is low, minimizing the impact on the business and ensuring the stability and security of the system.
[0107] Exemplarily, the registration information of the target storage device includes a verification username and a verification password; before using the upgrade package to upgrade the target storage device, the method also includes: obtaining the username and password input by the user; based on the verification username and verification password in the registration information of the target storage device, verifying the username and password input by the user; if the username and password input by the user are successfully verified, using the upgrade package to upgrade the target storage device.
[0108] As mentioned above, when the target storage device is first connected to the system, the server cluster will obtain a series of registration information provided by the storage device, which is equivalent to a registration process of the target storage device. The registration information contains "verification user name" and "verification password" as the user account information of the storage device. The account information is to ensure that only authorized personnel can perform any sensitive operations (such as upgrades, configuration changes, etc.) in the future. During registration, it will be encrypted and stored in the device registration library of the server cluster as the basis for security verification of the device identity. Before performing the upgrade operation of the target storage device, in order to ensure the legality and security of the upgrade operation, the user is required to log in and enter a user name and password with execution permissions. When the user selects a target storage device through the user interface (UI) of the upgrade management plug-in and prepares to perform the upgrade, an input box will pop up, requiring the user to provide his account information. The user name and password entered by the user are compared with the "verification user name" and "verification password" in the registration information of the target storage device. The information entered by the user is processed in an encrypted manner and matched with the encrypted verification information stored in the database. Only when the user name and password entered by the user are consistent with the verification user name and verification password in the device registration information, will the subsequent operation be allowed to continue. If the verification fails, the upgrade operation will be rejected and an error message will be fed back to the user interface, prompting the user that the account information entered is incorrect. When the user name and password entered by the user are verified, it is confirmed that the current user has the authority to perform the upgrade and enters the next step of the upgrade operation, that is, using the uploaded upgrade package to upgrade the target storage device. Optionally, after the user name and password are successfully verified, the user can be asked to confirm the upgrade operation again. For example, a confirmation dialog box pops up to ask the user to confirm whether to continue to avoid misoperation.
[0109] The present disclosure ensures that only authorized users can perform upgrade operations on the target storage device through a username and password verification mechanism, and ensures the security of the overall upgrade process through password verification and encrypted communication.
[0110] Exemplarily, determining the target device type of the target storage device based on the registration information of the target storage device includes: retrieving a preset device type database based on the registration information of the target storage device to determine the target device type of the target storage device, wherein the registration information of the target storage device includes manufacturer information, model and serial number.
[0111] When the device registration information is transmitted to the server cluster, the preset device type database is queried to identify the specific type of the device, such as SSD (solid state drive), HDD (mechanical hard disk), NAS (network storage device) or SAN (storage area network), based on the manufacturer, model and other fields in the registration information. The process of determining the device type is automatic, ensuring that subsequent operations can be matched according to the characteristics of the device.
[0112] Exemplarily, matching the target storage device with the upgrade package based on the registration information of the target storage device and the target device type includes: traversing the applicable device list of the upgrade package to determine whether the target device type is included in the applicable device list; if the target device type is included in the applicable device list, performing an integrity check on the upgrade package; if the upgrade package passes the integrity check, checking the version of the upgrade package to determine whether the version of the upgrade package is compatible with the target device type; if the version of the upgrade package is compatible with the target device type, determining that the target storage device and the upgrade package are successfully matched.
[0113] Traverse the list of applicable devices in the upgrade package to find out whether there is a record that matches the target storage device type. If the target device type appears in this list, it means that the upgrade package may be applicable. Furthermore, the integrity of the upgrade package will be verified to ensure that the upgrade package is not damaged during transmission or storage. Optionally, the verification method can be to verify the hash value or signature of the upgrade package file. After the integrity check passes, further check the version information of the upgrade package to ensure that the version of the upgrade package is compatible with the current version of the target storage device. The version of the upgrade package needs to be higher than or equal to the current version of the device. When the upgrade package passes the integrity check and the version is compatible with the target device, it is determined that the target storage device matches the upgrade package successfully, and subsequent upgrade operations can be performed.
[0114] Exemplarily, after the target storage device is upgraded using the upgrade package, the method further includes: monitoring the upgrade status of the target storage device in real time, and feeding back the upgrade status to a management interface; when it is detected that the upgrade of the target storage device is complete, checking the device status of the target storage device; and when the device status of the target storage device is normal, transmitting the business data migrated from the target storage device to the other storage devices to the target storage device.
[0115] When applying the upgrade package to the target storage device, the progress and status of the upgrade are monitored in real time to ensure that the upgrade process proceeds smoothly and to promptly detect and handle possible problems, such as interruptions, errors, or abnormal responses of the device. The monitoring content includes the progress percentage of the upgrade, log records during the upgrade process, and device performance indicators (such as CPU, memory, and storage utilization).
[0116] During the upgrade process, the real-time upgrade status (including progress, exceptions, and other information) is fed back to the management interface so that the operation and maintenance personnel can keep abreast of the upgrade dynamics at any time. When it is detected that the upgrade of the target storage device is complete, the device status is checked to ensure that the upgrade process has no negative impact on the normal operation of the device and that the upgraded device can work normally. The inspection content includes the operating status of the device, the existence of error logs, the hardware health status of the device (such as the read and write speed of the storage hard disk, I / O performance, etc.), and other performance indicators. If the device status is normal, it means that the upgrade package has been successfully installed and the device can run stably in the upgraded state. After confirming that the upgrade of the target storage device is complete and the status is normal, start the business data cutback operation. Transfer the business data previously migrated to other storage devices back to the target storage device.
[0117] The above upgrade process combined with monitoring ensures the safety and stability of the upgrade process. At the same time, the equipment can be put into use in a timely manner after the upgrade is completed, and the smooth operation of the business system is maintained.
[0118] Exemplarily, after the target storage device is upgraded using the upgrade package, the method further includes: monitoring the upgrade status of the target storage device in real time; when an upgrade abnormality of the target storage device is detected, performing corresponding repairs on the target storage device according to preset repair rules; when the repair of the target storage device fails or the upgrade status returns to failure, rolling back the target storage device to a version before the upgrade; obtaining the business data of the target storage device before the upgrade, and reloading the business data of the target storage device before the upgrade to the target storage device.
[0119] During the upgrade process, continuously monitor the status of the target storage device. By monitoring the collected real-time information, monitor various possible upgrade anomalies, such as device response timeout, upgrade package execution error, version incompatibility, and the device cannot enter the expected working state. These anomalies may be discovered through device logs, status reports, or other monitoring tools. In order to deal with anomalies that occur during the upgrade process, set a set of repair rules in advance. Optionally, the repair rules may include the following: automatic retry, resource adjustment, error log analysis, and specific repair operations. Once an upgrade anomaly is detected, the corresponding repair operation is performed automatically or through manual intervention by the user according to the above repair rules. For example, reapply patches, modify configuration files, re-execute scripts, etc. Perform different repair operations according to the specific abnormal situation of the device to restore the device to its normal state.
[0120] If the problem cannot be successfully solved when trying to repair the anomaly, or the device encounters an irrecoverable serious fault during the upgrade process (such as failure to start or device crash), the rollback operation will be automatically started. Specifically, before the upgrade, a backup will be created for the target storage device to record its current version information, configuration status, and related business data. If the repair fails, the device will be restored to the version before the upgrade based on the preset rollback mechanism, which also includes restoring the old version of the device software, reloading related configuration files, restarting the device, etc. Ensure that the device can quickly recover to a stable state when the upgrade fails to avoid long-term business interruption. In some cases, even if the repair operation is completed, the upgrade status of the device returns to failure. At this time, the rollback operation will be triggered to ensure the safe operation of the device. To avoid ambiguity, it should be noted that the situation where the upgrade status returns to failure refers to the failure of the storage device's upgrade status to be successfully fed back or returned. When the upgrade is successful or rolled back to the version before the upgrade, the business data is automatically reloaded from the temporary storage location back to the target storage device to ensure that the device resumes normal business operation, all business data is consistent with the previous one, and there is no data loss or inconsistency.
[0121] Exemplarily, the identifying the target storage device and defining the registration information of the target storage device includes: obtaining basic attribute information of the target storage device when the target storage device is connected to the server cluster;
[0122] Based on the basic attribute information of the target storage device, one-to-one registration information of the target storage device is generated, and the registration information is stored in the device registration library of the server cluster, the registration information includes manufacturer information, model and serial number; based on the registration information, a unique identifier in the server cluster is assigned to the target storage device, and the unique identifier is used to determine the target storage device from multiple storage devices in the server cluster.
[0123] When the target storage device is connected to the server cluster, it communicates with the storage device automatically or through user operations and collects its basic attribute information, which is equivalent to the inherent attribute information of the target storage device, including manufacturer information, the manufacturer of the storage device, such as Dell, HP, EMC, etc.; model information, the model or product series information of the device; serial number, the unique hardware identifier of the device, used to identify the physical instance of the device; current software or firmware version, the operating system or firmware version information running on the device. Device configuration: such as the storage capacity, interface type, network configuration, etc. of the device. Based on the basic attribute information collected above, a unique registration information is generated for the target storage device, and its information items should correspond one-to-one with the basic attribute information of the target storage device, as the basis for subsequent upgrades, monitoring, maintenance and other operations.
[0124] After successfully generating and storing the registration information of the target storage device, a unique identifier (such as UUID) is assigned to the target storage device. The unique identifier ensures that the device is unique in the entire server cluster. No matter how many devices are connected, the system can use the identifier to quickly and accurately locate the target storage device from multiple storage devices connected to the server cluster.
[0125] Exemplarily, the method further includes: generating a snapshot for key data of the target storage device, and saving the snapshot to a backup storage device in the cluster before upgrading; during the upgrading process, recording the operation log of the target storage device in real time;
[0126] After the target storage device is upgraded, the key data hash values before and after the upgrade are compared to verify data integrity; if the data verification fails, the key data is restored from the backup storage device and an upgrade rollback operation is triggered.
[0127] Before upgrading the target storage device, a snapshot is generated for the key data in the target storage device. This should be understood as a copy of the data state of the target storage device at a certain moment, recording all the key data in the target storage device at that time. After the snapshot is generated, it is stored on the backup storage device in the cluster (that is, other devices in the cluster, which is equivalent to a complete backup of the key data. If a failure occurs during the upgrade process, data is damaged, or the upgrade fails, the storage device can be restored to the state before the upgrade through this snapshot to ensure that data is not lost. This mechanism provides protection for data security and avoids unexpected impacts on data during the upgrade process.
[0128] During the entire upgrade process, all operations on the target storage device (such as upgrade steps, data migration, etc.) will be logged in real time. After the upgrade is completed, the key data in the target storage device before and after the upgrade is compared, specifically by calculating the hash value of these data. Specifically, the snapshot generated before the upgrade is compared with the hash value of the target storage device after the upgrade to ensure that the data has not been modified or damaged during the upgrade process. If the hash value comparison finds that the upgraded data is inconsistent with the pre-upgrade data (that is, the data integrity verification fails), the data recovery operation is automatically triggered. Restore the key data in the target storage device from the backup storage device in the cluster (the snapshot generated in the first step) to the state before the upgrade. At the same time as the data is restored, a rollback operation is also triggered to restore the system state of the target storage device to the version before the upgrade.
[0129] The disclosure further enhances data protection during the upgrade process by generating snapshots before the upgrade and verifying data integrity after the upgrade, using a multi-level protection mechanism. At the same time, combined with an automated recovery and rollback mechanism, it can quickly return to a safe state when the upgrade fails, thereby reducing the workload of operation and maintenance personnel and reducing the impact on the business when errors occur during the upgrade process.
[0130] Figure 2 FIG. 1 is a complete flow chart of a storage device upgrade method provided by an embodiment of the present disclosure. Figure 2 As shown,
[0131] The target storage device communicates with the server cluster through a network or physical connection (such as optical fiber, network cable, etc.). At this point, the storage device is ready to be identified and managed by the server cluster. After the device is connected, the server cluster communicates with the device through a preset protocol to collect basic attribute information of the device, such as manufacturer, model, serial number, software version, management IP address, etc. The server cluster stores the basic attribute information of the target storage device, generates and saves the corresponding registration information, and assigns a unique identifier (such as UUID) for identifying and managing subsequent operations of the device. Based on the registration information, the server cluster classifies the storage device and determines the device type of the target storage device. The user uploads the upgrade package for a specific storage device through the system UI interface. The upgrade package is automatically analyzed and matched with the registration information to ensure that the uploaded installation package is suitable for the model, version and functional requirements of the current device. After the matching is completed, the upgrade package is verified. To ensure the safety of the operation, the user is required to enter the authorized user name and password for secondary confirmation. Before confirming the upgrade operation, by monitoring the business load, select a suitable time period to migrate the business data on the device to other storage devices to ensure that the upgrade process does not affect normal business operations. After the service migration is completed, an upgrade instruction is sent to the target storage device. After receiving the upgrade instruction, the target storage device starts to execute the script in the upgrade package to update the software version. During the upgrade process, the status of the device is monitored in real time. If an abnormal device status is detected during the upgrade process, or the device status returns to failure, a rollback operation will be automatically performed to restore the device to the state before the upgrade. If there is no abnormality in the upgrade process or the problem can be repaired in time when it occurs, the upgrade will continue to be executed, and the upgrade success will be reported after the upgrade is successfully completed. After the upgrade is successful, the business data previously migrated to other storage devices will be cut back to the original device, and normal business operation will be restored to ensure the continuity of the system business. After the entire process is completed, the upgrade operation is completed.
[0132] It should be noted that the method flow of the embodiment of the present disclosure can realize the automated upgrade function with the help of a modular storage device upgrade system. The system includes a device information management module, a server management plug-in and user interface module, an upgrade package matching and confirmation module, a security control module, an intelligent upgrade scheduling module, an upgrade progress and status feedback module, and a business automatic switching back and performance evaluation module. Below, the various components of the modular storage device upgrade system are described in combination with the above process.
[0133] The device information management module is responsible for automatically identifying and recording the key information of the device when the storage device is connected to the server cluster, including the manufacturer, model, serial number, management IP, user account and password, etc. It is consistent with the device registration and identification process, especially identifying the registration information of the storage device and storing it in the central database. After that, the target type of the device is determined from the preset device type database based on the registration information.
[0134] The server management plug-in and user interface module provides a user interface for users to upload upgrade packages, monitor upgrade progress and device matching. It involves obtaining upgrade packages and matching with devices, as well as real-time monitoring of upgrade status and feedback of status to the management interface.
[0135] The upgrade package matching and confirmation module automatically determines whether the upgrade package is compatible with the device by identifying the registration information of the storage device. It checks the integrity and compatibility of the upgrade package to ensure that the upgrade package matches the target device type correctly.
[0136] The double confirmation mechanism of the security control module requires users to enter an authorized account and password for verification before upgrading to ensure the security of the upgrade operation.
[0137] The intelligent upgrade scheduling module monitors the business load of the device in real time and chooses to migrate business and perform upgrades during the time period with low business volume. That is, it migrates business data to other devices when the load is low and suspends the business of the target storage device to ensure a smooth upgrade operation.
[0138] The upgrade progress and status feedback module provides feedback on the upgrade progress, status, and operation results through a unified interface. Users can monitor the upgrade process of the device in real time and get timely feedback when an abnormality occurs. In addition, repairs or rollbacks can be performed according to preset rules.
[0139] The automatic business switchback and performance evaluation module will switch the business data from the temporary storage device back to the original device after the upgrade is completed to restore the normal operation of the business. In addition, the performance of the upgraded device is evaluated to ensure that the upgraded server cluster system achieves the expected effect.
[0140] Figure 3 is a structural block diagram of a storage device upgrade apparatus provided by an embodiment of the present disclosure, such as Figure 3 As shown, the device comprises:
[0141] An access module 201 is used to connect the target storage device to be upgraded to the server cluster;
[0142] An identification module 202, used to identify the target storage device and define registration information of the target storage device;
[0143] The device type determination module 203 is used to determine the target device type of the target storage device according to the registration information of the target storage device;
[0144] The upgrade package acquisition module 204 is used to acquire the upgrade package uploaded by the user, wherein the upgrade package includes version information and a list of applicable devices;
[0145] A matching module 205, configured to match the target storage device with the upgrade package based on the registration information of the target storage device and the target device type;
[0146] The upgrade module 206 is configured to upgrade the target storage device using the upgrade package if the target storage device successfully matches the upgrade package.
[0147] Optionally, the device further comprises:
[0148] A load monitoring module, used to monitor the service load of each storage device in the server cluster in real time;
[0149] A service load determination module, used to obtain the service load of the server cluster according to the service load of each storage device;
[0150] A migration module, configured to migrate the service data of the target storage device to other storage devices and suspend the service of the target storage device when it is detected that the service load is lower than a preset load threshold;
[0151] The first conditional upgrade module is used to upgrade the target storage device using the upgrade package when it is detected that the migration of the service data of the target storage device is completed.
[0152] Optionally, the registration information of the target storage device includes a verification user name and a verification password; the apparatus further includes:
[0153] Username and password acquisition module, used to obtain the username and password entered by the user;
[0154] A user identity authentication module, used to verify the user name and password input by the user based on the verification user name and verification password in the registration information of the target storage device;
[0155] The second conditional upgrade module is used to upgrade the target storage device using the upgrade package if the username and password input by the user are successfully verified.
[0156] Optionally, the device type determination module includes:
[0157] A retrieval submodule, configured to retrieve a preset device type database according to the registration information of the target storage device, and determine the target device type of the target storage device, wherein the registration information of the target storage device includes manufacturer information, model number and serial number;
[0158] Optionally, the matching module includes:
[0159] A traversal submodule, used to traverse the applicable device list of the upgrade package and determine whether the target device type is included in the applicable device list;
[0160] an integrity check submodule, configured to perform integrity check on the upgrade package when the target device type is included in the applicable device list;
[0161] A compatibility determination submodule, configured to check the version of the upgrade package to determine whether the version of the upgrade package is compatible with the target device type when the upgrade package passes the integrity check;
[0162] The matching success submodule is used to determine that the target storage device matches the upgrade package successfully when the version of the upgrade package is compatible with the target device type.
[0163] Optionally, the device further comprises:
[0164] A first upgrade status monitoring module, used to monitor the upgrade status of the target storage device in real time and feed back the upgrade status to the management interface;
[0165] A device status checking module, configured to check the device status of the target storage device when it is detected that the upgrade of the target storage device is completed;
[0166] The switchback module is used to transfer the business data migrated from the target storage device to the other storage device to the target storage device when the device status of the target storage device is normal.
[0167] Optionally, the device further comprises:
[0168] A second upgrade status monitoring module, used to monitor the upgrade status of the target storage device in real time;
[0169] A repair module, configured to repair the target storage device accordingly according to a preset repair rule when an upgrade abnormality of the target storage device is detected;
[0170] A version rollback module, used for rolling back the target storage device to a version before the upgrade if the target storage device fails to be repaired or the upgrade status returns to fail;
[0171] The business data rollback module is used to obtain the business data of the target storage device before the upgrade, and reload the business data of the target storage device before the upgrade to the target storage device.
[0172] Optionally, the identification module includes:
[0173] A basic attribute information identification submodule, used to obtain basic attribute information of the target storage device when the target storage device is connected to the server cluster;
[0174] A generating submodule, for generating registration information of the target storage device in one-to-one correspondence according to the basic attribute information of the target storage device, and storing the registration information in a device registration library of the server cluster, wherein the registration information includes manufacturer information, model and serial number;
[0175] The unique identifier allocation submodule is used to allocate a unique identifier of the target storage device in the server cluster to the target storage device according to the registration information, and the unique identifier is used to determine the target storage device from multiple storage devices in the server cluster.
[0176] An embodiment of the present disclosure also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes in the above-mentioned embodiment of a storage device upgrade method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0177] The disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process in the above-mentioned storage device upgrade method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other.
[0178] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, electronic devices, and computer-readable media. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0179] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded into a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0180] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present disclosure.
[0181] Finally, it should be noted that, in this article, 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 any such actual relationship or order between these entities or operations. Moreover, the term "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements. The above is a detailed introduction to a storage device upgrade method, device, electronic device and storage medium provided by the present disclosure. The present disclosure is explained in detail using specific examples in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method and its core idea of the present disclosure; at the same time, for those of ordinary skill in the art, according to the idea of the present disclosure, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A storage device upgrade method, characterized in that: The method comprises: Connect the target storage device to be upgraded to the server cluster; Identify the target storage device and define registration information of the target storage device; Determining a target device type of the target storage device according to the registration information of the target storage device; Obtain the upgrade package uploaded by the user, the upgrade package including version information and a list of applicable devices; Matching the target storage device with the upgrade package based on the registration information of the target storage device and the target device type; In the case that the target storage device matches the upgrade package successfully, the target storage device is upgraded using the upgrade package.
2. The method according to claim 1, characterized in that Before upgrading the target storage device using the upgrade package, the method further includes: Real-time monitoring of the business load of each storage device in the server cluster; According to the business load of each storage device, the business load of the server cluster is obtained; When it is detected that the service load is lower than a preset load threshold, the service data of the target storage device is migrated to other storage devices, and the service of the target storage device is suspended; When it is detected that the migration of the service data of the target storage device is completed, the target storage device is upgraded using the upgrade package.
3. The method according to claim 1, characterized in that The registration information of the target storage device includes a verification user name and a verification password; before upgrading the target storage device using the upgrade package, the method further includes: Get the username and password entered by the user; Verifying the user name and password input by the user based on the verification user name and verification password in the registration information of the target storage device; When the user name and password input by the user are successfully verified, the target storage device is upgraded using the upgrade package.
4. The method according to claim 1, characterized in that: The step of determining the target device type of the target storage device according to the registration information of the target storage device includes: According to the registration information of the target storage device, a preset device type database is retrieved to determine the target device type of the target storage device, wherein the registration information of the target storage device includes manufacturer information, model number and serial number; The matching the target storage device with the upgrade package based on the registration information of the target storage device and the target device type includes: Traversing the applicable device list of the upgrade package, and determining whether the target device type is included in the applicable device list; In a case where the target device type is included in the applicable device list, performing integrity check on the upgrade package; If the upgrade package passes the integrity check, checking the version of the upgrade package to determine whether the version of the upgrade package is compatible with the target device type; In the case that the version of the upgrade package is compatible with the target device type, it is determined that the target storage device matches the upgrade package successfully.
5. The method according to claim 2, characterized in that: After upgrading the target storage device using the upgrade package, the method further includes: Monitor the upgrade status of the target storage device in real time, and feed back the upgrade status to the management interface; In the case where it is detected that the upgrade of the target storage device is completed, checking the device status of the target storage device; When the device status of the target storage device is normal, the service data migrated from the target storage device to the other storage device is transmitted to the target storage device.
6. The method according to claim 1, characterized in that After upgrading the target storage device using the upgrade package, the method further includes: Monitoring the upgrade status of the target storage device in real time; When an upgrade abnormality of the target storage device is detected, the target storage device is repaired accordingly according to a preset repair rule; Rolling back the target storage device to a version before the upgrade when the target storage device fails to be repaired or the upgrade status returns to failure; The service data of the target storage device before the upgrade is acquired, and the service data of the target storage device before the upgrade is reloaded to the target storage device.
7. The method according to claim 1, characterized in that The identifying the target storage device and defining the registration information of the target storage device includes: When the target storage device is connected to the server cluster, obtaining basic attribute information of the target storage device; Generate one-to-one registration information of the target storage device according to the basic attribute information of the target storage device, and store the registration information in the device registration library of the server cluster, wherein the registration information includes manufacturer information, model and serial number; According to the registration information, a unique identifier of the target storage device in the server cluster is allocated to the target storage device, and the unique identifier is used to determine the target storage device from multiple storage devices in the server cluster.
8. A storage device upgrade device, characterized in that: The device comprises: An access module, used to connect the target storage device to be upgraded to the server cluster; An identification module, used for identifying the target storage device and defining registration information of the target storage device; A device type determination module, used to determine the target device type of the target storage device according to the registration information of the target storage device; An upgrade package acquisition module is used to acquire the upgrade package uploaded by the user, wherein the upgrade package includes version information and a list of applicable devices; A matching module, configured to match the target storage device with the upgrade package based on the registration information of the target storage device and the target device type; The upgrade module is used to upgrade the target storage device using the upgrade package when the target storage device successfully matches the upgrade package.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
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 a processor, the steps of the method according to any one of claims 1 to 7 are implemented.