Misconfigured server…
Martsa 19th, 2007 at 1:45 am (System)
I’ve just finished troubleshooting what’s wrong with one of my server. Suddenly mysql stopped and couldn’t run at all. The error “Could not start mysql” remained. I tried even to reinstall mysql and still the same.
I tried then to back files up so that I can reinstall if ever. But even there I failed. I saw then that the problem was not only mysql. At the end, I managed to see that my problem is disk space. The root partition of the disk (/) is full and it cannot receive anything any more. It seems that the disk (which has 250Go) was not well partitioned during install time. It has only 3Go for root and the rest for /home. What I have to do is then to reinstall the server and fix that partition… but to make it work now, I removed the log files in /var/log. It gives me 35% free so that I can back up and reinstall.
Martsa 19, 2007 at 5:31 pm
Try to create symbolic link for some directories under your / partition (like /temp, /var, ….). See ifg forum for further explanation on how to do this.
Martsa 19, 2007 at 7:48 pm
You can use gparted (or partman) if you wanna resize partitions, that will spare you unnecessary pains reinstalling. However, I strongly recommend to make proper backups if you wanna move some partitions. Some people think that putting the swap in between the /root and /home will give speed improvement but it’s really tiny and I don’t think it’s really worth losing your data and reinstalling again, if it’s messed up.
Using a symbolic link is the easiest way for the time being but having the /tmp, /var, /boot (eventually on a single / separated from the /home) on a different partition is really helpful whenever you upgrade the server. In anycase, you have to rebuild your partitions…
Also, you can use cron to clear regularly your /var/log and anything that keeps filling up, say every month, make a small backup and delete the older ones just to give you a little bit more spaces.