[Pacemaker] Using Pacemaker/Corosync to manage 2 node SHARED-DISK Cluster
Phil Hunt
Phil.Hunt at orionhealth.com
Sat Apr 9 02:13:01 CET 2011
Hi
I have been playing with DRBD, thats cool
But I have 2 VM RHEL linux boxes. They each have a boot device (20g) and a shared ISCSI 200G volume. I've played with ucarp and have the commands to make available/mount the disk and dismount the shared disk using vgchange/mount/umount, etc.
But decided to user packemaker/heartbeat, since it is more robust
Got corosync running, vip running.
But I do not see how to make the Pacemaker section mount or dismount a STANDARD EXT3
disk shared. I've seen tons of tutorials for drbd and clustered FS but none showing a simple mount of a disk as a resouce on a node becoming master, or how to dismount it.
Does pacemaker run a script if requested? Or is the mount/dismount all hard-coded.
I know I'm missing something simple here. I built the following, but the colocation and order commands error out as syntax error:
node prodmessage1v
node prodmessage2v
primitive p_fs_data ocf:heartbeat:Filesystem \
params device="/dev/mapper/vg2-dbdata" directory="/data" fstype="ext3"
primitive p_ip ocf:heartbeat:IPaddr2 \
params ip="10.64.114.80" cidr_netmask="32" \
op monitor interval="30s"
primitive p_ping ocf:pacemaker:ping \
params name="p_ping" host_list="10.64.114.47 10.64.114.48 10.64.114.4" \
op monitor interval="15s" timeout="30s"
primitive p_rhap lsb:rhapsody \
op monitor interval="60s" timeout="120s"
group g_cluster_services p_ip p_fs_data p_rhap
clone c_ping p_ping \
meta globally-unique="false"
location loc_ping g_cluster_services \
rule $id="loc_ping-rule" -inf: not_defined p_ping or p_ping lte 0
colocation colo_mnt_on_master inf: g_cluster_services
order ord_mount_after_drbd inf: g_cluster_services:start
property $id="cib-bootstrap-options" \
dc-version="1.0.10-da7075976b5ff0bee71074385f8fd02f296ec8a3" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
PHIL HUNT AMS Consultant
phil.hunt at orionhealth.com
P: +1 857 488 4749
M: +1 508 654 7371
S: philhu0724
www.orionhealth.com
More information about the Pacemaker
mailing list