Actually I remarked out the pre-rotate commands and ran the command below and the logs rotated successfully. I will let this stay this way to see if it rotates again.<br><br>Chris<br><br><br><div class="gmail_quote">On Thu, Aug 13, 2009 at 3:25 PM, Preston Hagar <span dir="ltr"><<a href="mailto:prestonh@gmail.com">prestonh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, Aug 13, 2009 at 1:37 PM, Chris Larson<<a href="mailto:chrislfxp@gmail.com">chrislfxp@gmail.com</a>> wrote:<br>

> I am running squid on a Ubuntu system and had to move my squid logs to<br>
> another drive which is mounted at /var/log/squid. The logs are not rotating<br>
> and the access.log and store.log are filling up the disk.<br>
><br>
<br>
</div>Logrotate will not rotate logs from one device (drive) to another.  To<br>
see the error, try running<br>
<br>
logrotate -f /etc/logrotate.d/squid<br>
<br>
You should get an error that says something about different devices.<br>
<br>
The only solution I have ever figured out to get around this is to<br>
first have logrotate rotate the logs to a tmp directory somewhere on<br>
the same device, then either have cron, or a logrotate postrotate<br>
script move the rotated scripts from the tmp directory to the<br>
directory on the other device using mv.<br>
<br>
Hope this helps out.  Try the logrotate command I suggested above and<br>
if it gives a different error (than the different devices one) post it<br>
to the list and hopefully someone can figure out any other issues.<br>
<br>
<br>
Preston<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>