Borzenkov, Andrey wrote:
You can also use storage show disk -a to get the same information for all disks.
Apologies if I missed something here, but AFAICS just now it's quite easy to get this info in one go so to speak. OK so we have this to work with in the CM (Counter Manager):
$ na016 'priv set -q diag; stats list counters disk' Counters for object name: disk instance_name node_name node_uuid process_name display_name raid_name raid_group raid_group_id raid_type disk_speed disk_capacity total_transfers user_read_chain user_reads user_write_chain user_writes user_writes_in_skip_mask user_skip_write_ios cp_read_chain cp_reads guarenteed_read_chain guarenteed_reads guarenteed_write_chain guarenteed_writes user_read_latency user_read_blocks user_write_latency user_write_blocks skip_blocks cp_read_latency cp_read_blocks guarenteed_read_latency guarenteed_read_blocks guarenteed_write_latency guarenteed_write_blocks disk_busy io_pending io_queued dlsched_distant dlsched_immediate dlsched_max_distant dlsched_max_background dlsched_io_time dlsched_wait dlsched_count disk_io_latency_histogram
@Jordan Would this get you the mapping you're after in this case?
$ filer016 'stats show disk:*:display_name' | head disk:5000CCA0:250D8AD4:...:00000000:display_name:7b.30.0 disk:5000CCA0:2508F8AC:...:00000000:display_name:3b.10.0 disk:5000CCA0:250DAB54:...:00000000:display_name:12b.50.1 disk:5000CCA0:25096C3C:...:00000000:display_name:5a.31.0 disk:5000CCA0:250D08A8:...:00000000:display_name:12b.51.0 disk:5000CCA0:250C7644:...:00000000:display_name:1a.11.0 disk:5000CCA0:25063884:...:00000000:display_name:5a.32.0 disk:5000CCA0:250BBA04:...:00000000:display_name:11a.52.0 disk:5000CCA0:2507B56C:...:00000000:display_name:1a.12.0 disk:5000CCA0:25094ED8:...:00000000:display_name:7b.30.1
I find this quite usful as well in many cases:
$ filer016 'stats show disk:*:raid_name' | head disk:5000CCA0:250D8AD4:...:00000000:raid_name:/aggr0/plex0/rg0/7b.30.0 disk:5000CCA0:2508F8AC:...:00000000:raid_name:/aggr0/plex0/rg0/3b.10.0 disk:5000CCA0:250DAB54:...:00000000:raid_name:/aggr0/plex0/rg0/12b.50.1 disk:5000CCA0:25096C3C:...:00000000:raid_name:/aggr0/plex0/rg0/5a.31.0 disk:5000CCA0:250D08A8:...:00000000:raid_name:/aggr0/plex0/rg0/12b.51.0 disk:5000CCA0:250C7644:...:00000000:raid_name:/aggr0/plex0/rg0/1a.11.0 disk:5000CCA0:25063884:...:00000000:raid_name:/aggr0/plex0/rg0/5a.32.0 disk:5000CCA0:250BBA04:...:00000000:raid_name:/aggr0/plex0/rg0/11a.52.0 disk:5000CCA0:2507B56C:...:00000000:raid_name:/aggr0/plex0/rg0/1a.12.0 disk:5000CCA0:25094ED8:...:00000000:raid_name:/aggr0/plex0/rg0/7b.30.1
BTW this is from an 8.2P6 box, I believe it's the same in an 8.1.1 any older than that I don't really have here so I cannot check
/M
*From:* Borzenkov, Andrey [mailto:andrey.borzenkov@ts.fujitsu.com] *Sent:* Monday, April 07, 2014 9:31 AM *To:* Jordan Slingerland; Jeff Mohler *Cc:* <Toasters@teaparty.net mailto:Toasters@teaparty.net> (Toasters@teaparty.net mailto:Toasters@teaparty.net) *Subject:* RE: stats list instances disk output format
Filer> storage show disk 0a.16 Disk: 0d.16 Shelf: 1 Bay: 0 Serial: VAWL3ZLA Vendor: NETAPP Model: X276_HPYTA288F10 Rev: NA04 RPM: 10000 WWN: 2:000:000087:56be8f UID: 20000000:8756BE8F:00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
I guess you are interested in the last line.