Created on 10-16-2015 08:45 PM - edited 09-16-2022 01:32 AM
Here my findings on how to increase sandbox disk space. Please if anyone has a easier solution, update this:
1- Backup sandox files
2- Convert .vmdk disk to .vdi (virtuabox does not allow resizing on vmdk images):
VBoxManage clonehd "/Users/gbraccialli/VirtualBox VMs/HDP 2.3_1.2_B/Hortonworks Sandbox with HDP 2.3-disk1.vmdk" "/Users/gbraccialli/VirtualBox VMs/HDP 2.3_1.2_B/Hortonworks Sandbox with HDP 2.3-disk1.vdi" --format VDI --variant Standard
3- Increase .vdi size
VBoxManage modifyhd "/Users/gbraccialli/VirtualBox VMs/HDP 2.3_1.2_B/Hortonworks Sandbox with HDP 2.3-disk1.vdi" --resize 400000
4- Open virtualbox, remove .vmdk image and add new .vdi image file
5- Download gparted iso image
http://sourceforge.net/projects/gparted/?source=typ_redirect
6- Add gparted iso image as cdrom drive on virtualbox, make cdrom as first device on boot order and boot virtualbox using gparted image
7- Using gparted gui, resize the partition, save changes, shutdown virtualbox and remove gparted cdrom iso image
8- Start Sandox and perform commands below:
lvextend -L +100G /dev/mapper/vg_sandbox-lv_root resize2fs /dev/mapper/vg_sandbox-lv_root
9- check new partition size:
df -h
Created on 03-08-2016 02:03 PM
gparted wouldn't start.
I find this much easier:
https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-adding-a-new-disk/