Tobias Appel wrote:
Hi,
I still have trouble setting up DRBD v8. I'm not sure if it is related
to the OCF bug found by Marc Cousin. I think it has something to do with
my constraints not working properly.
I have one resource group which should start my services in the
following order: set IP adress, mount DRBD Filesystem, start webservices
and so on (the order in my CIB is currently mixed up and I can't seem to
change it via the GUI but I will work on that later, right now the
Filesystem does NOT need to be mounted for any of the other services but
later on it will need to be).
Then I have created my Master / Slave resource for DRBD which I could
not add to the group. Afaik a M/S resource can not be part of a group.
Now I need a constraint that the resource group runs on the same node
which is the DRBD master. I tried it with the setup found in Dr.
Schwartzkopffs book but I could not get it to work.
Maybe it does not work because I'm using the resource to mount the
filesystem inside the resource group? Do I need to have a single
resource for the filesystem and then add a 2nd order constraints to
start the group after the filesystem?
Right now it does not even mount the filesystem anymore - without any
constraints I at least got it working once (was a 50:50 chance,
depending which node is currently the master).
I have attached my current CIB.
Thanks in advance for your help,
Colocate and order the ms with the group, not a primitive within that group.
Read http://wiki.linux-ha.org/DRBD/HowTov2
Before you change anything: Backup your cib, shutdown the cluster and
start from scratch.
As in:
cibadmin -Ql > tmp.xml
drop the status section from tmp.xml
change the colocation and order to point to the group, not the fs.
do the following steps on all nodes:
/etc/init.d/heartbeat stop
rm -f /var/lib/heartbeat/crm/*
After you did that, start the cluster software (on all nodes obviously):
/etc/init.d/heartbeat start
Then reload your previously backed up tmp.xml with the changes outlined
above.
Regards
Dominik
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems