You must reconfigure Disk 1 on the vRealize Automation version you are upgrading from before beginning the upgrade.
About this task
Perform this procedure for each replica appliance node sequentially, and then for the master node.
When you perform this procedure, you might see these warning messages:
WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks.
Error: Partition(s) 1 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
Ignore this message: You should reboot now before making further changes. If you reboot your system before step 10, you will corrupt the upgrade process.
- Power on and SSH login to the vRealize Automation appliance.
- Stop all vRealize Automation services.
- service vcac-server stop
- service vco-server stop
- service vpostgres stop
- Unmount the swap partition:
- Delete the existing Disk 1 partitions and create a 44 GB root partition and a 6 GB swap partition:
(echo d; echo 2; echo d; echo 1; echo n; echo p; echo ; echo ; echo '+44G'; echo n; echo p; echo ; echo ; echo ; echo w; echo p; echo q) | fdisk /dev/sda
- Change the swap partition type.
(echo t; echo 2; echo 82; echo w; echo p; echo q) | fdisk /dev/sda
- Set the Disk 1 bootable flag:
(echo a; echo 1; echo w; echo p; echo q) | fdisk /dev/sda
- Register the partition changes with the Linux kernel.
If you see a message telling you to reboot before you make further changes, ignore the message. Rebooting the system before step 10 corrupts the upgrade process.
- Format the new swap partition.
- Mount the swap partition.
- Reboot the vRealize Automation appliance.
- After the appliance reboots, resize the Disk 1 partition table.
- Verify that the disk expansion is successful by running df -h and checking that the available disk space on /dev/sda1 is greater than 3 GB.
- Repeat steps 1-11 on all other vRealize Automation appliances.
- Shut down all replica vRealize Automation appliance nodes.