I have Ubuntu 12.04 which serves my web application (20 MB) on apache httpd. Here is my partitions table:
$ sudo parted -l Disk /dev/sda: 500GB Partition Table: gpt Number|Start|End|Size|File System|Name|Flag 1|17.4K|20.0MB|20.0MB|fat16| |boot 2|20.0MB|489GB|489GB|ext4 3|489GB|500GB|10.6GB|linux-swap(v1)
A few days ago I upgrade it to 12.10. Then copied one folder (30 GB) to www folder. Suddenly the server hang and I got a Low Graphics Mode message. I removed the huge folder and restarted the computer but still got the same message and
No Space Left on Device
$ sudo du -h /var --max-depth=1 4.0K /var/tmp 235M /var/www 444G /var/log
So, the /var/log is huge.
$ sudo apt-get autoclean;sudo apt-get autoremove **Error! No space left on device**
I did delete the archives logs but nothing changes
the largest file is
/var/log/cups and when I list its files, I got:
-rw-r----- 1 root adm 758 DEC 30 07:37 access_log.1.gz .. **-rw-r----- 1 root adm 444G JAN 5 08:09 error_log** -rw-r----- 1 root adm 245 DEC 29 13:17 error_log.1.gz
$ sudo service cups stop sudo: unable to write to /var/lib/sudo/username/tty2: No space left on device
When I unplugged the computer then replugged it. it works fine and problem gone. The
/var size is completely normal.
I'm afraid of facing it again. I think my main problem is because of the partitions. The
/root are together and not separated. Do I have to create a new partition for
/home? Anyone has another idea how to avoid the disk from filling up again?