[DRBD-user] A problem with drbd and pacemaker

Vadym Chepkov vchepkov at gmail.com
Wed Nov 24 14:38:41 CET 2010

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


On Nov 24, 2010, at 8:22 AM, Vadym Chepkov wrote:

> 
> 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

This one is wrong, by the way, should be

colocation col-Ip-Drbd inf: ms-Drbd-R0:Master res-Wmysql3-IP:Started


>> 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

Same with this one:
order ord-Ip-Drbd inf: res-Wmysql3-IP ms-Drbd-R0:Master


By the way, I would simplify the config.

group mysql res-Wmysql3-IP res-Wmysql3-Fs res-Mysql
colocation col-mysql inf: mysql ms-Drbd-R0:Master
order ord-mysql inf: ms-Drbd-R0:promote mysql:start

This is all you need for this case

> is +inf: a valid score? I thought it's inf: and -inf:
> 
> Cheers,
> Vadym
> 
> 




More information about the drbd-user mailing list