Tuesday, September 25, 2012

iSCSIADM: Cannot see iSCSI luns on server side

On the storage side , the LUNs are created. However you cannot see them on the server side. This post explains the steps needed to debug and fix the issue.



Issue list command to see if you can see the LUNs on the server side:
  • iscsiadm list target -vS
If there are no LUNs listed, verify which discovery method is enabled
 
root@dat01:/# iscsiadm list discovery
Discovery:
        Static: disabled
        Send Targets: enabled
        iSNS: disabled
 
Verify which address is enabled in send targets discovery
 
 iscsiadm list discovery-address
Discovery Address: 10.129.195.209:3260
 
 
If the discovery-address is correct and you  you cannot still see the luns, do the following:
 
Check /var/adm/messages for any error message
Restart the iscsi service on storage side
Readd the address to send targets discovery as under:
iscsiadm remove discovery-address  10.129.195.209
root@dat01:/var/adm# iscsiadm list discovery-address
root@dat01:/var/adm# iscsiadm add discovery-address 10.129.195.209
root@dat01:/var/adm# iscsiadm list discovery-address
Discovery Address: 10.129.195.209:3260

No comments:

Post a Comment