From owner-freebsd-questions@FreeBSD.ORG Thu Jul 11 15:40:08 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3C1D3671 for ; Thu, 11 Jul 2013 15:40:08 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id DB28B163B for ; Thu, 11 Jul 2013 15:40:07 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [172.17.17.101]) by email2.allantgroup.com (8.14.5/8.14.5) with ESMTP id r6BFWIRu021360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Jul 2013 10:32:18 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.7/8.14.6) with ESMTP id r6BFWI51016768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Jul 2013 10:32:18 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.7/8.14.7/Submit) id r6BFWHZ2016767; Thu, 11 Jul 2013 10:32:17 -0500 (CDT) (envelope-from dan) Date: Thu, 11 Jul 2013 10:32:17 -0500 From: Dan Nelson To: Radek Krejca Subject: Re: How to get file from nfs id Message-ID: <20130711153217.GA14910@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 9.1-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.8 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (email2.allantgroup.com [172.17.19.78]); Thu, 11 Jul 2013 10:32:18 -0500 (CDT) X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on email2.allantgroup.com X-Scanned-By: MIMEDefang 2.73 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 15:40:08 -0000 In the last episode (Jul 11), Radek Krejca said: > Hello, > > I have problem with heavy load of my nfsd server. There is connected about 70 diskless machines, but in readonly mode. I catched traffic and get this: > > 21:00:39.715337 IP diskless-1.3297435097 > storage.nfs: 112 getattr fh Unknown/A27801CEDE115FA30A005CD9080000007ABA42000000000000000000570CDB51 > 21:00:39.716229 IP storage.nfs > diskless-1.3297435097: reply ok 112 getattr REG 444 ids 0/0 sz 64944 > 21:00:39.716463 IP diskless-1.3297435098 > storage.nfs: 112 getattr fh Unknown/A27801CEDE115FA30A0043DE080000007CBA42000000000000000000570CDB51 > 21:00:39.719112 IP storage.nfs > diskless-1.3297435098: reply ok 112 getattr REG 444 ids 0/0 sz 82800 > 21:00:39.719453 IP diskless-1.3297435099 > storage.nfs: 112 getattr fh Unknown/A27801CEDE115FA30A0043DE080000007CBA42000000000000000000570CDB51 > 21:00:39.721636 IP storage.nfs > diskless-1.3297435099: reply ok 112 getattr REG 444 ids 0/0 sz 82800 > > Why is the same machine requesting chmod of the same file and is there any > way to find out name of file from this long id? You can't get tcpdump to print it, but the getattr reply does include the inode of the file. If you start up wireshark and capture the same packets (or open a capture file created by tcpdump), the inode is stored in the "nfs->obj_attributes->attributes->fileid" field. You can then use "find / -inum 12345" to locate that inode on disk. -- Dan Nelson dnelson@allantgroup.com