Pacemaker iscsi: Difference between revisions

From DWIKI
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Docs=
=Docs=
*https://www.linuxmonkey.co.za/index.php?mod=SAN
*https://www.linuxmonkey.co.za/index.php?mod=SAN
*[http://linux-ha.org/doc/man-pages/re-ra-iSCSITarget.html iSCSITarget manpage]
*[http://www.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]
*[http://www.linux-ha.org/doc/man-pages/re-ra-iSCSILogicalUnit.html iSCSILogicalUnit manpage]
*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