moving away from freebsd and zfs
Pete French
petefrench at ticketswitch.com
Fri Oct 8 12:30:46 UTC 2010
> After several hours of research on the crash, it seems that FreeBSD 8.1
> won't launch more than one nfsd, no matter what is configured in rc.conf.
> (FreeBSD 7.x does launch multiple NFS daemons). So when I added my second
> mount point, the CPU load went very high for the RPC services and the second
> NFS mount point disconnected, brining down the running VMs.
>
> PROBLEM: only one nfsd
> zambia# ps waux | grep nfs
> root 1213 0.0 0.0 5804 1508 ?? Is 5:23PM 0:00.02 nfsd: master (nfsd)
> root 1214 0.0 0.0 5804 1588 ?? S 5:23PM 8:06.88 nfsd: server (nfsd)
try adding '-H' to the 'ps' line and see if you can see all your
nfs daemons - as far as I know the nfsd in 8.x is multi-threaded
so instead of luaunching multiple processes you get a single process
with the number of threads defined.
e.g., on my server:
[pete at skerry ~]$ ps waux | grep nfs
root 1479 0.0 0.0 5824 944 ?? Is 28Sep10 0:00.01 nfsd: master (nfsd)
root 1480 0.0 0.0 5824 944 ?? S 28Sep10 0:07.48 nfsd: server (nfsd
[pete at skerry ~]$ grep nfs /etc/rc.conf
nfs_server_enable="YES"
nfs_server_flags="-t -n 4 -a"
nfs_client_enable="YES"
[pete at skerry ~]$ ps wauxH | grep nfs
root 1479 0.0 0.0 5824 944 ?? Is 28Sep10 0:00.01 nfsd: master (nfsd)
root 1480 0.0 0.0 5824 944 ?? S 28Sep10 0:01.91 nfsd: server (nfsd)
root 1480 0.0 0.0 5824 944 ?? S 28Sep10 0:01.90 nfsd: server (nfsd)
root 1480 0.0 0.0 5824 944 ?? S 28Sep10 0:01.85 nfsd: server (nfsd)
root 1480 0.0 0.0 5824 944 ?? S 28Sep10 0:01.82 nfsd: server (nfsd)
...and there they all are, all four of them.
So it looks like you were running as many nfsd processes as you
thought - which makes the crash caused by something different
I guess :-(
-pete.
More information about the freebsd-fs
mailing list