This article explains how to extend the storage partition of VMware vCloud Usage Meter to increase available disk space.
VMware vCloud Usage Meter 4.x
To extend the root partition:
echo 1 > /sys/class/block/sda/device/rescan
Invoke partitioning tool (menu-driven interface) by running the below command.
# cfdisk /dev/sda
Invoke partitioning tool (menu-driven interface) by running the below command.
# cfdisk /dev/sda
Note: This step is applicable only for the root partition: Using arrow keys select /dev/sda4
Using arrow keys select /dev/sda4
Using tab key Or shift tab select [ Resize ] then enter
Enter the free size available
Using tab key select [ Write ]
Type "yes" and press tab to [ Quit ]
To resize the two data partitions which are LVMs and the steps are different here versus root partition:
pvresize
" to let LVM know that the physical disk size has changed:pvresize /dev/sda4
lvextend
" to use the new space:lvextend -l +100%FREE /dev/mapper/vg_0-data
resize2fs
" to extend the file system on the LVresize2fs /dev/mapper/vg_0-data
df -h
" command to verify the allocated space