ZFS snoop problem
- From: Richard Skelton <Richard.Skelton@xxxxxxxxxxxx>
- Date: Fri, 25 May 2012 11:23:00 +0100
Hi Managers,
I am running Solaris 11 as a NFS server and have found a script called
nfsv3rwsnoop.d
It works fine for most files but some times it lists the file name as
<unknown> why?
# ./nfsv3rwsnoop.d
TIME(us) CLIENT OP OFFSET BYTES PATHNAME
1171685002348 192.168.17.75 W 3093304 2389 <unknown>
1171685003791 192.168.17.75 W 3093304 2426 <unknown>
1171687011333 192.168.17.75 W 3093304 2492 <unknown>
1171687013031 192.168.17.75 W 3093304 2529 <unknown>
1171689020596 192.168.17.75 W 3093304 2595 <unknown>
# more ./nfsv3rwsnoop.d
#!/usr/sbin/dtrace -s
/* This DTrace scripts traces NFSv3 read and write requests, showing
details of each operation
* ./nfsv3iosnoop.d
* TIME(us) CLIENT OP OFFSET BYTES PATHNAME
* 4299383207 192.168.17.75 R 0 4096
/export/stuff/bin/ghex2
* 4299391813 192.168.17.75 R 4 28672
/export/stuff/bin/ghex2
* 4299395700 192.168.17.75 R 32 32768
/export/stuff/bin/ghex2
*/
#pragma D option quiet
#pragma D option switchrate=10hz
dtrace:::BEGIN
{
printf("%-16s %-18s %2s %-8s %6s %s\n", "TIME(us)",
"CLIENT", "OP", "OFFSET", "BYTES", "PATHNAME");
}
nfsv3:::op-read-start
{
printf("%-16d %-18s %2s %-8d %6d %s\n", timestamp / 1000,
args[0]->ci_remote, "R", args[2]->offset / 1024,
args[2]->count,
args[1]->noi_curpath);
}
nfsv3:::op-write-start
{
printf("%-16d %-18s %2s %-8d %6d %s\n", timestamp / 1000,
args[0]->ci_remote, "W", args[2]->offset / 1024,
args[2]->data.data_len, args[1]->noi_curpath);
}
--
Cheers
Richard Skelton
Richard.Skelton@xxxxxxxxxxxx
Infineon Technologies UK Ltd
Infineon House
Great Western Court
Hunts Ground Road
Stoke Gifford
Bristol
BS34 8HP
Tel +44(0)117 952 8808
Fax: +44(0)117 952 8777
Mobile: +44(0)743 6272 137
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Follow-Ups:
- Zone - shutdown problem
- From: Joe Phan
- Zone - shutdown problem
- Prev by Date: Upgrading vs Patching - S10
- Next by Date: Tired of EMC and Netapp
- Previous by thread: Upgrading vs Patching - S10
- Next by thread: Zone - shutdown problem
- Index(es):
Relevant Pages
|