[Pacemaker] Possible error in iSCSITarget RA

Florian Haas florian.haas at linbit.com
Thu Oct 1 11:04:19 EDT 2009


On 2009-10-01 16:53, Michael Schwartzkopff wrote:
> Am Donnerstag, 1. Oktober 2009 16:49:59 schrieb Michael Schwartzkopff:
>> Hi,
>>
>> I am experimenting a little bit with the iSCSITarget RA, but without
>> success. My resource is defined like:
>>
>> primitive resIET ocf:heartbeat:iSCSITarget \
>>   params additional_parameters="Path=/dev/drbd0" iqn="iqn.1.2"
>>
>> The problem ist that the resource fails at start.

That's not a valid IQN, you know that, right? And then of course a Path
parameter is something that a Target really can't deal with.

>> Looking through the RA I found the follwing commands beeing executed:
>> ietadm --op new --tid=1 --params Name=iqn.1.2
>>
>> This is OK.
>>
>> the next command is:
>> ietadm --op update --tid=1 --params Path=/dev/drbd0
>>
>> Here the log file says:
>> Command output: Unknown parameter "Path"

Expected. See above. Targets don't know about paths.

>> When I enter the command manually I get the same error.
> 
> The command
> ietadm --op new --tid=1 --lun=0 --parameters Path=/dev/drbd0
> does the trick.
> 
> @Florian: Howto include this into the RA? Basically: Where do I get the "lun" 
> from?

You've fundamentally misunderstood the concept, I'm afraid. iSCSITarget
just configures a Target (with an IQN, potentially a target ID, CHAP
authentication, and other _target_ parameters). For setting up Logical
Units (which is where the LUN and path info goes), you use iSCSILogicalUnit.

In essence, you would normally create a resource group with exactly one
iSCSITarget, and one or more iSCSILogicalUnits. And then you can have as
many of those groups as you want, provided they all use distinct target
IQNs.

Andrew, Dejan: is there any chance you could revitalize the
pacemaker-doc repository, and change the mkradocs.sh bit so it can
create its appendices from a checkout for agents, rather than from
installed RAs? It seems it would help to have this hosted on a web site,
so people can read the RA longdescs on the web somewhere.

Hope this helps.
Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091001/b42b149c/attachment-0003.sig>


More information about the Pacemaker mailing list