[Bug 2049262] [NEW] Cannot successfully mount the directory through nfs4 on Ubuntu 20.04

Launchpad Bug Tracker 2049262 at bugs.launchpad.net
Sat Jan 13 13:37:24 UTC 2024


You have been subscribed to a public bug:

we want to mount with nfs 4.1 on Ubuntu 20.04, but when we run the command:
mount -o vers=4 -vvv x.x.x.x:/sam_test /mnt
it will only try version 4, the following is the log:
root at ubuntutest:~# mount -o vers=4 -vvv x.x.x.x:/sam_test /mnt
mount.nfs: timeout set for Thu Dec 28 12:31:23 2023
mount.nfs: trying text-based options 'vers=4,addr=x.x.x.x,clientaddr=x.x.x.x'
mount.nfs: mount(2): Protocol not supported
mount.nfs: Protocol not supported
The only way to make it work is to specify ver=4.1:
root at ubuntutest:~# mount -o vers=4.1 -vvv x.x.x.x:/sam_test /mnt
mount.nfs: timeout set for Thu Dec 28 12:31:33 2023
mount.nfs: trying text-based options 'vers=4.1,addr=x.x.x.x,clientaddr=x.x.x.x' 
 
Now we use nfs-common version 1:1.3.4-2.5ubuntu3.5. I think it is a bug of nfs-common package.
Normally, as a comparison, in Redhat, if we set vers=4, it will try the latest nfs4 version 4.2, if it failed , it will try the older version until it works.
[root at zhf1smg002 ~]# mount -o vers=4 -vvv x.x.x.x:/sam_test /mnt
mount.nfs: timeout set for Thu Dec 28 04:37:38 2023
mount.nfs: trying text-based options 'rsize=32768,wsize=32768,vers=4.2,addr=x.x.x.x,clientaddr=x.x.x.x'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=32768,wsize=32768,vers=4,minorversion=1,addr=x.x.x.x,clientaddr=x.x.x.x'
 
affects Ubuntu 20.04 nfs4 mount
affects nfs-common

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Cannot successfully mount the directory through nfs4 on Ubuntu 20.04
https://bugs.launchpad.net/bugs/2049262
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.



More information about the foundations-bugs mailing list