{"id":1230,"date":"2022-09-21T14:45:42","date_gmt":"2022-09-21T14:45:42","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=1230"},"modified":"2022-11-05T10:53:18","modified_gmt":"2022-11-05T10:53:18","slug":"testing-iscsi-connectivity-from-vmware-esxi-to-storage","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=1230","title":{"rendered":"Testing iSCSI Connectivity from VMware ESXi to Storage"},"content":{"rendered":"\n<p>If you wish to test the connectivity through from your VMware ESXi host through to its storage when using iSCSI you can perform steps such as the following described within: <a href=\"https:\/\/kb.vmware.com\/s\/article\/1003728\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/kb.vmware.com\/s\/article\/1003728<\/a><\/p>\n\n\n\n<p>Firstly run this to get your list of vmKernel ports:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>esxcfg-vmknic -l<\/code><\/pre>\n\n\n\n<p>Assuming you&#8217;ve labelled the vmKernel ports you use for iSCSI with something sensible you should be able to figure out which are which. In my case it was vmk1 and vmk2 that were the two physical NICs assigned to the iSCSI Software Adapter.<\/p>\n\n\n\n<p>Now I want to ping through from each vmKernel port to the iSCSI storage port. As below you can see that is working fine this particular vmKernel port can ping the four iSCSI endpoints on the storage array.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@esx1:~] vmkping -I vmk1 172.30.123.34\nPING 172.30.123.34 (172.30.123.34): 56 data bytes\n64 bytes from 172.30.123.34: icmp_seq=0 ttl=64 time=0.128 ms\n64 bytes from 172.30.123.34: icmp_seq=1 ttl=64 time=0.100 ms\n64 bytes from 172.30.137.34: icmp_seq=2 ttl=64 time=0.108 ms\n\n--- 172.30.123.34 ping statistics ---\n3 packets transmitted, 3 packets received, 0% packet loss\nround-trip min\/avg\/max = 0.100\/0.112\/0.128 ms\n\n&#91;root@esx1:~] vmkping -I vmk1 172.30.123.35\nPING 172.30.123.35 (172.30.123.35): 56 data bytes\n64 bytes from 172.30.123.35: icmp_seq=0 ttl=64 time=0.116 ms\n64 bytes from 172.30.123.35: icmp_seq=1 ttl=64 time=0.097 ms\n64 bytes from 172.30.123.35: icmp_seq=2 ttl=64 time=0.098 ms\n\n--- 172.30.123.35 ping statistics ---\n3 packets transmitted, 3 packets received, 0% packet loss\nround-trip min\/avg\/max = 0.097\/0.104\/0.116 ms\n\n&#91;root@esx1:~] vmkping -I vmk1 172.30.123.234\nPING 172.30.123.234 (172.30.123.234): 56 data bytes\n64 bytes from 172.30.123.234: icmp_seq=0 ttl=64 time=0.137 ms\n64 bytes from 172.30.123.234: icmp_seq=1 ttl=64 time=0.110 ms\n\n--- 172.30.123.234 ping statistics ---\n2 packets transmitted, 2 packets received, 0% packet loss\nround-trip min\/avg\/max = 0.110\/0.123\/0.137 ms\n\n&#91;root@esx1:~] vmkping -I vmk1 172.30.123.235\nPING 172.30.123.235 (172.30.123.235): 56 data bytes\n64 bytes from 172.30.123.235: icmp_seq=0 ttl=64 time=0.130 ms\n64 bytes from 172.30.123.235: icmp_seq=1 ttl=64 time=0.099 ms\n64 bytes from 172.30.123.235: icmp_seq=2 ttl=64 time=0.090 ms\n\n--- 172.30.123.235 ping statistics ---\n3 packets transmitted, 3 packets received, 0% packet loss\nround-trip min\/avg\/max = 0.090\/0.106\/0.130 ms\n<\/code><\/pre>\n\n\n\n<p>To test jumbo frames you&#8217;d use something like the below, in my environment we don&#8217;t support Jumbo frames. Note: the -d sets &#8220;don&#8217;t fragment&#8221; which means it won&#8217;t fragment a packet, so if the network can&#8217;t cope with an MTU that big, the packet is dropped.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vmkping -I vmk1 172.30.123.235 -d -s 8972\nPING 172.30.123.235 (172.30.123.235): 8972 data bytes\nsendto() failed (Message too long)\nsendto() failed (Message too long)\nsendto() failed (Message too long)\n<\/code><\/pre>\n\n\n\n<p>Or without jumbo frames with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vmkping -I vmk1 172.30.123.235 -d -s 1472<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you wish to test the connectivity through from your VMware ESXi host through to its storage when using iSCSI you can perform steps such as the following described within: https:\/\/kb.vmware.com\/s\/article\/1003728 Firstly run this to get your list of vmKernel ports: Assuming you&#8217;ve labelled the vmKernel ports you use for iSCSI with something sensible you &#8230; <a title=\"Testing iSCSI Connectivity from VMware ESXi to Storage\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=1230\" aria-label=\"Read more about Testing iSCSI Connectivity from VMware ESXi to Storage\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-1230","post","type-post","status-publish","format-standard","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1230"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions"}],"predecessor-version":[{"id":1300,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions\/1300"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}