[Pacemaker] Problem with drbd 2 primary + OCFS2 + server

cudak at sonet.internetdsl.pl cudak at sonet.internetdsl.pl
Fri Aug 21 14:25:40 UTC 2009


Dejan Muhamedagic pisze:
> Hi,
>
> On Wed, Aug 19, 2009 at 07:51:58PM +0200, cudak at sonet.internetdsl.pl wrote:
>   
>> hj lee pisze:
>>     
>>> I found two issues in your configuration.
>>>
>>> 1. Still the last location constraint does not make sense. The server-www 
>>> is a group, not multistate master/slave, so role=master is wrong. This 
>>> should be msDRBD.
>>> 2. Why did you set max-master=2? As you said, both nodes came up as 
>>> master, most of constraints you configured does not make sense. For 
>>> example, colocation constraints says that server-www must be run with DRBD 
>>> master. But there are two masters in your cluster, it can not run it. Try 
>>> it again by deleting max-master=2, the default is 1.
>>>
>>> Thanks
>>>       
>> Is it master-max means: "how many copies of the resource can be promoted to 
>> master status" ( by Configuration_Explained.pdf  from clusterlabs.org)? 
>> Whena I'm changeing  role in location to role=master crm it shows: "Bad 
>> role specified... "
>>     
>
> You should use "Master".
>
>   
>> In addition to not starting filesystem, I've change param start-delay from 
>> default value to 60 of primitive resOCFS2 and now all filesystem are 
>> mounted properly.
>>     
>
> Eh? How did that help? In that case there are definitely problems
> with some resource agent.
>
> BTW, as far as I know, the ocf:heartbeat:drbd RA doesn't support
> multimaster configurations. Perhaps the new ocf:linbit:drbd does.
> Best to ask on some drbd forum.
>
> Thanks,
>
> Dejan
>
>   
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>     
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>   
I've installed drbd 8.3.2, and changed my config:

primitive pocztaDRBD ocf:linbit:drbd \
 op monitor role=Master interval=59s timeout=30s \
 op monitor role=Slave interval=60s timeout=30s \
 params drbd_resource="res"

ms msPocztaDRBD pocztaDRBD \
    meta clone-max="2" master-max="2" notify="true"

primitive pocztaSystemPlikow ocf:heartbeat:Filesystem \
    params device="/dev/drbd0" directory="/home/data" fstype="ocfs2"

clone kopiaSystemuPlikow pocztaSystemPlikow meta interleave="true"

colocation kopaSystemuPlikow-tylko-z-msPocztaDRBD INFINITY: msPocztaDRBD 
kopiaSystemuPlikow

order pocztaDRBD-przed-systememPlikow mandatory: msPocztaDRBD 
kopiaSystemuPlikow


but it wasn't help.

This is my drbd.conf:

resource res {
        protocol C;
        startup {
                become-primary-on both;
                wfc-timeout 0;
                degr-wfc-timeout 120;
        }
        net {
                allow-two-primaries;
                after-sb-0pri discard-zero-changes;
                after-sb-1pri discard-secondary;
                after-sb-2pri disconnect;

        }
        syncer {
                rate 50M;
        }
        on gapik {
                device /dev/drbd0;
                disk /dev/data/drbd0;
                address 10.0.0.1:7788;
                meta-disk internal;
        }
        on mazgaj {
                device /dev/drbd0;
                disk /dev/data/drbd0;
                address 10.0.0.2:7788;
                meta-disk internal;
        }
}











More information about the Pacemaker mailing list