Doh, forget the complicated junk below.  I forget about the easier
workaround. You can just do dm-multipath over iscsi, but with one path
You would do the initial root session using the default routing and
iface, and use dm-multipath over that, and then root on the dm multipath
device over iscsi.

Then when you are booted and the init scripts run, the iscsi and iscsid
init scripts would log into the session using the iface you had setup.
dm-multipath/multipathd would then add that path to the root
dm-multipath dev being used. And then you would just need to logout of
the boot session by doing

iscsiadm -m node -I default -T iqn.1992-08.com.netapp:sn.15333
 -p 192.168.1.12:3260,2000 -u

You could just write a script to automate that.


On 06/17/2011 08:22 PM, Mike Christie wrote:
>>
>> Is there some way to change the config, reboot, and have all iSCSI
>> communications go through iface1 ?
> 
> Centos does not have support for this in its iscsi boot support. It does
> not support booting off of ifaces, so you have to hack it in.
> 
> In the initramfs you would want to remove iscsistart and thrown in
> iscsiadm and iscsid and the iface files and node files. I think you
> might have to recompile iscsid and iscsiadm statically or also thrown in
> the libs those programs use.
> 
> You also want the node and iface files that get created when you ran the
> iscsiadm discovery command or node binding command to get:
> 
> 
>> Iface: iface1
>>         Target: iqn.1992-08.com.netapp:sn.15333
>>                 Portal: 192.168.1.12:3260,2000
> 
> So you could just throw in everything in /var/lib/iscsi.
> 
> In the initramfs (is the script called init in centos 5.6) you would
> want to do
> 
> // start network
> // start iscsid
> iscsid
> // run iscsiadm to login using iface
> iscsiadm -m node -I iface1 -T iqn.1992-08.com.netapp:sn.15333 -p
> 192.168.1.12:3260,2000 -l
> // kill iscsid because when you pivot to the real root iscsid will be
> restarted by the init scripts.
> killall iscsid
> 

-- 
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.

Reply via email to