Pacemaker iscsi: Difference between revisions

From DWIKI
 
Line 5: Line 5:
*https://help.ubuntu.com/community/HighlyAvailableiSCSITarget
*https://help.ubuntu.com/community/HighlyAvailableiSCSITarget
*[https://blogs.msdn.microsoft.com/san/2012/07/31/managing-iscsi-initiator-connections-with-windows-powershell-on-windows-server-2012/ Managing iSCSI Initiator connections with Windows PowerShell]
*[https://blogs.msdn.microsoft.com/san/2012/07/31/managing-iscsi-initiator-connections-with-windows-powershell-on-windows-server-2012/ Managing iSCSI Initiator connections with Windows PowerShell]
*[http://dev.digibess.it/doku.php?id=clusterbase:pacemaker using arp as well]


=Sample config=
=Sample config=

Latest revision as of 15:44, 10 August 2020

Docs

Sample config

TODO add portblock!

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