
我的 /var/log 磁碟使用率已滿 (100%),並刪除了一些檔案以增加空間。這是使用預設選項安裝的 ext4 分割區。
但是,當我 df -h 時我得到:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-log 945M 885M 0 100% /var/log
為什麼報告 885M 是 945M 的 100%?
答案1
保留空間不包含在可用百分比中。運行dumpe2fs -h /dev/mapper/vg00-log
以查看保留空間(“保留區塊計數”)。tune2fs -m
會改變這個計數。
另請參閱,例如,https://askubuntu.com/questions/79981/df-h-shows-in Correct-free-space