29 April 2025

Solaris 11.4.78 / iostat -b and wildcards

If you are using Kernel Zones

-bash-5.2$ zoneadm list -v
  ID NAME             STATUS      PATH                         BRAND      IP
   0 global           running     /                            solaris    shared
   1 v0182            running     -                            solaris-kz excl

It is now easier on the global zone to analyze
the I/O of only the disks used by kernel zones

using the wildcard (v0182*) and the new -b (backend) flag

-bash-5.2$ iostat -xnzb -Td v0182* 5 3
Tuesday, April 29, 2025 at  7:58:29 AM EDT
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
   0.3    7.5   18.2   53.7  0.0  0.0    0.0    1.7   0   0 v0182/disk1
   0.0    0.0    0.0    9.3  0.0  0.0    0.0    5.1   0   0 v0182/disk2
   0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.2   0   0 v0182/disk3
Tuesday, April 29, 2025 at  7:58:34 AM EDT
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
   0.6   14.4   25.8   68.4  0.0  0.0    0.0    1.8   0   1 v0182/disk1
   0.4   68.2    0.3 58301.9  0.0  0.4    0.0    6.5   0  24 v0182/disk2
Tuesday, April 29, 2025 at  7:58:39 AM EDT
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
  11.0    0.0   37.1    0.0  0.0  0.0    0.0    0.3   0   0 v0182/disk1
   0.0   87.2    0.0 52939.6  0.0  0.4    0.0    5.1   0  22 v0182/disk2


And we have similar output on control domains for disks
used in logical domains (Ldoms) on SPARC servers.

-bash-5.2$ iostat -znxMb -T d vds* 5 5
Tuesday, April 29, 2025 at  2:20:19 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 356.5  120.3   16.7   11.1  0.0  0.3    0.0    0.7   0   8 60002AC000000000000004320001507B@primary-vds0
 187.3    5.1   10.2    0.1  0.0  0.1    0.0    0.5   0   9 60002AC0000000000000048F0001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:24 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 135.2  195.0   80.3  118.0  0.0  0.9    0.0    2.8   0  50 60002AC000000000000004320001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:29 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 178.6  275.6  115.6  103.2  0.0  1.1    0.0    2.3   0  55 60002AC000000000000004320001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:34 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 236.6  306.4  100.2  109.9  0.0  1.1    0.0    2.1   0  61 60002AC000000000000004320001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:39 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 196.2  282.0   95.4  117.2  0.0  1.1    0.0    2.4   0  60 60002AC000000000000004320001507B@primary-vds0