Hi,
I hope someone can enlighten me in my scenario:
In Proxmox 7.0-14 I installed an Ubuntu Server 20.04.3 with Disk Space set to 50 GB. I thought initially that would be more than enough space. Got the server running very well for a month or so, however today I found out that the disk was almost full!
(I found a few implementations (Docker) that behave badly so I could adjust that.)
The point is however that I do not understand how much space I actually have.
When I do "df -h" I get
Filesystem Size Used Avail Use% Mounted on
udev 950M 0 950M 0% /dev
tmpfs 199M 3.3M 196M 2% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 24G 16G 6.9G 70% /
tmpfs 994M 0 994M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 994M 0 994M 0% /sys/fs/cgroup
/dev/loop1 56M 56M 0 100% /snap/core18/2246
/dev/loop2 62M 62M 0 100% /snap/core20/1169
/dev/loop0 56M 56M 0 100% /snap/core18/2128
/dev/loop3 68M 68M 0 100% /snap/lxd/21803
/dev/loop4 68M 68M 0 100% /snap/lxd/21835
/dev/loop6 33M 33M 0 100% /snap/snapd/13640
/dev/loop5 43M 43M 0 100% /snap/snapd/13831
/dev/sda2 976M 203M 707M 23% /boot
tmpfs 199M 0 199M 0% /run/user/1000
With lsblk I get:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 55.4M 1 loop /snap/core18/2128
loop1 7:1 0 55.5M 1 loop /snap/core18/2246
loop2 7:2 0 61.9M 1 loop /snap/core20/1169
loop3 7:3 0 67.2M 1 loop /snap/lxd/21803
loop4 7:4 0 67.2M 1 loop /snap/lxd/21835
loop5 7:5 0 42.2M 1 loop /snap/snapd/13831
loop6 7:6 0 32.5M 1 loop /snap/snapd/13640
sda 8:0 0 50G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 49G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 24.5G 0 lvm /
sr0 11:0 1 1024M 0 rom
In the installation process I used all defaults, but here the usable size for the main disk seems to be only 24 GB, just about half the size of my assigned 50 GB.
Can anyone explain to me why that is so? What am I missing here?
And more importantly: Give advice on strategy on how to set up storage. Let's say that I want to create another Ubuntu Server with 100 GB storage: Should I then assign 200 GB in order to actually having 100 GB when inspecting with "df -h"?
Anyone else having these questions or am I just missing some very obvious setting?
/Andy97
I hope someone can enlighten me in my scenario:
In Proxmox 7.0-14 I installed an Ubuntu Server 20.04.3 with Disk Space set to 50 GB. I thought initially that would be more than enough space. Got the server running very well for a month or so, however today I found out that the disk was almost full!
(I found a few implementations (Docker) that behave badly so I could adjust that.)
The point is however that I do not understand how much space I actually have.
When I do "df -h" I get
Filesystem Size Used Avail Use% Mounted on
udev 950M 0 950M 0% /dev
tmpfs 199M 3.3M 196M 2% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 24G 16G 6.9G 70% /
tmpfs 994M 0 994M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 994M 0 994M 0% /sys/fs/cgroup
/dev/loop1 56M 56M 0 100% /snap/core18/2246
/dev/loop2 62M 62M 0 100% /snap/core20/1169
/dev/loop0 56M 56M 0 100% /snap/core18/2128
/dev/loop3 68M 68M 0 100% /snap/lxd/21803
/dev/loop4 68M 68M 0 100% /snap/lxd/21835
/dev/loop6 33M 33M 0 100% /snap/snapd/13640
/dev/loop5 43M 43M 0 100% /snap/snapd/13831
/dev/sda2 976M 203M 707M 23% /boot
tmpfs 199M 0 199M 0% /run/user/1000
With lsblk I get:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 55.4M 1 loop /snap/core18/2128
loop1 7:1 0 55.5M 1 loop /snap/core18/2246
loop2 7:2 0 61.9M 1 loop /snap/core20/1169
loop3 7:3 0 67.2M 1 loop /snap/lxd/21803
loop4 7:4 0 67.2M 1 loop /snap/lxd/21835
loop5 7:5 0 42.2M 1 loop /snap/snapd/13831
loop6 7:6 0 32.5M 1 loop /snap/snapd/13640
sda 8:0 0 50G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 49G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 24.5G 0 lvm /
sr0 11:0 1 1024M 0 rom
In the installation process I used all defaults, but here the usable size for the main disk seems to be only 24 GB, just about half the size of my assigned 50 GB.
Can anyone explain to me why that is so? What am I missing here?
And more importantly: Give advice on strategy on how to set up storage. Let's say that I want to create another Ubuntu Server with 100 GB storage: Should I then assign 200 GB in order to actually having 100 GB when inspecting with "df -h"?
Anyone else having these questions or am I just missing some very obvious setting?
/Andy97