df -h shows incorrect disk space | pressku.com

Trending 4 months ago

I person a strategy pinch 1024 GB SSD. When I usage nan lsblk command, nan size of sda3 is 951.8 GB:

root@srv121:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63.9M 1 loop /snap/core20/2105 loop1 7:1 0 63.9M 1 loop /snap/core20/2182 loop2 7:2 0 87M 1 loop /snap/lxd/26975 loop3 7:3 0 87M 1 loop /snap/lxd/27037 loop4 7:4 0 40.9M 1 loop /snap/snapd/20290 loop5 7:5 0 40.4M 1 loop /snap/snapd/20671 sda 8:0 0 953.8G 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 2G 0 portion /boot └─sda3 8:3 0 951.8G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 100G 0 lvm /

But erstwhile I usage nan df -h command, nan maximum disposable size is 98 GB, which is allocated to /dev/mapper/ubuntu--vg-ubuntu--lv:

root@srv121:~# df -h Filesystem Size Used Avail Use% Mounted on tmpfs 3.2G 2.0M 3.2G 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv 98G 85G 7.9G 92% / tmpfs 16G 0 16G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda2 2.0G 251M 1.6G 14% /boot tmpfs 3.2G 244K 3.2G 1% /run/user/0

Question 1: Does this mean I tin only usage 98GB of nan 951.8GB of SSD space?

Question 2: How tin I usage nan full SSD space, i.e. 951.8 GB? Does this require reinstalling nan operating system? (definitely a bad point for me. Because I don't want nan server to beryllium down for a while).

More
close