Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-82557

[10.0] [nfsdctl] nfs.conf - "vers4.x=no" once set will last untill set it back explicitly

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • nfs-utils
    • rhel-fs
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      In /etc/nfs.conf setting "vers4.2=no"will turn off the version 4.2 but after that even though I have cleared that setting, the version 4.2 won't come back automatically:

      [root@yoyang-rhel-100-202503056 ~]# vi /etc/nfs.conf
      [root@yoyang-rhel-100-202503056 ~]# cat /etc/nfs.conf
      [nfsd]
      vers4.2=n
      [root@yoyang-rhel-100-202503056 ~]# systemctl restart nfs-server
      [root@yoyang-rhel-100-202503056 ~]# cat /proc/fs/nfsd/versions
      +3 +4 +4.1 -4.2
      [root@yoyang-rhel-100-202503056 ~]# vi /etc/nfs.conf
      [root@yoyang-rhel-100-202503056 ~]# cat /etc/nfs.conf
      [nfsd]
      vers4.1=n
      [root@yoyang-rhel-100-202503056 ~]# systemctl restart nfs-server
      [root@yoyang-rhel-100-202503056 ~]# cat /proc/fs/nfsd/versions
      +3 +4 -4.1 -4.2
                 ^^^^
      [root@yoyang-rhel-100-202503056 ~]# vi /etc/nfs.conf
      [root@yoyang-rhel-100-202503056 ~]# cat /etc/nfs.conf
      [nfsd]
      vers4.0=n
      [root@yoyang-rhel-100-202503056 ~]# systemctl restart nfs-server
      [root@yoyang-rhel-100-202503056 ~]# cat /proc/fs/nfsd/versions
      +3 -4 -4.0 -4.1 -4.2
                ^^^^^^^^^^^
      [root@yoyang-rhel-100-202503056 ~]# rpm -q kernel nfs-utils
      kernel-6.12.0-55.2.1.el10_0.x86_64
      nfs-utils-2.8.2-3.el10.x86_64
      [root@yoyang-rhel-100-202503056 ~]#

      The workaround is to set them back explicitly:

      [root@yoyang-rhel-100-202503056 ~]# vi /etc/nfs.conf
      [root@yoyang-rhel-100-202503056 ~]# cat /etc/nfs.conf
      [nfsd]
      vers4=y
      [root@yoyang-rhel-100-202503056 ~]# systemctl restart nfs-server
      [root@yoyang-rhel-100-202503056 ~]# cat /proc/fs/nfsd/versions
      +3 +4 +4.1 +4.2
      [root@yoyang-rhel-100-202503056 ~]#

      Will check which is the first break version later.

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

              rhn-support-smayhew Scott Mayhew
              rhn-support-yoyang Yongcheng Yang
              NFS Team NFS Team
              Yongcheng Yang Yongcheng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: