LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-04-2013, 07:58 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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!
 
Old 01-04-2013, 08:00 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Code:
primitive san ocf:heartbeat:iscsi \
        params portal="192.168.55.11" target="iqn.2012-12.san:disk1" \
        meta target-role="Started"
 
Old 01-04-2013, 08:29 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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
 
Old 01-04-2013, 08:31 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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
 
Old 01-04-2013, 09:14 AM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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.
 
  


Reply

Tags
iscsi, multihome, multihomed target, pacemaker, target



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pacemaker - iscsi: failing to do a mount but works when cleaned up eantoranz Linux - Server 2 12-13-2017 12:18 AM
pacemaker - no checking for iscsi status? eantoranz Linux - Server 2 01-03-2013 07:33 AM
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
iSCSI target problems with initial make nitrohuffer2001 Linux - Software 0 01-06-2007 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration