【TrueNAS】VM 磁盘空间不足

Posted by 西维蜀黍 on 2021-10-09, Last Modified on 2024-08-28

在进入Ubuntu调整之前,需要先在Pool中将该ZVol的可占用空间调大,我这里已经调到了200GB

Refer to https://swsmile.info/post/linux-not-enough-space/

如果碰到这个,选Fix:

$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               1.9G     0  1.9G   0% /dev
tmpfs                              394M  992K  393M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   96G   11G   82G  12% /
tmpfs                              2.0G     0  2.0G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda2                          976M  300M  609M  34% /boot
/dev/sda1                          511M  5.3M  506M   2% /boot/efi
/dev/loop1                          56M   56M     0 100% /snap/core18/2128
/dev/loop2                          62M   62M     0 100% /snap/core20/1081
/dev/loop0                          56M   56M     0 100% /snap/core18/2074
/dev/loop3                          62M   62M     0 100% /snap/core20/1169
/dev/loop4                          33M   33M     0 100% /snap/snapd/13170
/dev/loop5                          33M   33M     0 100% /snap/snapd/13270
/dev/loop6                          71M   71M     0 100% /snap/lxd/21029
/dev/loop7                          68M   68M     0 100% /snap/lxd/21545
tmpfs                              394M     0  394M   0% /run/user/1000

值得注意的是,当扩容到96GB后,该VM在TrueNAS Pool中空间占用为实际的空间占用(即12GB),而不是96GB。

Reference


TOC