vRealize Network Insight Upgrade fails, 'No Space Left on Device'
In many cases your usual version of the software is either at n-1 level, or the greatest and the latest.Sometimes you need to upgrade software
to meet compatibility levels and or to fix a bug, or to utilise new feature sets.
Upgrading vRNI from 3.x to 3.7 requires some specific set of instructions.
User accounts to use to upgrade is consoleuser [this is the only account that has privilages to perform application level configurations.]
Note: It’s highy recommended that the default passwords be changed.
Updating vRNI from 3.6 to 3.7
If your vRNI appliance doesn’t have internet access [due to security reasons], offline method of upgrading is available, but only via command line.
There are many artciles on the net explaining on how to do this, so i’ll jump straight to the issue.
Always perform a snapshot, prior to performing any upgrade/config changes to vRNI.
vRNI Platform Appliance
vRNI Proxy Appliances [as many you have]
Logon into vRNI platform via SSH, check services and version
Attempt to apply upgrade;
Note in this case, the offline upgrade file VMware-vRealize-Network-Insight.188.8.131.529211678.upgrade.bundle has been uplaoded to /tmp/ folder of the
Use WinScp Tool, and can only be done by using the support username/password.
It fails, but atleast states how to review the log files,
Failure states; No space left on device
Review the Disk Usage, and there is plenty of Disk Space, atleast on /tmp and also on /home
Notice in the logs, atleast the last 2 lines states, that it’s cleaning the directories
2018-03-05 17:28:40,883 - INFO - Cleaning up files under /tmp/upgrade-bits and /home/consoleuser/downloads
2018-03-05 17:28:43,400 - ERROR - Failed to upgrade
From what i gather, it appears, when the upgrade command is applied, the file VMware-vRealize-Network-Insight.184.108.40.2069211678.upgrade.bundle
is copied from /tmp to /home/consoleuser/downloads ,
and is also extracted to path /tmp/upgrade-bits/
File Size is 2.6GB in Size, and copied to 1 more location and extracted in /tmp as well. This could possbily be the issue.
Now i delete the file VMware-vRealize-Network-Insight.220.127.116.119211678.upgrade.bundle from /tmp
and attempt to scp it to /home/consoleuser/downloads, and it fails, as support account doesn’t have rights to consoleuser home directory.
Now i also atempted to copy the file VMware-vRealize-Network-Insight.18.104.22.1689211678.upgrade.bundle to /home/support/downloads folder via WinSCP,
this worked, but now it appears consoleuser doesn’t have access to /home/support/downloads directory, or not able to expand the files.
By now your drives and or /tmp has some bloated files extracted onto it. Best to perform a reboot to clear these files.
After the reboot , i continue to investigate and browse the diectory structure of the vRNI Appliance via WinSCP.
There’s a /downloads directoy on the root partition.
Log into the appliance using the support account/password AND apply the below commands to review the /downloads folder details
Great, vrniusers have access to folder /downloads on the root partition.
Now upload the file VMware-vRealize-Network-Insight.22.214.171.1249211678.upgrade.bundle to /downloads via WinScp, and then apply upgrade commands
After 25mins or so, the upgrade completes.
Check Version and Service Status
You can now perform offline upgrades by uploading the upgrade bundle file to /downloads folder on root partition.
Upgrading vRNI 3.7 to new releases
From version 3.7 onwards, you can now perform offline upgrades via the WebGUI of vRNI.
Wait until a new update/bugfix release bundle is made available for download.
Log into vRNI, Settings, Install and Support;
Click on the Click here
and below screen comes up, and rest is self explainatory.
Hopefully in future releases, we get to upload a single upgrade bundle file, and it upgrades the both platform and proxy appliances in a sequence.