Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Lun Top Tool NetApp Global Services Tools Group I.

Synopsis The lun_top tool is used to produce a ranked list of luns based on activity. The tool runs on a Windows or UNIX client and accesses the filer via a remote shell protocol (rsh or ssh). This could be useful for troubleshooting lun activity on a filer. II. Usage Usage is as follows: lun_top [-s shell] [-k] [-i interval] [-F | -I] [-c count] [-A] filer -s shell: By default, the script uses rsh, but if you need another binary (remsh, ssh, etc.), use this flag to specify. -k: Ranks by Kbytes per interval rather than the default ops/interval -i interval: Sets the interval between updates and calculations in seconds. Default is 10 seconds (like sysstat). -F: This flag will only show FCP luns, not iSCSI (default is to show all LUNs). -I: This flag will only show iSCSI luns (defautl is to show all LUNs). -c count: This will stop the loop after <count> interations. Default is to loop forever, until CTRL-C breaks it. -A: Show the initiator adapters (WWPN or IQN) rather than the igroup. Default is to show the igroup. filer: Name (or IP) of the filer to monitor. Must have rsh or ssh access from the host running the script. III. Installation For a UNIX client with Perl, simply run the lun_top script and ensure that the LunTop.pm file is in the same directory as the lun_top script. For a Windows client which does not have Perl installed, simply run the lun_top.exe file included in the package, the LunTop.pm file and source are not necessary. IV. Example Here is an example output: Lun: Ops: Igroup: ====================================================================== lun.4 8478074 ESX lun.5 3805463 ESX lun.1 3222303 ESX lun.2 1889689 ESX lun.6 1740423 ESX lun.3 1561762 ESX lun.0 778500 ESX iscsi_vir 8081 iscsi-vir test.lun 608 viaRPC.iqn.1991-05.com.microsoft :ex1.rtp.netapp.lab

lun.7

46

ESX

From this output, it is clear that luns belonging to the igroup ESX are the busiest in terms of ops. The server(s) that own these luns can be determined by looking at the igroup in the filer.

You might also like