[DRBD-user] A problem with drbd and pacemaker

Vadym Chepkov vchepkov at gmail.com
Wed Nov 24 14:22:59 CET 2010


On Nov 24, 2010, at 7:16 AM, Dr A V Le Blanc wrote:


> primitive res-Wmysql3-Fs ocf:heartbeat:Filesystem \
> 	meta target-role="started" \
> 	operations $id="res-Wmysql3-Fs-operations" \
> 	op monitor interval="20" timeout="40" \
> 	params device="/dev/drbd0" directory="/var/data" fstype="ext3"

I would change to device="/dev/drbd/by-res/r0" and add options="noatime"

> primitive res-Wmysql3-IP ocf:heartbeat:IPaddr2 \
> 	meta target-role="started" \
> 	operations $id="res-Wmysql3-IP-operations" \
> 	op monitor interval="10s" timeout="20s" \
> 	params ip ip="10.99.212.247"

Doesn't look right, seems crm missed it

params ip="10.99.212.247" cidr_netmask="32"

> ms ms-Drbd-R0 res-Drbd-R0 \
> 	meta target-role="Master" clone-max="2" globally-unique="false" notify="true" is-managed="true"

I think this target-role gives you trouble.

meta clone-max="2" notify="true"

should be enough

> colocation col-Fs-Drbd +inf: res-Wmysql3-Fs ms-Drbd-R0:Master
> colocation col-Fs-Mysql +inf: res-Mysql res-Wmysql3-Fs
> colocation col-Ip-Drbd +inf: ms-Drbd-R0 res-Wmysql3-IP
> order ord-Drbd-Fs +inf: ms-Drbd-R0:promote res-Wmysql3-Fs:start
> order ord-Fs-Mysql +inf: res-Wmysql3-Fs res-Mysql
> order ord-Ip-Drbd +inf: res-Wmysql3-IP ms-Drbd-R0

is +inf: a valid score? I thought it's inf: and -inf:

Cheers,
Vadym




More information about the drbd-user mailing list