之前有一個.db文件將/mnt占滿了,用rm刪除后,發現仍然無法使用剩余空間!重啟機器后仍然無法使用!
db是sqlite3。
命令結果如下:
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 250.4M 44.0K 250.3M 0% /tmp
/dev/sda1 240.8M 240.8M 24.0K 100% /mnt
# du -h /mnt
24.0K /mnt/etc/mgr
76.0K /mnt/etc
76.0K /mnt/log/stats/dev
340.0K /mnt/log/stats/apps
512.0K /mnt/log/stats
344.0K /mnt/log/log
4.0K /mnt/log/.coredump
56.0K /mnt/log/log_bak
920.0K /mnt/log
84.4M /mnt
# lsof | grep deleted
apache2 813 root 11w REG 0,1 0 4724 /var/run/apache2/ssl_mutex (deleted)
apache2 815 www-data 11w REG 0,1 0 4724 /var/run/apache2/ssl_mutex (deleted)
apache2 3887 www-data 11w REG 0,1 0 4724 /var/run/apache2/ssl_mutex (deleted)
apache2 3890 www-data 11w REG 0,1 0 4724 /var/run/apache2/ssl_mutex (deleted)
apache2 3893 www-data 11w REG 0,1 0 4724 /var/run/apache2/ssl_mutex (deleted)
apache2 20958 www-data 11w REG 0,1 0 4724 /var/run/apache2/ssl_mutex (deleted)
6 个解决方案
還是不行呢,之前試過,apache2 服務重啟,
apache2 -k stop
apache2 -k start
還是這樣
根據df和du顯示結果來看,磁盤空間已經釋放。
你的問題其實肯怕是sqlite為啥不能用新的剩余空間。