你好,我正在我的 debian 机器上使用 debian 容器运行 openVZ,但现在我无法运行 apache,因为没有剩余空间。
我检查了df -h
哪些分区已满,这是一个输出:
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 4.8G 356K 4.8G 1% /run
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 12G 0 12G 0% /run/shm
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web3/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web4/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web5/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web6/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web8/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web10/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web11/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web12/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web13/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web2/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web14/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web15/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web16/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web17/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web18/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web19/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web21/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web22/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web23/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web25/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web26/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web27/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web28/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web29/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web30/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client1/web31/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client4/web32/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client4/web33/log
/dev/disk/by-uuid/a75ab882-5448-4448-9344-6a93161bc2e5 225G 223G 0 100% /var/www/clients/client4/web34/log
/dev/ploop19310p1 4.7G 1.2G 3.3G 27% /var/lib/vz/root/101
devtmpfs 1000M 0 1000M 0% /var/lib/vz/root/101/dev
tmpfs 1000M 0 1000M 0% /var/lib/vz/root/101/dev/shm
tmpfs 1000M 109M 892M 11% /var/lib/vz/root/101/run
tmpfs 5.0M 0 5.0M 0% /var/lib/vz/root/101/run/lock
tmpfs 1000M 0 1000M 0% /var/lib/vz/root/101/sys/fs/cgroup
tmpfs 1000M 0 1000M 0% /var/lib/vz/root/101/tmp
none 1000M 0 1000M 0% /var/lib/vz/root/101/run/shm
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102
devtmpfs 16G 0 16G 0% /var/lib/vz/root/102/dev
tmpfs 16G 0 16G 0% /var/lib/vz/root/102/dev/shm
tmpfs 16G 25M 16G 1% /var/lib/vz/root/102/run
tmpfs 5.0M 0 5.0M 0% /var/lib/vz/root/102/run/lock
tmpfs 16G 0 16G 0% /var/lib/vz/root/102/sys/fs/cgroup
tmpfs 16G 868K 16G 1% /var/lib/vz/root/102/tmp
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client4/web37/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web36/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web35/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client4/web34/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client4/web33/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client4/web32/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web31/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web30/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web29/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web28/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web27/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web26/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web25/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web23/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web22/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web21/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web19/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web18/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web17/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web15/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web16/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web14/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web13/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web12/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web11/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web10/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web8/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web6/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web5/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web4/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web3/log
/dev/ploop54675p1 221G 94G 118G 45% /var/lib/vz/root/102/var/www/clients/client1/web2/log
none 16G 0 16G 0% /var/lib/vz/root/102/run/shm
我不明白,为什么/dev/disk/by-uuid/
光盘已满,因为只有一个 error.log 文件,其大小为 0b...
您能给我一个建议,哪个磁盘或分区可以满吗?因为在虚拟机上我有 50% 的可用空间......
答案1
我无法评论我的声誉,但 Michal 似乎你已经通过 lsof 找到了答案。 Cron 正在保存一个已删除的文件。您可以使用 pid 杀死 cron,如下所示:
sudo kill -9 235668
否则你可以清空文件描述符,如下所示:
> /proc/235668/fd/5 " or "> /var/lib/vz/root/102/tmp/tmpfzr8ypz
答案2
使用以下命令查找最大的文件并确定它是否有用,否则 rm 它。您可以在命令中更改以下文件的大小。另外,为什么文件系统的输出会重复?
find / -xdev -size +100000 -exec ls -l {} \;