On 06/16/2011 05:34 PM, classen wrote:
> Hello,
> 
> I'm setting up a diskless CentOS machine which will boot from a NetApp
> iSCSI LUN
> 
> So far I have installed CentOS 5.6 via a kickstart file to the iSCSI
> LUN
> I am using iPXE and DHCP to boot from teh NetApp.
> 
> My machine has 2 NICs
> 
> I want eth0 to be the general use network card
> I want eth1 to be used for iSCSI communication only
> 

There is no way to take the easy route and just use different subnets is
there? I am just asking because I think using ifaces could be too much
fun :) See below.

> Although I have configures a custom iface using iscsiadm I cannot get
> my system to use it. Here is the summary of ifaces:
> 
> [root@blah ~]# iscsiadm -m iface -P 1
> Iface: default
>         Target: iqn.1992-08.com.netapp:sn.15333
>                 Portal: 192.168.1.12:3260,2000
> Iface: iface1
>         Target: iqn.1992-08.com.netapp:sn.15333
>                 Portal: 192.168.1.12:3260,2000
> 
> because the target disk is used for root access I cannot logout of the
> iscsi session that is using the default iface so that I can re login
> using iface1.
> 
> 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