Yet another small addition to Solaris 11 SRU 78. It’s not a feature for small systems with a few disks but more for system where you execute an iostat
and just think “Damned!” while the lines scroll by. Starting with SRU78 iostat
allows you use wildcards to filter the output of the command.
Let’s assume you have a system with a number of disks.
root@testbed:~# iostat -xnb
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
8,8 14,3 215,3 176,4 0,0 0,0 0,8 1,3 1 2 c1t0d0
0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0 c1t1d0
0,1 0,1 0,7 0,1 0,0 0,0 0,0 0,5 0 0 c1t2d0
0,0 0,1 0,7 0,1 0,0 0,0 0,1 0,5 0 0 c1t3d0
0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0 c2t0d0
0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0 c3t0d0
Okay, that’s not a lot, but i have worked systems with several hundreds of disks. Finding the disk you actually want to see is getting a little bit problematic. You are quickly using grep
to filter down the list. With the new capability of iostat
you don’t need to do this any longer. For example you want to see only the disk of controller 1 target 1 and 2:
root@testbed:~# iostat -xnb 'c1t[1-2]d*' 1
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0 c1t1d0
0,1 0,1 0,7 0,1 0,0 0,0 0,0 0,5 0 0 c1t2d0
Or perhaps you are more interested in all disks of controller 1:
root@testbed:~# iostat -xnb 'c1*' 1
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
3,8 11,6 93,0 106,3 0,0 0,0 0,6 1,1 0 1 c1t0d0
0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0 c1t1d0
0,0 0,0 0,3 0,1 0,0 0,0 0,0 0,5 0 0 c1t2d0
0,0 0,0 0,3 0,1 0,0 0,0 0,1 0,5 0 0 c1t3d0
The more disk you have, the more useful this new addtion is. And the more are referenced by their WWN, the more useful it gets as well.