**This document outlines how to resize a partition on a Turbonomic/CentOS VM using a new disk added.**
By default, Turbonomic ships with three separate partitions.
Step 1: Add a new Disk from within your Hypervisor.
Step 2: SSH into Turbonomic using Putty or any other SSH client.
Step 3: In this step, we need to list all the detected partitions so we can then create a primary volume.
In the above screenshot, you'll see the highlighted partition detected. On your system, if you have multiple disks added without a physical volume then you will see different names.
The screenshot below is an example of the VM with two disks added without a physical volume.
Once the new disk is visible run the below commands to create the new physical volume and add it to the volume group as shown below.
Step 4: Creating Physical Volume
Don't forget to use the name of the partition you would like to use. In this example, sdb is in use.
vgextend turbo /dev/sdb
Step 5: Extending Logical Volume
lvextend -L +10G /dev/mapper/turbo-root
The disk added was 10GB but if you add more than 10GB then you need to change the command to include the space you would like to allocate to the Root partition.
The command above will extend the root volume.
Now we have extended the root volume We can look at the new size by using the command above, df -h
|df -h||Shows disk space available for each volume|
|fdisk -l||fdisk command can display the partitions and details like file system type|