Non-accessible NFS share via SMB and NFS lag



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@xxxxxxxxxxxxxxxxxx:/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@xxxxxxxxxxxxxxxxxx:/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"
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: network file systems?
    ... > between linux machines... ... I would say NFS in the *nix world and/or Samba if you have Windoze. ... > the two machines to gentoo... ... My main server is Sun Solaris, so I cannot comment on Linux NFS server ...
    (comp.os.linux.networking)
  • Re: Does there exist something like a networked filestorage
    ... number of machines. ... They might use NIS, NIS+, LDAP or something else for name ... BTW, you can have a "default" server for all user homes, and then specify ... etc.) to reside on specific other NFS servers. ...
    (comp.os.linux.networking)
  • Re: FreeBSD 5.3 I/O Performance / Linux 2.6.10 and dragonfly
    ... [nfs]# diskinfo -tv twed0s1d ... In the not too distant future, a file server for IMAP/POP3 front ends. ... Are there better benchmarks / methods of testing that would give a more ... I was just going to run postmark on the 3 clients machines ...
    (freebsd-performance)
  • NFS deadlock
    ... Previously weve had 2 machines that locked up, plus my one at home, ... All three of these use NFS to export files to other ... a 3rd NFS server, which doesn't take nearly as heavy load via NFS. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Non-accessible NFS share via SMB and NFS lag
    ... I am having an issue with NFS and SMB on two FreeBSD machines. ... Both PCs run patched versions of FreeBSD 6.1 RELEASE. ... hosts deny = shiina pinocchio ...
    (freebsd-questions)