Richard,
That should work but you might want to see if something else is using
excess space in /var. See what the top directories in /var are using with:
du -s /var/*|sort -n
There may be dead emails in /var/spool/mqueue or /var/spool/clientmqueue
or similar cruft so this can be useful too:
du -s /var/spool/*|sort -n
Lastly, /var/lib/mysql, where databases are kept, can be a problem. On
one server I did something like your suggestion to move that directory
under /home.
Of course, you should make any changes in single-user mode to be sure
that the files are not being updated while you are moving stuff around.
Eric
On 4/2/13 7:02 AM, Richard Morgan wrote:
On my 5108R I'm seeing a fairly consistent problem where the log files
are growing and causing /var to run out of space - this stops mail for
send/receive and a few other things. It accelerates when there is a
security issue as the log files grow quite rapidly.
Can I move /var/log to the /home partition without breaking the server?
My idea is as follows, doing everything as root:
mkdir /home/log
cp -r /var/log/* /home/log
rm -fr /var/log
ln -s /home/log /var/log
Forgive me if this seems entirely stupid, but I have to do something
because every ten days or so I get calls/sms from clients saying:
"oo-er, moi email don't be working" (or something similar). All I
need to do is delete a few of the biggest log files and life resumes
as normal.
Maybe someone has a stronger solution or would care to comment on the
above. Will this survive a reboot?
Thanks for the help. Richard
_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx
_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx