Extend vRealize Orchestrator Disk 1 root partition
search cancel

Extend vRealize Orchestrator Disk 1 root partition

book

Article ID: 338078

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article provides steps to increase or extend the free space on Disk 1 Root partition of the vRealize Orchestrator appliance.

Environment

VMware vRealize Orchestrator 7.x

Resolution

Pre-requisite:

  • To change existing Disk sizes, shutdown vRealize Orchestrator and remove all VM snapshots or clone the VM to a new VM.
  • Change the Disk 1 size to 20G (X size) from VM Edit Settings.
  • Create new VM snapshot.

Warning:

When you perform this procedure, you might see the following warning messages:

Ignore the message You should reboot now before making further changes. If you reboot your system before step 10, the upgrade process will be corrupted.

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.

Procedure

  1. Power on the vRealize Orchestrator appliance host virtual machine and log in as with a secure shell connection as the root user.
  2. Run the following commands to stop services:
  • service vco-server stop
  • service vco-configurator stop
  • service vpostgres stop
  1. Run the following command to unmount the swap partition:
swapoff -a
  1. Run the following command to delete the existing Disk 1 partitions and create a 17GB root (X size - 3GB) partition and a 3GB swap partition:
(echo d; echo 2; echo d; echo 1; echo n; echo p; echo ; echo ; echo '+17G'; echo n; echo p; echo ; echo ; echo ; echo w; echo p; echo q) | fdisk /dev/sda
  1. Run the following command to change the swap partition type:
(echo t; echo 2; echo 82; echo p; echo w; echo q) | fdisk /dev/sda
  1. Run the following command to set the Disk 1 bootable flag:
(echo a; echo 1; echo p; echo w; echo q) | fdisk /dev/sda
  1. Run the following command to register the partition changes with the Linux kernel:
partprobe

Note: If you see a message prompting you to reboot before you make further changes, ignore the message. Rebooting the system before step 10 corrupts the resize process.

  1. Run the following command to format the new swap partition:
mkswap /dev/sda2
  1. Run the following command to mount the swap partition:
swapon -a
  1. Reboot the vRealize Orchestrator appliance host.
  2. After the appliance reboots, run the following command to resize the Disk 1 partition table:
resize2fs /dev/sda1
  1. To verify that the disk expansion is successful, run df -h and check that the available disk space on /dev/sda1 is greater than the earlier space.