<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi, all,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> I
just setup a 2 node clusters in 2 RHEL server(5.5 x86_64).<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> After
I setup and it looked fine. However, I found in /var/log/messages I found some
logs showed that it failed to append to corosync.log. I run the corosync as
root. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> e.g.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:14 property01-b crmd: [17332]: info:
do_state_transition: State transition S_TRANSITION_ENGINE -> S_IDLE [
input=I_TE_SUCCESS cause=C_FSA_INTERNAL origin=notify_crmd ]<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:14 property01-b crmd: Cannot append to
/var/log/cluster/corosync.log: Permission denied<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:14 property01-b crmd: [17332]: info:
do_state_transition: Starting PEngine Recheck Timer<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:14 property01-b crmd: Cannot append to
/var/log/cluster/corosync.log: Permission denied<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Below is corosync.conf and crm configure result.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Corosync.conf<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US># Please read the corosync.conf.5 manual page<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>compatibility: whitetank<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>totem {<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> version: 2<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> secauth: off<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> threads: 0<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> interface {<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
ringnumber: 0<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
bindnetaddr: 192.168.200.15<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
mcastaddr: 226.94.1.1<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> mcastport:
5405<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> }<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>}<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>logging {<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> fileline: off<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> to_stderr: no<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> to_logfile: yes<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> to_syslog: yes<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> logfile:
/var/log/cluster/corosync.log<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> debug: off<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> timestamp: on<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> logger_subsys {<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
subsys: AMF<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
debug: off<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> }<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>}<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>amf {<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US> mode: disabled<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>}<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>aisexec{<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>user: root<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>group: root<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>}<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>service{<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US># Load the Pacemaker Cluster Resource Manager<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>name: pacemaker<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>ver: 0<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>}<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Crm configure:<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>node property01-a<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>node property01-b<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>property $id="cib-bootstrap-options" \<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
cluster-infrastructure="openais" \<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>
expected-quorum-votes="2"<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Here is the /var/log/corosync/corosync.log permission info:<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>[root@property01-b corosync]# ls -l /var/log/cluster/<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>total 148<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>-rw-rw---- 1 root root 145285 Sep 17 00:39 corosync.log<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>From corosync.log<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Pcmk and corosync should able to write the log in corosync.log<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [pcmk ] info: pcmk_peer_update: MEMB:
property01-b 80259264<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [pcmk ] info:
send_member_notification: Sending membership update 72 to 2 children<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [pcmk ] info: update_member:
0x5275c50 Node 80259264 ((null)) born on: 72<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [TOTEM ] A processor joined or left the
membership and a new membership was formed.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [pcmk ] info: update_member:
0x527cec0 Node 63482048 (property01-a) born on: 72<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [pcmk ] info: update_member:
0x527cec0 Node 63482048 now known as property01-a (was: (null))<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:07 corosync [pcmk ] info: update_member: Node
property01-a now has process list: 00000000000000000000000000013312 (78610)<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:08 corosync [pcmk ] info: update_member: Node
property01-a now has 1 quorum votes (was 0)<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:08 corosync [pcmk ] info:
send_member_notification: Sending membership update 72 to 2 children<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Sep 17 00:39:08 corosync [MAIN ] Completed service
synchronization, ready to provide service.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>The cluster was just setup and the current configure is so simple,
but I can’t find out what did I do to cause this issue. Can anyone help
me to get rid of the permission issue? I have no clue to find out the cause.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:24.0pt;mso-para-margin-left:2.0gd'><span
lang=EN-US>Thank you very much.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Alister<o:p></o:p></span></p>
</div>
</body>
</html>