From owner-freebsd-questions@FreeBSD.ORG Thu Mar 2 04:42:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F91516A420 for ; Thu, 2 Mar 2006 04:42:01 +0000 (GMT) (envelope-from c.v.hazarey@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF02243D48 for ; Thu, 2 Mar 2006 04:42:00 +0000 (GMT) (envelope-from c.v.hazarey@gmail.com) Received: by uproxy.gmail.com with SMTP id o2so146748uge for ; Wed, 01 Mar 2006 20:41:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=H/E3pMe0aStPIXuNudGIO+ShtA6Iav8MCxhi3WIrFUjusWdhQ0yzELRXTrLoi5ctn/ODR7aAbMF+/ds7V1VLmzvezgghFV6WmQrIbGMOtVV3rCr2rpgPjfV33Gc3n7bi9i8iPb+EBFxm/hFznCVYCQjX7UafKNbz2mYeH3zDkFE= Received: by 10.66.243.20 with SMTP id q20mr123774ugh; Wed, 01 Mar 2006 20:41:59 -0800 (PST) Received: by 10.66.255.9 with HTTP; Wed, 1 Mar 2006 20:41:59 -0800 (PST) Message-ID: <9a9abfb40603012041yadb7cc5o9aacc5f39df6f08f@mail.gmail.com> Date: Thu, 2 Mar 2006 10:11:59 +0530 From: "Chaitanya Hazarey" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: A Question about NFS and msync 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, 02 Mar 2006 04:42:01 -0000 Hello all, I am a new subscriber to the list with I guess, an old problem. I will try to explain my setup in brief and then try to ask my question. If this is not the proper place to ask this question please do kindly point me to the correct mailing list. We have got a FreeBsd 5.4 NIS server serving regular maps and autofs maps. It has some Linux and Solaris clients. The Linux, Solaris clients use the autofs to mount the home directories of users as and when required. Recently, there seems to be a problem with the NFS server of the FreeBSD as the clients are getting all the time : NFS server not responding still trying.... and then NFS server OK What happenns because of this is that the clients seem to be very slow and large file transactions will make the clients hang. There seemed to be no problem at first but this has started recently. The server gives the following error : Mar 2 10:05:21 servernis rpc.statd: msync() failed: Invalid argument and when I used ktrace and kdump on rpc.statd I got : 17135 rpc.statd RET read 0 17135 rpc.statd CALL close(0x9) 17135 rpc.statd RET close 0 17135 rpc.statd CALL __sysctl(0x11ffe2e0,0x4,0,0x11ffe2f0,0,0) 17135 rpc.statd RET __sysctl 0 17135 rpc.statd CALL __sysctl(0x11ffe2e0,0x4,0x1000,0x11ffe2f0,0,0) 17135 rpc.statd RET __sysctl -1 errno 14 Bad address 17135 rpc.statd CALL msync(0x1602a2000,0,0) 17135 rpc.statd RET msync -1 errno 22 Invalid argument 17135 rpc.statd CALL gettimeofday(0x11ffd670,0) 17135 rpc.statd RET gettimeofday 0 17135 rpc.statd CALL sendto(0x8,0x11ffd6e0,0x3f,0,0,0) 17135 rpc.statd GIO fd 8 wrote 63 bytes "<27>Mar 1 13:48:56 rpc.statd: msync() failed: Invalid argument" 17135 rpc.statd RET sendto 63/0x3f 17135 rpc.statd CALL sendto(0x4,0x12004a000,0x20,0,0x12001a040,0x1c) 17135 rpc.statd GIO fd 4 wrote 32 bytes 0x0000 440c efc6 0000 0001 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0065 =20 |D..............................e| My questions are : 1) Any way to diagnose the situation, I am monitoring the log files and also have adjusted the time on both the machines. 2) Is the problem and the error message connected. 3) Is this a known bug ? And are there patches for it ? 4) Is there a workaround for this kind of a problem ? Thanks, Chaitanya