기기에 남은 공간이 없습니다.

기기에 남은 공간이 없습니다.

안녕하세요, 저는 데비안 머신에서 데비안 컨테이너를 사용하여 openVZ를 실행하고 있지만 이제 남은 공간이 없기 때문에 아파치를 실행할 수 없습니다.

어느 파티션이 꽉 찼는지 확인했는데 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를 통해 답을 찾은 것 같습니다. 크론이 삭제된 파일을 저장하고 있습니다. 다음과 같이 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 {} \;

관련 정보