Library Table of Contents Index Previous Next 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 filer'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 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 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 reads, data writes, and operations per second for LUNs, complete the following step.

Step

Action

1

Enter the following command:

lun stats {-z|-k} [lun-path ...]

-k displays the statistics in KBs.

Note
The statistics start at zero at boot time.

-z resets the counter at any time.

Sample Result

lun stats -k
     /vol/vol1/lun0
          Read (kBytes)        Write (kBytes)       Ops
          10241                26159                3290
    /vol/vol1/lun1
          Read (kBytes)        Write (kBytes)       Ops
          10241                26279                3313

Displaying status and characteristics  Top

To display status and characteristics about LUNs, complete the following steps.

Step

Action

1

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

lun show -v
Sample display

 
        /vol/vol1/lun0 5g (5368709120)    (r/w, online, mapped)
                Comment: "First LUN"
                Serial#: OcmePIdQwRb1
                Share: none
                Space Reservations: enabled
                Multiprotocol Type: solaris
                Maps: solaris-igroup0=0
        /vol/vol1/lun1 100m (104857600)     (r/w, online, mapped)
                Comment: "Second LUN"
                Serial#: OcmePIdQuEtX
                Share: none
                Space Reservations: enabled
                Multiprotocol Type: solaris
                Maps: solaris-igroup1=0
2

On the filer's command line, enter the following command to display LUN mapping information:

lun show -m
Result

 
LUN path                   Mapped to               LUN ID
--------------------------------------------------------
/vol/vol1/lun0             solaris-igroup0              0
/vol/vol1/lun1             solaris-igroup1              0
/vol/vol1/qtree1/lun2      solaris-igroup2              0
/vol/vol1/qtree1/lun3      solaris-igroup2              1

Displaying space reservation status for LUNs  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

Library Table of Contents Index Previous Next Comments