Disk space runs out but shouldn't

Discussions about using Linux guests in VirtualBox.
Post Reply
Detzi
Posts: 1
Joined: 3. Sep 2022, 19:05

Disk space runs out but shouldn't

Post by Detzi »

Hi there,
i have installed Ubuntu 22.04 in its server configuration on "VirtualBox Graphical User Interface Version 6.1.34_Ubuntu r150636" and gave it a dynamic 240GB of disk space. when i now run ```console df -H``` i get :

Code: Select all

Filesystem                                          Size  Used Avail Use% Mounted on
tmpfs                                               1.7G  1.2M  1.7G   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv                   106G   52G   48G  52% /
tmpfs                                               8.4G     0  8.4G   0% /dev/shm
tmpfs                                               5.3M     0  5.3M   0% /run/lock
/dev/sda2                                           2.1G  258M  1.7G  14% /boot
tmpfs                                               1.7G  4.1k  1.7G   1% /run/user/1000
i also cannot install vivado which requires around 90GB of space and exits with error:

Code: Select all

ERROR: There is not enough disk space on /home/sandbox/tools/xilinx to install.
My host has currently ~225GB of free space available.

Code: Select all

Filesystem                                        Size  Used Avail Use% Mounted on
tmpfs                                             3,4G  4,1M  3,4G   1% /run
rpool/ROOT/ubuntu_aztvgz                          238G   12G  227G   5% /
tmpfs                                              17G     0   17G   0% /dev/shm
tmpfs                                             5,3M  4,1k  5,3M   1% /run/lock
rpool/USERDATA/user_fm7r3q                        938G  712G  227G  76% /home/user
rpool/USERDATA/root_fm7r3q                        227G  335M  227G   1% /root
rpool/ROOT/ubuntu_aztvgz/srv                      227G  132k  227G   1% /srv
rpool/ROOT/ubuntu_aztvgz/usr/local                227G  9,4M  227G   1% /usr/local
rpool/ROOT/ubuntu_aztvgz/var/games                227G  132k  227G   1% /var/games
rpool/ROOT/ubuntu_aztvgz/var/lib                  234G  7,1G  227G   4% /var/lib
rpool/ROOT/ubuntu_aztvgz/var/log                  228G  1,1G  227G   1% /var/log
rpool/ROOT/ubuntu_aztvgz/var/mail                 227G  132k  227G   1% /var/mail
rpool/ROOT/ubuntu_aztvgz/var/spool                227G   21M  227G   1% /var/spool
rpool/ROOT/ubuntu_aztvgz/var/snap                 227G  1,2M  227G   1% /var/snap
rpool/ROOT/ubuntu_aztvgz/var/www                  227G  132k  227G   1% /var/www
rpool/ROOT/ubuntu_aztvgz/var/lib/AccountsService  227G  132k  227G   1% /var/lib/AccountsService
rpool/ROOT/ubuntu_aztvgz/var/lib/apt              227G   93M  227G   1% /var/lib/apt
rpool/ROOT/ubuntu_aztvgz/var/lib/NetworkManager   227G  263k  227G   1% /var/lib/NetworkManager
rpool/ROOT/ubuntu_aztvgz/var/lib/dpkg             227G   62M  227G   1% /var/lib/dpkg
bpool/BOOT/ubuntu_aztvgz                          1,9G  258M  1,7G  14% /boot
/dev/nvme1n1p1                                    536M   15M  522M   3% /boot/efi
tmpfs                                             3,4G  1,8M  3,4G   1% /run/user/1000

I am probably missing something obvious, has someone a clue for me?

thanks
Detzi
Attachments
Screenshot from 2022-09-03 19-23-51.png
Screenshot from 2022-09-03 19-23-51.png (22.5 KiB) Viewed 2845 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Disk space runs out but shouldn't

Post by mpack »

Are you sure you actually installed the OS? I'm no Linux expert but all I'm seeing there is tmpfs, which I believe is a ramdisk filesystem, which suggests you're running from a live CD.

Speaking of unwarranted speculation: it helps if you always provide a zipped VM log when you ask such questions. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Disk space runs out but shouldn't

Post by fth0 »

Detzi wrote: am probably missing something obvious, has someone a clue for me?
The output of df -H shows that you've probably created a logical volume of 106G ("/dev/mapper/ubuntu--vg-ubuntu--lv") when installing the guest OS, which is used as the root file system ("/") and currently has ~48G free, so what would you expect? ;)

mpack wrote:I'm no Linux expert but all I'm seeing there is tmpfs, which I believe is a ramdisk filesystem
Correct. Is it used for all folders whose contents can and will be thrown away at the next shutdown (e.g. /run, /dev/shm). Just not for the root file system (/) here.
Woody_98
Posts: 5
Joined: 13. Jun 2022, 15:07

Re: Disk space runs out but shouldn't

Post by Woody_98 »

I had the same thing, fixed by following the article below

https://packetpushers.net/ubuntu-extend ... lvm-space/
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Disk space runs out but shouldn't

Post by fth0 »

Thanks for the link, the article explains well how to solve the issue in Ubuntu.
Post Reply