Pacemaker iscsi

From DWIKI
Revision as of 15:49, 15 June 2018 by Tony (talk | contribs) (Created page with "=Docs= *[http://linux-ha.org/doc/man-pages/re-ra-iSCSITarget.html iSCSITarget manpage] *[http://linux-ha.org/doc/man-pages/re-ra-iSCSILogicalUnit.html iSCSILogicalUnit manpage...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Docs


Sample config

Resources

pcs resource create ClusterIP ocf:heartbeat:IPaddr2 ip=192.168.100.32 cidr_netmask=32 op monitor interval=30s
pcs resource create ISCSI0 ocf:heartbeat:iSCSITarget iqn="iqn.2018-5.mynet:drbd0" tid=1 op monitor interval="10s"
pcs resource create ISCSI0Lun1 ocf:heartbeat:iSCSILogicalUnit target_iqn="iqn.2018-5.mynet:drbd0" lun="1" path="/dev/DRBD/drbd0" op monitor interval="10s"

Order constraints

pcs constraint order promote DRBD0-Clone then start ClusterIP
pcs constraint start ClusterIP then start ISCSI0
pcs constraint order start ISCSI0 then start ISCSI0Lun1

Colocation constraints

pcs constraint colocation add ClusterIP DRBD0-Clone INFINITY with-rsc-role=Master
pcs constraint colocation add ISCSI0 ClusterIP 
pcs constraint colocation add ISCSI0Lun1 ISCSI0