Re: rsyslog does not log on a separate partition/FS mounted on /var/log/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 2014-08-06, John R. Dennison <jrd@xxxxxxxxxxxx> wrote:
>
> On Wed, Aug 06, 2014 at 04:50:41PM +0000, Tony Mountifield wrote:
>> Probably rsyslog is being started before /var/log is mounted, and so it
>> is opening files within /var/log on the root device.
>
> rsyslog should start after local mounts are finished.
>
> I suspect it's selinux; /var/log should have a "var_log_t" context and I
> suspect it doesn't.

But would that explain why, when the OP umounts /var/log, the latest
logs have been written to /var/log/messages on the / filesystem?

It certainly can't hurt to check both cases: make sure rsyslog is
starting after the proper filesystem with /var/log is mounted, and check
the selinux contexts to make sure they're correct.

--keith


-- 
kkeller@xxxxxxxxxxxxxxxxxxxxxxxxxx


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux