Public bug reported:
On Obuntu 18.04 with Linux kernel 5.0.0-29 (and 5.0.0-27) I am getting
errors when writing files > 200 MB on a nfs filesystem, no matter which
nfs server I use (Linux or Netapp).
Example with a Netapp nfs server:
root@tux:# uname -a
Linux tux 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019
x86_64 x86_64 x86_64 GNU/Linux
root@tux:# mount.nfs -o
nfsvers=3,rw,rsize=1048576,wsize=1048576,tcp,timeo=10,soft
nfs4sas.storage.tik.uni-stuttgart.de:/nfs4sas_scratch /nfs/rusnas/scr
root@tux:/nfs/rusnas/scr# dd status=progress bs=1M count=1024 if=/dev/zero
of=dd.tmp; l dd.tmp
dd: closing output file 'dd.tmp': Input/output error
l: dd.tmp - Input/output error
root@tux:/nfs/rusnas/scr# l
l: cannot read ./ : Stale file handle
(reboot)
root@tux:~# uname -a
Linux tux 5.0.0-27-generic #28~18.04.1-Ubuntu SMP Thu Aug 22 03:00:32 UTC 2019
x86_64 x86_64 x86_64 GNU/Linux
root@tux:~# mount.nfs -o
nfsvers=3,rw,rsize=1048576,wsize=1048576,tcp,timeo=10,soft
nfs4sas.storage.tik.uni-stuttgart.de:/nfs4sas_scratch /nfs/rusnas/scr
root@tux:/nfs/rusnas/scr# dd status=progress bs=1M count=1024 if=/dev/zero
of=dd.tmp; l dd.tmp
dd: closing output file 'dd.tmp': Input/output error
-RW- 647,364,608 2019-09-24 11:54 dd.tmp
The same error occurs when I use a Ubuntu 18.04 nfs server with kernel
5.0.0-29
I get no error with kernel 4.15.0-64:
root@tux:# uname -a
Linux tux 4.15.0-64-generic #73-Ubuntu SMP Thu Sep 12 13:16:13 UTC 2019 x86_64
x86_64 x86_64 GNU/Linux
root@tux:# mount.nfs -o
nfsvers=3,rw,rsize=1048576,wsize=1048576,tcp,timeo=10,soft
nfs4sas.storage.tik.uni-stuttgart.de:/nfs4sas_scratch /nfs/rusnas/scr
root@tux:/nfs/rusnas/scr# dd status=progress bs=1M count=1024 if=/dev/zero
of=dd.tmp; l dd.tmp
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 9.40337 s, 114 MB/s
-RW- 1,073,741,824 2019-09-24 11:48 dd.tmp
Also no error occurs when I use the sync nfs mount option:
root@tux:/# mount.nfs -o
nfsvers=3,rw,rsize=1048576,wsize=1048576,tcp,timeo=10,soft,sync
nfs4sas.storage.tik.uni-stuttgart.de:/nfs4sas_scratch /nfs/rusnas/scr
root@tux:/nfs/rusnas/scr# dd status=progress bs=1M count=1024 if=/dev/zero
of=dd.tmp; l dd.tmp
996147200 bytes (996 MB, 950 MiB) copied, 13 s, 76.6 MB/s
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 13.7691 s, 78.0 MB/s
-RW- 1,073,741,824 2019-09-24 11:58 dd.tmp
As you can see: no more errors, but much slower!
So, this is not a solution, just a workaround.
On smaller files, there is error:
root@diaspora:/nfs/rusnas/software# mount | grep $PWD
nfs4sas:/nfs4sas_software on /nfs/rusnas/software type nfs
(rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,soft,proto=tcp,timeo=10,retrans=2,sec=sys,mountaddr=129.69.2.23,mountvers=3,mountport=635,mountproto=tcp,local_lock=none,addr=129.69.2.23)
root@diaspora:/nfs/rusnas/software# dd bs=1M count=200 if=/dev/zero of=dd.tmp;
l dd.tmp
200+0 records in
200+0 records out
209715200 bytes (210 MB, 200 MiB) copied, 2.25616 s, 93.0 MB/s
-RW- 209,715,200 2019-09-24 12:33 dd.tmp
root@diaspora:/nfs/rusnas/software# dd bs=1M count=300 if=/dev/zero of=dd.tmp;
l dd.tmp
dd: closing output file 'dd.tmp': Input/output error
-RW- 293,535,744 2019-09-24 12:34 dd.tmp
==> the nfs client in Ubuntu 18.04 kernel 5.0.0 has a bug!
root@tux:/nfs/rusnas/scr# dpkg -S /boot/vmlinuz-5.0.0-29-generic
linux-image-5.0.0-29-generic: /boot/vmlinuz-5.0.0-29-generic
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1845186
Title:
nfs Input/output error
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1845186/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs