Pacemaker iscsi: Difference between revisions
From DWIKI
m (→Sample config) |
|||
Line 7: | Line 7: | ||
=Sample config= | =Sample config= | ||
TODO add portblock! | |||
== TODO add portblock! == | |||
Resources | Resources |
Revision as of 16:16, 28 June 2018
Docs
- https://www.linuxmonkey.co.za/index.php?mod=SAN
- iSCSITarget manpage
- iSCSILogicalUnit manpage
- https://help.ubuntu.com/community/HighlyAvailableiSCSITarget
- Managing iSCSI Initiator connections with Windows PowerShell
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