Lists the logical unit numbers (LUNs) that are accessible from SAN File System.
>>-lslun--+----------+--+-------------------------------+-------> +- –?----+ | .-default----------. | +- –h----+ '- –fmt--+-delim--character-+-' '- –help-' '-xml--------------' >--+----------------+--+------------------+---------------------> | .-off-. | | .-on--. | '- –p--+-on--+-' '- –hdr--+-off-+-' >--+---------------+--+----------------+--+-------+-------------> '- –r--number-' | .-off-. | +- –l-+ '- –v--+-on--+-' '- –s-' >--+-------------------------+--+-------------------------+-----> '- –client--client_name-' '- –vendor--vendor_name-' >--+---------------------------+--+----------------------+------> '- –product--product_name-' '- –vol--volume_name-' >--+--------------------------+--+------------+---------------->< '- –state--+-assigned--+-' | .--------. | +-available-+ | V | | +-error-----+ +---lun_id-+-+ +-unknown---+ '- – ------' '-unusable--'
OS Device Path LUN ID Engine WWN Vendor Product =================================================================== /dev/sda 2 12:34:56:78:91:23:45:67 IBM 2105F20 Size (MB) Volume State ============================= 47000 Vol1 Assigned
/dev/sda,2,12:34:56:78:91:23:45:67,IBM,2105F20,47000,Vol1,Assigned
<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 ===================================================================================== VPD83Type1=IBM 2105 2CF24903 IBM® 2105800 1907 - Available VPD83Type1=IBM 2105 2CE24903 IBM 2105800 1907 - Available VPD83Type1=IBM 2105 2CC24903 IBM 2105800 1907 - Available VPD83Type1=IBM 2105 2CD24903 IBM 2105800 1907 - Available VPD83Type1=IBM 2105 2CB24903 IBM 2105800 1907 - Available VPD83Type1=IBM 2105 2CA24903 IBM 2105800 1907 - Available VPD83Type1=IBM 2105 2C924903 IBM 2105800 1907 - Available VPD83Type1=IBM 2105 2BD24903 IBM 2105800 4768 MASTER Assigned VPD83Type1=IBM 2105 3B624903 IBM 2105800 4768 - Available VPD83Type1=IBM 2105 3B524903 IBM 2105800 4768 - Available VPD83Type1=IBM 2105 2D324903 IBM 2105800 1907 - Available
Parent topic: Administrative commands
Related reference
activatevol
chvol
expandvol
lsvol
mkvol
rediscoverluns
reportvolfiles
rmvol
suspendvol