0

I am using an oraclelinux6 base box from http://github.com/oracle/vagrant-boxes.git for a development project.

after running $ vagrant up; vagrant ssh I switch to root by: $ sudo su and run $ fdisk

I see that the box contains 2 physical disks /dev/sda (39gb) and /dev/sdb (16gb). a volume group has been defined on /dev/sda2 which incorporates 37gb of the 39gb.

For my particular project, I need to have at least 128gb of diskspace for database etc.

What is the best way to resize /dev/sdb to 128GB so I have more than enough space.

BTW: for accessibility reasons I cannot use virtualbox's gui to resize the disk.

I tried the following: $ vagrant halt $ vboxmanage clonehd "disk2.vmdk" "cloned.vdi" --format vdi $ vboxmanage modifyhd "cloned.vdi" --resize 131072 $ vboxmanage clonehd "cloned.vdi" "disk2.vmdk" --existing $ vagrant up

When I run fdisk inside the vagrant box, /dev/sdb is still 16gb just like it was originally.

Software versions: host: windows 10 professional virtualbox 5.2.12 vagrant: 2.1.2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.