CN114020292A - Virtual NAS system upgrading method, device, equipment and storage medium - Google Patents

Virtual NAS system upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN114020292A
CN114020292A CN202111257200.1A CN202111257200A CN114020292A CN 114020292 A CN114020292 A CN 114020292A CN 202111257200 A CN202111257200 A CN 202111257200A CN 114020292 A CN114020292 A CN 114020292A
Authority
CN
China
Prior art keywords
nas
upgrade
upgrading
node
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111257200.1A
Other languages
Chinese (zh)
Inventor
马桂杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN202111257200.1A priority Critical patent/CN114020292A/en
Publication of CN114020292A publication Critical patent/CN114020292A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The application discloses a method, a device, equipment and a storage medium for upgrading a virtual NAS system, which comprise the following steps: acquiring an upgrading instruction, and loading an upgrading file in a first NAS node according to the upgrading instruction; transferring service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state; and upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation. Therefore, the method and the device are based on the dual-node unified storage system, the upgrading node is set to be in the standby state to block the client service, then the service resource is transferred to another node, and the service resource is transferred to the upgrading node after upgrading is completed, so that universality is strong, influence on the node service is small, and automatic independent upgrading of the virtual NAS system in the cluster node is realized.

Description

Virtual NAS system upgrading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of storage system technologies, and in particular, to a method, an apparatus, a device, and a storage medium for upgrading a virtual NAS system.
Background
A NAS (Network Attached Storage) system is a system that connects Storage devices to an existing Network to provide data and file services. The NAS server generally consists of several parts, including storage hardware, an operating system, and a file system thereon. The NAS is directly connected with a disk storage array through a network, and the magnetic array has the characteristics of high capacity, high efficiency, high reliability and the like. The NAS connects the storage equipment to the Internet directly without a server through a standard network topology structure, does not depend on a general operating system, adopts a simplified operating system which is designed for users and is specially used for data storage, and embeds a protocol required by network connection, thereby leading the management and the setting of the whole system to be simpler. At present, when the NAS system in the NAS cluster is upgraded, only the whole NAS system can be upgraded, and the system of a single node cannot be upgraded independently, so that the system upgrading efficiency of the NAS cluster is low.
Therefore, how to provide an efficient upgrading scheme for a virtual NAS system is a technical problem to be urgently solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention is to provide a method, an apparatus, a device and a storage medium for upgrading a virtual NAS system, which can automatically and individually upgrade the virtual NAS system in a cluster node.
The specific scheme is as follows:
a first aspect of the present application provides a virtual NAS system upgrade method, including:
acquiring an upgrading instruction, and loading an upgrading file in a first NAS node according to the upgrading instruction;
transferring service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state;
and upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation.
Optionally, the loading the upgrade file in the first NAS node according to the upgrade instruction includes:
and downloading the upgrade file from a cloud server according to the upgrade instruction, and loading the upgrade file into a data partition of the first NAS node.
Optionally, after the upgrade file is loaded in the first NAS node according to the upgrade instruction, the method further includes:
and downloading verification information corresponding to the upgrade file from the cloud server, so as to verify the upgrade file loaded into the first NAS node by using the verification information.
Optionally, before the transferring the service resource in the first NAS node to the second NAS node by controlling the first NAS node to be in the standby state, the method further includes:
if the upgrade file passes the verification, triggering and generating an identification file which corresponds to the upgrade file and contains the information of the upgrade file by calling an upgrade command;
correspondingly, the upgrading the virtual NAS system in the first NAS node by using the upgrade file includes:
restarting the first NAS node and judging whether the restarted first NAS node contains an identification file or not through an initramfs file system;
if so, reading the identification file to determine the corresponding upgrade file, and decompressing the upgrade file to perform an upgrade operation on the virtual NAS system in the first NAS node by using the decompressed upgrade file.
Optionally, the upgrading the virtual NAS system in the first NAS node by using the decompressed upgrade file includes:
updating corresponding data in the first NAS node starting partition and the system partition by using the decompressed upgrade file;
deleting the identification file and restarting the updated first NAS node;
and carrying out initialization operation and re-authentication operation on the restarted first NAS node.
Optionally, after the service resource transferred to the second NAS node is transferred to the first NAS node after the upgrade operation again, the method further includes:
and reconfiguring the configuration file in the configuration partition of the first NAS node after the upgrading operation to obtain a new configuration file adapting to the virtual NAS system after the upgrading operation.
Optionally, the virtual NAS system upgrading method further includes:
when an error occurs in the upgrading operation, rolling back and upgrading by using the old upgrading file backed up in the first NAS node data partition;
and after the upgrading operation is completed, deleting other upgrading files in the data partition except the upgrading file corresponding to the virtual NAS system after the upgrading operation, so that only the upgrading file corresponding to the virtual NAS system after the upgrading operation is stored in the data partition.
A second aspect of the present application provides a virtual NAS system upgrade apparatus, including:
the obtaining module is used for obtaining an upgrading instruction and loading an upgrading file in the first NAS node according to the upgrading 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 by using the upgrade file, and re-transfer the service resource transferred to the second NAS node to the first NAS node after the upgrade operation.
A third aspect of the application provides an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program which is loaded and executed by the processor to implement the aforementioned virtual NAS system upgrade method.
A fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the method for upgrading a virtual NAS system is implemented.
In the method, an upgrading instruction is obtained firstly, and an upgrading file is loaded in a first NAS node according to the upgrading instruction; then, transferring the service resources in the first NAS node to a second NAS node in a mode of controlling the first NAS node to be in a standby state; and finally, upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation. It can be seen that the method is based on a dual-node unified storage system, makes full use of two nodes to transfer service resources, loads an upgrade file to an upgrade node when an upgrade instruction is obtained, blocks a client service by setting the upgrade node to a standby state, then transfers the service resources to another node and uses the upgrade file to perform upgrade operation on the upgrade node, and transfers the service resources to the upgrade node after the upgrade is completed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for upgrading a virtual NAS system according to the present disclosure;
FIG. 2 is a schematic structural diagram of a virtual NAS system upgrading apparatus provided in the present application;
fig. 3 is a structural diagram of an electronic device for upgrading a virtual NAS system according to the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, when the NAS system in the NAS cluster is upgraded, only the whole NAS system can be upgraded, and the system of a single node cannot be upgraded independently, so that the system upgrading efficiency of the NAS cluster is low. In order to overcome the technical defects, the application provides a virtual NAS system upgrading scheme, based on a dual-node unified storage system, two nodes are fully utilized to transfer service resources, an upgrading file is loaded to the upgrading node when an upgrading instruction is obtained, the upgrading node is set to be in a standby state to block a client service, then the service resources are transferred to other nodes, the upgrading node is upgraded by the aid of the upgrading file, the service resources are transferred to the upgrading node after upgrading is completed, the client is only temporarily blocked in the whole upgrading process, universality is strong, the influence on the node service is small, and automatic and independent upgrading of a virtual NAS system in cluster nodes is achieved.
Fig. 1 is a flowchart of a virtual NAS system upgrade method according to an embodiment of the present application. Referring to fig. 1, the virtual NAS system upgrade method includes:
s11: and acquiring an upgrading instruction, and loading an upgrading file in the first NAS node according to the upgrading instruction.
In this embodiment, an upgrade instruction is obtained, and an upgrade file is loaded in the first NAS node according to the upgrade instruction. The NAS system is realized based on a kvm (kernel-based virtual machine), NAS protocols and network communication are realized in the kvm, and service interference caused by upgrading is reduced by optimizing an installation process and a service switching sequence. The NAS virtual host is based on a dual-node unified storage system, and the NAS virtual host form an NAS cluster through internal link communication of the storage system and can independently provide NAS services in a service resource mode. The virtual NAS system owns the boot partition, the system partition, the configuration partition, and the data partition. The startup partition is a first partition, is a read-only partition in a normal mode, and comprises basic system components such as kernel, initramfs (initial ram file system), grub and the like. The system partition is a root file system. The configuration partition stores the customized configuration file and audit log of the user service, and the isolation of the configuration partition and the data partition can completely store the user configuration and the log. The data partition stores the current system installation file backup and the system upgrade (installation) file to be upgraded. The embodiment provides independent NAS system automatic upgrading and rollback functions through multi-partition backup, automatic service switching and automatic configuration reduction.
The upgrading instruction is obtained through timing detection of a storage system or through manual trigger detection, when the fact that the NAS system needs to be upgraded is detected, the upgrading file is firstly downloaded from a cloud server according to the upgrading instruction and is loaded into a data partition of the first NAS node, then verification information corresponding to the upgrading file is downloaded from the cloud server, and the upgrading file loaded into the first NAS node is verified through the verification information. A configuration node (upgrade node) downloads an upgrade file and a check code file of a cloud to a data partition in a local NAS system, where the configuration node is the first NAS node in this embodiment.
S12: and transferring the service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state.
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 traffic resources and network resources. And independently upgrading the NAS system by applying configuration and data partitioning and controlling the transfer of service resources. Before that, the NAS system of the first NAS node already has the upgrade installation file, and after receiving the upgrade command, the NAS system performs verification, and if the upgrade file passes the verification, the NAS system triggers generation of an identifier file corresponding to the upgrade file and including information of the upgrade file by calling the upgrade command. The identification file is an upgrade flag file written with the version information of the upgrade file. Namely, if the verification is successful, the upgrading flag file is created and the information of the upgrading packet is written.
On this basis, the NAS cluster makes the first NAS node enter a standby mode, the network service on this node is stopped, so as to block the client service, then the rest protocol service resources are stopped and loaded and started in the second NAS node, the network resource is transferred in the same manner after the start is completed, and at this time, the client service is recovered to be normal. The influence on the client is reduced by carrying out resource transfer on the node standby in advance.
S13: and upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation.
In this embodiment, the upgrade file is used to perform an upgrade operation on the virtual NAS system in the first NAS node, and the service resource transferred to the second NAS node is transferred to the first NAS node after the upgrade operation again. Specifically, the first NAS node is restarted, whether the restarted first NAS node includes an identifier file is judged through an initramfs file system, and when the identifier file, that is, an upgrade flag file, is detected, an upgrade process is triggered by self-test. And adding a detection and installation program into initramfs, and automatically checking and upgrading the initramfs when the initramfs are started every time.
Reading the identification file to determine the corresponding upgrade file, decompressing the upgrade file, updating the corresponding data in the first NAS node boot partition and the system partition by using the decompressed upgrade file, deleting the identification file, restarting the updated first NAS node, and finally performing initialization operation and re-authentication operation on the restarted first NAS node. In the process, after the first NAS node is restarted, initramfs firstly judges whether the data partition has the upgrade flag file, if so, the corresponding upgrade packet is decompressed according to the information in the file, the corresponding start and the content in the system partition are replaced, and the flag file is deleted and restarted after the completion. And after the first NAS node is started, generating a system name according to the storage node information and completing basic initialization. Re-authentication joins the NAS cluster.
And after the upgrade file is installed, re-transferring the service resources transferred to the second NAS node to the first NAS node after the upgrade operation. The second NAS node blocks client traffic by deactivating network resources that were otherwise running on the first NAS node. And the rest protocol resources which are originally operated on the first NAS node are transferred to the first NAS node again, the relevant service is subjected to self-checking, and the network is recovered after the self-checking is successful. At this time, the resource of the node (the first NAS node) takes over, then, the configuration is re-issued for the client configuration and the current version, and the configuration file in the configuration partition of the first NAS node after the upgrade operation is re-configured to obtain the new configuration file adapting to the virtual NAS system after the upgrade operation, that is, the current protocol version is adapted according to the configuration in the current configuration partition. And finally, self-checking the currently running protocol process, transferring network resources after no error occurs, completing the upgrading of the first NAS node after the transfer is completed, and recovering the service of the client. And after the first NAS node finishes upgrading, transmitting the upgrading file to the second NAS node to be upgraded through the same steps in the embodiment, so that the upgrading of the whole cluster is realized.
In order to ensure certain fault tolerance, when an error occurs in the upgrading operation, the old upgrading file backed up in the first NAS node data partition is used for rollback upgrading. And when the step fails, actively triggering rollback, and carrying out an installation process by using an old version upgrade package in the data partition. And when the upgrade generates an error, the rollback mechanism restores the backup upgrade package in the data partition. After the upgrading operation of the first NAS node and the second NAS node is completed, deleting other upgrading files in the data partition except the upgrading file corresponding to the virtual NAS system after the upgrading operation, so that only the upgrading file corresponding to the virtual NAS system after the upgrading operation is stored in the data partition. And after the two nodes are upgraded, deleting the upgrade package of the old version in the data partition, and only keeping the upgrade package consistent with the current version.
As can be seen, in the embodiment of the present application, an upgrade instruction is obtained first, and an upgrade file is loaded in a first NAS node according to the upgrade instruction; then, transferring the service resources in the first NAS node to a second NAS node in a mode of controlling the first NAS node to be in a standby state; and finally, upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation. The embodiment of the application is based on a double-node unified storage system, service resource transfer is performed by fully utilizing two nodes, an upgrade file is loaded to an upgrade node when an upgrade instruction is obtained, the upgrade node is set to be in a standby state so as to block a client service, then the service resource is transferred to another node and upgrade operation is performed on the upgrade node by utilizing the upgrade file, the service resource is transferred to the upgrade node after upgrade is completed, only temporary blocking is performed on a client in the whole upgrade process, universality is strong, the influence on the node service is small, and automatic independent upgrade of a virtual NAS system in a cluster node is realized.
Referring to fig. 2, an embodiment of the present application further discloses a virtual NAS system upgrade apparatus, which includes:
the obtaining module 11 is configured to obtain an upgrade instruction, and load an upgrade file in the first NAS node according to the upgrade instruction;
a first transfer module 12, 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 13, configured to perform an upgrade operation on the virtual NAS system in the first NAS node by using the upgrade file, and re-transfer the service resource transferred to the second NAS node to the first NAS node after the upgrade operation.
As can be seen, in the embodiment of the present application, an upgrade instruction is obtained first, and an upgrade file is loaded in a first NAS node according to the upgrade instruction; then, transferring the service resources in the first NAS node to a second NAS node in a mode of controlling the first NAS node to be in a standby state; and finally, upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation. The embodiment of the application is based on a double-node unified storage system, service resource transfer is performed by fully utilizing two nodes, an upgrade file is loaded to an upgrade node when an upgrade instruction is obtained, the upgrade node is set to be in a standby state so as to block a client service, then the service resource is transferred to another node and upgrade operation is performed on the upgrade node by utilizing the upgrade file, the service resource is transferred to the upgrade node after upgrade is completed, only temporary blocking is performed on a client in the whole upgrade process, universality is strong, the influence on the node service is small, and automatic independent upgrade of a virtual NAS system in a cluster node is realized.
In some specific embodiments, the obtaining module specifically includes:
the upgrade file downloading unit is used for downloading the upgrade file from a cloud server according to the upgrade instruction and loading the upgrade file into a data partition of the first NAS node;
and the verification information downloading unit is used for downloading verification information corresponding to the upgrade file from the cloud server so as to verify the upgrade file loaded into the first NAS node by using the verification information.
In some specific embodiments, the virtual NAS system upgrade apparatus further includes:
the trigger module is used for triggering and generating an identification file which corresponds to the upgrading file and contains the information of the upgrading file in a mode of calling an upgrading command if the upgrading file passes the verification;
the configuration module is used for reconfiguring the configuration file in the configuration partition of the first NAS node after the upgrading operation so as to obtain a new configuration file adapting to the virtual NAS system after the upgrading operation;
accordingly, in some specific embodiments, the second transfer module 13 specifically includes:
the judging unit is used for restarting the first NAS node and judging whether the restarted first NAS node contains an identification file or not through an initramfs file system;
the reading unit is used for reading the identification file to determine the corresponding upgrading file if the identification file is the upgrading file;
the decompression unit is used for decompressing the upgrade file so as to update corresponding data in the first NAS node boot partition and the system partition by using the decompressed upgrade file;
a deleting unit, configured to delete the identifier file and restart the updated first NAS node;
and the initialization unit is used for carrying out initialization operation and re-authentication operation on the restarted first NAS node.
Further, the embodiment of the application also provides electronic equipment. FIG. 3 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 3 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically 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 configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the virtual NAS system upgrade method disclosed in any one of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically a server.
In this embodiment, the power supply 23 is configured to provide a working 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 an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows Server, Netware, Unix, Linux, and the like. The computer programs 222 may further include computer programs that can be used to perform other specific tasks in addition to the computer programs that can be used to perform the virtual NAS system upgrade method performed by the electronic device 20 disclosed in any of the foregoing embodiments. Data 223 may include upgrade files collected by electronic device 20.
Further, an embodiment of the present application further discloses a storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the steps of the method for upgrading a virtual NAS system disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the apparatus, the device and the storage medium for upgrading the virtual NAS system provided by the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A virtual NAS system upgrading method is characterized by comprising the following steps:
acquiring an upgrading instruction, and loading an upgrading file in a first NAS node according to the upgrading instruction;
transferring service resources in the first NAS node to a second NAS node by controlling the first NAS node to be in a standby state;
and upgrading the virtual NAS system in the first NAS node by using the upgrading file, and re-transferring the service resources transferred to the second NAS node to the first NAS node after upgrading operation.
2. The virtual NAS system upgrade method according to claim 1, wherein the loading, in the first NAS node, the upgrade file according to the upgrade instruction includes:
and downloading the upgrade file from a cloud server according to the upgrade instruction, and loading the upgrade file into a data partition of the first NAS node.
3. The virtual NAS system upgrade method according to claim 2, wherein after the loading the upgrade file in the first NAS node according to the upgrade instruction, the method further comprises:
and downloading verification information corresponding to the upgrade file from the cloud server, so as to verify the upgrade file loaded into the first NAS node by using the verification information.
4. The virtual NAS system upgrade method of 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 comprises:
if the upgrade file passes the verification, triggering and generating an identification file which corresponds to the upgrade file and contains the information of the upgrade file by calling an upgrade command;
correspondingly, the upgrading the virtual NAS system in the first NAS node by using the upgrade file includes:
restarting the first NAS node and judging whether the restarted first NAS node contains an identification file or not through an initramfs file system;
if so, reading the identification file to determine the corresponding upgrade file, and decompressing the upgrade file to perform an upgrade operation on the virtual NAS system in the first NAS node by using the decompressed upgrade file.
5. The virtual NAS system upgrade method according to claim 4, wherein the performing an upgrade operation on the virtual NAS system in the first NAS node by using the decompressed upgrade file includes:
updating corresponding data in the first NAS node starting partition and the system partition by using the decompressed upgrade file;
deleting the identification file and restarting the updated first NAS node;
and carrying out initialization operation and re-authentication operation on the restarted first NAS node.
6. The virtual NAS system upgrade method of claim 5, wherein after the re-transferring the service resources transferred into the second NAS node to the first NAS node after the upgrade operation, the method further comprises:
and reconfiguring the configuration file in the configuration partition of the first NAS node after the upgrading operation to obtain a new configuration file adapting to the virtual NAS system after the upgrading operation.
7. The virtual NAS system upgrade method according to any one of claims 1 to 6, further comprising:
when an error occurs in the upgrading operation, rolling back and upgrading by using the old upgrading file backed up in the first NAS node data partition;
and after the upgrading operation is completed, deleting other upgrading files in the data partition except the upgrading file corresponding to the virtual NAS system after the upgrading operation, so that only the upgrading file corresponding to the virtual NAS system after the upgrading operation is stored in the data partition.
8. A virtual NAS system upgrade apparatus, comprising:
the obtaining module is used for obtaining an upgrading instruction and loading an upgrading file in the first NAS node according to the upgrading 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 by using the upgrade file, and re-transfer the service resource transferred to the second NAS node to the first NAS node after the upgrade operation.
9. An electronic device, comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the virtual NAS system upgrade method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions which, when loaded and executed by a processor, carry out a virtual NAS system upgrade method according to any one of claims 1 to 7.
CN202111257200.1A 2021-10-27 2021-10-27 Virtual NAS system upgrading method, device, equipment and storage medium Pending CN114020292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111257200.1A CN114020292A (en) 2021-10-27 2021-10-27 Virtual NAS system upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111257200.1A CN114020292A (en) 2021-10-27 2021-10-27 Virtual NAS system upgrading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114020292A true CN114020292A (en) 2022-02-08

Family

ID=80058327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111257200.1A Pending CN114020292A (en) 2021-10-27 2021-10-27 Virtual NAS system upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114020292A (en)

Similar Documents

Publication Publication Date Title
KR101970839B1 (en) Replaying jobs at a secondary location of a service
CN100525206C (en) Realizing method and system for automatic restoring equipment fault
CN108958927A (en) Dispositions method, device, computer equipment and the storage medium of container application
US9448834B2 (en) Automated testing of physical servers using a virtual machine
CN102609281B (en) Distributed software patch update method and system
EP1635257A2 (en) System method and medium for configuring client computers to operate disconnected from a server computer while using a master instance of the operating system
KR20060051932A (en) Updating software while it is running
KR20070034239A (en) Method and system for updating software and computer readable recording medium recording the method
CN111045854B (en) Method, apparatus and computer readable medium for managing service containers
CN112860282B (en) Cluster plug-in upgrading method, device and server
CN112783570B (en) Application migration method, system and medium based on service grid
CN106886422A (en) Method for upgrading software and device, electronic equipment
CN109308184B (en) Middleware installation and update method, device and computer readable storage medium
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
JP2004086769A (en) Application updating processing method, updating processing system, and updating processing program
CN113032183A (en) System management method, device, computer equipment and storage medium
CN117056115A (en) Application program repairing method and device, storage medium and electronic equipment
CN111917588A (en) Edge device management method, device, edge gateway device and storage medium
US10509646B2 (en) Software update rollbacks using file system volume snapshots
CN114020292A (en) Virtual NAS system upgrading method, device, equipment and storage medium
US9665364B2 (en) Dual-bank telecommunication apparatus and method of upgrading firmware in dual-bank telecommunication apparatus
CN111090537A (en) Cluster starting method and device, electronic equipment and readable storage medium
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN110795113B (en) Redis cluster service installation method, server and medium
Cisco PXM1E Backup Boot Procedures

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination