lahaxpress.blogg.se

Virtualbox increase disk size ubuntu fdisk lvm
Virtualbox increase disk size ubuntu fdisk lvm













Increasing the size of the actual hard disk is very easy because we are working with a virtual machine - all it takes is to is to edit the virtual machine settings, look for the virtual disk, and increase the size (we have done this for both VMware and VirtualBox virtual machines the process is similar). We basically followed the instructions in this blog post (credit where credit is due): Turns out this was not as easy as we thought so we decided to document things here. It turns out that we were very wrong, which became apparent when we tried to download a 4+ GByte file and the download failed because of lack of free space.īecause we did not want to create a new VM and copy the existing installation over we decided to just increase the size of the existing disk and the partitions/physical volumes/logical volumes inside it. Recently we found ourselves regretting a decision we made when we installed Ubuntu Server 12.04LTS on a VMware ESXi virtual machine (VM) - when we created the VM, we allocated a very small hard disk (8 GBytes) thinking that for the specific purpose of that machine we were not going to need a bigger hard drive. In above step we have executed the lvextend command to extend the file system size by 2 GB but still the file system is not updated, so execute the following resize2fs command ~]# resize2fs /dev/mapper/vg_cloud-LogVol00 Step:4 Use df command and verify /home size. You can also specify the size in MB, just replace G with M. Logical volume LogVol00 successfully resizedĪbove command will extend the file system size by 2GB. Run below lvextend command to extend the file system, ~]# lvextend -L +2G /dev/mapper/vg_cloud-LogVol00 Extending logical volume LogVol00 to 11.77 GiB VG UUID 1R89GB-mIP2-7Hgu-zEVR-5H02-7GdB-Ufj7R4 Step:3 Use lvextend command to increase the size. # vgdisplay home]# vgdisplay vg_cloud - Volume group.

virtualbox increase disk size ubuntu fdisk lvm virtualbox increase disk size ubuntu fdisk lvm

To display volume group details, execute the vgdisplay command followed by volume group name, Step:2 Now check whether free space is available space in the volume group Home]# df -h /home/ Filesystem Size Used Avail Use% Mounted onĪs we can see /home is 100 % utilized.















Virtualbox increase disk size ubuntu fdisk lvm