[DRBD-user] ocf::heartbeat:Filesystem with drbd

Gavin Henry gavin.henry at gmail.com
Sat Mar 19 19:14:29 CET 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi all,

I've been following the Cluster from Scratch PDF and have the
following, but it never switches over with I pause my VM to the other
VM or mount the filesystem even though "mount /dev/drbd1 /opt" works.

Please advise if this is the wrong list and whether I should be on the
pacemaker one?

Thanks.

P.S. I will be signing up for some training from LINBIT, but I thought
I could at least follow the PDF from Cluster Labs!!! :-)

/proc/drbd
version: 8.3.8 (api:88/proto:86-94)
GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by
mockbuild at builder10.centos.org, 2010-06-04 08:04:16

 1: cs:StandAlone ro:Primary/Unknown ds:UpToDate/Outdated   r----
    ns:0 nr:0 dw:4 dr:1413 al:1 bm:2 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:151552



drbd.conf
#
# please have a a look at the example configuration file in
# /usr/share/doc/drbd83/drbd.conf
#

global {
  usage-count yes;
}

common {
  protocol C;
}

resource r0 {

    device    /dev/drbd1;
    disk /dev/sdb1;
    disk {
	fencing resource-only;
    }

    handlers {
    	fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
	after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
    }

    meta-disk internal;
    syncer {
      verify-alg sha1;
    }
    net {
      allow-two-primaries;
      data-integrity-alg sha1;
    }

  on adam {
    address   192.168.100.94:7789;
  }

  on eve {
    address   192.168.100.97:7789;
  }

}



crm_mon:
============
Last updated: Sat Mar 19 18:09:29 2011
Stack: openais
Current DC: adam - partition with quorum
Version: 1.0.10-da7075976b5ff0bee71074385f8fd02f296ec8a3
2 Nodes configured, 2 expected votes
3 Resources configured.
============

Online: [ adam eve ]

 Resource Group: fsGroup
     FSClusterIP        (ocf::heartbeat:IPaddr2):	Started adam
     FusionPBX  (ocf::heartbeat:apache):        Stopped
     db-and-fs-FS	(ocf::heartbeat:Filesystem):    Stopped
     pgsqlDB    (ocf::heartbeat:pgsql): Stopped
 Master/Slave Set: FSData
     Masters: [ adam ]
     Slaves: [ eve ]
freeswitch	(lsb:freeswitch):	Started adam



crm configure show:
node adam
node eve
primitive FSClusterIP ocf:heartbeat:IPaddr2 \
	params ip="192.168.100.100" cidr_netmask="32" \
	op monitor interval="30s"
primitive FusionPBX ocf:heartbeat:apache \
	params configfile="/etc/httpd/conf/httpd.conf" \
	op monitor interval="1min" \
	meta target-role="Started"
primitive db-and-fs-FS ocf:heartbeat:Filesystem \
	params fstype="ext3" directory="/opt" device="/dev/drbd/by-res/r0" \
	meta target-role="Started"
primitive freeswitch lsb:freeswitch
primitive fsdrbd ocf:linbit:drbd \
	params drbd_resource="r0" \
	op monitor interval="60s"
primitive pgsqlDB ocf:heartbeat:pgsql \
	params pgdata="/var/lib/pgsql/9.0/data"
pgctl="/usr/pgsql-9.0/bin/pg_ctl" psql="/usr/pgsql-9.0/bin/psql"
group fsGroup FSClusterIP FusionPBX db-and-fs-FS pgsqlDB
ms FSData fsdrbd \
	meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
location cli-prefer-freeswitch freeswitch \
	rule $id="cli-prefer-rule-freeswitch" inf: #uname eq adam
location drbd-fence-by-handler-FSData FSData \
	rule $id="drbd-fence-by-handler-rule-FSData" $role="Master" -inf:
#uname ne adam
colocation FS-with-FS inf: FusionPBX db-and-fs-FS
colocation fs-all-services inf: pgsqlDB db-and-fs-FS FusionPBX FSClusterIP
colocation fs_on_drbd inf: db-and-fs-FS FSData:Master
colocation fs_on_drbd2 inf: fsGroup FSData:Master
order FsFS-after-FSData inf: FSData:promote db-and-fs-FS:start
order Fusion-after-dn-and-fs-FS inf: db-and-fs-FS FusionPBX
order fs-start-order inf: FSClusterIP db-and-fs-FS pgsqlDB FusionPBX
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"



More information about the drbd-user mailing list