<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><font size="3">A bit more data on this problem: </font><span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; ">I was doing some maintenance and had to briefly disconnect storagequorum's connection to the STONITH network (ethernet cable #7 in this diagram):</span><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><a href="http://sources.xes-inc.com/downloads/storagecluster.png" class="hoverZoomLink">http://sources.xes-inc.com/downloads/storagecluster.png</a></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><span style="font-size: 12pt; ">Since corosync has two rings (and is in active mode), this should cause no disruption to the cluster. However, as soon as I disconnected cable #7, corosync on storage0 died (corosync was already stopped on storage1), which caused pacemaker on storage0 to also shutdown. I was not able to obtain a coredump this time as apport is still running on storage0. </span></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; ">What else can I do to debug this problem? Or, should I just try to downgrade to corosync 1.4.2 (the version available in the Ubuntu repositories)?</div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; ">Thanks,</div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; ">Andrew<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Andrew Martin" <amartin@xes-inc.com><br><b>To: </b>"Angus Salkeld" <asalkeld@redhat.com><br><b>Cc: </b>discuss@corosync.org, pacemaker@oss.clusterlabs.org<br><b>Sent: </b>Tuesday, November 6, 2012 2:01:17 PM<br><b>Subject: </b>Re: [corosync] [Pacemaker] Corosync 2.1.0 dies on both nodes in cluster<br><br><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 12pt; color: #000000"><font size="3">Hi Angus,</font><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; ">I recompiled corosync with the changes you suggested in exec/main.c to generate fdata when SIGBUS is triggered. Here 's the corresponding coredump and fdata files:</div><div><a href="http://sources.xes-inc.com/downloads/core.13027" target="_blank">http://sources.xes-inc.com/downloads/core.13027</a><br><a href="http://sources.xes-inc.com/downloads/fdata.20121106" target="_blank">http://sources.xes-inc.com/downloads/fdata.20121106</a></div><div><br></div><div><div>(gdb) thread apply all bt</div><div><br></div><div>Thread 1 (Thread 0x7ffff7fec700 (LWP 13027)):</div><div>#0 0x00007ffff775bda3 in qb_rb_chunk_alloc () from /usr/lib/libqb.so.0</div><div>#1 0x00007ffff77656b9 in ?? () from /usr/lib/libqb.so.0</div><div>#2 0x00007ffff77637ba in qb_log_real_va_ () from /usr/lib/libqb.so.0</div><div>#3 0x0000555555571700 in ?? ()</div><div>#4 0x00007ffff7bc7df6 in ?? () from /usr/lib/libtotem_pg.so.5</div><div>#5 0x00007ffff7bc1a6d in rrp_deliver_fn () from /usr/lib/libtotem_pg.so.5</div><div>#6 0x00007ffff7bbc8e2 in ?? () from /usr/lib/libtotem_pg.so.5</div><div>#7 0x00007ffff775d46f in ?? () from /usr/lib/libqb.so.0</div><div>#8 0x00007ffff775cfe7 in qb_loop_run () from /usr/lib/libqb.so.0</div><div>#9 0x0000555555560945 in main ()</div></div><div><br></div><div><br></div><div>I've also been doing some hardware tests to rule it out as the cause of this problem: mcelog has found no problems and memtest finds the memory to be healthy as well.</div><div><br></div><div>Thanks,</div><div><br></div><div>Andrew<br><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; "><div style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 12pt; font-weight: normal; font-style: normal; text-decoration: none; "><b>From: </b>"Angus Salkeld" <asalkeld@redhat.com><br><b>To: </b>pacemaker@oss.clusterlabs.org, discuss@corosync.org<br><b>Sent: </b>Friday, November 2, 2012 8:18:51 PM<br><b>Subject: </b>Re: [corosync] [Pacemaker] Corosync 2.1.0 dies on both nodes in cluster<br><br>On 02/11/12 13:07 -0500, Andrew Martin wrote:<br>>Hi Angus,<br>><br>><br>>Corosync died again while using libqb 0.14.3. Here is the coredump from today:<br>>http://sources.xes-inc.com/downloads/corosync.nov2.coredump<br>><br>><br>><br>># corosync -f<br>>notice [MAIN ] Corosync Cluster Engine ('2.1.0'): started and ready to provide service.<br>>info [MAIN ] Corosync built-in features: pie relro bindnow<br>>Bus error (core dumped)<br>><br>><br>>Here's the log: http://pastebin.com/bUfiB3T3<br>><br>><br>>Did your analysis of the core dump reveal anything?<br>><br><br>I can't get any symbols out of these coredumps. Can you try get a backtrace?<br><br>><br>>Is there a way for me to make it generate fdata with a bus error, or how else can I gather additional information to help debug this?<br>><br><br>if you look in exec/main.c and look for SIGSEGV you will see how the mechanism<br>for fdata works. Just and a handler for SIGBUS and hook it up. Then you should<br>be able to get the fdata for both.<br><br>I'd rather be able to get a backtrace if possible.<br><br>-Angus<br><br>><br>>Thanks,<br>><br>><br>>Andrew<br>><br>>----- Original Message -----<br>><br>>From: "Angus Salkeld" <asalkeld@redhat.com><br>>To: pacemaker@oss.clusterlabs.org, discuss@corosync.org<br>>Sent: Thursday, November 1, 2012 5:47:16 PM<br>>Subject: Re: [corosync] [Pacemaker] Corosync 2.1.0 dies on both nodes in cluster<br>><br>>On 01/11/12 17:27 -0500, Andrew Martin wrote:<br>>>Hi Angus,<br>>><br>>><br>>>I'll try upgrading to the latest libqb tomorrow and see if I can reproduce this behavior with it. I was able to get a coredump by running corosync manually in the foreground (corosync -f):<br>>>http://sources.xes-inc.com/downloads/corosync.coredump<br>><br>>Thanks, looking...<br>><br>>><br>>><br>>>There still isn't anything added to /var/lib/corosync however. What do I need to do to enable the fdata file to be created?<br>><br>>Well if it crashes with SIGSEGV it will generate it automatically.<br>>(I see you are getting a bus error) - :(.<br>><br>>-A<br>><br>>><br>>><br>>>Thanks,<br>>><br>>>Andrew<br>>><br>>>----- Original Message -----<br>>><br>>>From: "Angus Salkeld" <asalkeld@redhat.com><br>>>To: pacemaker@oss.clusterlabs.org, discuss@corosync.org<br>>>Sent: Thursday, November 1, 2012 5:11:23 PM<br>>>Subject: Re: [corosync] [Pacemaker] Corosync 2.1.0 dies on both nodes in cluster<br>>><br>>>On 01/11/12 14:32 -0500, Andrew Martin wrote:<br>>>>Hi Honza,<br>>>><br>>>><br>>>>Thanks for the help. I enabled core dumps in /etc/security/limits.conf but didn't have a chance to reboot and apply the changes so I don't have a core dump this time. Do core dumps need to be enabled for the fdata-DATETIME-PID file to be generated? right now all that is in /var/lib/corosync are the ringid_XXX files. Do I need to set something explicitly in the corosync config to enable this logging?<br>>>><br>>>><br>>>>I did find find something else interesting with libqb this time. I compiled libqb 0.14.2 for use with the cluster. This time when corosync died I noticed the following in dmesg:<br>>>>Nov 1 13:21:01 storage1 kernel: [31036.617236] corosync[13305] trap divide error ip:7f657a52e517 sp:7fffd5068858 error:0 in libqb.so.0.14.2[7f657a525000+1f000]<br>>>>This error was only present for one of the many other times corosync has died.<br>>>><br>>>><br>>>>I see that there is a newer version of libqb (0.14.3) out, but didn't see a fix for this particular bug. Could this libqb problem be related to the corosync to hang up? Here's the corresponding corosync log file (next time I should have a core dump as well):<br>>>>http://pastebin.com/5FLKg7We<br>>><br>>>Hi Andrew<br>>><br>>>I can't see much wrong with the log either. If you could run with the latest<br>>>(libqb-0.14.3) and post a backtrace if it still happens, that would be great.<br>>><br>>>Thanks<br>>>Angus<br>>><br>>>><br>>>><br>>>>Thanks,<br>>>><br>>>><br>>>>Andrew<br>>>><br>>>>----- Original Message -----<br>>>><br>>>>From: "Jan Friesse" <jfriesse@redhat.com><br>>>>To: "Andrew Martin" <amartin@xes-inc.com><br>>>>Cc: discuss@corosync.org, "The Pacemaker cluster resource manager" <pacemaker@oss.clusterlabs.org><br>>>>Sent: Thursday, November 1, 2012 7:55:52 AM<br>>>>Subject: Re: [corosync] Corosync 2.1.0 dies on both nodes in cluster<br>>>><br>>>>Ansdrew,<br>>>>I was not able to find anything interesting (from corosync point of<br>>>>view) in configuration/logs (corosync related).<br>>>><br>>>>What would be helpful:<br>>>>- if corosync died, there should be<br>>>>/var/lib/corosync/fdata-DATETTIME-PID of dead corosync. Can you please<br>>>>xz them and store somewhere (they are quiet large but well compressible).<br>>>>- If you are able to reproduce problem (what seems like you are), can<br>>>>you please allow generating of coredumps and store somewhere backtrace<br>>>>of coredump? (coredumps are stored in /var/lib/corosync as core.PID, and<br>>>>way to obtain coredump is gdb corosync /var/lib/corosync/core.pid, and<br>>>>here thread apply all bt). If you are running distribution with ABRT<br>>>>support, you can also use ABRT to generate report.<br>>>><br>>>>Regards,<br>>>>Honza<br>>>><br>>>>Andrew Martin napsal(a):<br>>>>> Corosync died an additional 3 times during the night on storage1. I wrote a daemon to attempt and start it as soon as it fails, so only one of those times resulted in a STONITH of storage1.<br>>>>><br>>>>> I enabled debug in the corosync config, so I was able to capture a period when corosync died with debug output:<br>>>>> http://pastebin.com/eAmJSmsQ<br>>>>> In this example, Pacemaker finishes shutting down by Nov 01 05:53:02. For reference, here is my Pacemaker configuration:<br>>>>> http://pastebin.com/DFL3hNvz<br>>>>><br>>>>> It seems that an extra node, 16777343 "localhost" has been added to the cluster after storage1 was STONTIHed (must be the localhost interface on storage1). Is there anyway to prevent this?<br>>>>><br>>>>> Does this help to determine why corosync is dying, and what I can do to fix it?<br>>>>><br>>>>> Thanks,<br>>>>><br>>>>> Andrew<br>>>>><br>>>>> ----- Original Message -----<br>>>>><br>>>>> From: "Andrew Martin" <amartin@xes-inc.com><br>>>>> To: discuss@corosync.org<br>>>>> Sent: Thursday, November 1, 2012 12:11:35 AM<br>>>>> Subject: [corosync] Corosync 2.1.0 dies on both nodes in cluster<br>>>>><br>>>>><br>>>>> Hello,<br>>>>><br>>>>> I recently configured a 3-node fileserver cluster by building Corosync 2.1.0 and Pacemaker 1.1.8 from source. All of the nodes are running Ubuntu 12.04 amd64. Two of the nodes (storage0 and storage1) are "real" nodes where the resources run (a DRBD disk, filesystem mount, and samba/nfs daemons), while the third node (storagequorum) is in standby mode and acts as a quorum node for the cluster. Today I discovered that corosync died on both storage0 and storage1 at the same time. Since corosync died, pacemaker shut down as well on both nodes. Because the cluster no longer had quorum (and the no-quorum-policy="freeze"), storagequorum was unable to STONITH either node and just left the resources frozen where they were running, on storage0. I cannot find any log information to determine why corosync crashed, and this is a disturbing problem as the cluster and its messaging layer must be stable. Below is my corosync configuration file as well as the corosync log file from each!<br> !<br>>n!<br>>>o!<br>>>>de during<br>>>>this period.<br>>>>><br>>>>> corosync.conf:<br>>>>> http://pastebin.com/vWQDVmg8<br>>>>> Note that I have two redundant rings. On one of them, I specify the IP address (in this example 10.10.10.7) so that it binds to the correct interface (since potentially in the future those machines may have two interfaces on the same subnet).<br>>>>><br>>>>> corosync.log from storage0:<br>>>>> http://pastebin.com/HK8KYDDQ<br>>>>><br>>>>> corosync.log from storage1:<br>>>>> http://pastebin.com/sDWkcPUz<br>>>>><br>>>>> corosync.log from storagequorum (the DC during this period):<br>>>>> http://pastebin.com/uENQ5fnf<br>>>>><br>>>>> Issuing service corosync start && service pacemaker start on storage0 and storage1 resolved the problem and allowed the nodes to successfully reconnect to the cluster. What other information can I provide to help diagnose this problem and prevent it from recurring?<br>>>>><br>>>>> Thanks,<br>>>>><br>>>>> Andrew Martin<br>>>>><br>>>>> _______________________________________________<br>>>>> discuss mailing list<br>>>>> discuss@corosync.org<br>>>>> http://lists.corosync.org/mailman/listinfo/discuss<br>>>>><br>>>>><br>>>>><br>>>>><br>>>>><br>>>>> _______________________________________________<br>>>>> discuss mailing list<br>>>>> discuss@corosync.org<br>>>>> http://lists.corosync.org/mailman/listinfo/discuss<br>>>><br>>>><br>>><br>>>>_______________________________________________<br>>>>Pacemaker mailing list: Pacemaker@oss.clusterlabs.org<br>>>>http://oss.clusterlabs.org/mailman/listinfo/pacemaker<br>>>><br>>>>Project Home: http://www.clusterlabs.org<br>>>>Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>>>>Bugs: http://bugs.clusterlabs.org<br>>><br>>><br>>>_______________________________________________<br>>>discuss mailing list<br>>>discuss@corosync.org<br>>>http://lists.corosync.org/mailman/listinfo/discuss<br>>><br>><br>>_______________________________________________<br>>discuss mailing list<br>>discuss@corosync.org<br>>http://lists.corosync.org/mailman/listinfo/discuss<br>><br><br>_______________________________________________<br>discuss mailing list<br>discuss@corosync.org<br>http://lists.corosync.org/mailman/listinfo/discuss<br></div><br></div></div><br>_______________________________________________<br>discuss mailing list<br>discuss@corosync.org<br>http://lists.corosync.org/mailman/listinfo/discuss<br></div><br></div><div id="hzImg" style="border: 1px solid rgb(227, 227, 227); line-height: 0; overflow: hidden; padding: 2px; margin: 0px; position: absolute; z-index: 2147483647; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-image: -webkit-gradient(linear, 0% 0%, 100% 100%, from(rgb(255, 255, 255)), color-stop(0.5, rgb(255, 255, 255)), to(rgb(237, 237, 237))); -webkit-box-shadow: rgba(0, 0, 0, 0.458824) 3px 3px 6px; opacity: 1; top: 0px; left: 197px; cursor: none; display: none; background-position: initial initial; background-repeat: initial initial; "></div></div></body></html>