showvlun command to get information about VLUNs in a 3PAR StoreServ

In our previous article, we discussed about showvv command which is basically used for collecting 3PAR virtual volume information. In this article, we will explore showvlun command which is used for collecting information about VLUNs in the system.

showvlun  command, when used along with different options, it will give you all the information you need and you can fine tune it according to your requirement.

Let's see how,

showvlun command when used with -lvw option, it will show the WWN of the virtual volume associated with the VLUN.

when used with -host option, it will show only VLUNs exported to hosts that match with the given host name.

If we want to display VLUNs that are exported to a host set, we should use -host set: followed by the hostset name. we can use comma separated values to include multiple patterns.

for eg: if I want to display the luns which are assigned to one of my ESX server lab01pesx032, I should use,

lab01hppar01 cli% showvlun -lvw  -host lab01pesx032
Active VLUNsLun VVName                          -----VV_WWN----- HostName     -Host_WWN/iSCSI_Name-  Port     Type Status ID  0 lab01pesx032_boot               50002ACE82931892 lab01pesx032 50060B0000C28A00      0:2:2     host active  0  1 VSWAP_NR_3PAR_DC_CL05_VMFS001 50002ACEA3EA1892 lab01pesx032 50060B0000C28A00      0:2:2 host set active  0  2 RDM_QU_REP_lab01C17_18_CL05_005 50002AC125651892 lab01pesx032 50060B0000C28A00      0:2:2     host active  1  3 RDM_QU_REP_lab01C15_16_CL05_004 50002AC125581892 lab01pesx032 50060B0000C28A00      0:2:2     host active  1  4 RDM_CL_REP_lab01C17_18_CL05_003 50002AC1254F1892 lab01pesx032 50060B0000C28A00      0:2:2     host active  1  5 RDM_CL_REP_lab01C15_16_CL05_002 50002AC125291892 lab01pesx032 50060B0000C28A00      0:2:2     host active  1  6 OS_REP_3PAR_EBDC_CL05_VMFS031   50002ACE83671892 lab01pesx032 50060B0000C28A00      0:2:2     host active  1  0 lab01pesx032_boot               50002ACE82931892 lab01pesx032 50060B0000C28A02      1:2:1     host active  0

If I want to display the luns which are assigned to a host set DC_ESX_CL05, I should run below command.

lab01hppar01 cli% showvlun -lvw  -host set:DC_ESX_CL05
Active VLUNsLun VVName                          -----VV_WWN----- HostName          -Host_WWN/iSCSI_Name- Port     Type  1 VSWAP_NR_3PAR_DC_CL05_VMFS001 50002ACEA3EA1892 set:DC_ESX_CL05 ----------------       --- host set----------------------------------------------------------------------------------------------------------  1 total

 There are options like -v and -t are also available, but generally for reporting and troubleshooting, we will rely on above mentioned options. 

No comments :

Post a Comment

Admin Helpline™ © , All Rights Reserved.
Privacy Policy