Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2012 10:24:46 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Thomas <freebsdlists@bsdunix.ch>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: FreeBSD 8.2 NFS client crashes with a FreeBSD 9 Server
Message-ID:  <1248805481.323864.1330874686489.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <4F538272.6070002@bsdunix.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
Thomas wrote:
> Hello
> 
> My FreeBSD 9.0-STABLE (February 2nd 2012) NFS server (amd64) does not
> work well wit FreeBSD 8.2-p6 NFS clients (amd64). All clients are
> generating a lot of syslog messages like:
> M
> ar 4 13:29:10 hosting06 kernel: NLM: failed to contact remote rpcbind,
> stat = 0, port = 0
> Mar 4 13:29:14 hosting06 last message repeated 5933 times
> Mar 4 13:39:18 hosting01 kernel: <<33>N>LMN:L M:f aiflaeilde d tto
> coon
> taccto renmtoatcet rermpotcebi nrd, psctbaitnd ,= st0a,t =po rt0 =, p0
> Mar 4 13:39:18 hosting01 kernel: o
> Mar 4 13:39:18 hosting01 kernel: rt = 0
> 
I'd suggest you upgrade to a newer stable/9 kernel. The NLM (rpc.lockd)
wouldn't start up because it had a problem contacting the NSM (rpc.statd)
for a while, but I don't see that with a Feb.29 kernel. (I don't know exactly
which commits broke/fixed it, but they are post-9.0, I'm pretty sure.)

While here, I will mention that if you don't need multiple clients to see
each others byte range locks (ie. they are sharing/locking the same files
concurrently), then using the "nolockd" option to avoid the NLM is a good idea.

rick

> 
> After a few hours the nfs client is crashing like this:
> 
> 
> Mar 4 13:55:33 hosting01 kernel: Fatal trap 12: page fault while in
> kernel mode
> Mar 4 13:55:33 hosting01 kernel: cpuid = 1;
> Mar 4 13:55:33 hosting01 kernel: NLM: failed to contact remote
> rpcbind,
> stat = 0, port = 0
> Mar 4 13:55:33 hosting01 kernel: apic id = 07
> Mar 4 13:55:33 hosting01 kernel: fault virtual address = 0x18
> Mar 4 13:55:33 hosting01 kernel: fault code = supervisor
> write data, page not present
> Mar 4 13:55:33 hosting01 kernel: instruction pointer =
> 0x20:0xffffffff807c4b0b
> Mar 4 13:55:33 hosting01 kernel:
> Mar 4 13:55:33 hosting01 kernel: stack pointer =
> 0x28:0xffffff84916c1ec0
> Mar 4 13:55:33 hosting01 kernel: NLM: failed to contact remote
> rpcbind,
> stat = 0, port = 0
> Mar 4 13:55:33 hosting01 kernel:
> Mar 4 13:55:33 hosting01 kernel: frame pointer =
> 0x28:0xffffff84916c2070
> Mar 4 13:55:33 hosting01 kernel: code segment = base 0x0,
> limit 0xfffff, type 0x1b
> Mar 4 13:55:33 hosting01 kernel: = DPL 0, pres 1, long 1, def32 0,
> gran 1
> Mar 4 13:55:33 hosting01 kernel:
> Mar 4 13:55:33 hosting01 kernel: processor eflags = interrupt
> enabled,
> 
> 
> Any ideas how i can fix this? I appreciate any hint or fix.
> 
> 
> 
> About the systems:
> 
> FreeBSD 9 NFS server:
> rpcbind_enable="YES"
> nfs_server_enable="YES"
> nfs_server_flags="-u -t -n 32"
> nfs_reserved_port_only="YES"
> rpc_lockd_enable="YES"
> rpc_statd_enable="YES"
> mountd_enable="YES
> 
> rpc is running on the server:
> root 1509 0.0 0.0 274296 320 ?? Ss Fri11PM 0:00.10
> /usr/sbin/rpc.statd
> root 1528 0.0 0.0 14264 500 ?? Ss Fri11PM 7:41.35
> /usr/sbin/rpcbind
> 
> exports:
> root@openstorage1:~# more /etc/exports
> /rz2pool/export/tmp -maproot=root 10.10.0.2 10.10.0.3 10.10.0.4
> 10.10.0.5
> /var/webs -maproot=root 10.10.0.2 10.10.0.3 10.10.0.4 10.10.0.5
> 
> FreeBSD 9 is a ZFS only system.
> 
> 
> FreeBSD 8.2-p6 NFS client
> rpcbind_enable="YES"
> nfs_client_enable="YES"
> nfs_reserved_port_only="YES"
> rpc_lockd_enable="YES"
> rpc_statd_enable="YES"
> 
> nfs client fstab:
> 10.0.0.12:/var/webs /var/webs nfs
> rw,nfsv3,rdirplus,noatime,hard,intr,tcp,wsize=65536,rsize=65536,bg 0
> 0
> 10.0.0.12:/rz2pool/export/tmp /var/tmp nfs
> rw,nfsv3,rdirplus,noexec,acregmin=30,acregmax=120,noatime,hard,intr,tcp,wsize=65536,rsize=65536,bg
> 0 0
> 
> FreeBSD 8.2-p6 is a UFS only system.
> 
> 
> 
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1248805481.323864.1330874686489.JavaMail.root>