CN110555009A - processing method and device for Network File System (NFS) service - Google Patents

processing method and device for Network File System (NFS) service Download PDF

Info

Publication number
CN110555009A
CN110555009A CN201910733297.5A CN201910733297A CN110555009A CN 110555009 A CN110555009 A CN 110555009A CN 201910733297 A CN201910733297 A CN 201910733297A CN 110555009 A CN110555009 A CN 110555009A
Authority
CN
China
Prior art keywords
nfs service
service
nfs
file system
state
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
CN201910733297.5A
Other languages
Chinese (zh)
Other versions
CN110555009B (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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910733297.5A priority Critical patent/CN110555009B/en
Publication of CN110555009A publication Critical patent/CN110555009A/en
Application granted granted Critical
Publication of CN110555009B publication Critical patent/CN110555009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • 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
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS

Abstract

the application provides a processing method and a device for NFS service of a network file system, wherein the method comprises the following steps: judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not; and if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service. According to the technical scheme, the state pre-judgment and automatic reset are carried out, so that the continuity of the service can be ensured, the processing efficiency can be improved, and the maintenance cost is reduced.

Description

processing method and device for Network File System (NFS) service
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for processing a network file system NFS service.
background
In a linux (a set of Unix-like operating systems that are free to use and freely spread) usage scenario of a NAS (Network Attached Storage) server, the NAS server often uses an NFS protocol, and a data I/O (Input/Output) is uniformly managed, scheduled, and allocated by an NFS (Network File System) service to complete processing of a corresponding I/O.
In the NAS environment, there may be an abnormal situation: the NFS service always occupies resources, and the occupancy rate of a Central Processing Unit (CPU) is continuously increased, which may cause an operating system of the NAS server to be blocked and the NFS request cannot be normally responded, thereby causing a service of the NAS client to be blocked and an I/O request cannot be performed. At present, in order to repair the abnormal condition, a maintenance worker usually finds a fault and manually executes a resource restart command, so that the repair efficiency is low, the maintenance cost is high, in addition, the manual repair is performed after the fault occurs, so that the service is often interrupted, and the repair time is long.
Disclosure of Invention
The technology to be solved by the application is to provide a processing method and device for network file system NFS services, which can ensure the continuity of services, improve the processing efficiency, and reduce the maintenance cost.
In order to solve the above technical problem, the present application provides a method for processing a network file system NFS service, where the method includes:
Judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not;
And if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service.
Optionally, after the resetting operation on the NFS service, the method further includes:
And judging whether the set condition for re-mounting the file system is met, and if the set condition for re-mounting the file system is met, re-mounting the file system of the NFS service.
Optionally, the condition for re-mounting the file system includes:
The starting script is provided with a re-mounting parameter, and the number of times of resetting operation in a set time range is larger than a set reset number threshold value.
optionally, the determining whether the state of the NFS service is an abnormal state includes:
Judging whether NFS service is started, if the NFS service is not started, the state of the NFS service is an abnormal state; if the NFS service is started, judging whether a function corresponding to the NFS service is available, and if the function corresponding to the NFS service is unavailable, judging that the state of the NFS service is an abnormal state.
optionally, if the CPU occupancy of the NFS service is greater than the set occupancy threshold, and the state of the NFS service is an abnormal state, before the resetting operation is performed on the NFS service, the method further includes:
Adding the set port into the firewall;
After the reinstalling the file system of the NFS service if the file system of the NFS service is reinstalled, the method further includes: moving the set port out of the firewall;
after performing a reset operation on the NFS service if the file system of the NFS service is not reinstalled, the method further includes: and moving the set port out of the firewall.
The present application further provides a processing apparatus for a network file system NFS service, where the apparatus includes: a memory and a processor;
the memory is used for storing a program for processing the network file system NFS service;
The processor is configured to read a program for executing the processing for the network file system NFS service, and execute the following operations:
judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not;
And if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service.
optionally, the processor is configured to read a program for executing the processing for the network file system NFS service, and further perform the following operations:
After the reset operation is performed on the NFS service, whether a set condition for re-mounting the file system is met is judged, and if the set condition for re-mounting the file system is met, the file system of the NFS service is re-mounted.
optionally, the condition for re-mounting the file system includes:
the starting script is provided with a re-mounting parameter, and the number of times of resetting operation in a set time range is larger than a set reset number threshold value.
Optionally, the determining whether the state of the NFS service is an abnormal state includes:
judging whether NFS service is started, if the NFS service is not started, the state of the NFS service is an abnormal state; if the NFS service is started, judging whether a function corresponding to the NFS service is available, and if the function corresponding to the NFS service is unavailable, judging that the state of the NFS service is an abnormal state.
optionally, the processor is configured to read a program for executing the processing for the network file system NFS service, and further perform the following operations:
If the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, adding a set port into a firewall before resetting the NFS service;
If the file system of the NFS service is mounted again, the set port is moved out of the firewall after the file system of the NFS service is mounted again;
And if the file system of the NFS service is not mounted again, resetting the NFS service, and then moving the set port out of the firewall.
the application includes: judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not; and if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service. According to the technical scheme, the state pre-judgment and automatic reset are carried out, so that the continuity of the service can be ensured, the processing efficiency can be improved, and the maintenance cost is reduced.
Drawings
the accompanying drawings are included to provide an understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the examples serve to explain the principles of the disclosure and not to limit the disclosure.
fig. 1 is a flowchart of a processing method of an NFS service according to a first embodiment of the present invention;
Fig. 2 is another flowchart of a processing method of an NFS service according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a processing apparatus of an NFS service according to a first embodiment of the present invention;
fig. 4 is a flowchart of a processing method of the NFS service according to an example one of the present application;
fig. 5 is another flowchart of a processing method of the NFS service according to the first embodiment of the present application.
Detailed Description
the present application describes embodiments, but the description is illustrative rather than limiting and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or instead of any other feature or element in any other embodiment, unless expressly limited otherwise.
the present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive concept as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive aspects to form yet another unique inventive aspect, as defined by the claims. Thus, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not limited except as by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
Further, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other orders of steps are possible as will be understood by those of ordinary skill in the art. Therefore, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Further, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
Example one
As shown in fig. 1, this embodiment provides a method for processing an NFS service, where the method includes:
Step S101, judging whether the CPU occupancy rate of a central processing unit of the NFS service is greater than a set occupancy rate threshold value, and judging whether the state of the NFS service is an abnormal state;
step S102, if the CPU occupancy rate of the NFS service is larger than the set occupancy rate threshold value, and the state of the NFS service is an abnormal state, resetting the NFS service.
in this embodiment, the occupancy threshold may be preset, for example, if the occupancy threshold is set to 80%, it is determined whether the CPU occupancy of the NFS service is greater than 80%, and if the CPU occupancy of the NFS service is greater than 80%, it is determined that the CPU occupancy of the current NFS service is too high, and it is necessary to further determine whether a reset operation needs to be performed according to the state of the NFS service. If the CPU occupancy of the NFS service is less than or equal to 80%, no reset operation is performed.
In this embodiment, the NAS server may view the CPU occupancy of the currently running NFS service through the Top command.
in this embodiment, the execution sequence for determining whether the CPU occupancy of the NFS service is greater than the set occupancy threshold and determining whether the state of the NFS service is an abnormal state is not limited, and both may be determined at the same time;
or judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold, if so, further judging whether the state of the NFS service is an abnormal state; if the CPU occupancy rate of the NFS service is less than or equal to the set occupancy rate threshold, the state of the NFS service does not need to be judged;
Or the state of the NFS service may be determined first, and if the state of the NFS service is an abnormal state, whether the CPU occupancy of the NFS service is greater than a set occupancy threshold is further determined; if the state of the NFS service is a normal state, the CPU occupancy rate of the NFS service does not need to be judged.
in this embodiment, the determining whether the state of the NFS service is an abnormal state may include:
judging whether NFS service is started, if the NFS service is not started, the state of the NFS service is an abnormal state; if the NFS service is started, judging whether a function corresponding to the NFS service is available, and if the function corresponding to the NFS service is unavailable, judging that the state of the NFS service is an abnormal state.
In this embodiment, the NFS service may include a ganesha. The NAS server can check whether a ganesha.mgr process is started or not through a Top command; mgr process is not started, the state of NFS service is judged to be abnormal; if the ganesha.mgr process is started, it is necessary to further check whether the ganesha.mgr process is available; and if the ganesha.mgr process is available, judging the state of the NFS service to be a normal state, and if the ganesha.mgr process is unavailable, judging the state of the NFS service to be an abnormal state.
In this embodiment, the NAS server may determine whether the ganesha.mgr process is available according to a response condition of the showmount command, and if the response of the showmount command is overtime, determine that the ganesha.mgr process is unavailable; mgr process is determined to be available if the showmount command response has not timed out.
optionally, as shown in fig. 2, after the resetting operation is performed on the NFS service, the method may further include:
step S103, judging whether the set condition for re-mounting the file system is met, and if the set condition for re-mounting the file system is met, re-mounting the file system of the NFS service.
optionally, the condition for re-mounting the file system may include:
The starting script is provided with a re-mounting parameter, and the number of times of resetting operation in a set time range is larger than a set reset number threshold value.
In this embodiment, a time range and a reset number threshold may be preset, for example, the time range may be set to 1 hour, and the reset number threshold may be set to 3, so if a re-mount parameter is set in the startup script, and the number of times of reset operations performed in 1 hour is greater than 3, the file system is re-mounted.
Optionally, if the CPU occupancy of the NFS service is greater than the set occupancy threshold, and the state of the NFS service is an abnormal state, before the resetting operation is performed on the NFS service, the method may further include:
Adding the set port into the firewall;
After the reinstalling the file system of the NFS service if the file system of the NFS service is reinstalled, the method further includes: moving the set port out of the firewall;
after performing a reset operation on the NFS service if the file system of the NFS service is not reinstalled, the method further includes: and moving the set port out of the firewall.
In this embodiment, if the reset operation is required, the set port may be added to the firewall before the reset operation. After the reset operation is completed, it is further determined whether the file system of the NFS service needs to be reloaded, and if the file system of the NFS service needs to be reloaded, the set port is removed from the firewall after the file system of the NFS service is reloaded. If the file system of the NFS service does not need to be reloaded, the set port is moved out of the firewall directly.
According to the technical scheme, the state pre-judgment and automatic reset are carried out, so that the continuity of the service can be ensured, the processing efficiency can be improved, and the maintenance cost is reduced.
As shown in fig. 3, this embodiment further provides a processing apparatus of an NFS service, where the apparatus includes: a memory 10 and a processor 11;
The memory 10 is used for saving a program for processing the network file system NFS service;
the processor 11 is configured to read a program for executing the processing for the network file system NFS service, and execute the following operations:
Judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not;
and if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service.
Optionally, the processor is configured to read a program for executing the processing for the network file system NFS service, and may further perform the following operations:
after the reset operation is performed on the NFS service, whether a set condition for re-mounting the file system is met is judged, and if the set condition for re-mounting the file system is met, the file system of the NFS service is re-mounted.
optionally, the condition for re-mounting the file system may include:
The starting script is provided with a re-mounting parameter, and the number of times of resetting operation in a set time range is larger than a set reset number threshold value.
optionally, the determining whether the state of the NFS service is an abnormal state may include:
judging whether NFS service is started, if the NFS service is not started, the state of the NFS service is an abnormal state; if the NFS service is started, judging whether a function corresponding to the NFS service is available, and if the function corresponding to the NFS service is unavailable, judging that the state of the NFS service is an abnormal state.
optionally, the processor is configured to read a program for executing the processing for the network file system NFS service, and may further perform the following operations:
If the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, adding a set port into a firewall before resetting the NFS service;
if the file system of the NFS service is mounted again, the set port is moved out of the firewall after the file system of the NFS service is mounted again;
And if the file system of the NFS service is not mounted again, resetting the NFS service, and then moving the set port out of the firewall.
According to the technical scheme, the state pre-judgment and automatic reset are carried out, so that the continuity of the service can be ensured, the processing efficiency can be improved, and the maintenance cost is reduced.
example 1
The following further describes a processing method of the NFS service of the present application by using a specific example.
In this example, the occupancy threshold is 98%, the set time range is 1 hour, and the reset number threshold is 3.
As shown in fig. 4, the processing method of the NFS service may include:
Step S201, judging whether the CPU occupancy rate of the NFS service is more than 98%; if the CPU occupancy of the NFS service is greater than 98%, performing step S204, and if the CPU occupancy of the NFS service is less than or equal to 98%, performing step S208;
step S202, judging whether NFS service is started, if the NFS service is not started, determining that the state of the NFS service is an abnormal state, and executing step S204; if the NFS service is started, performing a determination step S203;
Step S203, judging whether a function corresponding to an NFS service is available, if the function corresponding to the NFS service is unavailable, determining that the state of the NFS service is an abnormal state, and executing step S204; if the function corresponding to the NFS service is available, execute step S208;
step S204, judging whether the CPU occupancy rate of the NFS service is greater than 98% or not, and the state of the NFS service is an abnormal state, if the CPU occupancy rate of the NFS service is greater than 98% or not, and the state of the NFS service is an abnormal state, executing step S205;
step S205, resetting the NFS service;
step S206, judging whether the re-mounting parameters are set in the starting script and whether the number of times of resetting operation within 1 hour is more than 3, if the re-mounting parameters are set in the starting script and the number of times of resetting operation within 1 hour is more than 3, executing step S207; if the re-mount parameter is not set in the start script, or the number of times of resetting operation within 1 hour is less than or equal to 3, executing step S208;
And step S207, reinstalling the file system of the NFS service.
And S208, finishing the step and waiting for next judgment.
as shown in fig. 5, the processing method of the NFS service may include:
step S301, judging whether the CPU occupancy rate of the central processing unit of the NFS service is greater than a set occupancy rate threshold value; executing step S304 if the CPU occupancy of the NFS service is greater than the set occupancy threshold, and executing step S310 if the CPU occupancy of the NFS service is less than or equal to the set occupancy threshold;
Step S302, judging whether NFS service is started, if the NFS service is not started, determining that the state of the NFS service is an abnormal state, and executing step S204; if the NFS service is started, performing a determination step S303;
step S303, judging whether a function corresponding to an NFS service is available, if the function corresponding to the NFS service is unavailable, determining that the state of the NFS service is an abnormal state, and executing step S304; if the function corresponding to the NFS service is available, step S310;
step S304, judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and the state of the NFS service is an abnormal state, if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value or not, and the state of the NFS service is the abnormal state, executing step S305;
Step S305, adding the set port into the firewall;
Step S306, resetting the NFS service;
Step S307, judging whether the re-mounting parameter is set in the starting script, and whether the number of times of resetting operation in the set time range is greater than the set reset number threshold, if the re-mounting parameter is set in the starting script, and the number of times of resetting operation in the set time range is greater than the set reset number threshold, executing step S308; if the re-mount parameter is not set in the start script, or the number of times of reset operations performed within the set time range is less than or equal to the set reset number threshold, then step S309 is executed;
step S308, the file system of the NFS service is mounted again;
step S309, moving the set port out of the firewall;
and S310, ending and waiting for the next judgment.
it should be noted that, in step S204, only the comprehensive determination needs to be performed according to the determination results of step S201, step S202, and step S203, and the determination for the CPU occupancy of the NFS service and the state of the NFS service does not need to be performed again. For example, if the determination result in step S201 is "yes" (i.e., the CPU occupancy of the NFS service is greater than 98%) ", the determination result in step S202 is" no "(i.e., the state of the NFS service is an abnormal state)", and step S204 may obtain that the determination result is "yes" (i.e., the reset operation needs to be performed on the NFS service) "according to the determination result in step S201 and the determination result in step S202. Similarly, step S304 is similar to step S204, and only the comprehensive determination needs to be performed according to the determination results of step S301, step S302, and step S303, and the determination for the CPU occupancy of the NFS service and the state of the NFS service does not need to be performed again.
In addition, a certain time is usually required for the reset operation of the NFS service, and it may be set that the determination of the reset condition is not performed during the time period in which the reset operation is performed, so that the determination inaccuracy caused by the determination during the reset operation is avoided.
According to the technical scheme, the NFS service can be monitored in real time and judged in advance of faults by setting the reset operation conditions, and the reset operation is automatically performed when the reset operation conditions are met, so that the manual processing cost can be effectively reduced, and the reset can be performed before the service is interrupted, so that the continuity of the service is ensured. In addition, the time consumption for resetting before the fault is less, so that the processing efficiency can be effectively improved, and the maintenance cost is reduced.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. a processing method for a Network File System (NFS) service is characterized by comprising the following steps:
judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not;
And if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service.
2. the processing method of claim 1, wherein after the reset operation on the NFS service, the method further comprises:
and judging whether the set condition for re-mounting the file system is met, and if the set condition for re-mounting the file system is met, re-mounting the file system of the NFS service.
3. The processing method of claim 2, wherein the condition to re-mount the file system comprises:
The starting script is provided with a re-mounting parameter, and the number of times of resetting operation in a set time range is larger than a set reset number threshold value.
4. the processing method of claim 1, wherein the determining whether the state of the NFS service is an abnormal state comprises:
judging whether NFS service is started, if the NFS service is not started, the state of the NFS service is an abnormal state; if the NFS service is started, judging whether a function corresponding to the NFS service is available, and if the function corresponding to the NFS service is unavailable, judging that the state of the NFS service is an abnormal state.
5. the processing method of any of claims 2 to 4, wherein if the CPU occupancy of the NFS service is greater than a set occupancy threshold and the state of the NFS service is an abnormal state, before performing the reset operation on the NFS service, the method further comprises:
Adding the set port into the firewall;
after the reinstalling the file system of the NFS service if the file system of the NFS service is reinstalled, the method further includes: moving the set port out of the firewall;
after performing a reset operation on the NFS service if the file system of the NFS service is not reinstalled, the method further includes: and moving the set port out of the firewall.
6. a processing apparatus of a network file system, NFS, service, the apparatus comprising: a memory and a processor; the method is characterized in that:
The memory is used for storing a program for processing the network file system NFS service;
the processor is configured to read a program for executing the processing for the network file system NFS service, and execute the following operations:
judging whether the CPU occupancy rate of the NFS service is greater than a set occupancy rate threshold value or not, and judging whether the state of the NFS service is an abnormal state or not;
and if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, resetting the NFS service.
7. the processing apparatus according to claim 6, wherein said processor, configured to read the program that performs the processing for the network file system NFS service, further performs the following operations:
After the reset operation is performed on the NFS service, whether a set condition for re-mounting the file system is met is judged, and if the set condition for re-mounting the file system is met, the file system of the NFS service is re-mounted.
8. The processing apparatus of claim 7, wherein the condition to re-mount the file system comprises:
the starting script is provided with a re-mounting parameter, and the number of times of resetting operation in a set time range is larger than a set reset number threshold value.
9. The processing apparatus as in claim 6, wherein the determining whether the state of the NFS service is an abnormal state comprises:
Judging whether NFS service is started, if the NFS service is not started, the state of the NFS service is an abnormal state; if the NFS service is started, judging whether a function corresponding to the NFS service is available, and if the function corresponding to the NFS service is unavailable, judging that the state of the NFS service is an abnormal state.
10. the processing apparatus according to any of claims 7 to 9, wherein the processor, configured to read the program that performs the processing for the network file system NFS service, further performs the following operations:
if the CPU occupancy rate of the NFS service is greater than the set occupancy rate threshold value and the state of the NFS service is an abnormal state, adding a set port into a firewall before resetting the NFS service;
If the file system of the NFS service is mounted again, the set port is moved out of the firewall after the file system of the NFS service is mounted again;
and if the file system of the NFS service is not mounted again, resetting the NFS service, and then moving the set port out of the firewall.
CN201910733297.5A 2019-08-09 2019-08-09 Processing method and device for Network File System (NFS) service Active CN110555009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910733297.5A CN110555009B (en) 2019-08-09 2019-08-09 Processing method and device for Network File System (NFS) service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910733297.5A CN110555009B (en) 2019-08-09 2019-08-09 Processing method and device for Network File System (NFS) service

Publications (2)

Publication Number Publication Date
CN110555009A true CN110555009A (en) 2019-12-10
CN110555009B CN110555009B (en) 2023-01-10

Family

ID=68737292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910733297.5A Active CN110555009B (en) 2019-08-09 2019-08-09 Processing method and device for Network File System (NFS) service

Country Status (1)

Country Link
CN (1) CN110555009B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515820A (en) * 2019-08-29 2019-11-29 北京浪潮数据技术有限公司 A kind of server failure maintaining method, device, server and storage medium
CN112181934A (en) * 2020-09-10 2021-01-05 苏州浪潮智能科技有限公司 NFS partition mounting method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028833A (en) * 2015-12-30 2018-05-11 华为技术有限公司 A kind of method, system and the relevant device of NAS data accesses
CN108664346A (en) * 2017-03-27 2018-10-16 中国移动通信集团福建有限公司 The localization method of the node exception of distributed memory system, device and system
CN109144789A (en) * 2018-09-10 2019-01-04 网宿科技股份有限公司 A kind of method, apparatus and system for restarting OSD

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028833A (en) * 2015-12-30 2018-05-11 华为技术有限公司 A kind of method, system and the relevant device of NAS data accesses
CN108664346A (en) * 2017-03-27 2018-10-16 中国移动通信集团福建有限公司 The localization method of the node exception of distributed memory system, device and system
CN109144789A (en) * 2018-09-10 2019-01-04 网宿科技股份有限公司 A kind of method, apparatus and system for restarting OSD

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515820A (en) * 2019-08-29 2019-11-29 北京浪潮数据技术有限公司 A kind of server failure maintaining method, device, server and storage medium
CN110515820B (en) * 2019-08-29 2022-07-08 北京浪潮数据技术有限公司 Server fault maintenance method and device, server and storage medium
CN112181934A (en) * 2020-09-10 2021-01-05 苏州浪潮智能科技有限公司 NFS partition mounting method, device, equipment and medium

Also Published As

Publication number Publication date
CN110555009B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN107391320B (en) Consensus method and device
US10817386B2 (en) Virtual machine recovery method and virtual machine management device
US9336054B2 (en) Method and apparatus for configuring resource
CN107589994B (en) Method, device, system and storage medium for managing application process priority
CN106708608B (en) Distributed lock service method, acquisition method and corresponding device
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
CN110225078B (en) Application service updating method, system and terminal equipment
US10417062B2 (en) Method and apparatus of unloading out of memory processing flow to user space
CN110555009B (en) Processing method and device for Network File System (NFS) service
CN108196959B (en) Resource management method and device of ETL system
CN108733454B (en) Virtual machine fault processing method and device
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
CN111538585A (en) Js-based server process scheduling method, system and device
EP2776941B1 (en) Managing capacity in a data center by suspending tenants
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
US9244736B2 (en) Thinning operating systems
CN112363828B (en) Memory fragment management method and device, vehicle-mounted system and vehicle
CN109254782B (en) Operating system installation method and device
CN110058866B (en) Cluster component installation method and device
EP3929737A1 (en) Application state control method apparatus, and terminal and computer-readable storage medium
CN114461323A (en) Card pause processing method and device, electronic equipment and storage medium
CN111782515A (en) Web application state detection method and device, server and storage medium
CN108304200B (en) Method and device for upgrading driving program and electronic equipment
CN112148463B (en) Business process control method and device
CN109271347B (en) Starting method, device and equipment for storage unit of distributed file 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
GR01 Patent grant
GR01 Patent grant