Tracking down disk IO

I'm practicing my troubleshooting skills, specifically, pinpointing which disks/files are getting accessed at any one point in time.

We have an oracle database; if I tell the database to gather statistics it can flex the system as a whole. Anway, I wanted to see if I could pinpoint disk activity. If I kick off the gather stats call and then execute

$ iostat -xtc

devicer/sw/skr/skw/s wait actv svc_t %w %b tin tout us sy wt id

[snip]

sd75 0.05.50.2 1157.8 0.0 0.123.607

[snip]

How do I map sd75 to an actual harddrive? Or is there a better way to pinpoint which disks (even inodes?) are most active

This example is from Solaris 10, which houses our "playground" but I'd need it for Solaris 8, which is production (so I assume DTrace is out for Solaris 8).

Of course, production is running Veritas Volume Manger w/ Oracle option ... but I figured I'd get the basics down first.

[942 byte] By [nolsolaris] at [2007-11-26 10:10:01]
# 1
Yep, no DTrace. (At least I've not heard of anyone backporting it.) The iostat option you want is 'n', it will give you cxdxtxsx format for the disks. I also usually use the 'z' option to remove anything that has all zeros for data.
ifinzen at 2007-7-7 1:54:11 > top of Java-index,General,Talk to the Sysop...
# 2

Other options include

#1 the -p option to iostat will break it down further to partition. Not always a help when the data disks just have one big partition.

#2 kernel tracing. It's not lightweight nor as easy to use as dtrace, but the functionality is there. You can look for the old sunworld articles that mention using prex/tnfdump/tnfextract or...

see: http://users.tpg.com.au/bdgcvb/psio.html. While Brendan has a ton of dtrace stuff, the psio should function on Solaris 9. In addition, it's just perl so you can see what it's doing to create the trace buffer, enable it, disable it, then dump and parse the output. In some environments you should be able to get device and inode information. (I'm not always that lucky, though.)

Good luck!

--

Darren

Darren_Dunham at 2007-7-7 1:54:11 > top of Java-index,General,Talk to the Sysop...