Originally Posted by EricTRA
Hello and welcome to LinuxQuestions,
If I understand you correctly you're looking for a Cluster Resource Manager. Did you only setup DRBD or other stuff too? Have a look at http://www.clusterlabs.org/
. I've used Corosync in combination with Pacemaker and there very easy to setup and administer. No need for scripting, just configure everything like you want it using the command line.
Looking forward to your participation in the forums. Have fun with Linux.
dear erictra thanks your reply, i've setup drbd and pacemaker and drbd is doing it's work as well. but when you try to see your resource from another node you should make it primary your self and make another one secondary. if else /dev/drbd0 remains readonly and you can't mount it.
well suppose my primary link is failed how secondary node should know about fail and mount it self?
and my real question is how to tell it to sync some directory?
in pacemaker i used this :
primitive drbd_disk ocf:linbit:drbd \
params drbd_resource="disk0" \
op monitor interval="15s"
primitive fs_drbd ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/disk0" directory="/mnt" fstype="ext3"
ms ms_drbd drbd_disk \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation mnt_on_master inf: fs_drbd ms_drbd:Master
order mount_after_drbd inf: ms_drbd: promote fs_drbd:start
directory in that configuration should indicate synced directory, isn't so? but nothing get synced with this configuration!