A storage system upgrade method and device based on a usb device

By acquiring and comparing drive letter information through USB devices and combining it with shell scripts to automate the storage system upgrade process, this technology solves the problems of cumbersome and error-prone offline upgrades of storage systems in existing technologies, and achieves efficient and accurate system upgrades.

CN115993986BActive Publication Date: 2026-11-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310045794.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-30
Publication Date
2026-11-24
Estimated Expiration
2043-01-30

AI Technical Summary

Technical Problem

The existing offline upgrade methods for storage systems are cumbersome, time-consuming, and prone to errors, especially when creating a boot disk, it is easy to select the wrong drive letter for the USB device, leading to failure.

Method used

By obtaining the drive letter information of the storage system and device through a USB device, the system automatically compares and determines whether the boot disk has been successfully created. It integrates the upgrade process with shell scripts, adds an error detection mechanism, automatically configures boot items, and monitors the upgrade progress in real time, reducing manual intervention.

Benefits of technology

It improves the accuracy and efficiency of storage system upgrades, reduces manual time consumption, enhances fault tolerance, and avoids wasted time caused by unprofessional manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115993986B_ABST
    Figure CN115993986B_ABST
Patent Text Reader

Abstract

This invention relates to a storage system upgrade method and apparatus based on a USB device, used to upgrade and update the system software of a storage system via a USB device. The upgrade method includes: when a boot disk for the storage system is created, obtaining first drive letter information corresponding to the device that created the boot disk; when the USB device is inserted into the storage system, obtaining second drive letter information corresponding to the USB device; comparing the first drive letter information and the second drive letter information, and if they are the same, using either the first drive letter information or the second drive letter information as the USB device drive letter information to determine that the boot disk was successfully created. This technical solution solves the problems of error-proneness, cumbersome steps, and lengthy time involved in current storage system software upgrades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of storage system technology, and in particular to a storage system upgrade method and upgrade device based on USB devices. Background Technology

[0002] Storage systems primarily consist of three parts: media (hard drives, flash memory, SCM, etc.), controller hardware (CPU, memory, motherboard), and system software. The core of storage has always been the system software. During use, system software inevitably undergoes upgrades and updates. Furthermore, system upgrades are a necessary functional update method for almost all network-operated devices.

[0003] There are two common methods for upgrading storage systems: online upgrades and offline upgrades. Online system upgrades are generally simpler and are typically performed online. However, in the following two situations, only offline upgrades can be used:

[0004] 1) Initial system installation;

[0005] 2) System upgrades across multiple versions.

[0006] However, existing offline upgrade methods are cumbersome, time-consuming, and prone to errors. Summary of the Invention

[0007] To address the aforementioned technical problems, this invention provides a storage system upgrade method and apparatus based on a USB device. The upgrade method is used to solve the problems of error-proneness, cumbersome steps, and lengthy time involved in current storage system software upgrades.

[0008] To achieve the above objectives, the present invention provides a storage system upgrade method based on a USB device, used to upgrade and update the system software of the storage system via a USB device. The upgrade method includes a USB drive letter information acquisition step, which includes:

[0009] When the boot disk of the storage system is created, the first drive letter information corresponding to the device that created the boot disk is obtained;

[0010] When the USB device is inserted into the storage system, the second drive letter information corresponding to the USB device is obtained;

[0011] The first drive letter information and the second drive letter information are compared, and if they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created.

[0012] Furthermore, the upgrade method also includes an error detection step, which includes:

[0013] The process result of the nth step in the upgrade method is obtained according to the preset process completion time; where n is a positive integer;

[0014] If the result of the nth step does not exist, then return to the (n-1)th step to repeat the operation;

[0015] Obtain the number of times the operation is repeatedly executed; when the number of times the operation is repeatedly executed exceeds the preset alarm count, generate an alarm message indicating that the process cannot be automatically recovered, which is used to notify manual inspection of the process error.

[0016] Furthermore, the upgrade method also includes:

[0017] Obtain the product type information of the storage system;

[0018] Based on the product type information, obtain the USB boot configuration information for upgrading via the USB device canning system.

[0019] Furthermore, the upgrade method also includes a system node software upgrade step, which includes:

[0020] The image file within the USB device is loaded to upgrade the software nodes of the storage system;

[0021] The upgrade progress information of the software node is detected according to a preset upgrade monitoring time interval;

[0022] When the upgrade progress information reaches the preset upgrade progress, the USB port will be set to disabled state.

[0023] Furthermore, before obtaining the USB boot item configuration information based on the product type information, the upgrade method further includes:

[0024] The boot disk is created using commands from the USB device.

[0025] Furthermore, after disabling the USB port, the upgrade method also includes:

[0026] When the storage system starts up, it obtains the node status of the software node;

[0027] When the node status is candidate, the storage device indicator light of the storage system is set to green.

[0028] Furthermore, before obtaining the first drive letter information corresponding to the device that created the boot disk, the upgrade method further includes:

[0029] Upload the system image file to be packaged to the root directory of the storage device of the storage system, and insert the USB device into the USB port of the storage device.

[0030] The present invention also provides a storage system upgrade device based on a USB device, used to implement the aforementioned storage system upgrade method based on a USB device. The upgrade device includes a USB drive letter information acquisition unit, which includes:

[0031] The first drive letter information acquisition unit is used to acquire the first drive letter information corresponding to the device that made the boot disk when the boot disk of the storage system is made.

[0032] The second drive letter information acquisition unit is used to acquire the second drive letter information corresponding to the USB device when the USB device is inserted into the storage system.

[0033] The USB device drive letter information generation unit is used to compare the first drive letter information and the second drive letter information, and when they are the same, use the first drive letter information or the second drive letter information as the USB device drive letter information to determine that the boot disk has been successfully created.

[0034] The present invention also provides a computer device, including a memory, a processor, and a computer program, wherein the computer program is stored in the memory and can run on the processor, and the processor executes the computer program to perform the following steps:

[0035] When the boot disk of the storage system is created, the first drive letter information corresponding to the device that created the boot disk is obtained;

[0036] When the USB device is inserted into the storage system, the second drive letter information corresponding to the USB device is obtained;

[0037] The first drive letter information and the second drive letter information are compared, and if they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created.

[0038] The present invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the following steps:

[0039] When the boot disk of the storage system is created, the first drive letter information corresponding to the device that created the boot disk is obtained;

[0040] When the USB device is inserted into the storage system, the second drive letter information corresponding to the USB device is obtained;

[0041] The first drive letter information and the second drive letter information are compared, and if they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created.

[0042] The above-described technical solution of the present invention has the following technical effects compared with the prior art:

[0043] In this invention, in order to upgrade and update the system software of the storage system via a USB device, the following operations are performed:

[0044] First, when the boot disk of the storage system is created, the first drive letter information corresponding to the device that created the boot disk is obtained;

[0045] Next, when the USB device is inserted into the storage system, the second drive letter information corresponding to the USB device is obtained;

[0046] Then, the first drive letter information and the second drive letter information are compared, and if they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created;

[0047] Therefore, compared to the existing technology where the wrong drive letter of the USB device is easily selected during the boot disk creation process, leading to creation failure, the above-mentioned upgrade method can accurately obtain the USB device drive letter information and is less prone to errors.

[0048] At the same time, it can reduce manual time consumption, increase the error tolerance rate, and avoid the waste of working time caused by unprofessional manual operation. Attached Figure Description

[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 This is a flowchart illustrating the storage system upgrade method based on a USB device in Embodiment 1 of the present invention.

[0051] Figure 2 This is a schematic diagram of the overall process of the storage system upgrade method in an actual embodiment of the present invention;

[0052] Figure 3 This is a structural block diagram of the storage system upgrade device based on a USB device in Embodiment 2 of the present invention;

[0053] Figure 4This is an internal structural diagram of the computer device in Embodiment 2 of the present invention. Detailed Implementation

[0054] Currently, the traditional upgrade methods for USB device canning systems mainly include the following steps:

[0055] (1) Upload the system image file that needs to be bottled to the storage device that needs to be upgraded;

[0056] (2) Insert the USB device and use the dd command to create a system boot disk;

[0057] (3) Plug the USB device into the storage device that needs to upgrade the system, connect the storage serial port to the laptop, configure the boot options, and select USB flash drive to boot;

[0058] (4) Pay close attention to the system filling process; when the system filling progress reaches 100%, remove the USB flash drive and wait for the system to restart and load the environment.

[0059] It is evident that the above upgrade method has the following drawbacks:

[0060] 1. Cumbersome steps and low efficiency. The current method of upgrading USB devices through a canister system involves too many steps and the overall process is time-consuming.

[0061] 2. Prone to errors, and errors are difficult to pinpoint. Existing methods are error-prone and involve numerous steps:

[0062] (1) During the process of creating a bootable disk, it is easy to select the wrong drive letter of the USB device, which may lead to the failure of the creation process;

[0063] (2) The steps for configuring startup items differ depending on the type of storage device; incorrect configuration will cause the canning system to fail.

[0064] (3) When the system filling progress reaches 100%, if the USB device is not unplugged in time, the storage system filling process will cycle through the filling process.

[0065] Meanwhile, upgrading USB device canned storage systems is a common system upgrade method; in scenarios using common methods, it can reduce operation steps and improve efficiency; among them, increasing fault tolerance is a core element.

[0066] To address these issues, the present invention provides a storage system upgrade method and apparatus based on USB devices.

[0067] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0068] Example 1:

[0069] like Figure 1 As shown, this embodiment of the invention provides a storage system upgrade method based on a USB device, used to upgrade and update the system software of the storage system via a USB device. The upgrade method includes a USB drive letter information acquisition step, which includes:

[0070] S21 When the boot disk of the storage system is created, obtain the first drive letter information corresponding to the device that created the boot disk;

[0071] S22 When a USB device is inserted into the storage system, obtain the second drive letter information corresponding to the USB device;

[0072] S23 compares the first drive letter information and the second drive letter information, and if they are the same, uses the first drive letter information or the second drive letter information as the USB device drive letter information to determine that the boot disk has been successfully created.

[0073] In a specific embodiment, in order to upgrade and update the system software of the storage system via a USB device, the following operations are performed:

[0074] First, when the boot disk of the storage system is created, obtain the first drive letter information corresponding to the device that created the boot disk;

[0075] Next, when the USB device is inserted into the storage system, the second drive letter information corresponding to the USB device is obtained;

[0076] Then, the first drive letter information and the second drive letter information are compared, and if they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created;

[0077] Therefore, compared to the existing technology where the wrong drive letter of the USB device is easily selected during the boot disk creation process, leading to creation failure, the above-mentioned upgrade method can accurately obtain the USB device drive letter information and is less prone to errors.

[0078] At the same time, it can reduce manual time consumption, increase the error tolerance rate, and avoid the waste of working time caused by unprofessional manual operation.

[0079] In other words, existing storage system upgrade solutions have the following drawbacks: they are prone to errors and errors are difficult to locate. Existing methods are error-prone and involve many steps; in particular, during the creation of the boot disk, it is easy to select the wrong drive letter for the USB device, leading to creation failure.

[0080] The aforementioned storage system upgrade methods can address all of the above-mentioned shortcomings.

[0081] In a practical implementation, the storage system upgrade process can be integrated using shell scripts.

[0082] In process 2, the drive letter of the connected device can be automatically detected. The specific process for obtaining the USB drive letter is as follows:

[0083] First, use the command `fdisk -l` to obtain the drive letter information of the device used to create the bootable disk, and save it to the file `test1`. Then, insert the USB device, and again use the command `fdisk -l` to obtain the drive letter information of the device, saving it to the file `test2`. Use `diff test1 test2` to compare and output the drive letter information of the inserted USB device.

[0084] To retrieve the drive letter of a USB device, use the following command:

[0085] The command `fdisk -l | grep size(USB device size) -delim, | cut -d -f1` returns a result to `addr`.

[0086] In a preferred embodiment, the upgrade method further includes an error detection step, which comprises:

[0087] S71 obtains the process result of the nth step in the upgrade method according to the preset process completion time; where n is a positive integer;

[0088] S72 If the result of the nth step does not exist, return to the (n-1)th step to repeat the operation;

[0089] S73 obtains the number of times the operation is repeatedly executed; when the number of times the operation is repeatedly executed exceeds the preset alarm count, an alarm message for an unrecoverable process is generated to notify manual inspection of the process error.

[0090] In a specific embodiment, the above-described storage system upgrade method based on USB devices can be applied to the manual system upgrade process of storage products, reducing manual time consumption, increasing fault tolerance, and avoiding the waste of time caused by unprofessional manual operation.

[0091] In a practical implementation, when integrating the storage system upgrade process via shell scripts, a full-process error detection mechanism is added in process 7, i.e., a global error detection mechanism is added:

[0092] If any step encounters an error or the process is not completed within the set time, the process re-execution mechanism is triggered, returning to the previous step.

[0093] If the process triggers an alarm more than 3 times, a non-automatic recovery alarm mechanism will be activated, illuminating the red indicator light on the storage device. In this case, manual intervention is required to check for process errors.

[0094] In a preferred embodiment, the upgrade method further includes:

[0095] S1 retrieves product type information for the storage system;

[0096] S4 obtains USB boot configuration information based on product type information, which is used to upgrade the system via USB device canning.

[0097] Existing storage system upgrade solutions suffer from the following drawbacks: they are prone to errors and errors are difficult to locate. Existing methods are error-prone and involve numerous steps; furthermore, the configuration steps for startup items differ depending on the type of storage device; incorrect configuration can lead to system upgrade failure.

[0098] The aforementioned storage system upgrade methods can address all of the above-mentioned shortcomings.

[0099] In a practical implementation, when integrating the storage system upgrade process via shell script, the storage type can be obtained in process 1. Taking the Inspur storage product as an example, the specific script implementation is as follows:

[0100]

[0101] Executing the script above will retrieve the product type, which will then be used as the basis for determining the USB boot option in subsequent configurations.

[0102] Furthermore, when integrating the storage system upgrade process via shell scripts, in process 4, the startup item can be automatically configured according to the storage model, i.e., startup item configuration:

[0103] After the bootable disk is created, the script triggers the `mtop stopnode-reboot` command, causing the storage MCS system to restart. During the boot process, depending on the storage model obtained in the first step, it enters different boot configuration interfaces and automatically configures to boot from USB.

[0104] For example, if the storage device type is T1V1, select T1V1 on the system loading and startup interface to enter the T1V1 device upgrade process; if the storage device type is T1V2, select T1V2 on the system loading and startup interface to enter the T1V2 device upgrade process.

[0105] In a preferred embodiment, the upgrade method further includes a system node software upgrade step, which includes:

[0106] The S51 loads the image file from the USB device to upgrade the software nodes of the storage system;

[0107] S52 detects the upgrade progress information of software nodes according to the preset upgrade monitoring time interval;

[0108] When the upgrade progress information reaches the preset upgrade progress, the S53 will set the USB port to a disabled state.

[0109] Existing storage system upgrade solutions have the following drawbacks: they are prone to errors and errors are difficult to locate. Existing methods are error-prone and involve numerous steps; for example, if the USB device is not unplugged in time when the system loading progress reaches 100%, the storage system loading process will loop back to the loading stage.

[0110] In a practical implementation, when integrating the storage system upgrade process via shell scripts, system upgrades can be achieved in process 5:

[0111] First, the system loads the image file from the USB device and begins the system upgrade.

[0112] In addition, the system canning progress is monitored in real time. When the system upgrade progress is detected to be 100%, the USB interface is set to the disabled state, and the system upgrade enters the startup phase.

[0113] At this point, the USB device can be unplugged, and the upgrade of the next node can begin from the fourth process.

[0114] When monitoring the upgrade progress in real time, the system can check every 5 seconds whether the upgrade output interface prints "systemupgrade completed 100%"; if it does, the USB port will be set to disabled.

[0115] In a preferred embodiment, prior to S4, the upgrade method further includes:

[0116] S3 creates a bootable disk using commands from a USB device.

[0117] In a practical embodiment, when integrating the storage system upgrade process via shell script, in process 3, the dd command can be automatically started to create a boot disk. The command for creating a boot disk using the dd command is as follows:

[0118] The script executes `dd if = / ***.iso of = addr`. When it finds the field containing 100% & ©ed, it ends the boot disk creation process and proceeds to the next step.

[0119] In a preferred embodiment, after S53, the upgrade method further includes:

[0120] S61 obtains the node status of software nodes when the storage system starts up;

[0121] When the node status is candidate, S62 sets the storage device indicator light of the storage system to green.

[0122] In a practical implementation, when integrating the storage system upgrade process via shell scripts, system startup can be achieved in process 6:

[0123] During system startup, the script monitors the node status in real time; when the node status is "candidate", the green indicator light on the storage device is turned on.

[0124] In a preferred embodiment, prior to S21, the upgrade method further includes:

[0125] Upload the system image file to be packaged to the root directory of the storage device of the storage system, and plug the USB device into the USB port of the storage device.

[0126] In a practical embodiment, before integrating the storage system upgrade process via shell scripts, the overall process also includes:

[0127] Upload the system ISO image file to the root directory of the storage device whose system needs to be upgraded; insert the USB device into the storage device's USB port; this step is manual and cannot be simplified at this time.

[0128] In summary, in the actual implementation, the above-mentioned storage system upgrade method based on USB devices is a fully automatic storage system upgrade method based on USB, which can integrate all the processes of the manual canning system, so that the upgrade does not require additional manual intervention.

[0129] During the integration process, an automatically executing script needs to be created on the USB device. The script includes: automatic detection, determining the drive letter of the connected device, automatically starting the dd command to create a bootable disk, automatically configuring boot items according to the storage model, real-time monitoring of the system's loading progress, and adding an error detection mechanism throughout the entire process.

[0130] like Figure 2 As shown, the above storage system upgrade method can be implemented through two modules: a process module and an error detection module.

[0131] The specific implementation process of the workflow module is as follows:

[0132] (1) Upload the system ISO image file to the root directory of the storage device whose system needs to be upgraded; insert the USB device into the USB port of the storage device; this step is a manual operation and cannot be simplified at present.

[0133] (2) Shell script integration process module, the specific process is as follows:

[0134] Step 1: Obtain the storage type:

[0135] Taking Inspur storage products as an example, the specific implementation script is as follows:

[0136]

[0137] The above script execution retrieves the product type, which serves as the basis for determining the USB boot option in subsequent configurations.

[0138] Step 2: Obtain the drive letter of the USB device. The command is as follows:

[0139] `fdisk -l|grep size(USB device size) -delim,|cut -d -f1` will save the returned results to `addr`.

[0140] To obtain the USB drive letter, first use the command `fdisk -l` to get the drive letter information of the device used to create the bootable disk, and save it to the file `test1`. Then, insert the USB device and use the command `fdisk -l` again to get the drive letter information on the device, saving it to the file `test2`. Use `diff test1 test2` to compare and output the drive letter information of the inserted USB device.

[0141] Step 3: Use the dd command to create a bootable disk. The command is as follows:

[0142] The script executes `dd if = / ***.iso of = addr`. When it finds the field containing 100% & ©ed, it ends the boot disk creation process and proceeds to the next step.

[0143] Step 4, Startup Item Configuration:

[0144] After the bootable disk is created, the script triggers the `mtop stopnode-reboot` command, causing the storage MCS system to restart. During the boot process, depending on the storage model obtained in the first step, it enters different boot configuration interfaces and automatically configures to boot from USB.

[0145] For example, if the storage device type is T1V1, select T1V1 on the system loading and startup interface to enter the T1V1 device upgrade process; if the storage device type is T1V2, select T1V2 on the system loading and startup interface to enter the T1V2 device upgrade process.

[0146] Step 5: System Upgrade

[0147] The system loads the image file from the USB device and begins the system upgrade.

[0148] When the system upgrade progress is detected to be 100%, the USB interface will be disabled, and the system upgrade will enter the startup phase.

[0149] At this point, the USB device can be unplugged, and the upgrade of the next node can begin from the fourth process.

[0150] When monitoring the upgrade progress in real time, check every 5 seconds whether the upgrade output interface prints "system upgrade completed 100%"; if it does, set the USB port to the disabled state.

[0151] Step 6: System Startup

[0152] During system startup, the script monitors the node status in real time; when the node status is "candidate", the green indicator light on the storage device is turned on.

[0153] Step 7: Simultaneously, a global error detection mechanism is added:

[0154] If any step encounters an error or the process is not completed within the set time, the process re-execution mechanism is triggered, returning to the previous step.

[0155] If the process triggers an alarm more than 3 times, a non-automatic recovery alarm mechanism will be activated, illuminating the red indicator light on the storage device. In this case, manual intervention is required to check for process errors.

[0156] In summary, the storage system upgrade method based on USB devices provided in this embodiment of the invention can be applied to the manual system upgrade process of storage products, reducing manual time consumption, increasing fault tolerance, and avoiding wasted time caused by unprofessional manual operation.

[0157] It is important to note that although the steps in the flowchart are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the exact order indicated by the arrows. Unless explicitly stated herein, there is no strict order constraint on the execution of these steps; they can be executed in other orders. Furthermore, at least some steps in the flowchart may include multiple sub-steps or stages. These sub-steps or stages do not necessarily complete at the same time, but can be executed at different times. The execution order of these sub-steps or stages is also not necessarily sequential, but can be performed alternately or in rotation with other steps or at least some of the sub-steps or stages of other steps.

[0158] Example 2:

[0159] like Figure 3As shown, this embodiment of the invention also provides a storage system upgrade device based on a USB device, used to implement the aforementioned storage system upgrade method based on a USB device. The upgrade device includes a USB drive letter information acquisition unit, which includes:

[0160] The first drive letter information acquisition unit is used to acquire the first drive letter information corresponding to the device that created the boot disk when the boot disk of the storage system is created.

[0161] The second drive letter information acquisition unit is used to acquire the second drive letter information corresponding to the USB device when the USB device is inserted into the storage system.

[0162] The USB device drive letter information generation unit is used to compare the first drive letter information and the second drive letter information, and when they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created.

[0163] In a preferred embodiment, the upgrade device further includes an error detection unit, which is used for:

[0164] The result of step n in the upgrade method is obtained based on the preset completion time; where n is a positive integer.

[0165] If the result of step n does not exist, return to step n-1 and repeat the operation.

[0166] Get the number of times the operation is repeated; when the number of repeated operations exceeds the preset alarm count, generate an alarm message for an unrecoverable process to notify manual inspection of the process error.

[0167] In a preferred embodiment, the upgrade device further includes:

[0168] The product type information acquisition unit is used to acquire product type information of the storage system.

[0169] The boot item configuration unit is used to obtain USB boot item configuration information based on product type information, and is used to upgrade the system through USB device canning.

[0170] In a preferred embodiment, the upgrade apparatus further includes a system node software upgrade unit, which is used for:

[0171] Upgrade the software nodes of the storage system by loading the image file from the USB device;

[0172] The upgrade progress information of software nodes is detected according to the preset upgrade monitoring time interval;

[0173] When the upgrade progress reaches the preset upgrade progress, the USB port will be set to disabled state.

[0174] In a preferred embodiment, the upgrade device further includes:

[0175] The boot disk creation unit is used to create a boot disk using commands from a USB device.

[0176] In a preferred embodiment, the upgrade device further includes a system startup unit, which is used for:

[0177] When the storage system starts up, it obtains the node status of the software nodes;

[0178] When a node is in the candidate state, the storage device indicator light of the storage system is set to green.

[0179] In a preferred embodiment, the upgrade apparatus further includes an upgrade environment preparation unit, which is used for:

[0180] Upload the system image file to be packaged to the root directory of the storage device of the storage system, and plug the USB device into the USB port of the storage device.

[0181] For specific limitations on the aforementioned apparatus, please refer to the limitations on the method described above, which will not be repeated here.

[0182] Each module in the aforementioned device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0183] Among them, such as Figure 4 As shown, the aforementioned computer device can be a terminal, comprising a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse, etc.

[0184] It is understood that the structures shown in the above figures are merely block diagrams of some structures related to the present invention and do not constitute a limitation on the computer device to which the present invention is applied. Specific computer devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.

[0185] Example 3:

[0186] This invention also provides a computer device, including a memory, a processor, and a computer program. The computer program is stored in the memory and can run on the processor. When the processor executes the computer program, it performs the following steps:

[0187] S21 When the boot disk of the storage system is created, obtain the first drive letter information corresponding to the device that created the boot disk;

[0188] S22 When a USB device is inserted into the storage system, obtain the second drive letter information corresponding to the USB device;

[0189] S23 compares the first drive letter information and the second drive letter information, and if they are the same, uses the first drive letter information or the second drive letter information as the USB device drive letter information to determine that the boot disk has been successfully created.

[0190] In a preferred embodiment, the processor further performs the following steps when executing the computer program:

[0191] The error detection steps include: S71 obtaining the process result of the nth step in the upgrade method according to the preset process completion time; where n is a positive integer; S72 if the process result of the nth step does not exist, then return to the (n-1)th step to repeat the operation; S73 obtaining the number of repeated operations; when the number of repeated operations exceeds the preset alarm number, generating an alarm message for an unrecoverable process to notify manual inspection of process errors.

[0192] In a preferred embodiment, the processor further performs the following steps when executing the computer program:

[0193] S1 obtains the product type information of the storage system; S4 obtains the USB boot configuration information based on the product type information, which is used to upgrade the system via USB device.

[0194] In a preferred embodiment, the processor further performs the following steps when executing the computer program:

[0195] The system node software upgrade steps include: S51 loading the image file in the USB device to upgrade the software node of the storage system; S52 detecting the upgrade progress information of the software node according to the preset upgrade monitoring time interval; S53 setting the USB port to a disabled state when the upgrade progress information reaches the preset upgrade progress.

[0196] In a preferred embodiment, the processor further performs the following steps when executing the computer program:

[0197] Prior to S4, it also included: S3, which creates a boot disk using commands from a USB device.

[0198] In a preferred embodiment, the processor further performs the following steps when executing the computer program:

[0199] Following S53, the following steps are also included: S61 When the storage system starts up, obtain the node status of the software node; S62 When the node status is a candidate status, set the storage device indicator light of the storage system to the green light state.

[0200] In a preferred embodiment, the processor further performs the following steps when executing the computer program:

[0201] Prior to S21, it also included: uploading the system image file to be packaged to the root directory of the storage device of the storage system, and inserting the USB device into the USB port of the storage device.

[0202] Example 4:

[0203] This invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the following steps:

[0204] S21 When the boot disk of the storage system is created, obtain the first drive letter information corresponding to the device that created the boot disk;

[0205] S22 When a USB device is inserted into the storage system, obtain the second drive letter information corresponding to the USB device;

[0206] S23 compares the first drive letter information and the second drive letter information, and if they are the same, uses the first drive letter information or the second drive letter information as the USB device drive letter information to determine that the boot disk has been successfully created.

[0207] In a preferred embodiment, the computer program, when executed by the processor, further performs the following steps:

[0208] The error detection steps include: S71 obtaining the process result of the nth step in the upgrade method according to the preset process completion time; where n is a positive integer; S72 if the process result of the nth step does not exist, then return to the (n-1)th step to repeat the operation; S73 obtaining the number of repeated operations; when the number of repeated operations exceeds the preset alarm number, generating an alarm message for an unrecoverable process to notify manual inspection of process errors.

[0209] In a preferred embodiment, the computer program, when executed by the processor, further performs the following steps:

[0210] S1 obtains the product type information of the storage system; S4 obtains the USB boot configuration information based on the product type information, which is used to upgrade the system via USB device.

[0211] In a preferred embodiment, the computer program, when executed by the processor, further performs the following steps:

[0212] The system node software upgrade steps include: S51 loading the image file in the USB device to upgrade the software node of the storage system; S52 detecting the upgrade progress information of the software node according to the preset upgrade monitoring time interval; S53 setting the USB port to a disabled state when the upgrade progress information reaches the preset upgrade progress.

[0213] In a preferred embodiment, the computer program, when executed by the processor, further performs the following steps:

[0214] Prior to S4, it also included: S3, which creates a boot disk using commands from a USB device.

[0215] In a preferred embodiment, the computer program, when executed by the processor, further performs the following steps:

[0216] Following S53, the following steps are also included: S61 When the storage system starts up, obtain the node status of the software node; S62 When the node status is a candidate status, set the storage device indicator light of the storage system to the green light state.

[0217] In a preferred embodiment, the computer program, when executed by the processor, further performs the following steps:

[0218] Prior to S21, it also included: uploading the system image file to be packaged to the root directory of the storage device of the storage system, and inserting the USB device into the USB port of the storage device.

[0219] It is understood that the implementation of all or part of the processes in the above embodiments can be accomplished by a computer program instructing related hardware. 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 methods.

[0220] Any references to memory, storage, database, or other media used in the embodiments provided in this invention 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 various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0221] It should be noted that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A method for upgrading a storage system based on a USB device, characterized in that, The upgrade method is used to upgrade and update the storage system via a USB device, and includes: Obtain the product type information of the storage system; Upload the system image file to be packaged to the root directory of the storage device of the storage system, and insert the USB device into the USB interface of the storage device. Use the commands in the USB device to create the boot disk of the storage system. During the creation process, the script will only end the boot disk creation and proceed to the next process when it retrieves the specified field. The steps to obtain USB drive letter information include: When the boot disk of the storage system is created, the first drive letter information corresponding to the device that created the boot disk is obtained by filtering the USB device size, and the first drive letter information is saved to the file test1. When the USB device is inserted into the storage system, the second drive letter information corresponding to the USB device is obtained by filtering based on the size of the USB device, and the second drive letter information is saved to the file test2; The first drive letter information and the second drive letter information are compared. If they are the same, the first drive letter information or the second drive letter information is used as the USB device drive letter information to determine that the boot disk has been successfully created. The USB device drive letter information is used as a prerequisite verification parameter for the subsequent USB boot item configuration and system node software upgrade of the storage system. The USB boot configuration information is obtained based on the product type information, and is used for upgrading the system via USB device canning. After the boot disk is created, the script triggers an instruction to restart the storage MCS system. Based on the obtained storage model, it enters the different boot configuration interface and automatically configures the system to boot from USB. The system node software upgrade steps include: The image file within the USB device is loaded to upgrade the software nodes of the storage system; The upgrade progress information of the software node is detected according to a preset upgrade monitoring time interval; When the upgrade progress information reaches the preset upgrade progress, the USB port will be set to disabled state; The error detection step includes: obtaining the process result of the nth step in the upgrade method according to the preset process completion time; where n is a positive integer; If the result of the nth step does not exist, then return to the (n-1)th step to repeat the operation; The number of times the operation is repeatedly executed is obtained; when the number of times the operation is repeatedly executed exceeds the preset alarm count, an alarm message for an unrecoverable process is generated to notify manual inspection of the process error; wherein, the above steps in the upgrade method are integrated through a script.

2. The storage system upgrade method based on a USB device according to claim 1, characterized in that, After disabling the USB port, the upgrade method further includes: When the storage system starts up, it obtains the node status of the software node; When the node status is candidate, the storage device indicator light of the storage system is set to green.

3. A storage system upgrade device based on a USB device, characterized in that, For implementing the storage system upgrade method based on a USB device as described in any one of claims 1-2, the upgrade device includes a USB drive letter information acquisition unit, which includes: The boot disk creation unit is used to upload the system image file to be packaged to the root directory of the storage device of the storage system, and after inserting the USB device into the USB interface of the storage device, create a boot disk for the storage system. The first drive letter information acquisition unit is used to obtain the first drive letter information corresponding to the device that created the boot disk by using the fdisk -l command in combination with the size of the USB device when the boot disk of the storage system is created, and save the first drive letter information to the file test1. The second drive letter information acquisition unit is used to obtain the second drive letter information corresponding to the USB device again by using the fdisk -l command combined with the size of the USB device when the USB device is inserted into the storage system, and save the second drive letter information to the file test2. The USB device drive letter information generation unit is used to compare the first drive letter information and the second drive letter information using the diff test1 test2 command, and when they are the same, use the first drive letter information or the second drive letter information as the USB device drive letter information to determine that the boot disk has been successfully created, and use the USB device drive letter information as a prerequisite verification parameter for the subsequent USB boot item configuration and system node software upgrade of the storage system.

4. A computer device, comprising a memory, a processor, and a computer program, wherein the computer program is stored in the memory and can run on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the storage system upgrade method based on a USB device as described in any one of claims 1-2.

5. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the storage system upgrade method based on a USB device as described in any one of claims 1-2.