iPXE discussion forum
iscsi: operation not supported - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: iscsi: operation not supported (/showthread.php?tid=2890)



iscsi: operation not supported - l.jurgs - 2012-03-27 03:59

Hi,

I've tried a heap of different approaches to connect to my iscsi target, and nothing seems to work. I can connect to it fine form my other initiators.

if I type:

Code:
dhcp net0
sanhook iscsi:10.0.0.90::::iqn.2012-03.local.fileserver:edgeserver

I get the error: "Could not open san device: invalid argument"

If I quote the iqn:

Code:
dhcp net0
sanhook "iscsi:10.0.0.90::::iqn.2012-03.local.fileserver:edgeserver"

I get the error: "Could not open san device: operation not supported"

The dhcp is successful and like I said I can connect to lun 0 on that target without auth on my other devices. The ipxe build says it supports iscsi when it boots.

Thanks in advance.


RE: iscsi: operation not supported - robinsmidsrod - 2012-03-27 08:03

When you get that error message, it is usually accompanied with a URL with a hex number in it. If you post those as well, we might be able to help you a bit more, as they contain quite important debugging details. You should of course also have a look at them and look at the bottom in the troubleshooting section of each of them.

To my knowledge, the target IQN should not be quoted. I'm not sure if it's even supported.


RE: iscsi: operation not supported - l.jurgs - 2012-03-28 16:45

Hey robinsmidsrod,

Yeah the reason it wasn't working was I didn't have an initiator-iqn set. For some reason I thought this option defaulted, turned out, that at least in my case this wasn't so. When I set the initiator-iqn in my dhcp hardware address entry it worked like a charm.

Thanks to the developers of ipxe, it's a brilliant piece of software, made deploying a iscsi san a breeze.

Cheers


RE: iscsi: operation not supported - robinsmidsrod - 2012-03-30 10:28

You can set the initiator-iqn based on some kind of pattern in an iPXE script conditionally, based on availability of certain attributes, like hostname, uuid, asset tag or mac.

I do that in my iPXE native menu shown here: https://gist.github.com/2234639

You'll need an updated iPXE for the menu feature, it just landed yesterday. The isset feature has been around for a long time.