Re: Broadcom NIC sessions not retaining on reboot (node.startup=automatic not working)

38 views
Skip to first unread message

vaibhav pol

unread,
Nov 6, 2012, 3:29:17 AM11/6/12
to open-...@googlegroups.com
Hi 
set node.startup = manual in 
iscsid.conf then run iscsiadm to turn on specific portals by setting the 
--value/-v to automatic.
 
Thanks and regards
Vaibhav  Pol
Senior Technical Officer 
National PARAM Supercomputing Facility
Centre for Development of Advanced   Computing
Ganeshkhind Road
Pune University Campus
PUNE-Maharastra
Phone +91-20-25704176 ext: 176
Cell Phone :  +919850466409



On Mon, Nov 5, 2012 at 1:46 PM, riva gupta <riva...@gmail.com> wrote:
Dear All

I have connected my host and iSCSI storage directly with LAN cable.

The iface created for the particular port through which the connection is made is:

 iscsiadm -m iface -I bnx2i.3c:d9:2b:f5:2e:e7
# BEGIN RECORD 2.0-872
iface.iscsi_ifacename = bnx2i.3c:d9:2b:f5:2e:e7
iface.net_ifacename = <empty>
iface.ipaddress = 192.168.3.20
iface.hwaddress = 3c:d9:2b:f5:2e:e7
iface.transport_name = bnx2i
iface.initiatorname = <empty>
# END RECORD

I have successfully discovered the target using the command:
iscsiadm -m discovery -t st -p 192.168.3.14:3260 -I bnx2i.3c:d9:2b:f5:2e:e7

And logged into my storage successfully as:
iscsiadm -m node -p 192.168.3.14:3260 -I bnx2i.3c:d9:2b:f5:2e:e7 -l

I can then see my sessions successfully as:
iscsiadm -m session
bnx2i: [2] 192.168.3.14:3260,1 iqn.2001-03.jp.nec:storage01:ist-m000-sn-0000000000090019.lx-hprhel6.target0000

I have the setting node.startup = automatic
in the file /etc/iscsi/iscsid.conf

But on reboot I see:
iscsiadm -m session
iscsiadm: No active sessions.

I think the node.startup=automatic is not working. Have any of you faced such a problem. Please help.


--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/open-iscsi/-/iSgT7ktg3bMJ.
To post to this group, send email to open-...@googlegroups.com.
To unsubscribe from this group, send email to open-iscsi+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.

Mike Christie

unread,
Nov 6, 2012, 4:00:59 AM11/6/12
to open-...@googlegroups.com, vaibhav pol
On 11/06/2012 02:29 AM, vaibhav pol wrote:
> Hi
> set node.startup = manual in
> iscsid.conf then run iscsiadm to turn on specific portals by setting the
> --value/-v to automatic.

Just wanted to add some more details.

The iscsi/iscsid service does not go by the iscsid.conf settings alone.
When you discovery/setup targets it uses those as the defaults for the
records that get made. If you run

iscsiadm -m node -T youtarget -p ip -I iface

then you will see the settings that will get used for that specific records.

If those also have automatic, then check that the iscsid and iscsi
services are started at boot (in some distros it might be called
open-iscsi).

And to set settings for specific records run:

iscsiadm -m node -T youtarget -p ip -I iface -o update -n nameofsetting
-v newvalue



>
> Thanks and regards
> Vaibhav Pol
> Senior Technical Officer
> National PARAM Supercomputing Facility
> Centre for Development of Advanced Computing
> Ganeshkhind Road
> Pune University Campus
> PUNE-Maharastra
> Phone +91-20-25704176 ext: 176
> Cell Phone : +919850466409
>
>
>
> On Mon, Nov 5, 2012 at 1:46 PM, riva gupta <riva...@gmail.com
> <mailto:riva...@gmail.com>> wrote:
>
> Dear All
>
> I have connected my host and iSCSI storage directly with LAN cable.
>
> The iface created for the particular port through which the
> connection is made is:
>
> * iscsiadm -m iface -I bnx2i.3c:d9:2b:f5:2e:e7*
> # BEGIN RECORD 2.0-872
> iface.iscsi_ifacename = bnx2i.3c:d9:2b:f5:2e:e7
> iface.net_ifacename = <empty>
> iface.ipaddress = 192.168.3.20
> iface.hwaddress = 3c:d9:2b:f5:2e:e7
> iface.transport_name = bnx2i
> iface.initiatorname = <empty>
> # END RECORD
>
> I have successfully discovered the target using the command:
> *iscsiadm -m discovery -t st -p 192.168.3.14:3260
> <http://192.168.3.14:3260> -I bnx2i.3c:d9:2b:f5:2e:e7*
>
> And logged into my storage successfully as:
> *iscsiadm -m node -p 192.168.3.14:3260 <http://192.168.3.14:3260> -I
> bnx2i.3c:d9:2b:f5:2e:e7 -l
> *
> I can then see my sessions successfully as:
> *iscsiadm -m session*
> bnx2i: [2] 192.168.3.14 <tel:%5B2%5D%20192.168.3.14>:3260,1
> iqn.2001-03.jp.nec:storage01:ist-m000-sn-0000000000090019.lx-hprhel6.target0000
>
> I have the setting *node.startup = automatic*
> in the file /etc/iscsi/iscsid.conf
>
> But on reboot I see:
> *iscsiadm -m session*
> iscsiadm: No active sessions.
>
> I think the node.startup=automatic is not working. Have any of you
> faced such a problem. Please help.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "open-iscsi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/open-iscsi/-/iSgT7ktg3bMJ.
> To post to this group, send email to open-...@googlegroups.com
> <mailto:open-...@googlegroups.com>.
> To unsubscribe from this group, send email to
> open-iscsi+...@googlegroups.com
> <mailto:open-iscsi%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/open-iscsi?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "open-iscsi" group.

Eddie Wai

unread,
Nov 6, 2012, 6:02:43 PM11/6/12
to open-...@googlegroups.com, vaibhav pol
It is also possible that the corresponding nic interface is up on boot.
It's worthwhile to make sure that the ONBOOT=yes is set inside that
corresponding sysconfig network script.

riva gupta

unread,
Nov 7, 2012, 6:35:04 AM11/7/12
to open-...@googlegroups.com
Hi Vaibhav,

Thank you so much. I did the settings as you suggested and it worked :)

In case someone faces the same situation i.e. Broadcom sessions not retaining on reboot, you can proceed as:

Step 1. Do discovery as: iscsiadm -m discovery -t st -p <IP>:port -I <iface>
Step 2. Set node.startup = manual in iscsid.conf, and then run iscsiadm to do the setting on each specific portal as:
            iscsiadm -m node -p <ip>:port -I <iface> -o update -n node.startup -v automatic
Step 3. Then login as:
            iscsiadm -m node -I <iface> -p <ip>:port -l

Reply all
Reply to author
Forward
0 new messages