Ubuntu Server 20.04 显示错误的存储大小

Ubuntu Server 20.04 显示错误的存储大小

当我使用时df -h --total,它显示总共 131 GB,尽管硬盘大小为 256 GB。我在设置服务器时犯了错误吗?我可以增加这个大小吗?

lsblk输出:

NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0                       7:0    0  55.4M  1 loop /snap/core18/2128
loop1                       7:1    0  70.3M  1 loop /snap/lxd/21029
loop2                       7:2    0  32.3M  1 loop /snap/snapd/12704
loop3                       7:3    0  32.3M  1 loop /snap/snapd/13170
loop4                       7:4    0  61.8M  1 loop /snap/core20/1081
loop5                       7:5    0  67.3M  1 loop /snap/lxd/21545
sda                         8:0    0 238.5G  0 disk 
├─sda1                      8:1    0   512M  0 part /boot/efi
├─sda2                      8:2    0     1G  0 part /boot
└─sda3                      8:3    0   237G  0 part 
  └─ubuntu--vg-ubuntu--lv 253:0    0 118.5G  0 lvm  /

df -h --total输出:

Filesystem                         Size  Used Avail Use% Mounted on
udev                               3.8G     0  3.8G   0% /dev
tmpfs                              783M  1.4M  781M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  117G  6.5G  104G   6% /
tmpfs                              3.9G     0  3.9G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop0                          56M   56M     0 100% /snap/core18/2128
/dev/loop1                          71M   71M     0 100% /snap/lxd/21029
/dev/sda2                          976M  107M  802M  12% /boot
/dev/loop2                          33M   33M     0 100% /snap/snapd/12704
/dev/sda1                          511M  5.3M  506M   2% /boot/efi
/dev/loop3                          33M   33M     0 100% /snap/snapd/13170
/dev/loop4                          62M   62M     0 100% /snap/core20/1081
/dev/loop5                          68M   68M     0 100% /snap/lxd/21545
tmpfs                              783M     0  783M   0% /run/user/1000
total                              131G  7.0G  118G   6% -

相关内容