Hi Mark,

this looks like a rather usual Ubuntu VM behaviour! I run in to it a number of times, and I'm not sure why this is happening.
50GB VM drive, install Ubuntu to use the entire space with LVM and that's what you are getting..

Word of warning, resizing live root folder can damage your system :) but we all know that already, so a VM snapshot will be a great help here.

I don't have access to my notes right now but one of those links will sort this out:
https://slice2.com/2020/12/05/howto-easily-resize-the-default-lvm-volume-on-ubuntu-18-04/
or
https://kb.vander.host/operating-systems/how-to-resize-an-ubuntu-18-04-lvm-disk/

Hope that helps..
dzidek23


śr., 20 kwi 2022 o 17:39 Mark Rogers <mark@more-solutions.co.uk> napisał(a):
Can anyone explain this?

$ sudo fdisk -l /dev/sda
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E225721B-FB64-4D48-B133-6758468EF9F6

Device       Start       End   Sectors  Size Type
/dev/sda1     2048      4095      2048    1M BIOS boot
/dev/sda2     4096   3149823   3145728  1.5G Linux filesystem
/dev/sda3  3149824 104855551 101705728 48.5G Linux filesystem

$ df -h .
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv   24G   23G   13M 100% /

The scenario is that this is a new VirtualBox VM with Ubuntu 20.04.4
installed. It has a single 50GB disk as shown in VirtualBox and fdisk,
but having copied 23GB to it from elsewhere (using rsync) the disk is
now full.
What am I missing and how do I get my disk space back?

--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0344 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
_______________________________________________
To unsubscribe send an email to main-leave@lists.alug.org.uk
http://www.alug.org.uk/
Unsubscribe?  See message headers or the web site above!