CCI Private Cloud - Growing the Disk Partition and Volume Group

This is the process for Growing the Disk Partition and Volume Group.


This process assumes the disk has already been resized in vRA and that a reboot has already happened.

This process assumes that you only have a single disk, if there are multiple disks it may not behave as expected (it'll only try growing the first disk it sees).

Follow the steps below

REBOOT

# Grow the existing disk partition and volume
PV=$(pvs --noheadings --separator '|' | head -1 | sed -e 's/^\s*//' | cut -f 1 -d '|')
DISK=$(echo ${PV} | sed -e 's/[[:digit:]]*$//')
sgdisk -e ${DISK}
PART=$(echo ${PV} | tr -dc '0-9')
parted -s ${DISK} resizepart ${PART} 100%
pvresize ${PV}

 

 



Keywords:
cci, cciv, cloud, private, virtualization, grow, partition, volume, group 
Doc ID:
64024
Owned by:
Drew D. in CCI Private Cloud
Created:
2016-06-13
Updated:
2024-09-24
Sites:
Campus Cloud Infrastructure (CCI) - Private Cloud