Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2013 10:32:17 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Radek Krejca <radek.krejca@starnet.cz>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: How to get file from nfs id
Message-ID:  <20130711153217.GA14910@dan.emsphone.com>
In-Reply-To: <B2E0472020754D45B72E9B0CE35278CAB6E1347F2F@EXCHANGE.mail.starnet.cz>
References:  <B2E0472020754D45B72E9B0CE35278CAB6E1347F2F@EXCHANGE.mail.starnet.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130711153217.GA14910>