Pacemaker iSCSI target with multiple portals

Latest response

Hi there,

Been looking everywhere for a solution for my problem:

I'm setting up a iSCSI target cluster and I want to setup 2 portals on a single target using LIO. From the docs of the iSCISTarget resource it looks like you can add multiple portals, but it does not seem to work.

Using this does not work:

pcs resource create target-sup-clutest-01 iSCSITarget portals="x.x.x.167 x.x.x.168" iqn="iqn.2015-01.lab.support:sup-clutest-01"

I get the following error in /var/log/messages:

Jan 26 20:21:54 lx-sys05 iSCSITarget(target-sup-clutest-01)[7796]: INFO: Created target iqn.2015-01.lab.support:sup-clutest-01. Created TPG 1.
Jan 26 20:21:54 lx-sys05 iSCSITarget(target-sup-clutest-01)[7796]: INFO: Using default IP port 3260 Created network portal x.x.x.167:3260.
Jan 26 20:21:54 lx-sys05 iSCSITarget(target-sup-clutest-01)[7796]: ERROR: This Target already exists in configFS

When using a single IP it works fine:

pcs resource create target-sup-clutest-01 iSCSITarget portals="x.x.x.167" iqn="iqn.2015-01.lab.support:sup-clutest-01"

Also creating an extra target does not add an extra portal, though no errors appear.

pcs resource create target2-sup-clutest-01 iSCSITarget portals="x.x.x.168" iqn="iqn.2015-01.lab.support:sup-clutest-01"

Am I misunderstanding the docs? Or overlooking something?

Responses

After a bit of searching found this out:

https://github.com/ClusterLabs/resource-agents/commit/b241c2ea9c76fc51cb0a625aa82b4147f39827d6

Ordering in the resource script was incorrect. Above change has not yet been incorporated in RHEL 7. Made the change myself, works like a charm now.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.