Pacemaker iscsi: Difference between revisions
From DWIKI
m (→Docs) |
|||
Line 1: | Line 1: | ||
=Docs= | =Docs= | ||
*https://www.linuxmonkey.co.za/index.php?mod=SAN | *https://www.linuxmonkey.co.za/index.php?mod=SAN | ||
*[ | *[https://linux-ha.org/doc/man-pages/re-ra-iSCSITarget.html iSCSITarget manpage] | ||
*[ | *[https://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] |
Revision as of 10:31, 31 July 2020
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