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?
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-... or https://kb.vander.host/operating-systems/how-to-resize-an-ubuntu-18-04-lvm-d...
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!
On Wed, 20 Apr 2022 at 21:51, B D dzidek23@gmail.com wrote:
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..
Strange indeed!
https://kb.vander.host/operating-systems/how-to-resize-an-ubuntu-18-04-lvm-d...
That fixed it, thank you!
Specifically: sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv sudo resize2fs /dev/mapper/ubuntu–vg-ubuntu–lv df -h .. was all it took
Thanks for the link!
On 20/04/2022 17:38, Mark Rogers wrote:
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?hard caps for work
To me,
/dev/mapper/ubuntu--vg-ubuntu--lv
tells me that there is a Logical Volume (LV) Mapped onto the actual physical disk. I think by default a new install will use Logical Volumes for flexibilty and resiableness, but I've never used one. Why it wouldn't use the full disk I don't know. I've used disk encryption and that shows up as a drive mounted on dev/mapper, so that makes confirms to me that you're not using a file system directly onto the physical disk, but with an intermediary.
Hope that helps.
Steve