Web Hosting Talk







View Full Version : Moving /var to /home/var


nozol
11-02-2001, 08:28 AM
Hi,

I have a Cobalt RaQ4. The /var partition gets very full because of emails stored on this partition. I already moved the /var/lib/mysql to /home/mysql to free space, but still gets very full. I also installed the update of the cobalt logs to be stored on the /home partition.

My question is, can I just move the whole /var directory to /home/var then creating a symlink from /var -> /home/var, without running into problems?

Did someone try to do this?

If it is not possible, can I just make the emails to be stored on the /home partition?

Your help is very much appreciated.

Thanks and regards,

Ahmed

huck
11-02-2001, 09:51 AM
This should not be a problem. However, you need to shutdown anything that logs to /var before you start moving files and make a temp backup of /var. There are a lot of things that write to /var so you need to really scrutinize your process list before moving things ... all web, email, ftp, syslog, and other servers should be shutdown. Installing lsof can help you look to see what files are open.

MaB
11-02-2001, 03:13 PM
Cobalt doesnt always have the best partitioning :) I dont know if its safe to move your whole /var partition, there may be important stuff (like you CANT move your whole /etc), but I suggest moving then linking

/var/mysql
/var/spool
/var/log

and that will decrease your /var usage a TON and make it goto your large /home partition :)

nozol
11-04-2001, 01:32 PM
Thank you so much MaB and huck. I'll try it and see what happens.

Regards,

Ahmed