CN113608691A - High-availability method and device for NFS (network file system) of storage array - Google Patents

High-availability method and device for NFS (network file system) of storage array Download PDF

Info

Publication number
CN113608691A
CN113608691A CN202110840535.XA CN202110840535A CN113608691A CN 113608691 A CN113608691 A CN 113608691A CN 202110840535 A CN202110840535 A CN 202110840535A CN 113608691 A CN113608691 A CN 113608691A
Authority
CN
China
Prior art keywords
controller
nfs
virtual
shared
service
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
CN202110840535.XA
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110840535.XA priority Critical patent/CN113608691A/en
Publication of CN113608691A publication Critical patent/CN113608691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0617Improving the reliability of storage systems in relation to availability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The invention provides a method and a device for high availability of a storage array NFS, wherein the method comprises the following steps: establishing a heartbeat link between a first controller and a second controller; dividing shared storage resources in the double-control storage array, and setting the read-write priority of the first controller to be higher than that of the second controller; creating virtual IP resources of a first controller; creating NFS sharing by using the shared storage resources and the virtual IP resources, starting NFS sharing service, writing information of the NFS sharing service into a database of the dual-control storage array for persistence, and mapping the NFS sharing to the client; in response to receiving a data request sent by a client, a first controller receives the data request and stores data in a shared storage resource; in response to detecting a failure of the first controller via the heartbeat link, the second controller reestablishes and initiates NFS shared services in the second controller in accordance with the shared storage resources. By using the scheme of the invention, the single point failure problem of NFS can be eliminated, the availability is high, and the reliability of the system is improved.

Description

High-availability method and device for NFS (network file system) of storage array
Technical Field
The field relates to the field of computers, and more particularly to a method and apparatus for high availability of a storage array NFS.
Background
The NAS (Network Attached Storage) cluster Storage System provides File-level data access and sharing service based on a TCP/IP protocol, the NFS (Network File System) sharing service is a service process for providing File access to the outside in the NAS cluster Storage System, and in NFS application, a client application of a local NFS can transparently read and write files located on an NFS service end in a remote NAS cluster, and the same as accessing the local files. NFS is generally deployed as a single node, and an NFS server is mainly used to store important data of an enterprise, if a storage controller has a problem, a service client using the storage controller to mount a service will have a problem of service interruption, and it is important that NFS has high availability in order to ensure data security and reliability and eliminate a single point failure problem of NFS.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for a storage array NFS to be highly available, which can eliminate the single point failure problem of the NFS by using the technical solution of the present invention, have high availability, and improve the reliability of the system.
In view of the above, an aspect of the embodiments of the present invention provides a method for high availability of a storage array NFS, including the following steps:
establishing a heartbeat link between a first controller and a second controller;
dividing shared storage resources in the double-control storage array, and setting the read-write priority of the first controller to be higher than that of the second controller;
creating virtual IP resources of a first controller;
creating NFS sharing by using the shared storage resources and the virtual IP resources, starting NFS sharing service, writing information of the NFS sharing service into a database of the dual-control storage array for persistence, and mapping the NFS sharing to the client;
in response to receiving a data request sent by a client, a first controller receives the data request and stores data in a shared storage resource;
in response to detecting a failure of the first controller via the heartbeat link, the second controller reestablishes and initiates NFS shared services in the second controller in accordance with the shared storage resources.
According to one embodiment of the invention, establishing the heartbeat link between the first controller and the second controller comprises:
connecting the first controller with the second controller through an internal heartbeat network port;
and setting the heartbeat IPs of the first controller and the second controller in the same network segment.
According to one embodiment of the present invention, partitioning shared memory resources in a dual-steering memory array, and setting a read-write priority of a first controller to be higher than that of a second controller comprises:
establishing a shared storage pool in the double-control storage array, wherein the hard disks can be identified by any controller;
the file system is partitioned on the shared storage pool and the first controller has priority access to the file system.
According to one embodiment of the invention, creating the virtual IP resource of the first controller comprises:
establishing a port drift group by using service network ports of a first controller and a second controller;
attaching the virtual IP to a service network port of the first controller;
and responding to the detected heartbeat link failure of the first controller, and drifting the virtual IP to a service network port of the second controller.
According to an embodiment of the present invention, creating NFS sharing and starting NFS sharing service using shared storage resources and virtual IP resources, writing information of the NFS sharing service into a database of a dual-control storage array for persistence, and mapping NFS sharing to a client includes:
creating NFS sharing by using the shared storage resource and the virtual IP resource, and generating a configuration file of the NFS sharing;
writing the information shared by the NFS into a database of the first controller for persistence;
and synchronizing the database information to the second controller, and sharing and mapping the NFS to the client through the virtual IP.
According to an embodiment of the present invention, in response to receiving a data request sent by a client, the first controller receiving the data request and storing the data in the shared storage resource includes:
in response to receiving a read-write request sent by a file system mapped by a client through NFS, a first controller processes the read-write request and completes the read-write request by accessing a shared storage resource.
According to one embodiment of the present invention, in response to detecting a failure of the first controller via the heartbeat link, the second controller reestablishing and initiating NFS shared services in the second controller according to the shared storage resource includes:
switching the virtual IP to the second controller in response to the second controller receiving the first controller heartbeat anomaly;
the second controller reads the database information and then generates a configuration file, reestablishes NFS sharing in the second controller and starts NFS sharing service;
and transferring a data request of the client for accessing the NFS share to the second controller to ensure that the service of the client is not interrupted.
According to an embodiment of the present invention, further comprising:
in response to the first controller failing back, the second controller exporting the NFS share and suspending the services of the NFS share;
and switching the virtual IP to a service network port of the first controller, synchronizing database information by the first controller, and rebuilding and starting the service shared by the NFS in the first controller.
According to an embodiment of the present invention, further comprising:
in response to a failure of a service portal of the first controller, the first controller exports the NFS share and suspends the service of the NFS share;
and switching the virtual IP to a service network port of a second controller, and leading the second controller into NFS sharing and starting the service shared by the NFS.
In another aspect of an embodiment of the present invention, there is also provided an apparatus for high availability of a storage array NFS, the apparatus including:
the establishing module is configured to establish a heartbeat link between the first controller and the second controller;
the setting module is configured to divide shared storage resources in the double-control storage array and set the read-write priority of the first controller to be higher than that of the second controller;
a management module configured to create a virtual IP resource of the first controller;
the creating module is configured to create NFS sharing and start NFS sharing service by using the shared storage resource and the virtual IP resource, write information of the NFS sharing service into a database of the dual-control storage array for persistence, and map the NFS sharing to the client;
the execution module is configured to respond to the data request sent by the client, and the first controller receives the data request and stores the data in the shared storage resource;
a switching module configured to, in response to detecting a failure of the first controller via the heartbeat link, the second controller to reestablish and initiate NFS shared services in the second controller in accordance with the shared storage resources.
The invention has the following beneficial technical effects: according to the high-availability method for the storage array NFS, provided by the embodiment of the invention, a heartbeat link between a first controller and a second controller is established; dividing shared storage resources in the double-control storage array, and setting the read-write priority of the first controller to be higher than that of the second controller; creating virtual IP resources of a first controller; creating NFS sharing by using the shared storage resources and the virtual IP resources, starting NFS sharing service, writing information of the NFS sharing service into a database of the dual-control storage array for persistence, and mapping the NFS sharing to the client; in response to receiving a data request sent by a client, a first controller receives the data request and stores data in a shared storage resource; in response to the detection of the failure of the first controller through the heartbeat link, the second controller reconstructs and starts the NFS shared service in the second controller according to the shared storage resource, so that the problem of single point failure of the NFS can be solved, the availability is high, and the reliability of the system is improved.
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, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for high availability of a storage array NFS, according to one embodiment of the present invention;
fig. 2 is a schematic diagram of a high availability device of a storage array NFS according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above objects, a first aspect of embodiments of the present invention proposes an embodiment of a method for high availability of a storage array NFS. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1 establishes a heartbeat link between the first controller and the second controller.
The first controller and the second controller in the double-control storage array are connected through a heartbeat network cable, communication connection is established through IP configured with the same network segment, the communication connection is used for mutually detecting the running state of the opposite side, when the first controller fails, for example, a power supply fails or a starting disk fails, and the like, so that the system fails, the heartbeat link reflects the state information to the second controller, the second controller can immediately respond to and make corresponding processing actions, and meanwhile, the heartbeat link is used for a link for synchronizing the first controller and the second controller database, so that the consistency of database information between the double controllers is maintained.
S2, dividing shared storage resources in the double-control storage array, and setting the priority of the first controller to be higher than that of the second controller.
The method comprises the steps of establishing a shared storage pool in a double-control storage array to reasonably distribute hard disk resources, enabling a hard disk and the shared storage pool to be identified and used by any controller in the double-control storage array, setting the read-write priority of a first controller to be higher than that of a second controller, dividing a file system on the shared storage pool, enabling the first controller to have a priority access right to the file system, and leading in the file system of the shared storage pool by the second controller when the first controller fails.
S3 creates a virtual IP resource of the first controller.
The method comprises the steps that virtual IP resources are used for achieving creation of the virtual IP resources, virtual IP service starting, state detection and stopping are conducted, a port drifting group is established through business network ports of a first controller and a second controller when the virtual IP resources are created, virtual IPs are attached to the business network ports of the first controller to serve as main ports, the first controller can be accessed through the virtual IPs after the virtual IP services are started, when heartbeat links of the first controller fail, the virtual IP services are started through the second controller, the virtual IPs drift to the business network ports of the second controller, and at the moment, the second controller can be accessed through the virtual IPs; and when the state of the first controller is recovered, the second controller stops the virtual IP service, and the virtual IP drifts to the service network port of the first controller.
S4 creates NFS sharing and starts NFS sharing service using the shared storage resource and the virtual IP resource, writes information of the NFS sharing service into a database of the dual-control storage array for persistence, and maps the NFS sharing to the client.
The method comprises the steps of establishing, starting and mapping NFS sharing service, establishing NFS sharing by using a file system and a virtual IP, generating a configuration file, storing NFS sharing information into a database for persistence, starting the NFS sharing service, mapping the NFS sharing to a client through the virtual IP, enabling the client to read and write access to the NFS sharing, when a first controller fails, enabling the virtual IP to drift to a second control node, rebuilding and starting the NFS sharing service by a second controller, taking over the read and write access of the client to the first controller, ensuring that service is not interrupted, and achieving high availability.
S5 in response to receiving the data request sent by the client, the first controller receives the data request and stores the data in the shared storage resource.
When a client accesses the first controller through NFS sharing mapped by the virtual IP, a data request is sent, data is transmitted to an NFS server of the first controller through a network, and after the NFS server receives the data, corresponding operation is executed on a file system, so that transparent transmission of the data is realized.
S6 in response to detecting the first controller failure via the heartbeat link, the second controller reestablishes and initiates NFS shared services in the second controller in accordance with the shared storage resource.
When the second controller receives the heartbeat abnormity of the first controller and judges that the first controller has a fault, the virtual IP service is switched to the second controller, the second controller generates a configuration file after reading the database information, the NFS sharing is rebuilt, and the NFS sharing service is started.
By the technical scheme of the invention, the continuity of the front-end service can be ensured, the single-point fault problem of NFS can be eliminated, the availability is high, and the reliability of the system is improved.
In a preferred embodiment of the present invention, establishing the heartbeat link between the first controller and the second controller comprises:
connecting the first controller with the second controller through an internal heartbeat network port;
and setting the heartbeat IPs of the first controller and the second controller in the same network segment.
In a preferred embodiment of the present invention, the partitioning the shared memory resources in the dual-managed memory array, and setting the read-write priority of the first controller to be higher than that of the second controller comprises:
establishing a shared storage pool in the double-control storage array, wherein the hard disks can be identified by any controller;
the file system is partitioned on the shared storage pool and the first controller has priority access to the file system.
In a preferred embodiment of the present invention, creating the virtual IP resource of the first controller comprises:
establishing a port drift group by using service network ports of a first controller and a second controller;
attaching the virtual IP to a service network port of the first controller;
and responding to the detected heartbeat link failure of the first controller, and drifting the virtual IP to a service network port of the second controller.
In a preferred embodiment of the present invention, creating NFS sharing and starting NFS sharing service using shared storage resources and virtual IP resources, writing information of the NFS sharing service into a database of a dual-control storage array for persistence, and mapping NFS sharing to a client includes:
creating NFS sharing by using the shared storage resource and the virtual IP resource, and generating a configuration file of the NFS sharing;
writing the information shared by the NFS into a database of the first controller for persistence;
and synchronizing the database information to the second controller, and sharing and mapping the NFS to the client through the virtual IP.
In a preferred embodiment of the present invention, in response to receiving a data request sent by a client, the first controller receiving the data request and storing the data in the shared storage resource includes:
in response to receiving a read-write request sent by a file system mapped by a client through NFS, a first controller processes the read-write request and completes the read-write request by accessing a shared storage resource.
In a preferred embodiment of the present invention, in response to detecting a failure of the first controller via the heartbeat link, the second controller reestablishing and initiating NFS sharing services in the second controller according to the shared storage resource comprises:
switching the virtual IP to the second controller in response to the second controller receiving the first controller heartbeat anomaly;
the second controller reads the database information and then generates a configuration file, reestablishes NFS sharing in the second controller and starts NFS sharing service;
and transferring a data request of the client for accessing the NFS share to the second controller to ensure that the service of the client is not interrupted.
In a preferred embodiment of the present invention, the method further comprises:
in response to the first controller failing back, the second controller exporting the NFS share and suspending the services of the NFS share;
and switching the virtual IP to a service network port of the first controller, synchronizing database information by the first controller, and rebuilding and starting the service shared by the NFS in the first controller.
In a preferred embodiment of the present invention, the method further comprises:
in response to a failure of a service portal of the first controller, the first controller exports the NFS share and suspends the service of the NFS share;
and switching the virtual IP to a service network port of a second controller, and leading the second controller into NFS sharing and starting the service shared by the NFS.
In a preferred embodiment of the present invention, the method further comprises:
and when responding to the startup initialization of the double-control storage array, attaching the virtual IP to the service network card of the first controller, reading the database information by the first controller, establishing NFS sharing, starting NFS sharing service, and receiving a data request of a client.
By the technical scheme of the invention, the single point fault problem of NFS can be eliminated, the availability is high, and the reliability of the system is improved.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided a storage array NFS high availability apparatus, as shown in fig. 2, an apparatus 200 includes:
an establishing module 201, wherein the establishing module 201 is configured to establish a heartbeat link between a first controller and a second controller;
the setting module 202, the setting module 202 is configured to partition the shared storage resource in the dual-control storage array, and set the read-write priority of the first controller to be higher than that of the second controller;
the management module 203, the management module 203 is configured to create a virtual IP resource of the first controller;
a creating module 204, where the creating module 204 is configured to create NFS sharing and start NFS sharing service by using the shared storage resource and the virtual IP resource, write information of the NFS sharing service into a database of the dual-control storage array for persistence, and map the NFS sharing to the client;
the execution module 205, the execution module 205 is configured to respond to receiving the data request sent by the client, and the first controller receives the data request and stores the data in the shared storage resource;
a switching module 206, the switching module 206 configured to, in response to detecting a failure of the first controller via the heartbeat link, the second controller reestablishes and initiates the NFS shared service in the second controller according to the shared storage resource.
In a preferred embodiment of the present invention, the establishing module is further configured to:
connecting the first controller with the second controller through an internal heartbeat network port;
and setting the heartbeat IPs of the first controller and the second controller in the same network segment.
In a preferred embodiment of the present invention, the setup module is further configured to:
establishing a shared storage pool in the double-control storage array, wherein the hard disks can be identified by any controller;
the file system is partitioned on the shared storage pool and the first controller has priority access to the file system.
In a preferred embodiment of the present invention, the management module is further configured to:
establishing a port drift group by using service network ports of a first controller and a second controller;
attaching the virtual IP to a service network port of the first controller;
and responding to the detected heartbeat link failure of the first controller, and drifting the virtual IP to a service network port of the second controller.
In a preferred embodiment of the present invention, the creation module is further configured to:
creating NFS sharing by using the shared storage resource and the virtual IP resource, and generating a configuration file of the NFS sharing;
writing the information shared by the NFS into a database of the first controller for persistence;
and synchronizing the database information to the second controller, and sharing and mapping the NFS to the client through the virtual IP.
In a preferred embodiment of the present invention, the execution module is further configured to:
in response to receiving a read-write request sent by a file system mapped by a client through NFS, a first controller processes the read-write request and completes the read-write request by accessing a shared storage resource.
In a preferred embodiment of the present invention, the switching module is further configured to:
switching the virtual IP to the second controller in response to the second controller receiving the first controller heartbeat anomaly;
the second controller reads the database information and then generates a configuration file, reestablishes NFS sharing in the second controller and starts NFS sharing service;
and transferring a data request of the client for accessing the NFS share to the second controller to ensure that the service of the client is not interrupted.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for high availability of a storage array NFS, comprising the steps of:
establishing a heartbeat link between a first controller and a second controller;
dividing shared storage resources in a double-control storage array, and setting the read-write priority of the first controller to be higher than that of the second controller;
creating a virtual IP resource of the first controller;
creating NFS sharing by using the shared storage resource and the virtual IP resource, starting the NFS sharing service, writing the information of the NFS sharing service into a database of the dual-control storage array for persistence, and mapping the NFS sharing to a client;
in response to receiving a data request sent by a client, the first controller receives the data request and stores data in the shared storage resource;
in response to detecting the first controller failure via a heartbeat link, the second controller reestablishes and initiates NFS shared services in the second controller in accordance with the shared storage resource.
2. The method of claim 1, wherein establishing the heartbeat link between the first controller and the second controller comprises:
connecting the first controller with the second controller through an internal heartbeat network port;
and setting the heartbeat IPs of the first controller and the second controller in the same network segment.
3. The method of claim 1, wherein partitioning shared storage resources in a dual-steering storage array and setting the first controller read-write priority higher than the second controller comprises:
establishing a shared storage pool in the double-control storage array, wherein the hard disks can be identified by any controller;
the file system is partitioned on the shared storage pool, and the first controller has priority access to the file system.
4. The method of claim 1, wherein creating the virtual IP resource for the first controller comprises:
establishing a port drift group by using service network ports of the first controller and the second controller;
attaching a virtual IP to a service port of the first controller;
and responding to the detected heartbeat link failure of the first controller, and drifting the virtual IP to a service network port of the second controller.
5. The method of claim 1, wherein creating an NFS share using the shared storage resources and the virtual IP resources and starting the NFS sharing service, wherein writing information for the NFS sharing service to a database of the storage array for persistence, and wherein mapping the NFS share to a client comprises:
creating NFS sharing by using the shared storage resource and the virtual IP resource, and generating a configuration file of the NFS sharing;
writing the NFS shared information into a database of the first controller for persistence;
and synchronizing the database information to the second controller, and sharing and mapping the NFS to the client through the virtual IP.
6. The method of claim 1, wherein in response to receiving a data request sent by a client, the first controller receiving the data request and storing data in the shared storage resource comprises:
and in response to receiving a read-write request sent by a file system mapped by a client through the NFS, the first controller processes the read-write request and completes the read-write request by accessing the shared storage resource.
7. The method of claim 1, wherein, in response to detecting the first controller failure via a heartbeat link, the second controller reestablishing and initiating NFS shared services in the second controller in accordance with the shared storage resource comprises:
switching a virtual IP to the second controller in response to the second controller receiving the first controller heartbeat anomaly;
the second controller reads database information and then generates a configuration file, reconstructs the NFS sharing in the second controller and starts the NFS sharing service;
and transferring a data request of a client for accessing the NFS share to the second controller to ensure that the service of the client is not interrupted.
8. The method of claim 1, further comprising:
in response to the first controller failing back, the second controller exporting the NFS share and suspending services of the NFS share;
and switching the virtual IP to a service network port of the first controller, wherein the first controller synchronizes database information, and the NFS shared service is rebuilt and started in the first controller.
9. The method of claim 1, further comprising:
in response to a failure of a traffic portal of the first controller, the first controller exporting the NFS share and suspending services of the NFS share;
and switching the virtual IP to a service network port of the second controller, and leading the second controller into the NFS sharing and starting the service shared by the NFS.
10. An apparatus for NFS high availability of a storage array, the apparatus comprising:
an establishment module configured to establish a heartbeat link between a first controller and a second controller;
the setting module is configured to divide shared storage resources in the dual-control storage array and set the read-write priority of the first controller to be higher than that of the second controller;
a management module configured to create a virtual IP resource for the first controller;
a creation module configured to create an NFS share using the shared storage resource and the virtual IP resource and start the NFS sharing service, write information of the NFS sharing service into a database of the dual-provisioned storage array for persistence, and map the NFS share to a client;
an execution module configured to, in response to receiving a data request sent by a client, receive the data request by the first controller and store data in the shared storage resource;
a switching module configured to, in response to detecting the first controller failure via a heartbeat link, the second controller to reestablish and initiate NFS shared services in the second controller in accordance with the shared storage resource.
CN202110840535.XA 2021-07-24 2021-07-24 High-availability method and device for NFS (network file system) of storage array Pending CN113608691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110840535.XA CN113608691A (en) 2021-07-24 2021-07-24 High-availability method and device for NFS (network file system) of storage array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110840535.XA CN113608691A (en) 2021-07-24 2021-07-24 High-availability method and device for NFS (network file system) of storage array

Publications (1)

Publication Number Publication Date
CN113608691A true CN113608691A (en) 2021-11-05

Family

ID=78338271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110840535.XA Pending CN113608691A (en) 2021-07-24 2021-07-24 High-availability method and device for NFS (network file system) of storage array

Country Status (1)

Country Link
CN (1) CN113608691A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657975A (en) * 2022-12-29 2023-01-31 浪潮电子信息产业股份有限公司 Disk data read-write control method, related components and front-end shared card
CN115865803A (en) * 2023-03-03 2023-03-28 浪潮电子信息产业股份有限公司 IO request processing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446169A (en) * 2018-10-22 2019-03-08 北京计算机技术及应用研究所 A kind of double control disk array shared-file system
CN109634530A (en) * 2018-12-14 2019-04-16 郑州云海信息技术有限公司 Dual controller NAS storage system and implementation method, the device of port redundancy
US10365982B1 (en) * 2017-03-10 2019-07-30 Pure Storage, Inc. Establishing a synchronous replication relationship between two or more storage systems
CN110781157A (en) * 2019-09-27 2020-02-11 苏州浪潮智能科技有限公司 Backup and recovery method and device based on NAS
CN111209260A (en) * 2019-12-30 2020-05-29 创新科技术有限公司 NFS cluster based on distributed storage and method for providing NFS service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10365982B1 (en) * 2017-03-10 2019-07-30 Pure Storage, Inc. Establishing a synchronous replication relationship between two or more storage systems
CN109446169A (en) * 2018-10-22 2019-03-08 北京计算机技术及应用研究所 A kind of double control disk array shared-file system
CN109634530A (en) * 2018-12-14 2019-04-16 郑州云海信息技术有限公司 Dual controller NAS storage system and implementation method, the device of port redundancy
CN110781157A (en) * 2019-09-27 2020-02-11 苏州浪潮智能科技有限公司 Backup and recovery method and device based on NAS
CN111209260A (en) * 2019-12-30 2020-05-29 创新科技术有限公司 NFS cluster based on distributed storage and method for providing NFS service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657975A (en) * 2022-12-29 2023-01-31 浪潮电子信息产业股份有限公司 Disk data read-write control method, related components and front-end shared card
CN115865803A (en) * 2023-03-03 2023-03-28 浪潮电子信息产业股份有限公司 IO request processing method, device, equipment and readable storage medium
CN115865803B (en) * 2023-03-03 2023-08-22 浪潮电子信息产业股份有限公司 IO request processing method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110750334B (en) Ceph-based network target range rear end storage system design method
US10073747B2 (en) Reducing recovery time in disaster recovery/replication setup with multitier backend storage
US9426218B2 (en) Virtual storage appliance gateway
US9842033B2 (en) Storage cluster failure detection
US9454446B2 (en) System and method for using local storage to emulate centralized storage
US8533171B2 (en) Method and system for restarting file lock services at an adoptive node during a network filesystem server migration or failover
CN109842651B (en) Uninterrupted service load balancing method and system
CN101808127B (en) Data backup method, system and server
US20120259819A1 (en) Method and system for performing a clean file lock recovery during a network filesystem server migration or failover
WO2017152736A1 (en) Hadoop distributed file system hdfs management method, device and system
CN113608691A (en) High-availability method and device for NFS (network file system) of storage array
CN109213571B (en) Memory sharing method, container management platform and computer readable storage medium
CN112000635A (en) Data request method, device and medium
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN111225003B (en) NFS node configuration method and device
US8838768B2 (en) Computer system and disk sharing method used thereby
US11921699B1 (en) Lease-based consistency management for handling failover in a database
CN106790521B (en) System and method for distributed networking by using node equipment based on FTP
CN114281600A (en) Disaster recovery backup and recovery method, device, equipment and storage medium
JP5016696B2 (en) High availability system, server, high availability maintenance method and program
CN108614873B (en) Data processing method and device
CN109376135B (en) Cluster file system management method and system
CN114172917B (en) Distributed cache system and deployment method thereof
CN115134408B (en) Application service realization method, device, system, medium and equipment
US8850132B1 (en) Method and system for providing a shared data resource coordinator within a storage virtualizing data processing system

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