CN113032351A - Recovery method and device of network file system - Google Patents

Recovery method and device of network file system Download PDF

Info

Publication number
CN113032351A
CN113032351A CN202110352599.5A CN202110352599A CN113032351A CN 113032351 A CN113032351 A CN 113032351A CN 202110352599 A CN202110352599 A CN 202110352599A CN 113032351 A CN113032351 A CN 113032351A
Authority
CN
China
Prior art keywords
nfs
configuration information
address
server
recycle bin
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.)
Granted
Application number
CN202110352599.5A
Other languages
Chinese (zh)
Other versions
CN113032351B (en
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.)
China Construction Bank Corp
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202110352599.5A priority Critical patent/CN113032351B/en
Publication of CN113032351A publication Critical patent/CN113032351A/en
Application granted granted Critical
Publication of CN113032351B publication Critical patent/CN113032351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of resource recovery, and discloses a recovery method and a recovery device of a network file system, wherein the method comprises the following steps: obtaining configuration information of a network file system NFS, the configuration information including: an IP address where NFS can be accessed; sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not; if the server without the NFS is installed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS; when the configuration information of the NFS does not contain any IP address capable of accessing the NFS, the NFS is placed into the recycle bin, and the detection request is sent to the server corresponding to the IP address in the configuration information of the NFS, so that the IP address without the NFS can be automatically deleted from the configuration information of the NFS, the NFS which does not need to be accessed is automatically recycled, the efficiency of recycling NFS resources is improved, and the waste of resources is avoided.

Description

Recovery method and device of network file system
Technical Field
The present invention relates to the field of resource recovery technologies, and in particular, to a method and an apparatus for recovering a network file system.
Background
In the private cloud test environment, the use of network File system nfs (network File system) is very common, and is generally provided by a centralized network Attached storage nas (network Attached storage). Because of the characteristic that the test environment is frequently changed, the server can frequently allocate and recover NFS resources, in the prior art, when recovering NFS resources, a server administrator checks whether an un-installed NFS exists on the server, and if so, the NAS administrator is notified to recover the NFS, but in this manual checking mode, the situation that the server administrator forgets to notify the NAS administrator or the server loses the installation information of the NFS often occurs, so that the NFS resources allocated to the server are forgotten to be recovered, which causes low recovery efficiency and resource waste.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a recovery method of a network file system, which is used for improving the recovery efficiency of NFS resources and avoiding resource waste, and comprises the following steps:
obtaining configuration information of a network file system NFS, wherein the configuration information comprises: an IP address where NFS can be accessed;
sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not;
if the server without the NFS is installed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS;
when the configuration information of the NFS does not include any IP address that can access the NFS, the NFS is placed in the recycle bin.
Further, after the NFS is placed in the recycle bin, the method further includes:
and if the access request of the NFS is not received within the preset time length, deleting the NFS.
Further, after the NFS is placed in the recycle bin, the method further includes:
if the access authority request of the NFS is received within the preset duration, the NFS is moved out of the recycle bin;
and adding the IP address corresponding to the access authority request into the configuration information of the NFS.
Further, the method further comprises: acquiring identification information and capacity information of the NFS;
placing the NFS into the recycle bin further comprises:
the identification information and capacity information of the NFS, and the time of entry into the recycle bin are stored.
Further, the NFS stores NAS storage through network attached storage;
the NAS comprises a plurality of storage volumes, and each storage volume corresponds to one NFS.
Further, the method further comprises:
acquiring configuration information, identification information and capacity information of a plurality of NFSs through an NAS management platform;
and establishing an NFS, deleting the NFS or modifying the configuration information of the NFS through the NAS management platform.
Further, sending a probe request to the IP address, including:
and sending the detection requests to the servers corresponding to the IP addresses in batches through the batch processing platform.
The embodiment of the invention provides a recovery device of a network file system, which is used for improving the efficiency of NFS resource recovery and avoiding resource waste, and comprises the following components:
an obtaining module, configured to obtain configuration information of a network file system NFS, where the configuration information includes: an IP address where NFS can be accessed;
a detection request sending module, configured to send a detection request to a server corresponding to the IP address, and determine whether there is a server that does not mount the NFS;
the IP address deleting module is used for deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS if the server without the NFS is provided;
and the recycle bin module is used for placing the NFS into the recycle bin when the configuration information of the NFS does not contain any IP address capable of accessing the NFS.
Further, the apparatus further comprises: an NFS deletion module to:
and after the NFS is put into the recycle bin, if the access request of the NFS is not received within the preset time length, deleting the NFS.
Further, the apparatus further comprises: a removal recycle bin module to:
after the NFS is put into a recycle bin, if an access authority request of the NFS is received within a preset time length, the NFS is moved out of the recycle bin;
and adding the IP address corresponding to the access authority request into the configuration information of the NFS.
Further, the obtaining module is further configured to: acquiring identification information and capacity information of the NFS;
a recycle bin module further to:
the identification information and capacity information of the NFS, and the time of entry into the recycle bin are stored.
Further, the NFS stores NAS storage through network attached storage;
the NAS comprises a plurality of storage volumes, and each storage volume corresponds to one NFS.
Further, the apparatus further comprises: a management module to:
acquiring configuration information, identification information and capacity information of a plurality of NFSs through an NAS management platform;
and establishing an NFS, deleting the NFS or modifying the configuration information of the NFS through the NAS management platform.
Further, the probe request issuing module is specifically configured to:
and sending the detection requests to the servers corresponding to the IP addresses in batches through the batch processing platform.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the recovery method of the network file system is realized when the processor executes the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the foregoing method for recovering a network file system is stored in the computer-readable storage medium.
The embodiment of the invention comprises the following steps: obtaining configuration information of a network file system NFS, wherein the configuration information comprises: an IP address where NFS can be accessed; sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not; if the server without the NFS is installed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS; when the configuration information of the NFS does not contain any IP address capable of accessing the NFS, the NFS is placed into the recycle bin, the detection request is sent to the server corresponding to the IP address in the configuration information of the NFS, the automatic detection of the mounting condition of the NFS is realized, the IP address without mounting the NFS can be automatically deleted from the configuration information of the NFS, the NFS which does not need to be accessed is automatically recycled, the efficiency of recycling NFS resources is improved, and the waste of resources is effectively avoided.
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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic diagram illustrating a recycling method of a network file system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an overall process of recovering NFS according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a recovery step in an embodiment of the present invention;
FIG. 4 is a schematic view of the overall process flow of the recycle bin according to the embodiment of the present invention;
FIG. 5 is a diagram illustrating a recycling apparatus of a network file system according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating another structure of a recycling apparatus of a network file system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a system configuration of a computer device in the embodiment of the present invention.
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.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
Before describing embodiments of the present invention, terms of art to which embodiments of the present invention relate will be described.
NFS: network file systems (Network file systems) allow users to access files on remote hosts in the same way as any local file is accessed. This file access is completely transparent to the client and can work on a variety of servers and a variety of host architectures.
NAS: network Attached Storage (Network Attached Storage), a common technical scheme of a Network file system in a private cloud technology stack, is generally to perform Storage division on an NAS Storage server, create a Storage volume, and then provide services to the outside through a head IP Network.
Storage volume: the physical storage device may be partitioned into logical storage volumes for use by different users, and one storage device may create multiple storage volumes.
Next, the inventor introduces the idea of finding technical problems and proposing a reclamation method for a network file system.
In the private cloud testing environment, the use of NFS is very common, typically provided by centralized NAS storage. Storage volumes may be created on the NAS storage, an NFS is established on each storage volume, and the NFS determines which servers may access the NFS by configuring export rules. The test environment is characterized in that the change is frequent, the server can frequently allocate and recover the NFS, generally, when the NFS is recovered, a server administrator should check whether the server has the NFS which is not mounted, if so, the NAS storage administrator is notified to recover the access right of the server to the NFS, if the whole NFS is determined not to be used, the NAS storage administrator is notified to recover the NFS resources, and the corresponding configuration information and the storage volume are deleted.
However, in a test environment, it is often the case that a server forgets to notify a NAS administrator to recover the NFS during recovery, or the server itself loses the mount information of the NFS, which may cause that NFS resources that should be recovered cannot be recovered, and cause resource waste just like memory leakage. At present, no technical solution is provided in the industry for the situation, and the normalization of the recovery process is mainly ensured by means of management, but the regulatory process is easily broken by the requirements on high-frequency change and high timeliness of the test environment. The prior art proposes a method for calculating the real capacity of the NAS file system, which achieves the purpose of saving resources by adjusting the allocated capacity of the storage volume, but there is no way to distinguish the NFS that is "leaked" as described above.
In order to solve the technical problems of low recovery efficiency and resource waste caused by the fact that NFS resources are recovered through manual inspection and notification in the prior art, an embodiment of the present invention provides a recovery method for a network file system, which is used for improving the recovery efficiency of NFS resources and avoiding resource waste, fig. 1 is a schematic diagram of a flow of the recovery method for the network file system in the embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101: obtaining configuration information of a network file system NFS, wherein the configuration information comprises: an IP address where NFS can be accessed;
step 102: sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not;
step 103: if the server without the NFS is installed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS;
step 104: when the configuration information of the NFS does not include any IP address that can access the NFS, the NFS is placed in the recycle bin.
As shown in fig. 1, an embodiment of the present invention is implemented by: obtaining configuration information of a network file system NFS, wherein the configuration information comprises: an IP address where NFS can be accessed; sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not; if the server without the NFS is installed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS; when the configuration information of the NFS does not contain any IP address capable of accessing the NFS, the NFS is placed into the recycle bin, the detection request is sent to the server corresponding to the IP address in the configuration information of the NFS, the automatic detection of the mounting condition of the NFS is realized, the IP address without mounting the NFS can be automatically deleted from the configuration information of the NFS, the NFS which does not need to be accessed is automatically recycled, the efficiency of recycling NFS resources is improved, and the waste of resources is effectively avoided.
In one embodiment, the NFS stores NAS storage over a network attached storage;
the NAS comprises a plurality of storage volumes, and each storage volume corresponds to one NFS.
In one embodiment, the method further comprises:
acquiring configuration information, identification information and capacity information of a plurality of NFSs through an NAS management platform;
and establishing an NFS, deleting the NFS or modifying the configuration information of the NFS through the NAS management platform.
In specific implementation, the embodiment of the present invention is based on an existing NAS management platform, where the NAS includes a plurality of storage volumes, each storage volume corresponds to one NFS, and in step 101, the NAS management platform may collect information of all NFSs, including: configuration information, identification information and capacity information, wherein the configuration information comprises: the IP address of the NFS can be accessed, and operations such as new creation, deletion and configuration information modification (IP address addition or deletion) of the NFS can be executed, so that the overall process management and control of the NFS are realized.
In one embodiment, the issuing of the probe request to the IP address in step 102 includes:
and sending the detection requests to the servers corresponding to the IP addresses in batches through the batch processing platform.
In specific implementation, fig. 2 is a schematic diagram of an overall NFS recycling flow in the embodiment of the present invention, as shown in fig. 2, since the NAS management platform cannot grasp the actual use condition of the NFS, a manner of actively initiating a probe request is adopted in step 102, first, according to the configuration information of the NFS recorded on the NAS management platform obtained in step 101, the IP addresses of all servers included in the configuration information of each NFS are checked, then, a probe request is sent to the servers corresponding to the IP addresses in batches at regular time through the batch operation platform, whether the servers mount the corresponding NFS is checked, in step 103, if there is a server that does not mount the NFS, the IP address corresponding to the server that does not mount the NFS is deleted from the configuration information of the NFS, if there is no server that does not mount the NFS, the configuration information of the NFS is not modified, and finally, in step 104, when there is no IP address included in the configuration information of one NFS, indicating that any server cannot access the NFS, placing the NFS in a recycle bin, and when configuration information of one NFS includes at least one IP address, retaining the NFS, which may be performed in a timed loop.
Fig. 3 is a schematic diagram of a recycling step in an embodiment of the present invention, as shown in fig. 3, in an embodiment, after placing the NFS into the recycling bin, the method further includes:
step 301: and if the access request of the NFS is not received within the preset time length, deleting the NFS.
As shown in fig. 3, in an embodiment, after placing the NFS in the recycle bin, the method further includes:
step 302: if the access authority request of the NFS is received within the preset duration, the NFS is moved out of the recycle bin;
step 303: and adding the IP address corresponding to the access authority request into the configuration information of the NFS.
In particular implementation, the probe initiated by the NAS management platform is not completely accurate, for example: the server is just restarted, so that the NFS is not automatically mounted, or the NFS needs to be temporarily uninstalled for some tests, if the server which is not mounted with the NFS is checked each time, the server goes to check and confirm with a server administrator, large labor cost and time cost are caused, but if the NFS is directly deleted, once the NFS is deleted by mistake, data cannot be recovered, and the result is unacceptable. Fig. 4 is a schematic diagram of an overall flow of a recycle bin in an embodiment of the present invention, as shown in fig. 4, in the embodiment of the present invention, when an NFS does not have any server to access, the NFS is placed in the recycle bin, after the NFS enters the recycle bin, a waiting duration may be preset, if an access request of the NFS is not received within the preset duration, the NFS may be considered to be no longer used, and may be deleted, if an access permission request of the NFS is received within the preset duration, which indicates that a server needs to continuously mount the NFS, an IP address corresponding to the access permission request may be added to configuration information of the NFS, so that an IP address corresponding to the access permission request may access the NFS, and the NFS is moved out of the recycle bin, which may prevent the NFS from being deleted mistakenly, and may ensure data security.
In the embodiment of the present invention, the functional logic for sending the probe request and the recycle bin mechanism may be implemented by java, python, C #, or other languages, and the present invention is not limited thereto, and in addition, the NAS management platform and the batch job platform may also be implemented by other platforms, and only the necessary functions need to be satisfied and the interfaces are opened, and the present invention is not limited thereto.
In one embodiment, the method further comprises: acquiring identification information and capacity information of the NFS;
placing the NFS into the recycle bin further comprises:
the identification information and capacity information of the NFS, and the time of entry into the recycle bin are stored.
In specific implementation, when the NFS enters the recycle bin, the related information of the NFS may also be stored, including: the identification information and the capacity information of the NFS and the time information of entering the recycle bin can record the recycling operation, so that the later backtracking is facilitated, and the data safety is further ensured.
It should be noted that while the operations of the method of the present invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Based on the same inventive concept, the embodiment of the present invention further provides a recycling apparatus for a network file system, as in the following embodiments. Because the principle of solving the problems of the recovery device of the network file system is similar to the recovery method of the network file system, the implementation of the device can refer to the implementation of the method, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
An embodiment of the present invention provides a recovery apparatus for a network file system, configured to improve recovery efficiency of NFS resources and avoid resource waste, where fig. 5 is a schematic diagram of a structure of the recovery apparatus for the network file system in the embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
an obtaining module 01, configured to obtain configuration information of a network file system NFS, where the configuration information includes: an IP address where NFS can be accessed;
a detection request sending module 02, configured to send a detection request to a server corresponding to the IP address, and determine whether there is a server that does not mount the NFS;
the IP address deleting module 03 is configured to delete, if there is a server on which the NFS is not mounted, an IP address corresponding to the server on which the NFS is not mounted from the configuration information of the NFS;
the recycle bin module 04 is configured to place the NFS in the recycle bin when the configuration information of the NFS does not include any IP address that can access the NFS.
Fig. 6 is a schematic diagram of another structure of a recycling apparatus of a network file system in an embodiment of the present invention, as shown in fig. 6, in an embodiment, the apparatus further includes: an NFS deletion module 05 to:
and after the NFS is put into the recycle bin, if the access request of the NFS is not received within the preset time length, deleting the NFS.
In one embodiment, the apparatus further comprises: a removal recycle bin module 06 for:
after the NFS is put into a recycle bin, if an access authority request of the NFS is received within a preset time length, the NFS is moved out of the recycle bin;
and adding the IP address corresponding to the access authority request into the configuration information of the NFS.
In one embodiment, the obtaining module 01 is further configured to: acquiring identification information and capacity information of the NFS;
the recycle bin module 03, further configured to:
the identification information and capacity information of the NFS, and the time of entry into the recycle bin are stored.
In one embodiment, the NFS stores NAS storage over a network attached storage;
the NAS comprises a plurality of storage volumes, and each storage volume corresponds to one NFS.
In one embodiment, the apparatus further comprises: a management module 07, configured to:
acquiring configuration information, identification information and capacity information of a plurality of NFSs through an NAS management platform;
and establishing an NFS, deleting the NFS or modifying the configuration information of the NFS through the NAS management platform.
In an embodiment, the probe request issuing module 02 is specifically configured to:
and sending the detection requests to the servers corresponding to the IP addresses in batches through the batch processing platform.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the recovery method of the network file system is realized when the processor executes the computer program.
The application provides a computer device for implementing all or part of the content in the recovery method of the network file system, which specifically comprises the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through a bus; the communication interface is used for realizing information transmission between related devices; the computer device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the computer device may be implemented with reference to the embodiment of the method for implementing the recovery of the network file system and the embodiment of the recovery apparatus for implementing the network file system in the embodiment, which are incorporated herein, and repeated details are not described herein.
Fig. 7 is a schematic block diagram of a system configuration of a computer device 7600 in the embodiment of the present invention. As shown in fig. 7, the computer device 7600 may include a central processing unit 7100 and a memory 7140; the memory 7140 is coupled to the central processing unit 7100. Notably, this fig. 7 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the order management functions of the vehicle owner platform may be integrated into the central processor 7100.
As shown in fig. 7, the computer device 7600 may further include: a communication module 7110, an input unit 7120, an audio processor 7130, a display 7160, a power supply 7170. It is noted that the computer device 7600 also does not necessarily include all of the components shown in FIG. 7; furthermore, the computer device 7600 may also comprise components not shown in fig. 7, reference being made to the prior art.
As shown in fig. 7, the central processing unit 7100, also sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which the central processing unit 7100 receives input and controls operation of the various components of the computer device 7600.
The memory 7140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 7100 may execute the program stored in the memory 7140 to realize information storage or processing, etc.
The input unit 7120 provides input to the central processing unit 7100. The input unit 7120 is, for example, a key or a touch input device. The power supply 7170 is used to provide power to the computer device 7600. The display 7160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 7140 may be solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 7140 may also be some other type of device. The memory 7140 includes a buffer memory 7141 (sometimes referred to as a buffer). The memory 7140 may include an application/function storage section 7142 for storing application programs and function programs or a flow for performing operations of the computer device 7600 by the central processing unit 7100.
The memory 7140 may also include a data store 7143 that stores data such as contacts, numeric data, pictures, sounds, and/or any other data used by a computer device. The driver storage section 7144 of the memory 7140 may include various drivers of the computer device for communication functions and/or for performing other functions of the computer device, such as messaging applications, directory applications, etc.
The communication module 7110 is a transmitter/receiver 7110 that transmits and receives signals via an antenna 7111. A communication module (transmitter/receiver) 7110 is coupled to the central processor 7100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, multiple communication modules 7110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same computer device. The communication module (transmitter/receiver) 7110 is also coupled via an audio processor 7130 to a speaker 7131 and a microphone 7132 for providing audio output via the speaker 7131 and for receiving audio input from the microphone 7132 for carrying out common telecommunications functions. The audio processor 7130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 7130 is also coupled to the central processor 7100 to enable recording of sounds locally through a microphone 7132 and to enable playing of sounds stored locally through a speaker 7131.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the foregoing method for recovering a network file system is stored in the computer-readable storage medium.
The following is a specific example to facilitate an understanding of how the invention may be practiced.
The first step is as follows: the NAS management platform collects information of all NFSs, and comprises the following steps: configuration information, identification information and capacity information, wherein the configuration information comprises: an IP address where NFS can be accessed;
the second step is that: according to the IP addresses of all servers contained in the configuration information of each NFS, sending detection requests to the servers corresponding to the IP addresses in batches through a batch operation platform, and checking whether the servers mount the corresponding NFS;
the third step: if the server without the NFS is existed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS, if the server without the NFS is not existed, not modifying the configuration information of the NFS, and ending the flow;
the fourth step: if the configuration information of any NFS does not contain any IP address, putting the NFS into a recycle bin, and if the configuration information of all NFSs contains at least one IP address, ending the process;
the fifth step: presetting waiting time after the NFS enters a recovery station;
and a sixth step: if the access request of the NFS is not received within the preset duration, deleting the NFS;
the seventh step: and if the access authority request of the NFS is received within the preset time length, adding the IP address corresponding to the access authority request into the configuration information of the NFS, and removing the NFS from the recycle bin.
In summary, the embodiment of the present invention provides: obtaining configuration information of a network file system NFS, wherein the configuration information comprises: an IP address where NFS can be accessed; sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not; if the server without the NFS is installed, deleting the IP address corresponding to the server without the NFS from the configuration information of the NFS; when the configuration information of the NFS does not contain any IP address capable of accessing the NFS, the NFS is placed into the recycle bin, the detection request is sent to the server corresponding to the IP address in the configuration information of the NFS, the automatic detection of the mounting condition of the NFS is realized, the IP address without mounting the NFS can be automatically deleted from the configuration information of the NFS, the NFS which does not need to be accessed is automatically recycled, the efficiency of recycling NFS resources is improved, and the waste of resources is effectively avoided.
In addition, according to the embodiment of the invention, through a recycle bin mechanism, after the NFS is put into the recycle bin, if the access request of the NFS is not received within the preset time length, the NFS is deleted; if the access authority request of the NFS is received within the preset time length, the NFS is moved out of the recycle bin, the efficiency of NFS resource recycle is improved, meanwhile, the NFS can be prevented from being deleted by mistake, and data safety is guaranteed.
Compared with the prior art, the embodiment of the invention can automatically identify the forgotten NFS resources, avoids the link of manual confirmation in the resource recovery process, recovers the forgotten NFS with low cost and saves the resources.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In this document, 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. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (16)

1. A method for reclaiming a network file system is characterized by comprising the following steps:
obtaining configuration information of a network file system NFS, wherein the configuration information comprises: an IP address where the NFS can be accessed;
sending a detection request to a server corresponding to the IP address, and judging whether a server which does not mount the NFS exists or not;
if the server which does not mount the NFS exists, deleting the IP address corresponding to the server which does not mount the NFS from the configuration information of the NFS;
and when the configuration information of the NFS does not contain any IP address capable of accessing the NFS, putting the NFS into a recycle bin.
2. The method of claim 1, wherein after placing the NFS in a recycle bin, further comprising:
and if the access request of the NFS is not received within a preset time length, deleting the NFS.
3. The method of claim 1, wherein after placing the NFS in a recycle bin, further comprising:
if the access authority request of the NFS is received within a preset time length, the NFS is moved out of a recycle bin;
and adding the IP address corresponding to the access permission request into the configuration information of the NFS.
4. The method of claim 1, further comprising: acquiring identification information and capacity information of the NFS;
placing the NFS into a recycle bin further comprises:
the identification information and capacity information of the NFS, and the time of entry into the recycle bin are stored.
5. The method of claim 1, wherein the NFS stores NAS storage over a network attached storage;
the NAS comprises a plurality of storage volumes, and each storage volume corresponds to one NFS.
6. The method of claim 5, further comprising:
acquiring configuration information, identification information and capacity information of a plurality of NFSs through an NAS management platform;
and establishing an NFS, deleting the NFS or modifying the configuration information of the NFS through the NAS management platform.
7. The method of claim 1, wherein issuing a probe request to the IP address comprises:
and sending the detection requests to the servers corresponding to the IP addresses in batches through the batch processing platform.
8. A reclamation apparatus for a network file system, comprising:
an obtaining module, configured to obtain configuration information of a network file system NFS, where the configuration information includes: an IP address where the NFS can be accessed;
a detection request sending module, configured to send a detection request to a server corresponding to the IP address, and determine whether there is a server that does not mount the NFS;
an IP address deleting module, configured to delete, if there is a server that does not mount the NFS, an IP address corresponding to the server that does not mount the NFS from the configuration information of the NFS;
a recycle bin module, configured to, when the configuration information of the NFS does not include any IP address that can access the NFS, place the NFS in a recycle bin.
9. The apparatus of claim 8, further comprising: an NFS deletion module to:
and after the NFS is put into a recycle bin, if the access request of the NFS is not received within a preset time length, deleting the NFS.
10. The apparatus of claim 8, further comprising: a removal recycle bin module to:
after the NFS is put into a recycle bin, if an access authority request of the NFS is received within a preset time length, the NFS is moved out of the recycle bin;
and adding the IP address corresponding to the access permission request into the configuration information of the NFS.
11. The apparatus of claim 8, wherein the obtaining module is further to: acquiring identification information and capacity information of the NFS;
a recycle bin module further to:
the identification information and capacity information of the NFS, and the time of entry into the recycle bin are stored.
12. The apparatus of claim 8, wherein the NFS is a NAS storage over network attached storage;
the NAS comprises a plurality of storage volumes, and each storage volume corresponds to one NFS.
13. The apparatus of claim 12, further comprising: a management module to:
acquiring configuration information, identification information and capacity information of a plurality of NFSs through an NAS management platform;
and establishing an NFS, deleting the NFS or modifying the configuration information of the NFS through the NAS management platform.
14. The apparatus of claim 8, wherein the probe request issuing module is specifically configured to:
and sending the detection requests to the servers corresponding to the IP addresses in batches through the batch processing platform.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 7.
CN202110352599.5A 2021-03-31 2021-03-31 Recovery method and device of network file system Active CN113032351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110352599.5A CN113032351B (en) 2021-03-31 2021-03-31 Recovery method and device of network file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352599.5A CN113032351B (en) 2021-03-31 2021-03-31 Recovery method and device of network file system

Publications (2)

Publication Number Publication Date
CN113032351A true CN113032351A (en) 2021-06-25
CN113032351B CN113032351B (en) 2023-01-13

Family

ID=76453541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352599.5A Active CN113032351B (en) 2021-03-31 2021-03-31 Recovery method and device of network file system

Country Status (1)

Country Link
CN (1) CN113032351B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183802A1 (en) * 2007-01-30 2008-07-31 Microsoft Corporation Network recycle bin
US20090240783A1 (en) * 2008-03-19 2009-09-24 Oracle International Corporation Direct network file system
CN101699825A (en) * 2009-10-28 2010-04-28 成都市华为赛门铁克科技有限公司 Network file system access method, device and system
KR20130125055A (en) * 2012-05-08 2013-11-18 (주)이월리서치 Network information controller system by using ip address and mac address and method thereof
CN103561101A (en) * 2013-11-06 2014-02-05 中国联合网络通信集团有限公司 Network file system
CN105868056A (en) * 2016-04-07 2016-08-17 北京北信源软件股份有限公司 Method, device and safety virtual machine for acquiring deleted files in Windows virtual machines
CN107239521A (en) * 2017-05-26 2017-10-10 郑州云海信息技术有限公司 Recycle bin application process and system on a kind of distributed type assemblies
CN107483637A (en) * 2017-09-22 2017-12-15 郑州云海信息技术有限公司 A kind of client link management method and device based on NFS
CN107544834A (en) * 2017-07-28 2018-01-05 新华三云计算技术有限公司 A kind of image file contraction method, device and machinable medium
CN108197270A (en) * 2018-01-04 2018-06-22 中科边缘智慧信息科技(苏州)有限公司 distributed file system data recovery method
CN108762678A (en) * 2018-05-30 2018-11-06 郑州云海信息技术有限公司 A kind of memory space recovery method, system, device and readable storage medium storing program for executing
CN109040340A (en) * 2018-08-22 2018-12-18 珠海莲鸿科技有限公司 A kind of IP address recovery method applied to distributed AP system
CN109117251A (en) * 2018-08-09 2019-01-01 郑州云海信息技术有限公司 A kind of implementation method, device and the readable storage medium storing program for executing of virtual machine recycle bin
CN109246257A (en) * 2018-10-12 2019-01-18 平安科技(深圳)有限公司 Flow allocating method, apparatus, computer equipment and storage medium
CN109981344A (en) * 2019-02-19 2019-07-05 新华三技术有限公司 Scan method, device and network forwarding equipment
CN110109889A (en) * 2019-05-09 2019-08-09 重庆大学 A kind of distributed memory file management system
CN112162958A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Network file system mounting method and device, electronic equipment and storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183802A1 (en) * 2007-01-30 2008-07-31 Microsoft Corporation Network recycle bin
US20090240783A1 (en) * 2008-03-19 2009-09-24 Oracle International Corporation Direct network file system
CN101699825A (en) * 2009-10-28 2010-04-28 成都市华为赛门铁克科技有限公司 Network file system access method, device and system
KR20130125055A (en) * 2012-05-08 2013-11-18 (주)이월리서치 Network information controller system by using ip address and mac address and method thereof
CN103561101A (en) * 2013-11-06 2014-02-05 中国联合网络通信集团有限公司 Network file system
CN105868056A (en) * 2016-04-07 2016-08-17 北京北信源软件股份有限公司 Method, device and safety virtual machine for acquiring deleted files in Windows virtual machines
CN107239521A (en) * 2017-05-26 2017-10-10 郑州云海信息技术有限公司 Recycle bin application process and system on a kind of distributed type assemblies
CN107544834A (en) * 2017-07-28 2018-01-05 新华三云计算技术有限公司 A kind of image file contraction method, device and machinable medium
CN107483637A (en) * 2017-09-22 2017-12-15 郑州云海信息技术有限公司 A kind of client link management method and device based on NFS
CN108197270A (en) * 2018-01-04 2018-06-22 中科边缘智慧信息科技(苏州)有限公司 distributed file system data recovery method
CN108762678A (en) * 2018-05-30 2018-11-06 郑州云海信息技术有限公司 A kind of memory space recovery method, system, device and readable storage medium storing program for executing
CN109117251A (en) * 2018-08-09 2019-01-01 郑州云海信息技术有限公司 A kind of implementation method, device and the readable storage medium storing program for executing of virtual machine recycle bin
CN109040340A (en) * 2018-08-22 2018-12-18 珠海莲鸿科技有限公司 A kind of IP address recovery method applied to distributed AP system
CN109246257A (en) * 2018-10-12 2019-01-18 平安科技(深圳)有限公司 Flow allocating method, apparatus, computer equipment and storage medium
CN109981344A (en) * 2019-02-19 2019-07-05 新华三技术有限公司 Scan method, device and network forwarding equipment
CN110109889A (en) * 2019-05-09 2019-08-09 重庆大学 A kind of distributed memory file management system
CN112162958A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Network file system mounting method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
段海军等: "面向航空电子***的网络文件***设计", 《电子科技》 *
齐婵颖, 李战怀,张 晓, 丰文雄, 张瑞杰: "NTFS 文件***空间回收方法的研究", 《计算机工程》 *

Also Published As

Publication number Publication date
CN113032351B (en) 2023-01-13

Similar Documents

Publication Publication Date Title
US8260355B2 (en) Portable communication terminal, program executed by portable communication terminal
EP3842930A1 (en) Image file conversion method and apparatus
CN111782416B (en) Data reporting method, device, system, terminal and computer readable storage medium
CN109814524B (en) Vehicle diagnosis method, device and system
CN110989926B (en) Fault magnetic disc slot positioning method and device and electronic equipment
CN106302609B (en) Access method and device
CN103631617A (en) Method and device for unloading system application on terminal equipment
CN107644075B (en) Method and device for collecting page information
US10067753B2 (en) Application program uninstallation method and apparatus
CN103309751A (en) Apparatus and method of terminal for providing file system function
CN105868056A (en) Method, device and safety virtual machine for acquiring deleted files in Windows virtual machines
EP2770768A2 (en) Method and system for replacing an se key of a mobile terminal
CN105867962A (en) System upgrading method and device
EP2479962A1 (en) Method and mobile terminal for recycling short messages
CN104133703A (en) Method and device for determining software not used frequently
CN113032351B (en) Recovery method and device of network file system
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
CN112882743A (en) Software upgrading method
CN106933604B (en) System upgrading method and device
CN113032183A (en) System management method, device, computer equipment and storage medium
CN115098297B (en) Consistent snapshot generation method and system for cloud primary storage data volume
CN113760631B (en) Page loading time length determining method, device, equipment and storage medium
CN114116407A (en) Vehicle machine error log analysis uploading method, device, equipment and storage medium
CN110321251B (en) Data backup method, device, equipment and storage medium based on network block equipment
CN111353134A (en) Authority management method and 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
TA01 Transfer of patent application right

Effective date of registration: 20221026

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, No. 99, Yincheng Road, Shanghai pilot Free Trade Zone, 200120

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant