growing partition size with a linux VM


Gog

Recommended Posts

Hi

 

Disclaimer: I've been a linux user for a few decades but I'm no admin by any stretch of the imagination.  This is on a Xubuntu VM I built a few  months ago.

 

I'm trying to increase the space allocated to the VM.  I did the resize like so:"qemu-img resize vdisk1.img +5G" and I modified the partitions with gparted so that I now have more space available in the partition.

 

But if I do df -h, the size of / is still at 8.5GB.  There is another 3GB free on that partition.  How do I make it usable in "/dev/mapper/xubuntu--vg-root"?

Filesystem                    Size  Used Avail Use% Mounted on
udev                          234M   12K  234M   1% /dev
tmpfs                          49M  872K   49M   2% /run
/dev/mapper/xubuntu--vg-root  8.5G  7.5G  621M  93% /
none                          4.0K     0  4.0K   0% /sys/fs/cgroup
none                          5.0M     0  5.0M   0% /run/lock
none                          245M  200K  245M   1% /run/shm
none                          100M   40K  100M   1% /run/user
/dev/vda1                     1.3G  443M  754M  38% /boot

 

 

lsblk
NAME                          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0                            11:0    1   949M  0 rom  
vda                           253:0    0    15G  0 disk 
├─vda1                        253:1    0   1.3G  0 part /boot
├─vda2                        253:2    0     1K  0 part 
└─vda5                        253:5    0  13.7G  0 part 
  ├─xubuntu--vg-root (dm-0)   252:0    0   8.8G  0 lvm  /
  └─xubuntu--vg-swap_1 (dm-1) 252:1    0     1G  0 lvm  [sWAP]

 

What am I missing?

 

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.