vRealize Operations Manager Upgrade Pak Validation Swap Check failing due to SWAP showing a total of '0'
search cancel

vRealize Operations Manager Upgrade Pak Validation Swap Check failing due to SWAP showing a total of '0'

book

Article ID: 343684

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

  • Upgrade Validation fails at step 3 of 9.
  • The error Cannot continue the installation of the PAK file because Pre-Upgrade Validation Checks have failed is present.
  • Checking top command output shows that Swap is showing a total of 0 instead of the expected 4102M.
  • The /storage/log/vcops/log/pakmanager/logs/vropsupgradepakfilename/validate_stderr.log contains the following error in relation to the failed swap_space_check validation script:
DEBUG - Swap: 0 0 0
DEBUG - total: 0mb, used: 0mb
ERROR - swap_space_check failed, float division by zero
Traceback (most recent call last):
File "validate.py", line 1974, in main
result, result_description = getattr(envInfo, check_name)()
File "validate.py", line 1393, in swap_space_check
swap_percent = float(used)/float(total)
ZeroDivisionError: float division by zero
ERROR - float division by zero
  • Attempting to enable swap again using the swapon -a command results in the following error:
swapon: /dev/sda2: read swap header failed: Invalid argument


Environment

VMware vRealize Operations Manager 7.0.x
VMware vRealize Operations Manager 6.7.x
VMware vRealize Operations Manager 6.6.x

Resolution

As per best practice, before running any steps please make sure a snapshot/backup is present.

Run the following commands to recreate the swap and enable it.
  1. Log into the affected vRealize Operations Manager node as root via SSH or Console.
  2. Run the following command to recreate swap:
mkswap /dev/sda2
  1. Run the following command to enable swap:
swapon /dev/sda2

Note: The swap space can be verified as showing correctly by running the swapon -s command.
 
The swap space check will now succeed once the upgrade pak is re-applied.