A virtual NAS system upgrade method, device, equipment and storage medium
By using a dual-node unified storage system in the NAS cluster, setting the upgrade node to standby state and transferring service resources, the problem of low efficiency of individual upgrades in the NAS cluster is solved, and the minimum impact on node services during the automated upgrade process is achieved.
Patent Information
- Application Number
- CN202111257200.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-10-27
AI Technical Summary
In existing NAS clusters, systems with a single node cannot be upgraded separately, resulting in low upgrade efficiency.
A two-node unified storage system is adopted. By setting the upgrade node to standby state, the service resources are transferred to another node for upgrade operation, and the resources are returned after completion, to achieve automated and separate upgrades.
It realizes the automated and separate upgrade of the virtual NAS system in the cluster node, reducing the blocking time on the client and reducing the impact on the node business.
Smart Images

Figure CN114020292B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of storage systems, and in particular to a virtual NAS system upgrade method, device, equipment and storage medium. Background Art
[0002] A NAS (Network Attached Storage) system is a system that connects storage devices to an existing network to provide data and file services. A NAS server generally consists of several parts, including storage hardware, an operating system, and a file system on it. NAS directly connects to disk storage arrays via the network, and the magnetic arrays have features such as high capacity, high performance, and high reliability. NAS connects storage devices to the Internet directly through a standard network topology without the need for a server, and does not rely on a general operating system. Instead, it uses a simplified operating system designed for users and specifically for data storage. It has built-in protocols required for network connection, making the management and setup of the entire system relatively simple. Currently, when upgrading the NAS system in a NAS cluster, it can only be upgraded as a whole, and the system of a single node cannot be upgraded separately, making the system upgrade efficiency of the NAS cluster low.
[0003] Therefore, how to provide an efficient virtual NAS system upgrade solution is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention
[0004] In view of this, an object of the present invention is to provide a virtual NAS system upgrade method, apparatus, device and storage medium, which can automatically and individually upgrade the virtual NAS systems in cluster nodes.
[0005] The specific plan is as follows:
[0006] A first aspect of the present application provides a virtual NAS system upgrade method, comprising:
[0007] Obtain an upgrade instruction, and load the upgrade file in the first NAS node according to the upgrade instruction;
[0008] Transferring service resources in the first NAS node to the second NAS node by controlling the first NAS node to be in a standby state;
[0009] The virtual NAS system in the first NAS node is upgraded using the upgrade file, and the service resources transferred to the second NAS node are transferred back to the first NAS node after the upgrade operation.
[0010] Optionally, loading the upgrade file in the first NAS node according to the upgrade instruction includes:
[0011] The upgrade file is downloaded from the cloud server according to the upgrade instruction, and the upgrade file is loaded into the data partition of the first NAS node.
[0012] Optionally, after loading the upgrade file in the first NAS node according to the upgrade instruction, the method further includes:
[0013] Verification information corresponding to the upgrade file is downloaded from the cloud server, so as to verify the upgrade file loaded into the first NAS node using the verification information.
[0014] Optionally, before transferring the service resources in the first NAS node to the second NAS node by controlling the first NAS node to be in a standby state, the method further includes:
[0015] If the upgrade file passes the verification, triggering the generation of an identification file corresponding to the upgrade file and containing information about the upgrade file by calling an upgrade command;
[0016] Accordingly, the upgrading operation on the virtual NAS system in the first NAS node using the upgrade file includes:
[0017] Restarting the first NAS node and determining whether the restarted first NAS node contains an identification file through the initramfs file system;
[0018] If yes, the identification file is read to determine the corresponding upgrade file, and the upgrade file is decompressed to perform an upgrade operation on the virtual NAS system in the first NAS node using the decompressed upgrade file.
[0019] Optionally, the upgrading the virtual NAS system in the first NAS node by using the decompressed upgrade file includes:
[0020] Using the decompressed upgrade file, update the corresponding data in the boot partition and system partition of the first NAS node;
[0021] Deleting the identification file and restarting the first NAS node after the update process;
[0022] Perform initialization and re-authentication operations on the restarted first NAS node.
[0023] Optionally, after transferring the service resources transferred to the second NAS node back to the first NAS node after the upgrade operation, the method further includes:
[0024] The configuration file in the configuration partition of the first NAS node after the upgrade operation is reconfigured to obtain a new configuration file adapted to the virtual NAS system after the upgrade operation.
[0025] Optionally, the virtual NAS system upgrade method further includes:
[0026] If an error occurs during the upgrade process, the old upgrade file backed up in the data partition of the first NAS node is used to perform a rollback upgrade.
[0027] After the upgrade operation is completed, other upgrade files except the upgrade file corresponding to the virtual NAS system after the upgrade operation are deleted from the data partition, so that only the upgrade file corresponding to the virtual NAS system after the upgrade operation is stored in the data partition.
[0028] A second aspect of the present application provides a virtual NAS system upgrade device, comprising:
[0029] an acquisition module, configured to acquire an upgrade instruction and load an upgrade file into the first NAS node according to the upgrade instruction;
[0030] a first transfer module, configured to transfer service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state;
[0031] The second transfer module is configured to perform an upgrade operation on the virtual NAS system in the first NAS node using the upgrade file, and transfer the service resources transferred to the second NAS node back to the first NAS node after the upgrade operation.
[0032] A third aspect of the present application provides an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the aforementioned virtual NAS system upgrade method.
[0033] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are loaded and executed by a processor, the aforementioned virtual NAS system upgrade method is implemented.
[0034] In this application, the upgrade instruction is first obtained, and the upgrade file is loaded in the first NAS node according to the upgrade instruction; then the service resources in the first NAS node are transferred to the second NAS node by controlling the first NAS node to be in standby state; finally, the virtual NAS system in the first NAS node is upgraded using the upgrade file, and the service resources transferred to the second NAS node are transferred back to the first NAS node after the upgrade operation. It can be seen that this application is based on a dual-node unified storage system, making full use of two nodes for service resource transfer, loading the upgrade file to the upgrade node when the upgrade instruction is obtained, blocking the client business by setting the upgrade node to standby state, and then transferring the service resources to another node and upgrading the upgrade node using the upgrade file. After the upgrade is completed, the service resources are transferred to the upgrade node. During the entire upgrade process, there is only a short blockage for the client, which is highly versatile and has little impact on the node business, thereby realizing automatic and separate upgrades of the virtual NAS system in the cluster node. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0036] Figure 1 A flowchart of a virtual NAS system upgrade method provided in this application;
[0037] Figure 2 A schematic diagram of the structure of a virtual NAS system upgrade device provided in this application;
[0038] Figure 3 This is a diagram of the electronic device structure for upgrading a virtual NAS system provided in this application. DETAILED DESCRIPTION
[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0040] Currently, when upgrading the NAS system in a NAS cluster, it can only be upgraded as a whole, and it is impossible to upgrade the system of a single node separately, which makes the system upgrade efficiency of the NAS cluster low. In response to the above technical defects, the present application provides a virtual NAS system upgrade solution, which is based on a dual-node unified storage system and makes full use of the two nodes to transfer service resources. When the upgrade instruction is obtained, the upgrade file is loaded into the upgrade node, and the client service is blocked by setting the upgrade node to standby state. Then, the service resources are transferred to another node and the upgrade node is upgraded using the upgrade file. After the upgrade is completed, the service resources are transferred to the upgrade node. During the entire upgrade process, there is only a short blockage for the client, which is highly versatile and has little impact on the node service, thereby realizing the automatic and separate upgrade of the virtual NAS system in the cluster node.
[0041] Figure 1 This is a flowchart of a virtual NAS system upgrade method provided by an embodiment of the present application. Figure 1 As shown, the virtual NAS system upgrade method includes:
[0042] S11: Obtain an upgrade instruction, and load an upgrade file in the first NAS node according to the upgrade instruction.
[0043] In this embodiment, an upgrade instruction is obtained and, based on the upgrade instruction, the upgrade file is loaded into the first NAS node. The NAS system is implemented based on KVM (kernel-based virtual machine), which implements the NAS protocol and network communication. By optimizing the installation process and service switching sequence, service disruption caused by the upgrade is reduced. The NAS virtual host is based on a two-node unified storage system. The two communicate via the storage system's internal links to form a NAS cluster and independently provide NAS services through service resources. The virtual NAS system has a boot partition, a system partition, a configuration partition, and a data partition. The boot partition is the first partition and is read-only in normal mode. It contains basic system components such as the kernel, initramfs (initial RAM file system), and grub. The system partition is the root file system. The configuration partition stores customized configuration files and audit logs for user services. The isolation of the configuration partition from the data partition ensures the complete preservation of user configuration and logs. The data partition stores backups of the current system installation files and the system upgrade (installation) files to be upgraded. This embodiment provides independent NAS system automatic upgrade and rollback capabilities through multi-partition backup, automatic service switching, and automatic configuration restoration.
[0044] The upgrade instruction is obtained through periodic detection by the storage system or through manual triggering. When it is detected that the NAS system needs to be upgraded, the upgrade file is first downloaded from the cloud server according to the upgrade instruction and loaded into the data partition of the first NAS node. Then, verification information corresponding to the upgrade file is downloaded from the cloud server, and the upgrade file loaded into the first NAS node is verified using the verification information. The configuration node (upgrade node) downloads the upgrade file and verification code file from the cloud to the data partition of the local NAS system. In this embodiment, the configuration node is the first NAS node.
[0045] S12: Transferring service resources in the first NAS node to the second NAS node by controlling the first NAS node to be in a standby state.
[0046] In this embodiment, the service resources in the first NAS node are transferred to the second NAS node by controlling the first NAS node to be in a standby state. The service resources include business resources and network resources. By using configuration and data partitioning, the upgrade of the NAS system is completed separately through the transfer control of business resources. Prior to this, the NAS system of the first NAS node already has an upgrade installation file. When the upgrade command is received, a verification is performed. If the upgrade file verification passes, the generation of an identification file corresponding to the upgrade file and containing the information of the upgrade file is triggered by calling the upgrade command. The identification file is an upgrade flag file with the version information of the upgrade file written in it. That is, if the verification is successful, an upgrade flag file is created and the information of the upgrade package is written in it.
[0047] Based on this, the NAS cluster puts the first NAS node into standby mode, stopping the network services on this node to block client services. It then stops the remaining protocol service resources and loads and restarts them on the second NAS node. After the restart is complete, network resources are transferred in the same way, and client services resume normal operation. By preemptively placing the node in standby mode and transferring resources, the impact on customers is minimized.
[0048] S13: Using the upgrade file, perform an upgrade operation on the virtual NAS system in the first NAS node, and transfer the service resources transferred to the second NAS node back to the first NAS node after the upgrade operation.
[0049] In this embodiment, the virtual NAS system in the first NAS node is upgraded using the upgrade file, and the service resources that were transferred to the second NAS node are re-transferred to the upgraded first NAS node. Specifically, the first NAS node is restarted and the initramfs file system is used to determine whether the restarted first NAS node contains an identification file. Upon detecting the identification file, or upgrade flag file, a self-test triggers the upgrade process. A detection and installation program is added to the initramfs file, automatically checking and upgrading the system at each startup.
[0050] First, read the identification file to determine the corresponding upgrade file, and decompress the upgrade file. Then, use the decompressed upgrade file to update the corresponding data in the boot partition and system partition of the first NAS node. At the same time, delete the identification file and restart the first NAS node after the update. Finally, perform initialization and re-authentication operations on the restarted first NAS node. In the above process, after the first NAS node is restarted, initramfs first determines whether the data partition has an upgrade flag file. If so, it decompresses the corresponding upgrade package according to the information in the file, and replaces the content in the corresponding boot and system partitions. After completion, delete the flag file and restart. After the first NAS node is started, it generates a system name based on the storage node information and completes basic initialization. Re-authenticate and join the NAS cluster.
[0051] After the upgrade file is installed, the service resources transferred to the second NAS node are transferred back to the upgraded first NAS node. The second NAS node stops the network resources originally running on the first NAS node to block client services. The remaining protocol resources originally running on the first NAS node are transferred back to the first NAS node and self-verify the related services. After the self-verification is successful, the network is restored. At this point, the local node (the first NAS node) takes over its own resources. Then, the configuration is re-issued based on the customer configuration and the current version. The configuration file in the configuration partition of the upgraded first NAS node is reconfigured to obtain a new configuration file adapted for the upgraded virtual NAS system. In other words, the current protocol version is adapted according to the configuration in the current configuration partition. In this embodiment, user configuration is automatically restored without manual import, completing a fully automated upgrade. Finally, the currently running protocol process is self-checked. If it is correct, the network resources are transferred. After the transfer is complete, the upgrade of the first NAS node is completed and client services are restored. After the upgrade of the first NAS node is complete, the upgrade file is transferred to the second NAS node and upgraded through the same steps as in this embodiment, thereby completing the upgrade of the entire cluster.
[0052] In order to ensure a certain degree of fault tolerance, when an error occurs in the upgrade operation, the old upgrade file backed up in the data partition of the first NAS node is used to roll back the upgrade. When a failure occurs in the above steps, the rollback is actively triggered, and the old version of the upgrade package in the data partition is used to carry out the installation process. When an error occurs during the upgrade, the rollback mechanism will restore the backup upgrade package in the data partition. After the upgrade operation of the first NAS node and the second NAS node is completed, the other upgrade files in the data partition except the upgrade file corresponding to the virtual NAS system after the upgrade operation are deleted, so that only the upgrade file corresponding to the virtual NAS system after the upgrade operation is saved in the data partition. After the upgrade of both nodes is completed, the old version of the upgrade package in the data partition is deleted, and only the upgrade package consistent with the current version is retained.
[0053] It can be seen that the embodiment of the present application first obtains the upgrade instruction, and loads the upgrade file in the first NAS node according to the upgrade instruction; then the service resources in the first NAS node are transferred to the second NAS node by controlling the first NAS node to be in the standby state; finally, the virtual NAS system in the first NAS node is upgraded using the upgrade file, and the service resources transferred to the second NAS node are transferred back to the first NAS node after the upgrade operation. The embodiment of the present application is based on a dual-node unified storage system, which makes full use of the two nodes to transfer service resources. When the upgrade instruction is obtained, the upgrade file is loaded into the upgrade node, and the client service is blocked by setting the upgrade node to the standby state. Then, the service resources are transferred to another node and the upgrade node is upgraded using the upgrade file. After the upgrade is completed, the service resources are transferred to the upgrade node. During the entire upgrade process, there is only a short blockage for the client, which is highly versatile and has little impact on the node service, thereby realizing the automatic and separate upgrade of the virtual NAS system in the cluster node.
[0054] See also Figure 2 As shown, the embodiment of the present application also discloses a virtual NAS system upgrade device, including:
[0055] An acquisition module 11 is configured to acquire an upgrade instruction and load an upgrade file into the first NAS node according to the upgrade instruction;
[0056] A first transfer module 12 is configured to transfer service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state;
[0057] The second transfer module 13 is configured to perform an upgrade operation on the virtual NAS system in the first NAS node using the upgrade file, and transfer the service resources transferred to the second NAS node back to the first NAS node after the upgrade operation.
[0058] It can be seen that the embodiment of the present application first obtains the upgrade instruction, and loads the upgrade file in the first NAS node according to the upgrade instruction; then the service resources in the first NAS node are transferred to the second NAS node by controlling the first NAS node to be in the standby state; finally, the virtual NAS system in the first NAS node is upgraded using the upgrade file, and the service resources transferred to the second NAS node are transferred back to the first NAS node after the upgrade operation. The embodiment of the present application is based on a dual-node unified storage system, which makes full use of the two nodes to transfer service resources. When the upgrade instruction is obtained, the upgrade file is loaded into the upgrade node, and the client service is blocked by setting the upgrade node to the standby state. Then, the service resources are transferred to another node and the upgrade node is upgraded using the upgrade file. After the upgrade is completed, the service resources are transferred to the upgrade node. During the entire upgrade process, there is only a short blockage for the client, which is highly versatile and has little impact on the node service, thereby realizing the automatic and separate upgrade of the virtual NAS system in the cluster node.
[0059] In some specific embodiments, the acquisition module specifically includes:
[0060] an upgrade file downloading unit, configured to download the upgrade file from the cloud server according to the upgrade instruction, and load the upgrade file into the data partition of the first NAS node;
[0061] The verification information downloading unit is configured to download verification information corresponding to the upgrade file from the cloud server, so as to verify the upgrade file loaded into the first NAS node using the verification information.
[0062] In some specific embodiments, the virtual NAS system upgrade device further includes:
[0063] a trigger module, configured to trigger, if the upgrade file passes verification, the generation of an identification file corresponding to the upgrade file and containing information about the upgrade file by calling an upgrade command;
[0064] a configuration module, configured to reconfigure the configuration file in the configuration partition of the first NAS node after the upgrade operation to obtain a new configuration file adapted to the virtual NAS system after the upgrade operation;
[0065] Accordingly, in some specific embodiments, the second transfer module 13 specifically includes:
[0066] A judging unit, configured to restart the first NAS node and judge, through an initramfs file system, whether the restarted first NAS node contains an identification file;
[0067] a reading unit, configured to read the identification file to determine the corresponding upgrade file if yes;
[0068] a decompression unit, configured to decompress the upgrade file to update corresponding data in the boot partition and the system partition of the first NAS node using the decompressed upgrade file;
[0069] a deleting unit, configured to delete the identification file and restart the first NAS node after the update process;
[0070] The initialization unit is configured to perform an initialization operation and a re-authentication operation on the restarted first NAS node.
[0071] Furthermore, an embodiment of the present application also provides an electronic device. Figure 3 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation to the scope of application of the present application.
[0072] Figure 3 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the virtual NAS system upgrade method disclosed in any of the aforementioned embodiments. Furthermore, the electronic device 20 in this embodiment may be a server.
[0073] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0074] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0075] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, enabling the processor 21 to operate and process the massive amount of data 223 in the memory 22. It can be Windows Server, NetWare, Unix, Linux, etc. In addition to including computer programs capable of performing the virtual NAS system upgrade method performed by the electronic device 20 as disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks. The data 223 may include upgrade files collected by the electronic device 20.
[0076] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the virtual NAS system upgrade method disclosed in any of the aforementioned embodiments are implemented.
[0077] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0078] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only 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 terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0079] The above describes in detail the virtual NAS system upgrade method, apparatus, device, and storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementations of the present invention. The above examples are intended only to facilitate understanding of the method and core concepts of the present invention. Furthermore, those skilled in the art will appreciate that variations in the specific implementations and scope of application are possible based on the principles of the present invention. Therefore, this specification should not be construed as limiting the present invention.
Claims
1. A virtual NAS system upgrade method, characterized in that: include: Obtain an upgrade instruction, and load the upgrade file in the first NAS node according to the upgrade instruction; Transferring service resources in the first NAS node to the second NAS node by controlling the first NAS node to be in a standby state; Performing an upgrade operation on the virtual NAS system in the first NAS node using the upgrade file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after the upgrade operation; After the upgrade file is installed, the second NAS node stops the network resources originally running on the first NAS node, transfers the protocol resources originally running on the first NAS node to the first NAS node, and performs self-verification on the relevant services. After the self-verification is successful, the network is restored, and the configuration file in the configuration partition of the first NAS node after the upgrade operation is reconfigured to obtain the corresponding new configuration file. Then, the currently running protocol process is self-checked. After it is correct, the network resources are transferred. After the transfer is complete, the upgrade of the first NAS node is completed, and the client service is restored.
2. The virtual NAS system upgrade method according to claim 1, characterized in that: The step of loading the upgrade file in the first NAS node according to the upgrade instruction includes: The upgrade file is downloaded from the cloud server according to the upgrade instruction, and the upgrade file is loaded into the data partition of the first NAS node.
3. The virtual NAS system upgrade method according to claim 2, characterized in that: After the upgrade file is loaded in the first NAS node according to the upgrade instruction, the method further includes: Verification information corresponding to the upgrade file is downloaded from the cloud server, so as to verify the upgrade file loaded into the first NAS node using the verification information.
4. The virtual NAS system upgrade method according to claim 3, wherein: Before transferring the service resources in the first NAS node to the second NAS node by controlling the first NAS node to be in a standby state, the method further includes: If the upgrade file passes the verification, triggering the generation of an identification file corresponding to the upgrade file and containing information about the upgrade file by calling an upgrade command; Accordingly, the upgrading operation on the virtual NAS system in the first NAS node using the upgrade file includes: Restarting the first NAS node and determining whether the restarted first NAS node contains an identification file through the initramfs file system; If yes, the identification file is read to determine the corresponding upgrade file, and the upgrade file is decompressed to perform an upgrade operation on the virtual NAS system in the first NAS node using the decompressed upgrade file.
5. The virtual NAS system upgrade method according to claim 4, characterized in that: The upgrading operation on the virtual NAS system in the first NAS node by using the decompressed upgrade file includes: Using the decompressed upgrade file, update the corresponding data in the boot partition and system partition of the first NAS node; Deleting the identification file and restarting the first NAS node after the update process; Perform initialization and re-authentication operations on the restarted first NAS node.
6. The virtual NAS system upgrade method according to claim 5, characterized in that: After transferring the service resources transferred to the second NAS node back to the first NAS node after the upgrade operation, the method further includes: The configuration file in the configuration partition of the first NAS node after the upgrade operation is reconfigured to obtain a new configuration file adapted to the virtual NAS system after the upgrade operation.
7. The virtual NAS system upgrade method according to any one of claims 1 to 6, characterized in that: Also includes: If an error occurs during the upgrade process, the old upgrade file backed up in the data partition of the first NAS node is used to perform a rollback upgrade. After the upgrade operation is completed, other upgrade files except the upgrade file corresponding to the virtual NAS system after the upgrade operation are deleted from the data partition, so that only the upgrade file corresponding to the virtual NAS system after the upgrade operation is stored in the data partition.
8. A virtual NAS system upgrade device, characterized in that: include: an acquisition module, configured to acquire an upgrade instruction and load an upgrade file into the first NAS node according to the upgrade instruction; a first transfer module, configured to transfer service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state; a second transfer module, configured to perform an upgrade operation on the virtual NAS system in the first NAS node using the upgrade file, and to transfer the service resources transferred to the second NAS node back to the first NAS node after the upgrade operation; The virtual NAS system upgrade device is further configured to: after the upgrade file is installed, the second NAS node stops the network resources originally running on the first NAS node, transfers the protocol resources originally running on the first NAS node to the first NAS node, and performs self-verification on the relevant services. After the self-verification is successful, the network is restored, and the configuration file in the configuration partition of the first NAS node after the upgrade operation is reconfigured to obtain a corresponding new configuration file. Then, the currently running protocol process is self-checked, and the network resources are transferred after verification. After the transfer is complete, the upgrade of the first NAS node is completed, and client services are restored.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the virtual NAS system upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The method is used to store computer executable instructions, which, when loaded and executed by a processor, implement the virtual NAS system upgrade method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for BMC (Baseboard Management Controller) with external upgrading
CN106445580A
Method for repointing resources between hosts
US20200042355A1