[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-17 Thread Christian Ehrhardt 
** Tags removed: server-todo

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Jörg Hänsel
yes, this was a typo... of course I meant disabled UDP NFS mounting.
And regarding the 2nd point we have the same understanding.

So since "old" clients are still able to mount the NFS shares via nfs3 over udp 
on jammy servers, I would not flip the kernel config 
CONFIG_NFS_DISABLE_UDP_SUPPORT back to "n" and leave it as it is:
CONFIG_NFS_DISABLE_UDP_SUPPORT=y

thank you very much for clarifying!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
>  This disabled NFS3 support seems only to affect the client part of
the kernel-module.

NFSv3 is fine, it's udp that is disabled in the kernel (I think you
understood that, and above is just a typo, but clarifying nonetheless).

Clients running a kernel with CONFIG_NFS_DISABLE_UDP_SUPPORT=y should
not be able to mount NFS exports using udp, that's my understanding. I
believe it can still *export* (aka, server) nfs via udp.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Jörg Hänsel
I am currently very confused. I restored the snapshots of my test VMs
from yesterday and now I can mount the NFS-shares on the jammy server on
all clients (Knoppix, Ubuntu 18.04) with nfs3+udp after putting "udp=y"
in /etc/nfs.conf, also with the last kernel version 5.15.0-18.

Yesterday in all my tests the udp=y param was ignored, only the vers=? params 
had an effect after restarting the nfs-kernel-server.
My only explanation for now is a problem with the internal network between my 
VirtualBox Test VMs. Sorry, I know this sounds very strange.

But despite of the kernel config option CONFIG_NFS_DISABLE_UDP_SUPPORT=y
I can mount the NFS-shares on the jammy server with nfs3+udp from every
test client VM. /proc/mounts shows: vers=3 and proto=udp

Only on the server itself I cannot mount with nfs3+udp.

mount -o vers=3,udp 192.168.0.1:/srv/nfs/testshare /mnt

leads to
mount.nfs: an incorrect mount option was specified

but
mount -o vers=3,tcp 192.168.0.1:/srv/nfs/testshare /mnt

is working.

So conclusion for me now. The /etc/nfs.conf params are working correctly
and my nfs3+udp problem is solved.

But nfs3+udp should not be possible to be enabled with respect to the kernel 
param.
This disabled NFS3 support seems only to affect the client part of the 
kernel-module.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
Are you sure it's using udp? Did you confirm with /proc/mounts or mount
output? I didn't get it to work, not even with a focal server, and the
kernel option disabling UDP sounds very adamant.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
I added this to the Jammy 22.04 release notes at
https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668

If it's decided to flip this option before release, please remove that
release notes remark.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Jörg Hänsel
I just updated linux-image-5.15.0-18-generic to today's new version
linux-image-5.15.0-22-generic.

Now with enabling "udp=y" in /etc/nfs.conf and the new kernel version I can 
mount
the nfs-share on the jammy server from the koppix pxe initdrd (busybox mount) 
with nfs version 3 and udp.

Only mounting jammy server from jammy client is still not possible with
nfs3+udp.

The diff of /boot/config-5.15.0-18-generic and
/boot/config-5.15.0-22-generic shows no hints of NFS related changes in
the kernel config.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
This was first disabled on groovy, the first ubuntu release after focal:

root@g1:~# grep NFS /boot/config-5.8.0-59-generic |grep UDP
CONFIG_NFS_DISABLE_UDP_SUPPORT=y

The upstream help text next to that kernel option says:
"""
Choose Y here to disable the use of NFS over UDP. NFS over UDP
on modern networks (1Gb+) can lead to data corruption caused by
fragmentation during high loads.
"""

I'll leave it to the kernel team to comment further.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
Found this in /boot/config-$(uname -r):

CONFIG_NFS_DISABLE_UDP_SUPPORT=y

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
I restored nfs-utils 1.x in the jammy client, and tried to mount again.
It still fails. I don't think this is an nfs-utils problem:

ubuntu@j-nfs-dep8:~$ dpkg -l|grep nfs
ii  libnfsidmap2:amd64   0.25-6build1   amd64   
 NFS idmapping library
ii  nfs-common   1:1.3.4-6ubuntu1   amd64   
 NFS support files common to client and server
ubuntu@j-nfs-dep8:~$ sudo -i
root@j-nfs-dep8:~# mount f1:/storage /mnt -o udp -v
mount.nfs: timeout set for Tue Mar  8 17:54:59 2022
mount.nfs: trying text-based options 
'udp,vers=4.2,addr=192.168.122.197,clientaddr=192.168.122.61'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 
'udp,vers=4.1,addr=192.168.122.197,clientaddr=192.168.122.61'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 
'udp,vers=4.0,addr=192.168.122.197,clientaddr=192.168.122.61'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'udp,addr=192.168.122.197'
mount.nfs: prog 13, trying vers=3, prot=17
mount.nfs: trying 192.168.122.197 prog 13 vers 3 prot UDP port 2049
mount.nfs: prog 15, trying vers=3, prot=17
mount.nfs: trying 192.168.122.197 prog 15 vers 3 prot UDP port 51873
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified


** Package changed: nfs-utils (Ubuntu) => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
Using focal as a server, jammy still cannot mount an export using udp,
but the other way around works: focal client can mount nfs share from
jammy using udp. So this seems a client problem.

** Changed in: nfs-utils (Ubuntu)
   Status: New => Won't Fix

** Changed in: nfs-utils (Ubuntu)
   Status: Won't Fix => Incomplete

** Changed in: nfs-utils (Ubuntu)
   Status: Incomplete => Confirmed

** Tags added: server-todo

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964093] Re: nfsver=3,udp not working anymore

2022-03-08 Thread Andreas Hasenack
Taking a look at this, most curious:

# mount localhost:/storage /mnt -o vers=3,proto=udp
mount.nfs: an incorrect mount option was specified
root@j-nfs-dep8:~# mount localhost:/storage /mnt -v -o vers=3,proto=udp
mount.nfs: timeout set for Tue Mar  8 14:59:11 2022
mount.nfs: trying text-based options 'vers=3,proto=udp,addr=127.0.0.1'
mount.nfs: prog 13, trying vers=3, prot=17
mount.nfs: trying 127.0.0.1 prog 13 vers 3 prot UDP port 2049
mount.nfs: prog 15, trying vers=3, prot=17
mount.nfs: trying 127.0.0.1 prog 15 vers 3 prot UDP port 58825
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified


# rpcinfo -p
   program vers proto   port  service
104   tcp111  portmapper
103   tcp111  portmapper
102   tcp111  portmapper
104   udp111  portmapper
103   udp111  portmapper
102   udp111  portmapper
1000241   udp  44661  status
1000241   tcp  40383  status
151   udp  45269  mountd
151   tcp  58873  mountd
152   udp  44744  mountd
152   tcp  41675  mountd
153   udp  58825  mountd
153   tcp  60591  mountd
133   tcp   2049  nfs
134   tcp   2049  nfs
1002273   tcp   2049
133   udp   2049  nfs
1002273   udp   2049
1000211   udp  33771  nlockmgr
1000213   udp  33771  nlockmgr
1000214   udp  33771  nlockmgr
1000211   tcp  34605  nlockmgr
1000213   tcp  34605  nlockmgr
1000214   tcp  34605  nlockmgr

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964093

Title:
  nfsver=3,udp not working anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1964093/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs