Não há espaço no dispositivo

4

Olá, estou executando o openVZ na minha máquina debian com contêineres do Debian e agora não consigo executar o apache, por falta de espaço.

Eu verifiquei df -h para descobrir quais partions estão cheias e aqui está uma saída:

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

Eu não entendo, porque /dev/disk/by-uuid/ disc estão cheios, porque existe apenas um arquivo error.log, que tem tamanho 0b ...

Você pode me dar um conselho, qual disco ou partição pode estar cheio? Porque na máquina virtual eu tenho 50% de espaço livre ...

    
por Michal 13.11.2016 / 15:49

2 respostas

2

Eu não sou capaz de aceitar a minha reputação, mas Michal parece que você já descobriu a resposta através do lsof. Cron está segurando um arquivo excluído. Você pode matar o cron com o pid como:

sudo kill -9 235668

senão você pode esvaziar o descritor de arquivo como:

> /proc/235668/fd/5 " or "> /var/lib/vz/root/102/tmp/tmpfzr8ypz
    
por 14.11.2016 / 14:12
0

Use o comando abaixo para encontrar o maior arquivo e determinar se é mais útil. Você pode alterar o tamanho dos arquivos abaixo no comando. Além disso, por que as saídas estão se repetindo para os sistemas de arquivos?

find / -xdev -size +100000 -exec ls -l {} \;
    
por 14.11.2016 / 09:21