E2E Connectivity: VMware - Resize Policy Manager VM disk Space

Summary: This article explains offers information about policy manager updating the VM configuration to meet system requirement to update to its latest version (5.18 and above)

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Resize VM disk Space

 

Steps:

 
  1. Access the Vcenter and find the VM where you want to expand the hard disk space, CPU core and RAMs as illustrated below.

Accessing the VCenter


 
  1. Go to Actions -> Power offPower off action
 
  1. Once Powered off. Go to Actions -> Edit Settings ->
Then increase the CPU* to 4, Memory* to 8 GB & Hard disk 1* to 120 GB as shown in the below screenshot.

BEFORE:

:Before CPU config




AFTER:

After CPU config

Note: Kindly delete old snapshots to allow the changes in the Hard disk size.
  1. Click OK
  2. Power On the VM
Powering on VM
  1. SSH Login to the VM which you increase the HDD, CPU & RAM with root credentials.

SSH login
  1. Run the following command to check the updated disk size

lsblk -o NAME,SIZE
lsblk -o NAME,SIZE
 

How to resize the partition inside the docker

 

Steps:

 
  1. Run the following commands to check the current allocation for each partition:
  
df -h
df -h
 
  1. Stop the docker service by running the command systemctl stop docker

systemctl stop docker
 
  1. Unmount the docker volume partition by running the command umount /var/lib/docker

umount /var/lib/docker
 
  1. Run the following command to list the block devices and their partition -> lsblk

lsblk
 
  1. Run the following commands in a series of input to resize the partition as highlighted in the below screenshot
  • parted
  • print
  • resize 2 120G
  • Ignore
  • quit

parted print resize 2 120G Ignore quit
 
  1. Reboot the VM using command -> reboot

reboot
 
  1. Once reboot successful again SSH login to the Policy Manager VM.
 
  1. Run the following command to resize the physical volume.
 
sudo pvresize /dev/sda2

sudo pvresize /dev/sda2
 
  1. Run the following command to allocate the 100% of available physical volume to logical volume for /var/lib/docker

sudo lvextend -r -l +100%FREE /dev/mapper/pmVG-LVvar_lib_docker
sudo lvextend -r -l +100%FREE /dev/mapper/pmVG-LVvar_lib_docker
 
 
  1. Run the following command to check the updated volume for /var/lib/docker

df -h
df -h
 
  1. On successful resize of the volume start the docker service by giving the below command

systemctl start docker
systemctl start docker
 
  1. Finally check for the container is up and running successfully and access the web UI as before.

docker ps
docker ps

 
 
 

Affected Products

Secure Connect Gateway, Secure Connect Gateway - Virtual Edition
Article Properties
Article Number: 000219355
Article Type: How To
Last Modified: 16 Jul 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.