Hello Robert, Thursday, April 19, 2007, 1:57:38 AM, you wrote:
RM> Hello nfs-discuss, RM> Does anyone have a dtrace script (or any other means) to track which RM> files are open/read/write (ops and bytes) by nfsd? To make things RM> little bit harder lets assume that local storage in on zfs, nfsd RM> server using nfsv3 and system is S10U3. RM> The script would distinguish between cache read and disk read. RM> So something like: RM> ./nfsd_file.d RM> CLIENT_IP OPERATION BYTES TYPE FILE RM> X.X.X.X READ3 32768 logical /nfs/d1000/fileA RM> ... RM> and something like: RM> ./nfsd_file_summ.d 100s RM> CLIENT_IP OPERATION OPS BYTES TYPE FILE RM> X.X.X.X READ3 230 5MB logical /nfs/d1000/fileA RM> X.X.X.X READ3 15 1MB physical /nfs/d1000/fileA RM> ... RM> RM> RM> Looks like vopstat and rfileio from DTrace toolkit is what I'm looking for (with some modifications) -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com