/usr nearly full, move and symlink check/ effect on Apache?
Linux server w/cpanel (prefer to keep awstats, webalizer)I've determined that the directory filling up quickly is /usr/local/apache/domlogs....so I'm going to move domlogs to a larger partition and create a symlink. Here's what I plan; questions follow.
1. Copy /domlogs to larger partition, /home
Syntax from /usr/local/apache: cp -rpf domlogs /home
2. After verifying content has been copied (I'll just compare size in GB), remove the original:
rm -rf /usr/local/apache/domlogs
That completes the move.
3. Create symlink: ln -s /usr/local/apache/domlogs
Should I restart Apache afterwards? What happens when Apache can't find a reference since the original has to be removed before the s link is created?
Thanks