{"id":853,"date":"2021-07-16T13:23:51","date_gmt":"2021-07-16T15:53:51","guid":{"rendered":"https:\/\/blog.pelleys.com\/?p=853"},"modified":"2021-07-16T19:00:47","modified_gmt":"2021-07-16T21:30:47","slug":"esxi-7-0-upgrade-to-update-2-and-iscsi","status":"publish","type":"post","link":"https:\/\/blog.pelleys.com\/?p=853","title":{"rendered":"ESXi 7.0 Upgrade to Update 2 and iSCSI"},"content":{"rendered":"\n<p>I realized last night that in my efforts to get ESXi up and running, I had installed the original release of ESXi 7.0. Since I had taken Friday off work to take care of a few things that needed to be done during the weekdays I decided to upgrade ESXi to Update 2. It also allowed me to test my theory from my previous post. <\/p>\n\n\n\n<p>The update worked as planned (and boy-oh-boy are updates slow!) but was successful. As I expected the iSCSI share did not show up in ESXi. Let&#8217;s check the NAS and see if the targets are still there and if the ESXi server is connected. Yep, ESXi is shown as a host in DSM. <\/p>\n\n\n\n<p>Okay, ssh into the ESXi box. Can I ping the NAS? Yes, working fine.<\/p>\n\n\n\n<p>Log into the ESXi console (again, I&#8217;m not using vSphere). The software iSCSI sees the host and the target. But, no iSCSI devices are showing up under storage devices and obviously the datastores are not present.<\/p>\n\n\n\n<p>Let&#8217;s try my theory from the last post. Try <code>esxcfg-volume -l<\/code> and get the UUIDs. Well now, iSCSI volumes are not showing up. Let&#8217;s try a few more pings to the NAS, rescan the devices. Nope, not working.<\/p>\n\n\n\n<p>Time for some deep thinking. No panic this time as I know that the VMs are still in the iSCSI LUNs and I just have to get them mounted. And I have good backups!<\/p>\n\n\n\n<p>Some more Googling and the first result from Reddit (<a rel=\"noreferrer noopener\" href=\"https:\/\/www.reddit.com\/r\/vmware\/comments\/m1or6k\/vsphere_70_u2_iscsi_not_working_with_older_hp\/\" data-type=\"URL\" data-id=\"https:\/\/www.reddit.com\/r\/vmware\/comments\/m1or6k\/vsphere_70_u2_iscsi_not_working_with_older_hp\/\" target=\"_blank\">vSphere 7.0 U2 iSCSI not working with older HP Lefthand SAN<\/a>) seems to have the answer. It seems that the issue is around the IQN and how ESXi is handling this. I deleted the ESXi <strong>host<\/strong> on the NAS and re-created it. A rescan of the storage devices showed the iSCSI LUNs. I then did the <code>esxcfg-volume -l<\/code> and mounted, using <code>esxcfg-volume -M UUID<\/code> (with the &#8220;M&#8221; rather than the &#8220;m&#8221; option), the two UUIDs. Bang, the datastores reappears. While the article is for upgrades and not reboots, my gut is that this problem will persist until the bug is squashed. I haven&#8217;t tested a reboot because this is a pain in the arse and I have other things I have to do.<\/p>\n\n\n\n<p>From the Reddit post, there is now a KB article from VMware on this issue (i<a rel=\"noreferrer noopener\" href=\"https:\/\/kb.vmware.com\/s\/article\/84339\" data-type=\"URL\" data-id=\"https:\/\/kb.vmware.com\/s\/article\/84339\" target=\"_blank\">SCSI adapter IQN may change during the upgrade of ESXi 7.0 U1 (84339)<\/a>). I didn&#8217;t see the workaround (I&#8217;ll try it if a patch not available and I have to shutdown the ESXi or NAS) but here is that workaround example from the article:<\/p>\n\n\n\n<p><strong>To work around the issue<\/strong>:<br>Prior to the upgrade, use the\u00a0esxcli get\u00a0and\u00a0set\u00a0commands to set the generated iSCSI adapter\u00a0IQN explicitly. As the IQN is a user setting it won&#8217;t change after the upgrade.<br><strong>Get the IQN details:<\/strong><br><code>$ esxcli iscsi adapter get -A vmhba67<\/code><br><br>v<code>mhba67<br>\u00a0 \u00a0Name: iqn.1998-01.com.vmware:w1-hs3-n2503.eng.vmware.com:452738760:67<\/code><br><br><strong>Set the IQN details:<\/strong><br><code>$ esxcli iscsi adapter set -A vmhba67 -n iqn.1998-01.com.vmware:w1-hs3-n2503.eng.vmware.com:452738760:67<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p><strong>EDIT<\/strong><\/p>\n\n\n\n<p>I couldn&#8217;t wait for the next time that I needed to reboot the ESXi server. That is probably a good idea given that I probably don&#8217;t want to have a number of things going on at the same time. I applied the VMware KB work around and then shutdown the VMs and rebooted the server. <\/p>\n\n\n\n<p><strong>SUCCESS!<\/strong> The iSCSI datastores automatically came up. A gin and tonic with lots of ice may be in order!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I realized last night that in my efforts to get ESXi up and running, I had installed the original release of ESXi 7.0. Since I had taken Friday off work to take care of a few things that needed to &hellip; <a href=\"https:\/\/blog.pelleys.com\/?p=853\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-853","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/posts\/853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=853"}],"version-history":[{"count":0,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/posts\/853\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}