NFS Directory Test
Network File System (NFS) is a file-sharing protocol that allows directories stored on a remote server to be accessed by multiple systems over a network. In OpenShift environments, NFS is commonly used to provide shared and persistent storage for applications, logs, backups, configuration files, and other cluster resources. OpenShift nodes can mount NFS directories and access them as local file systems, enabling multiple workloads and services to share the same storage. Since many applications and cluster services depend on NFS-mounted storage, the availability and responsiveness of these directories are critical to cluster operations. If an NFS directory becomes unavailable, applications and services may experience data access failures, pod startup issues, backup failures, logging disruptions, and other operational problems. Likewise, slow NFS access can increase I/O latency, delay application operations, and degrade overall user experience. Therefore, continuous monitoring of NFS directories is essential to promptly identify storage availability and performance issues.
This test periodically checks the accessibility of each mounted NFS directory and measures the time taken to access it. The results help quickly detect unavailable or slow NFS mounts and facilitate proactive troubleshooting before cluster operations and application workloads are impacted.
Target of the test : An Openshift Master
Agent deploying the test : An internal agent
Outputs of the test : One set of results for every remotely mounted NFS .
| Parameter | Description |
|---|---|
|
Test period |
How often should the test be executed |
|
Host |
The host for which the test is to be configured. |
|
Exclude Directory |
By default, this test monitors all the directories mounted remotely. Accordingly, this parameter is set to none by default. However, if you want to exclude specific directories from monitoring, then, against this parameter, specify the names of the 'local' directories that are mapped to the remote NFS shares to be excluded, as a comma-separated list. For instance, if the remote NFS share named 172.16.8.56:/nfsshare1 is mapped to the local directory /nfsmnt1, then you have to specify /nfsmnt1 against the Exclude Directory parameter. If required, you can also provide a comma-separated list of local directory patterns. For instance, to exclude local directories /nfsmnt1, /nfsmnt2, /nfsmnt3 from monitoring, your Exclude Directory specification can be: */nfsmnt*. |
|
Group by Mount Source Directory |
The test can monitor file systems mounted from different source directories across on-premises and Kubernetes environments. Depending on the deployment type, administrators may prefer to view the monitored file systems grouped either by their mount source directories or by the Kubernetes Pod and Volume hierarchy. This parameter allows administrators to choose the descriptor organization method that best suits their monitoring requirements. If this flag is set to Yes, descriptors are grouped by mount source directory and displayed in a nested format. For example, if multiple file systems are mounted from the source directory 172.16.30.10:/shared/nfs, the source directory is displayed as the primary descriptor, with the corresponding mounted file systems grouped beneath it. This option is recommended when the test is executed on on-premises systems, where the mount source directory provides meaningful context for identifying and troubleshooting file system issues. If this flag is set to No, the mount source directory is ignored. Instead, descriptors are displayed in a nested Pod Name - Volume Name hierarchy. For example, a descriptor may be displayed as nginx-pod-01: nfs-pv, where nginx-pod-01 is the Pod Name and nfs-pv is the associated volume. This view makes it easier to identify storage resources associated with Kubernetes workloads. This option is recommended when the test is executed on Kubernetes nodes. Note: When this flag is set to No, the test obtains the Pod ID-to-Pod Name mapping from the Container Status Test in the Kubernetes Node monitoring model. Since this mapping is generated only after the Container Status Test executes, Pod Names may not be available during the first measurement period following test deployment or agent restart. Once the Container Status Test completes its execution and the mapping information becomes available, the descriptors are automatically displayed using the corresponding Pod Names. By default, this parameter is set to No. |
|
Show Mount Directory in DD |
Additional visibility into the source and target mount directories may be required while investigating file system accessibility or volume mount issues. This parameter determines whether such information is included in the Detailed Diagnosis of the Availability measure. If this flag is set to Yes, the Detailed Diagnosis displays both the source mount directory and the target mount directory associated with the monitored file system. For example, the Detailed Diagnosis may display a source mount directory such as 172.16.30.10:/shared/nfs and a corresponding target directory such as /var/lib/kubelet/pods/.../volumes/kubernetes.io~nfs/nfs-pv. This additional information can help verify mount configurations and simplify the diagnosis of mount-related issues, particularly in Kubernetes environments. If this flag is set to No, mount directory details are excluded from the Detailed Diagnosis output. By default, this parameter is set to Yes. |
|
Directory Paths to be Shortened |
In Kubernetes environments, descriptor names may contain long and repetitive directory paths, making them difficult to read in the monitoring console and layer model. This parameter can be used to remove commonly occurring path segments so that descriptors are displayed in a shorter and more meaningful format. Specify one or more directory path segments to be removed as a comma-separated list. Path matching is case-sensitive, and wildcard characters are not supported. During descriptor generation, the specified path segments are removed from the original path before the descriptor is displayed. For example, consider the following original path: /var/lib/kubelet/pods/22eaa97d-53be-41ed-b40e-49bd84f8aa37/volumes/kubernetes.io~nfs/nfs-pv If this parameter is configured as: /var/lib/kubelet/pods/,/volumes/kubernetes.io~nfs/ the specified path segments are removed, and the resulting descriptor is displayed as: 22eaa97d-53be-41ed-b40e-49bd84f8aa37/nfs-pv By default, this parameter is set to /var/lib/kubelet/pods/volumes/kubernetes.io~nfs. If you do not want to remove any directory path segments while generating descriptors, set this parameter to none. In this case, the original directory path is displayed as the descriptor. If Group by Mount Source Directory is set to No and Pod ID-to-Pod Name mapping is available, the descriptor may subsequently be displayed in the more user-friendly format: nginx-pod-01 → nfs-pv |
|
DD Frequency |
Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
|
Detailed Diagnosis |
To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option. The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:
|
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
Availability |
Indicates availability of this NFS files system. |
Number |
If the value of this measure is 0, it indicates that the file system is unavailable. The value 100 indicates the availability of the file system. Use the detailed diagnosis of this measure to view the source mount directory and target directory details. |
|
Access time |
Indicates access time for this remotely mounted NFS file system. |
Secs |
By monitoring this value over time, an administrator can determine periods when NFS access is slow. |