2009/2/3 Dan Nelson <dnel...@allantgroup.com>
> In the last episode (Feb 03), Sandra Kachelmann said:
> > I have an NFS fileserver and would like to figure out which files are
> > being read/written to. Is there something to find that out? Something
> > similar to samba's 'smbstatus' command.
> The best you can do currently is run tcpdump/wireshark and watch the remote
> file operations as they happen... NFS doesn't access files by filename,
> by NFS filehandle (basically device+inode number), so a remote client first
> looks up the filename to get the filehandle, and all accesses are done via
> the filehandle at that point. Theoretically, one could write a dtrace
> script that watches calls to nfs_namei, nfsrv_read, and nfsrv_write, and
> then matches read/write ops with the filenames that were looked up
Solaris NFS has a logging option, which does exactly what Sandra is asking
for. It's al reason why I prefer to use Solaris for NFS servers.
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"