Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Displaying LUN information

Types of information you can display  Top

You can display the following types of information about LUNs:

Displaying command-line help  Top

To display command-line help, complete the following steps.

Step

Action

1

On the storage system's command line, enter the following command:

lun help

Result

A list of all LUN subcommands is displayed:

lun help          - List LUN (logical unit of block storage) commands
lun config-check  - Check all lun/igroup/fcp settings for correctness
lun clone         - Manage LUN cloning
lun comment       - Display/Change descriptive comment string
lun create        - Create a LUN
lun destroy       - Destroy a LUN
lun map           - Map a LUN to an initiator group
lun move          - Move (rename) LUN
lun offline       - Stop block protocol access to LUN
lun online        - Restart block protocol access to LUN
lun resize        - Resize LUN
lun serial        - Display/change LUN serial number
lun set           - Manage LUN properties
lun setup         - Initialize/Configure LUNs, mapping
lun share         - Configure NAS file-sharing properties
lun show          - Display LUNs
lun snap          - Manage LUN and snapshot interactions
lun stats         - Displays or zeros read/write statistics for LUN
lun unmap         - Remove LUN mapping
2

To display the syntax for any of the subcommands, enter the following command:

lun help subcommand 

Example

lun help show

Displaying statistics  Top

To display the number of data read and write operations and the number of operations per second for LUNs, complete the following step.

Step

Action

1

Enter the following command:

lun stats -z -i interval -c count -o [-a | lun_path] 

-z zeros statistics

Note
The statistics start at zero at boot time.

-i interval is the interval, in seconds, at which the statistics are displayed.

-c count is the number of intervals. For example, the lun stats -i 10 -c 5 command displays statistics in ten-second intervals, for five intervals.

-o displays additional statistics, including the number of QFULL messages the storage system sends when its SCSI command queue is full and the amount of traffic received from the partner storage system.

-a shows statistics for all LUNs.

lun_path displays statistics for a specific LUN.

Example

lun stats -o -i 1
Read    Write Other QFull   Read  Write Average  Queue  Partner       Lun
  Ops   Ops    Ops           kB   kB    Latency  Length  Ops kB
    0   351     0     0      0  44992   11.35    3.00     0   0   /vol/tpcc/log_22
    0   233     0     0      0  29888   14.85    2.05     0   0   /vol/tpcc/log_22
    0   411     0     0      0  52672    8.93    2.08     0   0   /vol/tpcc/log_22
    2     1     0     0     16      8    1.00    1.00     0   0   /vol/tpcc/ctrl_0
    1     1     0     0      8      8    1.50    1.00     0   0   /vol/tpcc/ctrl_1
    0   326     0     0      0  41600   11.93    3.00     0   0   /vol/tpcc/log_22
    0   353     0     0      0  45056   10.57    2.09     0   0   /vol/tpcc/log_22
    0   282     0     0      0  36160   12.81    2.07     0   0   /vol/tpcc/log_22

Displaying LUN mapping information  Top

To display LUN mapping information, complete the following step.

Step

Action

1

On the storage system's command line, enter the following command:

lun show -m

Result


 
LUN path               Mapped to         LUN ID  Protocol
--------------------------------------------------------
/vol/tpcc/ctrl_0       host5                0     iSCSI
/vol/tpcc/ctrl_1       host5                1     iSCSI
/vol/tpcc/crash1       host5                2     iSCSI
/vol/tpcc/crash2       host5                3     iSCSI
/vol/tpcc/cust_0       host6                4     iSCSI
/vol/tpcc/cust_1       host6                5     iSCSI
/vol/tpcc/cust_2       host6                6     iSCSI

Displaying status of space reservations  Top

To display the status of space reservations for LUNs in a volume, complete the following step.

Step

Action

1

Enter the following command:

lun set reservation lun_path

Example


lun set reservation /vol/lunvol/hpux/lun0
Space Reservation for LUN /vol/lunvol/hpux/lun0 (inode 
3903199): enabled

Displaying additional LUN information  Top

To display additional information about LUNs, such as the serial number and ostype (displayed as Multiprotocol Type), and maps, complete the following step.

Step

Action

1

On the storage system's command line, enter the following command to display LUN status and characteristics:

lun show -v

Example


 
/vol/tpcc_disks/cust_0_1 382m (400556032)     (r/w, online, mapped)
        Serial#: VqmOVYoe3BUf
        Share: none
        Space Reservation: enabled
        Multiprotocol Type: aix
        SnapValidator Offset: 1m (1048576)
        Maps: host5=0
/vol/tpcc_disks/cust_0_2 382m (400556032)     (r/w, online, mapped)
        Serial#: VqmOVYoe3BV6
        Share: none
        Space Reservation: enabled
        Multiprotocol Type: aix
        SnapValidator Offset:      1m (1048576)
        Maps: host6=1

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments