[Linux-cluster] How does log option work in RHEL5 cluster

siman hew simanhew at gmail.com
Wed Jul 25 16:59:24 UTC 2007


It "works", because you did not change the default log level.
How about change the log level, like me set it to 3, then run the exactly
same commands, see what it will happen.

Thanks,

Siman

On 7/25/07, Lon Hohberger <lhh at redhat.com> wrote:
>
> On Tue, Jul 24, 2007 at 03:13:20PM -0400, siman hew wrote:
> >
> Seems to work for me?  I have log_facility set, though. (though that
> shouldn't matter).
>
> Debug output didn't happen.
>
> -- Lon
>
> [root at red utils]# ccs_test connect
> Connect successful.
> Connection descriptor = 5939640
> [root at red utils]# ccs_test get 5939640 /cluster/rm/@log_facility
> Get successful.
> Value = <local4>
> [root at red utils]# ccs_test get 5939640 /cluster/rm/@log_level
> Get successful.
> Value = <6>
> [root at red utils]# grep rgmanager /etc/syslog.conf
> local4.* /var/log/rgmanager
> [root at red utils]# cp /dev/null /var/log/rgmanager
> cp: overwrite `/var/log/rgmanager'? y
> [root at red utils]# clulog -s 1 'alert_log_test'
> [root at red utils]# clulog -s 5 'notice_log_test'
> [root at red utils]# clulog -s 6 'info_log_test'
> [root at red utils]# clulog -s 7 'debug_log_test'
> [root at red utils]# cat /var/log/rgmanager
> Jul 25 10:45:42 red clulog[25281]: <alert> alert_log_test
> Jul 25 10:45:57 red clulog[25291]: <notice> notice_log_test
> Jul 25 10:46:03 red clulog[25296]: <info> info_log_test
> [root at red utils]# tail -3 /var/log/messages
> Jul 25 10:45:42 red clulog[25281]: <alert> alert_log_test
> Jul 25 10:45:57 red clulog[25291]: <notice> notice_log_test
> Jul 25 10:46:03 red clulog[25296]: <info> info_log_test
>
>
> --
> Lon Hohberger - Software Engineer - Red Hat, Inc.
>
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20070725/472a5df7/attachment.htm>


More information about the Linux-cluster mailing list