Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Troubleshooting vSphere Storage

You're reading from   Troubleshooting vSphere Storage All vSphere administrators will benefit big-time from this book because it gives you clear, practical instructions on troubleshooting a whole host of storage problems. From fundamental to advanced techniques, it's all here.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781782172062
Length 150 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mike Preston Mike Preston
Author Profile Icon Mike Preston
Mike Preston
Arrow right icon
View More author details
Toc

You cannot connect to your iSCSI storage


The following are some questions and tasks that you can partake in to troubleshoot iSCSI connection failures.

Have all the network requirements for your iSCSI connection been met?

Tip

You can refer Chapter 3, Troubleshooting Storage Visibility, for more information on this topic.

You need to consider the following points when checking network requirements:

  • The ESXi host needs to have the proper networking configuration if using the software iSCSI initiator. A VMkernel port must be set up on the same subnet as your iSCSI storage array with the proper IP addressing and subnet mask.

  • Ensure all DNS and routing information is accurate using the following command:

    esxcfg-route -l
    
  • If you are using VLANs, be sure that proper VLAN configuration has been implemented.

  • Has the iSCSI storage array's IP address been entered in either the dynamic or static discovery tab?

  • Is it possible to ping your storage array?

    vmkping <IP OF ARRAY>
    
  • Have all the proper ports (3260) been opened up for iSCSI communication? To test port connectivity from the ESXi host to your iSCSI storage array, use the following command:

    nc -z <IP OF ARRAY> 3260
    
  • Are there any firewalls in between your ESXi host and your iSCSI array? If so, ensure that the proper ports have been opened. To check the local firewall on ESXi, use the following command:

    esxcli network firewall ruleset list | grep iSCSI
    
  • Does your network utilize Jumbo Frames? If so, ensure Jumbo Frame configuration has been enabled on all devices the iSCSI packet will traverse. To ensure our vSwitch is configured with Jumbo Frames, use the following command:

    esxcli network vswitch standard list 
    
  • To check that we properly have Jumbo Frames setup throughout the network stack, using the default 9000 MTU size, run the following command on an ESXi host:

    vmkping –s 8972 –d <IP OF ARRAY>
    

Various things to check on ESXi

Tip

You can refer Chapter 1, Understanding vSphere Storage Concepts and Methodologies, and Chapter 3, Troubleshooting Storage Visibility, for more information on this topic.

The following items need to be checked on ESXi when troubleshooting iSCSI connection failures:

  • Ensure that no claim rules have been added to the ESXi runtime utilizing the MASK_PATH plug-in. The following command will list your claim rules:

    esxcli storage core claimrule list
    
  • Ensure that LUN ID is set to a number below 255. Also, check the Disk.MaxLun advanced setting ensuring that your LUN ID isn't higher than the value configured.

Have all CHAP requirements been met?

Tip

You can refer Chapter 3, Troubleshooting Storage Visibility, for more information on this topic.

The following items need to be checked for CHAP when troubleshooting iSCSI connection failures:

  • Double check your CHAP settings

    • Ensure you have entered your CHAP user ID and secret properly in both the iSCSI array and ESXi

    • If using bidirectional CHAP, the CHAP secret must be different from the mutual CHAP secret

  • Double check your target settings

    • By default when you enable CHAP, it is enabled on all iSCSI targets since it is inherited. If using CHAP on some targets and not others, be sure to check your CHAP settings on individual targets and if not required, override the Inherit from parent option.

  • See Further check the logs for iSCSI-related errors and Appendix C, iSCSI Error Codes, to determine if there are any further CHAP related errors occurring

Has there been any advanced settings dealing with iSCSI incorrectly configured?

There are a variety of advanced settings that may affect your connection to your iSCSI storage array:

  • LoginTimeout: By default, it is set to 5 seconds. It specifies that time in seconds that an initiator will wait for login response. If this is set to low or we are experiencing contention, we may need to increase this parameter. The recommended value is 5.

  • RecoveryTimeout: By default, it is set to 10 seconds. It specifies the time in seconds that can elapse while a session recovery is performed. If the recovery hasn't completed within this time, the initiator will terminate the session. If this value is set too low, we could be experiencing path thrashing. If set too high, we could be waiting too long to fail a path. The recommended Value is 10.

  • Header and Data Digests: It is set to Prohibited by default. It can be enabled to ensure data integrity. For troubleshooting, it is recommended to be to Prohibited. The recommended value is Prohibited.

Further check the logs for iSCSI-related errors

Tip

You can refer Chapter 3, Troubleshooting Storage Visibility, for more information on this topic.

The following items need to be considered when checking logs for troubleshooting iSCSI connection failures:

  • We can further view any iSCSI-related errors in the logs by filtering the entire log folder with the following command:

    grep –r iscsid /var/log/* | less
    
  • Refer Appendix C, iSCSI Error Codes, to interpret any reason codes returned

  • Verbose logging can be enabled for troubleshooting purposes by running the following command:

    vmkiscsid -x "insert into internal (key,value) VALUES ('option.LogLevel','999');"
    
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image