E2E Connectivity: VMware - Resize Policy Manager VM disk Space

Riepilogo: 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)

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

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

 
 
 

Prodotti interessati

Secure Connect Gateway, Secure Connect Gateway - Virtual Edition
Proprietà dell'articolo
Numero articolo: 000219355
Tipo di articolo: How To
Ultima modifica: 16 lug 2024
Versione:  5
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.