On Mon, Jan 25, 2010 at 08:56:52PM -0500, Carlos Eduardo Chiriboga Calderon wrote: > > > Hi all, > > I'm trying to configure a heartbeat cluster with 2 nodes and a drbd > filesystem (the cib.xml is attached to this message). > > The problem is that, when I try to move the resource from a node to > other, the filesystem resource try to mount before that the drbd > master_slave resource set the correct master node and the mount fail. > > > The heartbeat version that I'm using is 2.1.4 and the drbd version is 8.0.16
in your constraints, you need to _promote_ drbd before starting the Filesystem. But, do yourself a BIG favour. Use Pacemaker. Using drbd 8.3.7 would be strongly recommended, too. If you are scared by OpenAIS/Corosync, you can still use heartbeat as the infrastructure layer. But the management layer (CRM) is called Pacemaker, since over two years now. So unless you want to miss out on > 2 years development... as additional benefit, you get to use the CRM shell. I hear you say Why Pacemaker? I thought I want to use Heartbeat? well, it is "the same thing". Only two years later. http://clusterlabs.org/wiki/FAQ#Organizational The Heartbeat / Linux-HA Home Page: http://www.linux-ha.org/wiki/Main_Page The Heartbeat User's Guide (work in progress): http://www.linux-ha.org/wiki/Documentation The DRBD User's Guide: http://www.drbd.org/docs/applications/ See "Integrating DRBD with Pacemaker". Just realize that you get to choose the infrastructure stack, use either Heartbeat (3.0.2 release is "imminent") or OpenAIS/Corosync. The "Integrating DRBD with Heartbeat" chapter is meant for _legacy_ Heartbeat (i.e. 2.1.4, which you currently are trying to use. But, please, rather use Pacemaker!) Pacemaker User's Guide, HowTo and Examples: http://www.clusterlabs.org/wiki/Documentation The non-xml CRM shell for xml-o-phobic admins, aka Pacemaker (command line, or "curses") User Interface, including help, tab completion and more: http://www.clusterlabs.org/doc/crm_cli.html And if you are more the GUI type, there is also the DRBD-MC, which is the platform independend Pacemaker Cluster GUI and DRBD Management Console, integrated VNC viewer for Pacemaker controlled VMs. The various Wizards should get you up and running in no time. http://www.drbd.org/mc/management-console/ -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
