Reporting Per-Zone File System Statistics
The following examples show how to report file system activity for non-global zones. For more examples, see the
fsstat(8) man page.
Example 5-8 Monitoring Activity in Specific Zones
This command reports on file system activity for specified zones. The separate ‐z options specify each zone to monitor.
global$ pfexec fsstat -z ZoneA -z ZoneB zfs tmpfs
new name name attr attr lookup rddir read read write write
file remov chng get set ops ops ops bytes ops bytes
93 82 6 163K 110 507K 148 69.7K 67.9M 4.62K 13.7M zfs:ZoneA
248 237 158 188K 101 612K 283 70.6K 68.6M 4.71K 15.2M zfs:ZoneB
12.0K 1.90K 10.1K 35.4K 12 60.3K 4 25.7K 29.8M 36.6K 31.0M tmpfs:ZoneA
12.0K 1.90K 10.1K 35.6K 14 60.2K 2 28.4K 32.1M 36.5K 30.9M tmpfs:ZoneB
Tip:
To report on all zones, including the global zone, use the ‐Z option (uppercase) instead of the-z
zonename option.
Example 5-9 Displaying Per-Zone fstype Statistics for All Zones
This example shows how to report aggregated file system activity for all zones, including the global zone. The administrator requests reports on the file system types tmpfs and zfs for each zone running on the system.
global$ pfexec fsstat -A -Z zfs tmpfs
new name name attr attr lookup rddir read read write write
file remov chng get set ops ops ops bytes ops bytes
360K 1.79K 20.2K 4.20M 1.02M 25.0M 145K 5.42M 2.00G 1.07M 8.10G zfs
359K 1.48K 20.1K 4.04M 1.02M 24.5M 144K 5.31M 1.88G 1.06M 8.08G zfs:global
93 82 6 74.8K 107 250K 144 54.8K 60.5M 4.61K 13.7M zfs:ZoneA
248 237 158 90.2K 101 336K 283 53.0K 58.3M 4.71K 15.2M zfs:ZoneB
60.0K 41.9K 17.7K 410K 515 216K 426 1022K 1.02G 343K 330M tmpfs
49.4K 38.1K 11.0K 366K 489 172K 420 968K 979M 283K 273M tmpfs:global
5.28K 1.90K 3.36K 21.9K 12 21.7K 4 25.7K 29.8M 29.9K 28.3M tmpfs:ZoneA
5.25K 1.90K 3.34K 22.1K 14 21.6K 2 28.4K 32.1M 29.8K 28.2M tmpfs:ZoneB