Community Articles

Find and share helpful community-sourced technical articles.
avatar

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
5,721 Views
Comments
avatar
New Contributor