Non-accessible NFS share via SMB and NFS lag
Garrett Cooper
youshi10 at u.washington.edu
Thu Dec 21 03:30:01 PST 2006
Hello,
I am having an issue with NFS and SMB on two FreeBSD machines.
The particularly strange thing is that this problem didn't occur when I
ran Gentoo Linux on PC_2.
Setup:
1. PC_1 and PC_2 share with each other via NFS.
2. Both PCs run patched versions of FreeBSD 6.1 RELEASE (see below).
3. PC_1 runs samba and shares NFS shared directories from PC_2 to LAN.
4. PC_1 runs a neutered firewall (basically accepting traffic on all
ports, because RPC ports at service start are randomized by rpcbind)
with ipf, and PC_2 doesn't have a firewall configured.
Problems/Condition:
1. NFS works perfectly fine from PC_1 when transferring _to_ PC_2; in
fact it works excellently when transferring files to PC_2.
2. NFS on PC_1 lags under heavy load when transferring large amounts of
data from PC_2 to PC_1, but not with other NFS clients. An OSX machine
that uses NFS to transfer data to PC_1 works really well in fact.
3. When clients attempt to access and cache data from PC_1's
directories, it works near instantaneously. However, when caching data
from PC_2's NFS exported directories, the client locks the file but
times out when caching large amounts of data. Windows loads up
thumbnails, but hangs when opening the file. Machines running smbclient
start caching the file but then fail to load the file. The file remains
locked until smbd is restarted.
TIA!
-Garrett
PC_1's information:
uname:
FreeBSD hoover.localdomain 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #17:
Tue Dec 19 23:00:01 PST 2006
gcooper at hoover.localdomain:/usr/obj/usr/src/sys/HOOVER i386
/etc/rc.conf (snippet):
nfs_client_enable="YES"
nfs_client_flags="-n 4"
nfs_reserved_port_only="NO"
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
rpcbind_enable="YES"
smb.conf:
[global]
workgroup = WORKGROUP
encrypt passwords = yes
log file = /var/log/samba/log.%m
log level = 6 passdb:3 auth:3
# log level = 5
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = yes
preferred master = yes
dns proxy = no
guest ok = no
change notify timeout = 10
[local]
path = /store
writeable = yes
public = yes
hosts deny = shiina pinocchio
create mask = 0770
[remote]
path = /rmt
writeable = yes
public = yes
hosts allow = sexbox
hosts deny = shiina pinocchio
create mask = 0770
PC_2's information:
uname:
FreeBSD hoover.localdomain 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #17:
Tue Dec 19 23:00:01 PST 2006
gcooper at hoover.localdomain:/usr/obj/usr/src/sys/HOOVER i386
/etc/make.conf:
CFLAGS= -O2 -pipe
CXXFLAGS= ${CFLAGS}
COPTFLAGS= ${CFLAGS} -msse -msse2 -mfpmath=sse,387
/etc/rc.conf (snippet):
nfs_client_enable="YES"
nfs_client_flags="-n 4"
nfs_reserved_port_only="NO"
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
rpcbind_enable="YES"
More information about the freebsd-net
mailing list