Ben Lake | 26 Aug 19:14 2008

Re: iscsiadm login issues?

#sudo iscsiadm -m node -L automatic
Login session [iface: default, target: ign.2002-07.com.archose:3t.r5.0, 
portal: 10.0.0.11,3260]

Distro: Ubuntu 8.04.01

---- init snippet ----
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/iscsid
ADM=/usr/bin/iscsiadm
PIDFILE=/var/run/iscsid.pid

...

start() {
         log_daemon_msg "Starting iSCSI initiator service" "iscsid"
         sanitychecks
         modprobe -q iscsi_tcp 2>/dev/null || :
         modprobe -q ib_iser 2>/dev/null || :
         start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
         RETVAL=$?
         log_end_msg $RETVAL
         starttargets
}

starttargets() {
         log_daemon_msg "Setting up iSCSI targets"
         echo
         $ADM -m node --loginall=automatic
         log_end_msg 0
(Continue reading)

Mike Christie | 26 Aug 19:20 2008
Picon

Re: iscsiadm login issues?


Ben Lake wrote:
> #sudo iscsiadm -m node -L automatic
> Login session [iface: default, target: ign.2002-07.com.archose:3t.r5.0, 
> portal: 10.0.0.11,3260]
> 
> Distro: Ubuntu 8.04.01
> 
> ---- init snippet ----
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/usr/sbin/iscsid
> ADM=/usr/bin/iscsiadm
> PIDFILE=/var/run/iscsid.pid
> 
> ...
> 
> start() {
>         log_daemon_msg "Starting iSCSI initiator service" "iscsid"
>         sanitychecks
>         modprobe -q iscsi_tcp 2>/dev/null || :
>         modprobe -q ib_iser 2>/dev/null || :
>         start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
>         RETVAL=$?
>         log_end_msg $RETVAL
>         starttargets
> }
> 
> starttargets() {
>         log_daemon_msg "Setting up iSCSI targets"
>         echo
(Continue reading)

Ben Lake | 26 Aug 19:34 2008

Re: iscsiadm login issues?

#sudo iscsiadm -m node -T ign.2002-07.com.archose:3t.r5.0 | grep 
node.startup
node.startup = automatic

Frak. It worked this time!

#sudo /etc/init.d/open-iscsi stop
  * Disconnecting iSCSI targets
    ...done.
  * Stopping iSCSI initiator service
    ...done.
#sudo /etc/init.d/open-iscsi start
  * Starting iSCSI initiator service iscsid
    ...done.
  * Setting up iSCSI targets

Login session [iface: default, target: ign.2002-07.com.archose:3t.r5.0, 
portal: 10.0.0.11,3260]
    ...done.

The only thing I've done since I changed the conf was reboot for some 
hardware swapping. For reference, after I change the conf I logged out 
of the target(s) and did a stop/start and it didn't fly. Not sure why 
the reboot would have effected this, but the service seems to be working 
as expected now.

Thanks for the help man, sorry it wasn't more of an actual issue :)

Mike Christie wrote:
> Ben Lake wrote:
(Continue reading)


Gmane