LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   pacemaker - iscsi: problems with a multihomed target (http://www.linuxquestions.org/questions/linux-server-73/pacemaker-iscsi-problems-with-a-multihomed-target-4175444132/)

eantoranz 01-04-2013 07:58 AM

pacemaker - iscsi: problems with a multihomed target
 
I'm testing setting up a san resource on pacemaker. It works very well except when I add another IP to the san. When I do it (and without changing pacemaker's configuration for the san) I get this error:

Code:

sorry, can't handle multihomed hosts unless you specify the portal exactly
So, how do I set the portal so that it works? I tried adding both IPs separated by a comma but when I test the resource becomes failed/unmanaged (which is not a good thing, is it?).

Thanks in advance!

eantoranz 01-04-2013 08:00 AM

Code:

primitive san ocf:heartbeat:iscsi \
        params portal="192.168.55.11" target="iqn.2012-12.san:disk1" \
        meta target-role="Started"


eantoranz 01-04-2013 08:29 AM

Oh, and by the way, if I use iscsiadm to connect to this iscsi resource "by hand", it works like a charm:

Code:

cps@cluster1:~$ sudo iscsiadm -m node -L all -p 192.168.55.11 -T iqn.2012-12.san:disk1
Logging in to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.10,3260]
Logging in to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.11,3260]
Login to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.10,3260]: successful
Login to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.11,3260]: successful


eantoranz 01-04-2013 08:31 AM

Even if I don't provide the portal but just the target it works.

Code:

cps@cluster1:~$ sudo iscsiadm -m node -L all -T iqn.2012-12.san:disk1
Logging in to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.10,3260]
Logging in to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.11,3260]
Login to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.10,3260]: successful
Login to [iface: default, target: iqn.2012-12.san:disk1, portal: 192.168.55.11,3260]: successful


eantoranz 01-04-2013 09:14 AM

Hell, got it. I didn't understand what exactly meant for iscsi. It means to set one of the portals including the port:

Code:

primitive san ocf:heartbeat:iscsi \
        params portal="192.168.55.11:3260" target="iqn.2012-12.san:disk1" \
        meta target-role="Started"

Now it works.


All times are GMT -5. The time now is 06:11 AM.