NetBSD Problem Report #34557

From www@NetBSD.org  Tue Sep 19 12:40:02 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 45B3963B9EE; Tue, 19 Sep 2006 12:40:02 +0000 (UTC)
Message-Id: <20060919124002.45B3963B9EE@narn.NetBSD.org>
Date: Tue, 19 Sep 2006 12:40:02 +0000 (UTC)
From: deather.dede@gmail.com
Reply-To: deather.dede@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Problem with NetBSD-3 as a NFSv3 server with ext2fs
X-Send-Pr-Version: www-1.0

>Number:         34557
>Category:       misc
>Synopsis:       Problem with NetBSD-3 as a NFSv3 server with ext2fs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 19 12:45:00 +0000 2006
>Last-Modified:  Tue Sep 19 20:55:00 +0000 2006
>Originator:     Thomas Lecomte
>Release:        3.0
>Organization:
N/A
>Environment:
NetBSD barney.hinyx.info 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
I export an ext2fs partition using NFS.
When I mount it on a Solaris box, it works using either NFSv2 and NFSv3.
However, when mounting it on a Linux box, NFSv3 doesn't work.

root@babe:~# mount -t nfs -o nfsvers=3 barney:/big /big
root@babe:~# ls /big
ls: reading directory /big: Input/output error
root@babe:~# umount /big
root@babe:~# mount -t nfs -o nfsvers=2 barney:/big /big
root@babe:~# ls /big
[Directory listing comes here]

Same problem when using an  SCO OpenServer client, but here with both NFSv2 and NFSv3:

bart#truss ls /big 2>&1 | grep EIO
getdents(3, 0x08329B70, 2048)                   Err#5  EIO

(have to use truss because  `ls' doesn't print out any error message)

Here's the tcpdump output when running `ls' on /big with NFSv3 under Linux:

08:35:47.552875 IP (tos 0x0, ttl  64, id 54812, offset 0, flags [DF], proto: TCP (6), length: 52) babe.hinyx.info.1023 > barney.hinyx.info.nfs: ., cksum 0x53a5 (correct), 2156:2156(0) ack 1685 win 1728 <nop,nop,timestamp 16794340 72>

08:35:57.296691 IP (tos 0x0, ttl  64, id 54813, offset 0, flags [DF], proto: TCP (6), length: 196) babe.hinyx.info.4274594373 > barney.hinyx.info.nfs: 144 getattr [|nfs]

08:35:57.296877 IP (tos 0x0, ttl  64, id 10228, offset 0, flags [DF], proto: TCP (6), length: 168) barney.hinyx.info.nfs > babe.hinyx.info.4274594373: reply ok 116 getattr [|nfs]

[stops here]

Here's the uname -a output of the Linux box:
# uname -a
Linux babe 2.6.15-26-sparc64 #1 Thu Aug 3 02:59:18 UTC 2006 sparc64 GNU/Linux

It's an Ubuntu Server 6.06.1.

And by the way, if I suspect ext2fs, it's because the NetBSD machine exports an ffs NFS share as well, which works perfectly using NFSv3 on Linux and SCO boxes.
>How-To-Repeat:
Simply export an ext2fs partition using NFS and mount it with NFSv3 on a Linux box.
>Fix:
Using NFSv2 could be a workaround for Linuxes box.
Didn't found a fix for SCO OpenServer.

>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, misc-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
Date: Tue, 19 Sep 2006 09:26:36 -0400

 On Sep 19, 12:45pm, deather.dede@gmail.com (deather.dede@gmail.com) wrote:
 -- Subject: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs

 | >Number:         34557
 | >Category:       misc
 | >Synopsis:       Problem with NetBSD-3 as a NFSv3 server with ext2fs
 | >Confidential:   no
 | >Severity:       serious
 | >Priority:       medium
 | >Responsible:    misc-bug-people
 | >State:          open
 | >Class:          sw-bug
 | >Submitter-Id:   net
 | >Arrival-Date:   Tue Sep 19 12:45:00 +0000 2006
 | >Originator:     Thomas Lecomte
 | >Release:        3.0
 | >Organization:
 | N/A
 | >Environment:
 | NetBSD barney.hinyx.info 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
 | >Description:
 | I export an ext2fs partition using NFS.
 | When I mount it on a Solaris box, it works using either NFSv2 and NFSv3.
 | However, when mounting it on a Linux box, NFSv3 doesn't work.
 | 
 | root@babe:~# mount -t nfs -o nfsvers=3 barney:/big /big
 | root@babe:~# ls /big
 | ls: reading directory /big: Input/output error
 | root@babe:~# umount /big
 | root@babe:~# mount -t nfs -o nfsvers=2 barney:/big /big
 | root@babe:~# ls /big
 | [Directory listing comes here]
 | 
 | Same problem when using an  SCO OpenServer client, but here with both NFSv2 and NFSv3:
 | 
 | bart#truss ls /big 2>&1 | grep EIO
 | getdents(3, 0x08329B70, 2048)                   Err#5  EIO
 | 
 | (have to use truss because  `ls' doesn't print out any error message)
 | 
 | Here's the tcpdump output when running `ls' on /big with NFSv3 under Linux:
 | 
 | 08:35:47.552875 IP (tos 0x0, ttl  64, id 54812, offset 0, flags [DF], proto: TCP (6), length: 52) babe.hinyx.info.1023 > barney.hinyx.info.nfs: ., cksum 0x53a5 (correct), 2156:2156(0) ack 1685 win 1728 <nop,nop,timestamp 16794340 72>
 | 
 | 08:35:57.296691 IP (tos 0x0, ttl  64, id 54813, offset 0, flags [DF], proto: TCP (6), length: 196) babe.hinyx.info.4274594373 > barney.hinyx.info.nfs: 144 getattr [|nfs]
 | 
 | 08:35:57.296877 IP (tos 0x0, ttl  64, id 10228, offset 0, flags [DF], proto: TCP (6), length: 168) barney.hinyx.info.nfs > babe.hinyx.info.4274594373: reply ok 116 getattr [|nfs]
 | 
 | [stops here]
 | 
 | Here's the uname -a output of the Linux box:
 | # uname -a
 | Linux babe 2.6.15-26-sparc64 #1 Thu Aug 3 02:59:18 UTC 2006 sparc64 GNU/Linux
 | 
 | It's an Ubuntu Server 6.06.1.
 | 
 | And by the way, if I suspect ext2fs, it's because the NetBSD machine exports an ffs NFS share as well, which works perfectly using NFSv3 on Linux and SCO boxes.
 | >How-To-Repeat:
 | Simply export an ext2fs partition using NFS and mount it with NFSv3 on a Linux box.
 | >Fix:
 | Using NFSv2 could be a workaround for Linuxes box.
 | Didn't found a fix for SCO OpenServer.

 what does rpcinfo -p say on the linux box?

 christos

From: Thomas Lecomte <deather.dede@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
Date: Tue, 19 Sep 2006 16:44:08 +0200

 Christos Zoulas wrote:
 > The following reply was made to PR misc/34557; it has been noted by GNATS.
 > 
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@NetBSD.org, misc-bug-people@netbsd.org,
 > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 > Cc: 
 > Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 > Date: Tue, 19 Sep 2006 09:26:36 -0400
 > 
 >  On Sep 19, 12:45pm, deather.dede@gmail.com (deather.dede@gmail.com) wrote:
 >  -- Subject: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 >  
 >  | >Number:         34557
 >  | >Category:       misc
 >  | >Synopsis:       Problem with NetBSD-3 as a NFSv3 server with ext2fs
 >  | >Confidential:   no
 >  | >Severity:       serious
 >  | >Priority:       medium
 >  | >Responsible:    misc-bug-people
 >  | >State:          open
 >  | >Class:          sw-bug
 >  | >Submitter-Id:   net
 >  | >Arrival-Date:   Tue Sep 19 12:45:00 +0000 2006
 >  | >Originator:     Thomas Lecomte
 >  | >Release:        3.0
 >  | >Organization:
 >  | N/A
 >  | >Environment:
 >  | NetBSD barney.hinyx.info 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
 >  | >Description:
 >  | I export an ext2fs partition using NFS.
 >  | When I mount it on a Solaris box, it works using either NFSv2 and NFSv3.
 >  | However, when mounting it on a Linux box, NFSv3 doesn't work.
 >  | 
 >  | root@babe:~# mount -t nfs -o nfsvers=3 barney:/big /big
 >  | root@babe:~# ls /big
 >  | ls: reading directory /big: Input/output error
 >  | root@babe:~# umount /big
 >  | root@babe:~# mount -t nfs -o nfsvers=2 barney:/big /big
 >  | root@babe:~# ls /big
 >  | [Directory listing comes here]
 >  | 
 >  | Same problem when using an  SCO OpenServer client, but here with both NFSv2 and NFSv3:
 >  | 
 >  | bart#truss ls /big 2>&1 | grep EIO
 >  | getdents(3, 0x08329B70, 2048)                   Err#5  EIO
 >  | 
 >  | (have to use truss because  `ls' doesn't print out any error message)
 >  | 
 >  | Here's the tcpdump output when running `ls' on /big with NFSv3 under Linux:
 >  | 
 >  | 08:35:47.552875 IP (tos 0x0, ttl  64, id 54812, offset 0, flags [DF], proto: TCP (6), length: 52) babe.hinyx.info.1023 > barney.hinyx.info.nfs: ., cksum 0x53a5 (correct), 2156:2156(0) ack 1685 win 1728 <nop,nop,timestamp 16794340 72>
 >  | 
 >  | 08:35:57.296691 IP (tos 0x0, ttl  64, id 54813, offset 0, flags [DF], proto: TCP (6), length: 196) babe.hinyx.info.4274594373 > barney.hinyx.info.nfs: 144 getattr [|nfs]
 >  | 
 >  | 08:35:57.296877 IP (tos 0x0, ttl  64, id 10228, offset 0, flags [DF], proto: TCP (6), length: 168) barney.hinyx.info.nfs > babe.hinyx.info.4274594373: reply ok 116 getattr [|nfs]
 >  | 
 >  | [stops here]
 >  | 
 >  | Here's the uname -a output of the Linux box:
 >  | # uname -a
 >  | Linux babe 2.6.15-26-sparc64 #1 Thu Aug 3 02:59:18 UTC 2006 sparc64 GNU/Linux
 >  | 
 >  | It's an Ubuntu Server 6.06.1.
 >  | 
 >  | And by the way, if I suspect ext2fs, it's because the NetBSD machine exports an ffs NFS share as well, which works perfectly using NFSv3 on Linux and SCO boxes.
 >  | >How-To-Repeat:
 >  | Simply export an ext2fs partition using NFS and mount it with NFSv3 on a Linux box.
 >  | >Fix:
 >  | Using NFSv2 could be a workaround for Linuxes box.
 >  | Didn't found a fix for SCO OpenServer.
 >  
 >  what does rpcinfo -p say on the linux box?
 >  
 >  christos
 >  
 > 

 Christos -

 Here's the rpcinfo -p output:

 babe>rpcinfo -p
     program vers proto   port
      100000    2   tcp    111  portmapper
      100000    2   udp    111  portmapper
      100021    1   udp   1024  nlockmgr
      100021    3   udp   1024  nlockmgr
      100021    4   udp   1024  nlockmgr
      100021    1   tcp   3626  nlockmgr
      100021    3   tcp   3626  nlockmgr
      100021    4   tcp   3626  nlockmgr
      100007    2   udp    890  ypbind
      100007    1   udp    890  ypbind
      100007    2   tcp    893  ypbind
      100007    1   tcp    893  ypbind

 And against the NetBSD box:

 babe>rpcinfo -p barney
     program vers proto   port
      100000    4   tcp    111  portmapper
      100000    3   tcp    111  portmapper
      100000    2   tcp    111  portmapper
      100000    4   udp    111  portmapper
      100000    3   udp    111  portmapper
      100000    2   udp    111  portmapper
      100000    4     0    111  portmapper
      100000    3     0    111  portmapper
      100000    2     0    111  portmapper
      100007    2   udp   1020  ypbind
      100007    2   tcp   1022  ypbind
      100003    2   udp   2049  nfs
      100003    3   udp   2049  nfs
      100005    1   udp    963  mountd
      100005    3   udp    963  mountd
      100005    1   tcp   1021  mountd
      100003    2   tcp   2049  nfs
      100005    3   tcp   1021  mountd
      100003    3   tcp   2049  nfs
      100024    1   udp    960  status
      100024    1   tcp   1018  status
      100021    0   udp    959  nlockmgr
      100021    1   udp    959  nlockmgr
      100021    3   udp    959  nlockmgr
      100021    4   udp    959  nlockmgr
      100021    0   tcp   1017  nlockmgr
      100021    1   tcp   1017  nlockmgr
      100021    3   tcp   1017  nlockmgr
      100021    4   tcp   1017  nlockmgr

 Hope this helps,

 Thomas

 -- 
 Thomas Lecomte    deather.dede@gmail.com    Solaris User & Developer
 http://blog.hinyx.info - http://guses.org - http://www.sunwizard.net

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, misc-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
	deather.dede@gmail.com
Cc: 
Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
Date: Tue, 19 Sep 2006 13:57:14 -0400

 On Sep 19,  2:45pm, deather.dede@gmail.com (Thomas Lecomte) wrote:
 -- Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2

 | The following reply was made to PR misc/34557; it has been noted by GNATS.
 | 
 | From: Thomas Lecomte <deather.dede@gmail.com>
 | To: gnats-bugs@NetBSD.org
 | Cc: 
 | Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 | Date: Tue, 19 Sep 2006 16:44:08 +0200
 | 
 |  Christos Zoulas wrote:
 |  > The following reply was made to PR misc/34557; it has been noted by GNATS.
 |  > 
 |  > From: christos@zoulas.com (Christos Zoulas)
 |  > To: gnats-bugs@NetBSD.org, misc-bug-people@netbsd.org,
 |  > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 |  > Cc: 
 |  > Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 |  > Date: Tue, 19 Sep 2006 09:26:36 -0400
 |  > 
 |  >  On Sep 19, 12:45pm, deather.dede@gmail.com (deather.dede@gmail.com) wrote:
 |  >  -- Subject: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 |  >  
 |  >  | >Number:         34557
 |  >  | >Category:       misc
 |  >  | >Synopsis:       Problem with NetBSD-3 as a NFSv3 server with ext2fs
 |  >  | >Confidential:   no
 |  >  | >Severity:       serious
 |  >  | >Priority:       medium
 |  >  | >Responsible:    misc-bug-people
 |  >  | >State:          open
 |  >  | >Class:          sw-bug
 |  >  | >Submitter-Id:   net
 |  >  | >Arrival-Date:   Tue Sep 19 12:45:00 +0000 2006
 |  >  | >Originator:     Thomas Lecomte
 |  >  | >Release:        3.0
 |  >  | >Organization:
 |  >  | N/A
 |  >  | >Environment:
 |  >  | NetBSD barney.hinyx.info 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
 |  >  | >Description:
 |  >  | I export an ext2fs partition using NFS.
 |  >  | When I mount it on a Solaris box, it works using either NFSv2 and NFSv3.
 |  >  | However, when mounting it on a Linux box, NFSv3 doesn't work.

 Can you also run uname -a on the linux box too? It looks to me that
 you are running an older kernel that does not support nfsv3 properly.
 Can you export a nfsv3 partition from solaris and mount it on linux
 and see if that works? It looks like a problem on the linux side.

 christos

From: Thomas Lecomte <deather.dede@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
Date: Tue, 19 Sep 2006 22:54:35 +0200

 Christos Zoulas wrote:
 > The following reply was made to PR misc/34557; it has been noted by GNATS.
 > 
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@NetBSD.org, misc-bug-people@netbsd.org,
 > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
 > 	deather.dede@gmail.com
 > Cc: 
 > Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 > Date: Tue, 19 Sep 2006 13:57:14 -0400
 > 
 >  On Sep 19,  2:45pm, deather.dede@gmail.com (Thomas Lecomte) wrote:
 >  -- Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2
 >  
 >  | The following reply was made to PR misc/34557; it has been noted by GNATS.
 >  | 
 >  | From: Thomas Lecomte <deather.dede@gmail.com>
 >  | To: gnats-bugs@NetBSD.org
 >  | Cc: 
 >  | Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 >  | Date: Tue, 19 Sep 2006 16:44:08 +0200
 >  | 
 >  |  Christos Zoulas wrote:
 >  |  > The following reply was made to PR misc/34557; it has been noted by GNATS.
 >  |  > 
 >  |  > From: christos@zoulas.com (Christos Zoulas)
 >  |  > To: gnats-bugs@NetBSD.org, misc-bug-people@netbsd.org,
 >  |  > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 >  |  > Cc: 
 >  |  > Subject: Re: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 >  |  > Date: Tue, 19 Sep 2006 09:26:36 -0400
 >  |  > 
 >  |  >  On Sep 19, 12:45pm, deather.dede@gmail.com (deather.dede@gmail.com) wrote:
 >  |  >  -- Subject: misc/34557: Problem with NetBSD-3 as a NFSv3 server with ext2fs
 >  |  >  
 >  |  >  | >Number:         34557
 >  |  >  | >Category:       misc
 >  |  >  | >Synopsis:       Problem with NetBSD-3 as a NFSv3 server with ext2fs
 >  |  >  | >Confidential:   no
 >  |  >  | >Severity:       serious
 >  |  >  | >Priority:       medium
 >  |  >  | >Responsible:    misc-bug-people
 >  |  >  | >State:          open
 >  |  >  | >Class:          sw-bug
 >  |  >  | >Submitter-Id:   net
 >  |  >  | >Arrival-Date:   Tue Sep 19 12:45:00 +0000 2006
 >  |  >  | >Originator:     Thomas Lecomte
 >  |  >  | >Release:        3.0
 >  |  >  | >Organization:
 >  |  >  | N/A
 >  |  >  | >Environment:
 >  |  >  | NetBSD barney.hinyx.info 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
 >  |  >  | >Description:
 >  |  >  | I export an ext2fs partition using NFS.
 >  |  >  | When I mount it on a Solaris box, it works using either NFSv2 and NFSv3.
 >  |  >  | However, when mounting it on a Linux box, NFSv3 doesn't work.
 >  
 >  Can you also run uname -a on the linux box too? It looks to me that
 >  you are running an older kernel that does not support nfsv3 properly.
 >  Can you export a nfsv3 partition from solaris and mount it on linux
 >  and see if that works? It looks like a problem on the linux side.
 >  
 >  christos

 I had already posted it :-)

   >  | Here's the uname -a output of the Linux box:
   >  | # uname -a
   >  | Linux babe 2.6.15-26-sparc64 #1 Thu Aug 3 02:59:18 UTC 2006 
 sparc64 GNU/Linux
   >  |
   >  | It's an Ubuntu Server 6.06.1.

 As you see, I don't think it's due to an old version of Linux.
 Notice that the problem also occurs on SCO OpenServer.

 However, it works okay with an OpenBSD box:

 neptune>uname -msr ; /sbin/mount | grep big
 OpenBSD 3.9 sparc
 barney.hinyx.info:/big on /big type nfs (v3, udp, timeo=100)

 So the problem only occurs against a Linux 2.6.15 (and probably with 
 earlier version--it has been a long time since I had to force NFSv2 with 
 every Linux boxes) and SCO OpenServer.

 Thanks,

 Thomas

 -- 
 Thomas Lecomte    deather.dede@gmail.com    Solaris User & Developer
 http://blog.hinyx.info - http://guses.org - http://www.sunwizard.net

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.