Non-accessible NFS share via SMB and NFS lag



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFijQSEnKyINQw/HARAk3jAJoD8hQxkwD0xDdj9F+dc7H2MYJkcgCeM2Mt
EvHyCqXF1PBv7Hgd43a43uc=
=X/Tg
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • nfs mounts / su / yp
    ... I'm running FreeBSD client machines and mixed NFS servers. ... NIS for login/password authentication. ...
    (FreeBSD-Security)
  • 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)
  • Linux/FreeBSD NFS incompatibilities (was: Connection refusal for an NFS mount)
    ... On an old Redhat box, I'm trying to mount an NFS ... export from a FreeBSD box. ... Both machines are on the same ... network segment, and neither have any onboard firewalling rules. ...
    (freebsd-questions)
  • 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: [9fans] Configuring NFS
    ... For Solaris NFS was *the* only choice. ... For Linux I have ... nfsserver but wondering what the machine 'ivy' does, ... services don't even have to be remote machines). ...
    (comp.os.plan9)