Lists the logical unit numbers (LUNs) that are accessible from SAN File System.
>>-lslun--+--------+--+-----------------------------+-----------> +- -?----+ | .-default----------. | +- -h----+ '- -fmt--+-delim--character-+-' '- -help-' '-xml--------------' >--+--------------+--+----------------+--+-------------+--------> | .-off-. | | .-on--. | '- -r--number-' '- -p--+-on--+-' '- -hdr--+-off-+-' >--+--------------+--+-----+--+-----------------------+---------> | .-off-. | +- -l-+ '- -client--client_name-' '- -v--+-on--+-' '- -s-' >--+-----------------------+--+-------------------------+-------> '- -vendor--vendor_name-' '- -product--product_name-' >--+--------------------+--+------------------------+-----------> '- -vol--volume_name-' '- -state--+-assigned--+-' +-available-+ +-error-----+ +-unknown---+ '-unusable--' >--+------------+---------------------------------------------->< | .--------. | | V | | +---lun_id-+-+ '- - --------'
Lun ID Vendor Product Size (MB) Volume State ===================================================================================== VPD83Type1=IBM 2105 2CF24903 IBM 2105800 1907 - Available Storage Device WWNN ========================= A5:56:FF:01:0C:98:D3:22
VPD83Type1=IBM 2105 2CF24903,IBM,2105800,1907,-,Available
<IRETURNVALUE> <INSTANCE CLASSNAME="STC_AvailableLUNs"> <PROPERTY NAME="LUNID" TYPE="uint64"><VALUE TYPE="uint64">2</VALUE> </PROPERTY> <PROPERTY NAME="NodeWWN" TYPE="string"><VALUE TYPE="string"> 12&58;34&58;56&58;78&58;91&58;23&58;45&58;67</VALUE></PROPERTY> <PROPERTY NAME="Vendor" TYPE="string"><VALUE TYPE="string">IBM</VALUE> </PROPERTY> <PROPERTY NAME="Product" TYPE="string"><VALUE TYPE="string">2105F20 </VALUE></PROPERTY> <PROPERTY NAME="Size" TYPE="uint64"><VALUE TYPE="uint64">47000</VALUE> </PROPERTY> <PROPERTY NAME="State" TYPE="uint64"><VALUE TYPE="uint64">2</VALUE> </PROPERTY> <PROPERTY NAME="VolumeName" TYPE="string"><VALUE TYPE="string"></VALUE> </PROPERTY> <PROPERTY NAME="DeviceID" TYPE="string"><VALUE TYPE="string"> &47;dev&47;sda</VALUE></PROPERTY> </INSTANCE> </IRETURNVALUE>
This parameter reports the state of the LUN as assigned, if there is a SAN File System disk label on the LUN. It also reports the volume name to which this LUN is assigned. However if there is a valid SAN File System disk label on the LUN but this label does not belong to the current cluster, a question mark (?) is returned for the volume name. This can happen either because the LUN belongs to another SAN File System cluster, or because the disk label corresponds to a previous installation that did not remove the label. In either case, if a volume needs to be created on the LUN, you can specify the –f parameter to force the volume creation.
The cluster must not be in an offline state when you run this command.
This command operates only against the local engine.
By default, this command lists the metadata LUNs.
If you do not specify any filtering parameters, this command lists all the LUNs that are accessible to SAN File System, including LUNs that have not been added to SAN File System, SAN File System volumes, and unusable LUNs.
sfscli> lslun -client client03 Lun ID Vendor Product Size (MB) Volume State Storage Device WWNN ============================================================================================================== VPD83Type1=IBM 2105 2CF24903 IBM® 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2CE24903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2CC24903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2CD24903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2CB24903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2CA24903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2C924903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2BD24903 IBM 2105800 4768 MASTER Assigned A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 3B624903 IBM 2105800 4768 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 3B524903 IBM 2105800 4768 - Available A5:56:FF:01:0C:98:D3:22 VPD83Type1=IBM 2105 2D324903 IBM 2105800 1907 - Available A5:56:FF:01:0C:98:D3:22
Parent topic: Administrative commands
Related tasks
Expanding metadata (system) volumes
Listing available LUNs
Listing LUNs
Viewing available LUN details
Viewing LUN details
Viewing LUN statistics
Related reference
activatevol
chvol
expandvol
lsvol
mkvol
rediscoverluns
reportvolfiles
rmvol
suspendvol