Changes between Version 8 and Version 9 of Documentation/Logs/PacemakerGFS2


Ignore:
Timestamp:
May 15, 2015 2:48:52 PM (10 years ago)
Author:
Andrii Salnikov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Logs/PacemakerGFS2

    v8 v9  
    6969}}}
    7070
     71DRBD Master/Master with Pacemaker:
     72{{{
     73echo drbd > /etc/modules-load.d/drbd.conf
     74pcs resource create drbd-opt ocf:linbit:drbd drbd_resource=drbdopt op monitor interval=60s
     75pcs resource master drbd-opt-clone drbd-opt master-max=2 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
     76pcs constraint location drbd-opt-clone prefers a1 a2
     77pcs constraint location drbd-opt-clone avoids s1 s2 g1
     78}}}
     79
     80GFS2 /opt on DRBD:
     81{{{
     82mkfs.gfs2 -p lock_dlm -j 2 -t a-nodes-drbd:opt /dev/drbd1
     83pcs resource create gfs2opt Filesystem device="/dev/drbd1" directory="/opt" fstype="gfs2"
     84pcs constraint colocation add gfs2opt with drbd-opt-clone INFINITY with-rsc-role=Master
     85pcs constraint colocation add gfs2opt with dlm-clone INFINITY
     86pcs constraint order promote drbd-opt-clone then start gfs2opt
     87pcs constraint order dlm-clone then gfs2opt
     88pcs resource clone gfs2opt
     89}}}
     90
    7191Status check commands in addition to {{{pcs status}}}:
    7292{{{