[ClusterLabs] MS Promotion Not Working
    Brian D. Lees 
    brian at fides.me.uk
       
    Sat Jun 13 11:43:46 UTC 2015
    
    
  
Takehiro,
 
Thanks very much for your suggestion;  unfortunately there is no change in the outcome.
 
Configuration now is:
 
node 1084751972: ACL001 \
        attributes standby=off
node 1084752072: ACL002 \
        attributes standby=off
primitive res_Filesystem_shared_fs Filesystem \
        params device="/dev/drbd/by-res/acl_shared/1" directory="/mnt/aclcluster" fstype=ext4 \
        operations $id=res_Filesystem_shared_fs-operations \
        op start interval=0 timeout=60 \
        op stop interval=0 timeout=60 \
        op monitor interval=20 timeout=40 start-delay=0 \
        op notify interval=0 timeout=60 \
        meta allow-migrate=true failure-timeout=60
primitive res_drbd_1 ocf:linbit:drbd \
        params drbd_resource=acl_shared \
        operations $id=res_drbd_1-operations \
        op start interval=0 timeout=240 \
        op promote interval=0 timeout=90 \
        op demote interval=0 timeout=90 \
        op stop interval=0 timeout=100 \
        op monitor interval=10 timeout=20 role=Master \
        op monitor interval=11 timeout=20 role=Slave \
        op notify interval=0 timeout=90
ms ms_drbd_1 res_drbd_1 \
        meta clone-max=2 notify=true interleave=true target-role=Started
colocation col_res_Filesystem_shared_fs_ms_drbd_1 inf: res_Filesystem_shared_fs ms_drbd_1:Master
order ord_ms_drbd_1_res_Filesystem_shared_fs inf: ms_drbd_1:promote res_Filesystem_shared_fs:start
property cib-bootstrap-options: \
        stonith-enabled=false \
        no-quorum-policy=ignore \
        dc-version=1.1.12-1.1.12.git20140904.266d5c2 \
        cluster-infrastructure=corosync \
        cluster-name=aclcluster
rsc_defaults rsc-options: \
        target-role=started \
        resource-stickiness=100
 
And the scores are:
 
Current cluster status:
Online: [ ACL001 ACL002 ]
 
Master/Slave Set: ms_drbd_1 [res_drbd_1]
     Slaves: [ ACL001 ACL002 ]
res_Filesystem_shared_fs       (ocf::heartbeat:Filesystem):    Stopped
 
Allocation scores:
clone_color: ms_drbd_1 allocation score on ACL001: 0
clone_color: ms_drbd_1 allocation score on ACL002: 0
clone_color: res_drbd_1:0 allocation score on ACL001: 100
clone_color: res_drbd_1:0 allocation score on ACL002: 0
clone_color: res_drbd_1:1 allocation score on ACL001: 0
clone_color: res_drbd_1:1 allocation score on ACL002: 100
native_color: res_drbd_1:0 allocation score on ACL001: 100
native_color: res_drbd_1:0 allocation score on ACL002: 0
native_color: res_drbd_1:1 allocation score on ACL001: -INFINITY
native_color: res_drbd_1:1 allocation score on ACL002: 100
res_drbd_1:0 promotion score on ACL001: -1
res_drbd_1:1 promotion score on ACL002: -1
native_color: res_Filesystem_shared_fs allocation score on ACL001: -INFINITY
native_color: res_Filesystem_shared_fs allocation score on ACL002: -INFINITY
 
Transition Summary:
 
Any further ideas?
 
Regards,
 
Brian
 
From: Takehiro Matsushima [mailto:takehiro.dreamizm at gmail.com] 
Sent: 13 June 2015 02:22
To: Cluster Labs - All topics related to open-source clustering welcomed; brian at fides.me.uk
Subject: Re: [ClusterLabs] MS Promotion Not Working
 
Hello Brian,
Try to define two "op monitor" with role="Master" and "Slave" for drbd resource like this;
primitive res_drbd_1 ocf:linbit:drbd \
        params drbd_resource=acl_shared \
        operations $id=res_drbd_1-operations \
        op start interval=0 timeout=240 \
        op promote interval=0 timeout=90 \
        op demote interval=0 timeout=90 \
        op stop interval=0 timeout=100 \
        op monitor interval=10 timeout=20 role="Master" \
        op monitor interval=11 timeout=20 role="Slave" \
        op notify interval=0 timeout=90
regards,
Takehiro Matsushima
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20150613/58406a7b/attachment.htm>
    
    
More information about the Users
mailing list