Help & Documentation>Cloud File Storage>Best Practice>Selecting Kernels for NFS Clients

Selecting Kernels for NFS Clients

Last updated: 2024-12-12 15:35:26

The NFS client is a kernel-based client. Due to bugs in some kernel versions, the NFS service may not function properly. To ensure a better user experience, we recommend using our suggested kernel versions.

Identified Client Issues

Kernel network stack defects causing unresponsive file system (Priority: High)

When the system's kernel version is 2.6.32-696~2.6.32-696.10.1 (including 2.6.32-696, but excluding 2.6.32-696.10.1), the NFS server is busy and the kernel requests retransmission, which may trigger kernel network stack defects, resulting in unresponsive operations. If the operation is unresponsive, please restart the CVM instance. For more information, please refer to RHEL6.9:NFSv4 TCP transport stuck in FIN_WAIT_2 forever.

Kernel defects causing unresponsive file system (Priority: High)

When the system's kernel version is one of the following, a failover in the NFS server may cause deadlock situations in the NFS client's open, read, and write operations, leading to a continuous unresponsive state of the file system.
Redhat 6、CentOS 6 2.6.32-696.3.1.el6.
All kernel versions prior to Redhat 7, CentOS 7 3.10.0-229.11.1.el7.
Ubuntu 15.10 Linux 4.2.0-18-generic. If the operation is unresponsive, please restart the CVM instance. For more information, please refer to RHEL7:NFSv4 client loops with WRITE/NFS4ERR_STALE_STATEID - if NFS server restarts multiple times within the grace period.
When the system's kernel version is one of the following versions, network partitioning or jitter may cause connection reconnection. The NFS client may continuously be unresponsive due to incorrect error code handling. The symptom is an unresponsive file system and the repeated printing of a bad sequence-id error in the system message.
All kernel versions prior to Redhat 6, CentOS 6 2.6.32-696.16.1.el6.
All kernel versions prior to Red Hat 7, CentOS 7 3.10.0-693.el7. If the operation is unresponsive, please restart the CVM instance. For more information, please refer to RHEL6/RHEL7:NFS4 client receiving NFS4ERR_BAD_SEQID drops nfs4 stateowner resulting in infinite loop of READ/WRITE+NFS4ERR_BAD_STATEID.
When the operating system kernel version is all kernels of CentOS and RedHat 5.11.x, executing the ls command, commands containing wildcard * or ?, and other operations that require directory traversal, will all cause lag or unresponsiveness due to kernel defects. Please upgrade your kernel version to avoid this issue.

Unsupported chown command and system call (Priority: Low)

When the system's kernel version is 2.6.32, it does not support the execution of the chown command and system calls by the NFS client.

Inability to terminate ls operation (Priority: Low)

When the system's kernel version is 2.6.32-696.1.1.el6 or earlier, executing the 'ls' command while adding or deleting files and subdirectories will cause the 'ls' operation to never terminate. Please upgrade the kernel version to avoid this issue.
When the system's kernel version is 4.18.0-305.12.1, directory traversal operations such as ls may not terminate. Please upgrade the kernel to 4.18.0-305.19.1 to fix this issue.

Recommended Images for NFS File System

Linux System Image

Operating system
OS Version
CentOS
CentOS 6.9 64-bit: 2.6.32-696.16.1.el6.x86_64 and above
CentOS 6.10 64-bit: 2.6.32-754.17.1.el6.x86_64 and above
CentOS 7.2 64-bit: 3.10.0-514.26.2.el7.x86_64 and above
CentOS 7.3 64-bit: 3.10.0-514.26.2.el7.x86_64 and above
CentOS 7.4 64-bit: 3.10.0-693.2.2.el7.x86_64 and above
CentOS 7.5 64-bit: 3.10.0-862.14.4.el7.x86_64 and above
CentOS 7.6 64-bit: 3.10.0-957.21.3.el7.x86_64 or above
CentOS 7.7 64-bit: 3.10.0-1062.18.1.el7.x86_64 and above
CentOS 8.x 64-bit: 4.18.0-147.5.1.el8_1.x86_64 and above
Tencent OS Linux
TencentOS Server 2.2(Tkernel 3)
TencentOS Server 2.4 (Tkernel 4)
TencentOS Server 2.6(Final)
TencentOS Server 3.1(Tkernel 4)
Debian
Debian 9.6 64-bit: 4.9.0-8-amd64 and above
Debian 9.8 64-bit: 4.9.0-8-amd64 and above
Debian 9.10 64-bit: 4.9.0-9-amd64 and above
Ubuntu
Ubuntu 14.04 64-bit: 4.4.0-93-generic and above
Ubuntu 16.04 64-bit: 4.4.0-151-generic and above
Ubuntu 18.04 64-bit: 4.15.0-52-generic and above
Ubuntu 20.04 64-bit: 5.4.0-31-generic and above
OpenSuse
OpenSuse 42.3 64-bit: 4.4.90-28-default and above
Suse
Enterprise Server 12 SP2 64-bit: 4.4.74-92.35-default and above
Enterprise Server 12 SP4 64-bit: 4.12.14-95.16-default and above
CoreOS
CoreOS 1745.7.0 64-bit: 4.19.56-coreos-r1 and above
CoreOS 2023.4.0 64-bit: 4.19.56-coreos-r1 and above

Windows System Image

Operating system
OS Version
Windows Server 2012
Windows Server 2012 R2 Datacenter 64-bit Chinese
Windows Server 2012 R2 Datacenter 64-bit English
Windows Server 2016
Windows Server 2016 DataCenter 64-bit Chinese
Windows Server 2016 Datacenter 64-bit English
Windows Server 2019
Windows Server 2019 Datacenter 64-bit Chinese
Windows Server 2019 IDC 64-bit English