[Stgt-devel] [RFC] target configuration tool
Mike Christie
michaelc
Wed Mar 19 18:04:38 CET 2008
Tomasz Chmielewski wrote:
> Mike Christie schrieb:
>
> (...)
>
>> It is looking pretty good. I will have more constructive comments as I
>> try it out more, but wanted to say thanks for doing this.
>>
>> To distinguish between iscsi specific or other target type specific
>> params do you think it would be good to do something like:
>>
>>
>> <target-type iscsi>
>> # setting something like CHAP here would work like IET's
>> # ietd.conf
>> incominguser user1 secretpass12
>
> True, incoming or outgoing users are a global configuration, so putting
> it per target may confuse users.
I actually wanted it per target and global like how IET does it. I do
not think tgtd supports this yet as you noted below, so ignore me.
In the future the global CHAP setting would be used for something iscsi
discovery (see man ietd.conf's GLOBAL OPTIONS section).
>
> On the other hand, how many users use different target types with one
> tgtd instance? Wouldn't using too many <target-type iscsi> + <target>
> make the config file unreadable?
I imagine it is going to happen. We can always add it when users ask for
it, so we know what they really want and can code for them.
Do you think it would better to do a file per target-type?
>
> <target-type iscsi>
> incominguser user1 secretpass12
>
> <target iqn.2007-04.com.example:san.monitoring>
> local param
> </target>
>
> <target>
> ...
> </target>
> </target-type>
>
>
> What about:
>
> default-target-type iscsi
> incominguser user1 secretpassword12
>
> <target iqn.2007-04.com.example:san.monitoring>
> local param
> incominguser user1
> ...
> </target>
>
> <target iqn.2007-04.com.example:something.else>
> target-type some-other-type
> ...
> </target>
>
>
> And how global is the account/username?
>
> Does this:
>
> tgtadm --lld iscsi --mode account --op new --user=user1 --password=AAA
> tgtadm --lld fcoe --mode account --op new --user=user1 --password=BBB
>
> create two different users with two different passwords?
I do not know about fcoe. I had thought that you could set a global
iscsi chap setting for iscsi discovery. I guess you cannot.
>
>
> That being said, I don't mind changing anything if it makes the things
> more logical, flexible etc.
>
>
>> <target iqn.2007-04.com.example:san.monitoring>
>> .....
>>
>> # would we set values like iscsi's MaxRecvDataSegmentLength here ?
>
> Does tgtadm allow setting anything like that?
Yeah, that is in the the README.iscsi.
tgtadm --lld iscsi --mode target --op update --tid 1 --name
MaxRecvDataSegmentLength --value 16384
More information about the stgt
mailing list