<br><br>----- Reply message -----<br>От: "Vladislav Bogdanov" <bubble@hoster-ok.com><br>Кому: "The Pacemaker cluster resource manager" <pacemaker@oss.clusterlabs.org><br>Тема: [Pacemaker] How to prevent a node that joins the cluster after reboot from starting the resources.<br>Дата: пт, авг 26, 2011 11:21<br><br><br>25.08.2011 23:22, mark - pacemaker list wrote:<br>[snip]<br>> So, I disabled pacemaker from starting via the normal route and just<br>> added a line to /etc/rc.local that starts it, since that's the absolute<br>> last thing done at boot.  I didn't want to mess with the chkconfig<br>> settings in the init script and get bitten by this down the line<br>> somewhere after an update that replaced the init script.  Now libvirtd<br>> is there for pacemaker and things behave as expected, at least after<br>> three reboot tests in a row.<br><br>Pacemaker now (1.1) starts at level 99. That was discussed in ML.<br><br>> <br>> I suppose it may also work to make libvirtd a pacemaker resource, with<br>> an order constraint so it's started before any VMs are ever<br>> probed/started.  That'd take away easy/painless restarts of libvirtd,<br>> though.  I'll have to do some further digging to see what makes the most<br>> sense.<br><br>Please do not forget that libvirt may start guests by itself, even if<br>libvirtd is started by pacemaker. This is true for at least latest<br>libvirt releases - it starts all guests marked for autostart AND all<br>guests being started when libvirtd was last active (f.e. just before<br>node was fenced).<br>The only solution I found to prevent this is to delete all<br>/etc/libvirt/qemu and /var/.../libvirt files early during boot sequence.<br><br>Best,<br>Vladislav<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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker<br>