From owner-freebsd-questions@FreeBSD.ORG Thu Dec 21 12:23:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F25316A416 for ; Thu, 21 Dec 2006 12:23:03 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 0EBD713C44B for ; Thu, 21 Dec 2006 12:23:03 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBL7DNEQ022815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 20 Dec 2006 23:13:23 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBL7DMSI025834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 20 Dec 2006 23:13:23 -0800 Message-ID: <458A3412.8000309@u.washington.edu> Date: Wed, 20 Dec 2006 23:13:22 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061220) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.20.225432 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Non-accessible NFS share via SMB and NFS lag X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2006 12:23:03 -0000 -----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@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@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" -----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-----