Michael wrote:
> Also, it works perfectly fine if I go into /etc/iscsi/nodes/<target
> name>/,3260 and edit the node.startup line myself.  Am I just
> typing the command wrong without realizing it?  Again, I'm doing:

What version of the tools are you using and did you upgrade or switch 
tool versions?

And did you make this node by hand/manually by doing
iscsiadm -m node -T target -p ip:port --op new

The wierd part is that we see this in the log out put you snipped:

iscsiadm: found,3260,-1

Here the tpgt is -1 which means it did not get set. Normally targets are 
going to send us this so if we did sendtargets we should have that info.

If you do the old style build by hand with no tpgt like this to create 
the record:

iscsiadm -m node -T target -p ip:port --op new

then the db uses the old format (so 
/etc/iscsi/nodes/<targetname>/,3260 would be a file)

To use the new format you have to pass in the tpgt

iscsiadm -m node -T target -p ip:port,tpgt --op new

(here there is no /etc/iscsi/nodes/<targetname>/,3260 file and 
we have /etc/iscsi/nodes/<targetname>/,3260,tpgt as a dir).

> iscsiadm -m node -T <targetname> --op update -n node.startup -v
> automatic

This is the right command for the new DB format where the tpgt is known 
(not -1).

For the old format you had to pass in the target and portal:

iscsiadm -m node -T target -p ip:port --op update -n node.startup -v 

So if you are creating the records manually but do not know the tpgt you 
can pass in anything greater than -1 when you create the record, and we 
will figure it out dynamically (later to manage the node you would not 
pass in anything for the tpgt and we will figure it out or pass in 
whatever you passed in when you created it).

iscsiadm -m node -T target -p ip:port,tpgt --op new

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi

Reply via email to