0

I have host machine of Windows 7 with a Guest of Ubuntu 17.04. It has a Dynamic Virtual HardDrive and no Snapshots.

I ran out of space on it so followed the instructions at http://derekmolloy.ie/resize-a-virtualbox-disk/ minus the linux-swap stuff as I didn't have it. It seemed to work fine. All the places that say the size of the Virtual Hard Drive have increased, except in two places. The remote connection to the Host and what the the Ubuntu command line reports.

Here are the VirtualBox Storage Settings

VirtualBox Storage Settings

Here is GParted

GParted

And here is what df -H reports

Filesystem                   Size  Used Avail Use% Mounted on
udev                         5.5G     0  5.5G   0% /dev
tmpfs                        1.2G  9.5M  1.1G   1% /run
/dev/mapper/ubuntu--vg-root  4.2G  2.8G  1.2G  72% /
tmpfs                        5.6G     0  5.6G   0% /dev/shm
tmpfs                        5.3M     0  5.3M   0% /run/lock
tmpfs                        5.6G     0  5.6G   0% /sys/fs/cgroup
tmpfs                        1.2G     0  1.2G   0% /run/user/1000

It seems like what the Ubuntu is reporting is correct as it's still maxing out the space.

As requested here are the results of pvdisplay, vgdisplay, and lvdisplay

nroscoe@ubuntu:~$ sudo pvdisplay
[sudo] password for nroscoe:
  --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               ubuntu-vg
  PV Size               97.65 GiB / not usable 2.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              24999
  Free PE               22449
  Allocated PE          2550
  PV UUID               cwUsfR-04ec-K0ZA-OcXZ-H6HV-1VYA-zHJIJo

nroscoe@ubuntu:~$ sudo vgdisplay
  --- Volume group ---
  VG Name               ubuntu-vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               97.65 GiB
  PE Size               4.00 MiB
  Total PE              24999
  Alloc PE / Size       2550 / 9.96 GiB
  Free  PE / Size       22449 / 87.69 GiB
  VG UUID               XXSWcE-gEQu-VNBh-4VwD-aVDl-0U8S-JY4POt

nroscoe@ubuntu:~$ sudo lvdisplay
  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/root
  LV Name                root
  VG Name                ubuntu-vg
  LV UUID                Uhfivy-71eh-fyNp-eiaD-K4qo-8ZMb-eFTrfm
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2017-05-05 09:49:59 -0400
  LV Status              available
  # open                 1
  LV Size                3.96 GiB
  Current LE             1015
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/swap_1
  LV Name                swap_1
  VG Name                ubuntu-vg
  LV UUID                wed06G-sWiH-N12e-c3Wz-TCq8-1vjX-2dOeb3
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2017-05-05 09:49:59 -0400
  LV Status              available
  # open                 2
  LV Size                6.00 GiB
  Current LE             1535
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
  • Welcome to Ask Ubuntu! Can you please show a screenshot from Gparted? – Andrea Lazzarotto May 17 '17 at 13:37
  • Added GParted image – nroscoe May 17 '17 at 13:50
  • Did you increase the size with virtual box and then expanded the partition? – lewis4u May 17 '17 at 14:53
  • I ran the VBoxmanage modifyhd command and used gparted to expand it – nroscoe May 17 '17 at 15:24
  • You have expanded the logical volume (LVM), not the file system inside it. Gparted doesn't show it. – Andrea Lazzarotto May 17 '17 at 21:03

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.