During the upgrade, the system encounters a shortage of 2MB memory blocks (ESXi uses a block system for memory allocation, where memory is divided into blocks of different sizes e.g., 2MB.), which can prevent the expansion of the Read-Only memory section. This issue typically arises from memory fragmentation or high memory usage by VMs.
After rebooting the host as instructed in the log ("Please reboot the host immediately to discard the unfinished update... Clean up the installation"), the upgrade does not proceed because the host is in NSX Maintenance Mode. When a host is in this mode, it is deliberately skipped during the upgrade process.
This issue is resolved in VMware NSX 4.1.1, available at Broadcom downloads.
This adds a Precheck which will detect if there is a Read-Only memory issue, to prevent upgrades from continuing and allow the transport node to enter an inconsistent state.
If the alert is detected by a Precheck, please reboot the host and re-run the prechecks.
Workaround:
To avoid this issue during an upgrade, upgrade to version 4.1.1 or later, or reboot the transport nodes before starting the upgrade.
If the upgrade has already been initiated and this issue is encountered, the transport node can be set to upgrade in non–dual-load mode. In this mode, the previous version of the VMware NSX VIBs is removed before the new version is installed. After the transport node reboots, create the following file
#mkdir /tmp/nsx2#echo '{"dual_load": false}' >/tmp/nsx2/debug
Then retry the upgrade of the transport node again from VMware NSX upgrade page.
Note: As we are creating the file in the /tmp/ directory, make sure and do it after the reboot, as the reboot will remove files from the /tmp/ directory.
Also, after attempting an upgrade and carrying out the recommended action from the esxupdate.log 'It is not safe to continue. Please reboot the host immediately to discard the unfinished update.. Clean up the installation.', at this point the host may be in NSX Maintenance Mode (MM), so when you attempt the upgrade again, the host may be skipped, please review the host and exit from VMware NSX MM, before attempting the upgrade again.