Skip to main content
Hitachi Vantara Knowledge

LUNStat

LUNStat

LUNStat is a command-line utility that gathers data from the host operating system, SCSI inquiries, and the SNIA HBA API to report the type of storage attached to a host. Supported host operating systems include Microsoft Windows 2000/XP, IBM AIX, Hewlett Packard HPUX, and Sun Solaris. Host storage information is presented in XML format or plain text format. You can sort plain text reports according to one of the following sets of criteria:

 

  • Ascending OS Bus Number, OS Target ID, and OS LUN
  • Ascending Array Serial Number, LDEV, and Port Number
  • Ascending Array Serial Number, Port Number, and LDEV
  • Ascending Array Serial Number, Parity Group, and LDEV
  • Ascending HBA Number, HBA Port Number, and SCSI ID


Reported Information 

For all attached disks and logical units, LUNStat provides the following information collected from the host operating system:

 

  • OS Bus Number
  • OS Target ID
  • OS LU Number
  • File System Types
  • File System Names
  • Mount Points
  • Capacity


For all attached SCSI disks and logical units, LUNStat provides the following information collected from SCSI Inquiry commands:

 

  • Manufacturer
  • Product ID
  • SCSI Serial Number
  • Revision Level


For Hitachi RAID logical units, LUNStat provides the following information collected from SCSI Inquiry commands:

 

  • Emulation Type
  • RAID Model
  • RAID Serial Number
  • RAID Port ID
  • RAID Device ID
  • RAID Level
  • RAID Group
  • RAID Sub System ID
  • RAID CU Number
  • RAID TC CTID
  • TCA Role
  • SI Role M0
  • SI RoleM1?
  • SI RoleM2?
  • Host Group Number
  • HBA Node WWN
  • HBA Port WWN

For logical units attached through a host bus adapter, LUNStat provides the following information collected from the SNIA HBA API:

 

  • HBA Adapter Number
  • HBA Adapter Name
  • HBA Manufacturer
  • HBA Model
  • HBA Hardware Version
  • HBA Driver Version
  • HBA Firmware Version
  • HBA Node WWN
  • HBA Port Number
  • HBA Port WWN
  • HBA Port Type
  • HBA Port State
  • HBA Port FCID
  • HBA Port Supported COS
  • HBA Port Supported Speed
  • HBA Port Actual Speed
  • HBA Port Discovered Port Count
  • HBA Port Error Frames Per Minute
  • HBA Port Link Failures Per Minute

 

Usage

Correct usage is: LUNStat -x
or: LUNStat -t [-s] [-a] [-p] [-r] [-h]

where:
-x: indicates to write an XML format report to stdout.
-t: indicates to write a textual format report to stdout.
-s: request SCSI ID report. (-s is valid with -t).
-a: request Hitachi array report. (-a is valid with -t).
-p: request Hitachi array port report. (-p is valid with -t).
-r: request Hitachi array RAID group report. (-r is valid with -t).
-h: request HBA report. (-h is valid with -t).

example:

# lunstat -tsv 1>output.txt 2>log.txt


(where -v is verbose, this will create an output file and error file into the current directory)

 

 

  • Was this article helpful?