Re: How does log option work in RHEL5 cluster

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

 



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@xxxxxxxxxx> 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@red utils]# ccs_test connect
Connect successful.
Connection descriptor = 5939640
[root@red utils]# ccs_test get 5939640 /cluster/rm/@log_facility
Get successful.
Value = <local4>
[root@red utils]# ccs_test get 5939640 /cluster/rm/@log_level
Get successful.
Value = <6>
[root@red utils]# grep rgmanager /etc/syslog.conf
local4.* /var/log/rgmanager
[root@red utils]# cp /dev/null /var/log/rgmanager
cp: overwrite `/var/log/rgmanager'? y
[root@red utils]# clulog -s 1 'alert_log_test'
[root@red utils]# clulog -s 5 'notice_log_test'
[root@red utils]# clulog -s 6 'info_log_test'
[root@red utils]# clulog -s 7 'debug_log_test'
[root@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@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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux