On 02/08/2010 06:14 PM, kapshure wrote:
my coworker and I are having some difficulties figuring out the
iscsiadm utility and how we are seeing connections to an HP MSA 2312i
G2 array.
we run the iscsiadm utility:
iscsiadm -m discovery -t sendtargets -p 10.1.100.5
10.1.100.6:3260,3 iqn.1986-03.com.hp:storage.msa2312i.0949d7efb9
10.1.100.5:3260,1 iqn.1986-03.com.hp:storage.msa2312i.0949d7efb9
10.1.100.7:3260,2 iqn.1986-03.com.hp:storage.msa2312i.0949d7efb9
10.1.100.8:3260,4 iqn.1986-03.com.hp:storage.msa2312i.0949d7efb9
in the MSA mgmt utility, I can see the host connected, but do I need
to run a string like this to utilize one of these iscsi host ports?
iscsiadm -m node -T iqn.1986-03.com.hp:storage.msa2312i.0949d7efb9 -p
10.1.100.5:3260 --login
we don't have CHAP configured at all on the MSA, so I think the
"login" part of this command is not needed?
but after this command above, this gets kicked back:
Logging in to [iface: default, target: iqn.
1986-03.com.hp:storage.msa2312i.0949d7efb9, portal: 10.1.100.5,3260]
iscsiadm: Could not login to [iface: default, target: iqn.
1986-03.com.hp:storage.msa2312i.0949d7efb9, portal: 10.1.100.5,3260]:
iscsiadm: initiator reported error (15 - already exists)
I guess we are just having issues figuring out how to get future hosts
we want to connect to go to the right volume on the MSA - can I
control this from the iscsiadm utility?? perhaps by specifying a
different iscsi host port?
What distro are you using?
You would normally just run the discovery command when you add/remove
portals or targets or maybe also volumes (not sure how msa works):
iscsiadm -m discovery -t sendtargets -p 10.1.100.5
This then lists the targets and portals found. To login you could run
iscsiadm manually like how you did
iscsiadm -m node -T iqn.1986-03.com.hp:storage.msa2312i.0949d7efb9 -p
10.1.100.5:3260 --login
And this will connect to the target and find disks accessed through that
target and portal. You can then use the disk like normal (fdisk and
mount them or use them as raw disks). To see the disks do
iscsiadm -m session -P 3
On many distros, when the iscsi service starts it will log into all the
targets found when you ran the discovery command. So when
service iscsi start
or
service open-iscsi start
or
/etc/init.d/open-iscsi start
gets run, that will log into all the targets and portals found when you
ran your discovery command. So normally after you had discovered targets
and when your system has rebooted the disks will be setup for you.
And there is no need to restart your systems you can run the iscsiadm
--login command like how you did or you can run:
service iscsi restart
or
service open-iscsi restart
or
/etc/init.d/open-iscsi restart
after you have done discovery.
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.