Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Re: [DRBD-user] Ensuring drbd is started before mounting filesystem

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


andreas at hastexo

Oct 23, 2011, 3:12 PM

Post #1 of 2 (180 views)
Permalink
Re: [DRBD-user] Ensuring drbd is started before mounting filesystem

On 10/23/2011 11:18 PM, Nick Khamis wrote:
> Hello Everyone,
>
> I was wondering if it's possible to use the "order" directive to ensure that
> drbd is fully started before attempting to mount the filesystem? I tried the
> following:
>
> node mydrbd1 \
> attributes standby="off"
> node mydrbd2 \
> attributes standby="off"
> primitive myIP ocf:heartbeat:IPaddr2 \
> op monitor interval="60" timeout="20" \
> params ip="192.168.2.5" cidr_netmask="24" \
> nic="eth1" broadcast="192.168.2.255" \
> lvs_support="true"
> primitive myDRBD ocf:linbit:drbd \
> params drbd_resource="r0.res" \
> op monitor role=Master interval="10" \
> op monitor role=Slave interval="30"
> ms msMyDRBD myDRBD \
> meta master-max="1" master-node-max="1" \
> clone-max="2" clone-node-max="1" \
> notify="true" globally-unique="false"
> primitive myFilesystem ocf:heartbeat:Filesystem \
> params device="/dev/drbd0" directory="/service" fstype="ext3" \
> op monitor interval="15" timeout="60" \
> meta target-role="Started"
> group MyServices myIP myFilesystem meta target-role="Started"
> order drbdAfterIP \
> inf: myIP msMyDRBD
> order filesystemAfterDRBD \
> inf: msMyDRBD:promote myFilesystem:start

There is no colocation between the DRBD master and the filesystem ....

> location prefer-mysql1 MyServices inf: mydrbd1
> location prefer-mysql2 MyServices inf: mydrbd2

????? ... these constraints make no sense ...

Regards,
Andreas

--
Need help with Pacemaker?
http://www.hastexo.com/now
Attachments: signature.asc (0.28 KB)


andreas at hastexo

Oct 23, 2011, 3:15 PM

Post #2 of 2 (176 views)
Permalink
Re: [DRBD-user] Ensuring drbd is started before mounting filesystem [In reply to]

Sorry for the noise ... address cut & paste error

Regards,
Andreas

On 10/24/2011 12:12 AM, Andreas Kurz wrote:
> On 10/23/2011 11:18 PM, Nick Khamis wrote:
>> Hello Everyone,
>>
>> I was wondering if it's possible to use the "order" directive to ensure that
>> drbd is fully started before attempting to mount the filesystem? I tried the
>> following:
>>
>> node mydrbd1 \
>> attributes standby="off"
>> node mydrbd2 \
>> attributes standby="off"
>> primitive myIP ocf:heartbeat:IPaddr2 \
>> op monitor interval="60" timeout="20" \
>> params ip="192.168.2.5" cidr_netmask="24" \
>> nic="eth1" broadcast="192.168.2.255" \
>> lvs_support="true"
>> primitive myDRBD ocf:linbit:drbd \
>> params drbd_resource="r0.res" \
>> op monitor role=Master interval="10" \
>> op monitor role=Slave interval="30"
>> ms msMyDRBD myDRBD \
>> meta master-max="1" master-node-max="1" \
>> clone-max="2" clone-node-max="1" \
>> notify="true" globally-unique="false"
>> primitive myFilesystem ocf:heartbeat:Filesystem \
>> params device="/dev/drbd0" directory="/service" fstype="ext3" \
>> op monitor interval="15" timeout="60" \
>> meta target-role="Started"
>> group MyServices myIP myFilesystem meta target-role="Started"
>> order drbdAfterIP \
>> inf: myIP msMyDRBD
>> order filesystemAfterDRBD \
>> inf: msMyDRBD:promote myFilesystem:start
>
> There is no colocation between the DRBD master and the filesystem ....
>
>> location prefer-mysql1 MyServices inf: mydrbd1
>> location prefer-mysql2 MyServices inf: mydrbd2
>
> ????? ... these constraints make no sense ...
>
> Regards,
> Andreas
>
>
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
Attachments: signature.asc (0.28 KB)

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.