Is it possible to connect to only a single LUN of an iscsi target when using iscsiadm? I have a target like "iqn.0000-00.iscsi.foo:bar" this target has 1000 LUN's. If I do
iscsiadm -m node -l -T iqn.0000-00.iscsi.foo:bar then it connects to all the LUN's and my initiator gets 1000 new devices added. I don't want 1000 devices added.
What I want is something like (note iscsiadm doesn't actually have a "--lun" option):
iscsiadm -m node -l -T iqn.0000-00.iscsi.foo:bar --lun=42
That way only one device is added on the initiator. In pretty much anything other than iscsiadm (eg. iPXE) you can specify the target like:
Which allows you to connect to a specific LUN. iscsiadm doesn't seem to support this syntax.