iPXE discussion forum
iscsi handoff problem - 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 handoff problem (/showthread.php?tid=7907)



iscsi handoff problem - msmcknight - 2016-01-09 11:26

Hello everyone,

I have a system that boots via iscsi just fine, but I need to point it to another target and port. The volume itself isnt changing, just the target name and port.

The target iqn and IP port number are changed in the ipxe config and from what I can tell, the system boots as expected... then when ipxe hands the iscsi session off to the OS, it loses the connection and the OS crashes.

My guess is that the handoff isn't passing the new port number and iqn.

I'm using fedora 23. I can't see where the OS stores the iscsi configuration. All those files are empty... probably because it inherits it from ipxe.

If I look at an strace of "iscsiadm -m session -P 3", I can see that it's pulling it's iscsi values from /sys/class/... -- unfortunately, that structure is dynamically built when the system boots so I can't edit the files there.

So, how can I get the port number change to pass through? I'm moving from port 3160 to 44301.

Any help would be appreciated.

Thanks to you all in advance.
-Michael


RE: iscsi handoff problem - mcb30 - 2016-01-15 08:27

(2016-01-09 11:26)msmcknight Wrote:  I have a system that boots via iscsi just fine, but I need to point it to another target and port. The volume itself isnt changing, just the target name and port.

The target iqn and IP port number are changed in the ipxe config and from what I can tell, the system boots as expected... then when ipxe hands the iscsi session off to the OS, it loses the connection and the OS crashes.

My guess is that the handoff isn't passing the new port number and iqn.

I'm using fedora 23. I can't see where the OS stores the iscsi configuration. All those files are empty... probably because it inherits it from ipxe.

Fedora has the option to either use hardcoded iSCSI target information (recorded at the time that you performed the installation), or to pick up the iSCSI target information dynamically from the iBFT created by iPXE. I don't know the precise configuration change you need, but searching for "Fedora iSCSI iBFT" should get you some answers.

Michael


RE: iscsi handoff problem - msmcknight - 2016-01-18 22:07

Thanks for the reply.

I looked for instructions on changing the iBFT, but everything I see seems to indicate that it has to be changed in the firmware... which in this case would be iPXE, I think.

If anyone knows a specific command syntax or file that can be edited, that would be helpful. I'm very new at PXE in general, and fairly new at Fedora.


RE: iscsi handoff problem - mcb30 - 2016-01-18 22:57

(2016-01-18 22:07)msmcknight Wrote:  I looked for instructions on changing the iBFT, but everything I see seems to indicate that it has to be changed in the firmware... which in this case would be iPXE, I think.

The iBFT is generated automatically by iPXE whenever you use iPXE to perform an iSCSI boot. However, your Fedora initrd is not using the contents of the iBFT; it is instead using values hardcoded into the initrd itself.

Michael


RE: iscsi handoff problem - MultimediaMan - 2016-01-19 08:16

To fix your initrd.img issue, boot into rescue mode and mount the iSCSI target manually, chroot into /boot (or use another Fedora system to mount it - you need kernel-devel, iscsiadm to update the initrd.img file), then recompile the initrd.img using Dracut and the correct Dracut arguments for the renamed LUN... that should get you back in business.