On 3/24/2010 at 09:45 PM, Frank Lazzarini <[email protected]> wrote: 
> Hi there, 
>  
> I am trying to set up a little 2 node cluster with DRBD  
> pacemaker-heartbeat which will be using the ocfs2 Filesystem. I want to  
> use ocfs as a non clustered filesystem to make things easier I don't  
> really see the advantage of using ocfs as a clustered filesystem on a  
> cluster block device, but enlight me if I didn't understand it  
> correctly. Well here are my configs 

You'd use a clustered filesystem if you want both nodes to be able to
access the storage simultaneously.  If you want to do this, you need to
run drbd in dual-primary mode, and also configure DLM.

If you only want the filesystem to be mounted on one node at a time,
just use a regular, non clustered filesystem (ext3/4, XFS, whatever).

>  
> node $id="609b0bcb-8904-4666-bc2c-c66b8b2b7f1e" sitasl00001 
> node $id="610f86ee-6bd4-4789-8da9-9555cfa90b7b" sitasl00002 
> primitive drbd ocf:linbit:drbd \ 
>          params drbd_resource="r0" \ 
>          op monitor interval="15s" 
> primitive fs ocf:heartbeat:Filesystem \ 
>          params device="/dev/drbd0" directory="/data" fstype="ocfs2" \ 
>          meta target-role="Started" 
> primitive ip ocf:heartbeat:IPaddr2 \ 
>          params ip="10.65.68.239" nic="br0" 
> group cluster ip 
> ms ms_drbd drbd \ 
>          meta master-max="1" master-node-max="1" clone-max="2"  
> clone-node-max="1" notify="true" 
> colocation cluster-with-drbdmaster inf: cluster ms_drbd:Master 
> property $id="cib-bootstrap-options" \ 
>          stonith-enabled="false" \ 
>          no-quorum-policy="ignore" \ 
>          dc-version="1.0.5-3840e6b5a305ccb803d29b468556739e75532d56" \ 
>          cluster-infrastructure="Heartbeat" \ 
>          last-lrm-refresh="1269427049" 

OCFS2 needs OpenAIS for DLM to work, so you'd have to replace Heartbeat
with Corosync+OpenAIS, configure DLM, etc.  Check out the Clusters from
Scratch documents at http://www.clusterlabs.org/wiki/Documentation
for more information.

Regards,

Tim


-- 
Tim Serong <[email protected]>
Senior Clustering Engineer, OPS Engineering, Novell Inc.



_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to