[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: How to reconnect to iSCSI target ?



Christopher Smith wrote:
After getting some disk errors on a machine being used as an iSCSI target, i need to shutdown the machine to replace a disk. So, on the initiator, I commented out the relevant DiscoveryAddress in /etc/iscsi.conf and did a "service iscsi reload".

I then used this command to close the session (from the README):

The following file can be used to request shutdown of an iscsi session.

  shutdown - stop the iSCSI driver.
  # echo "shutdown" > /sys/class/scsi_host/hostX/shutdown


However, now I've replaced the disk and restarted the target, I'm having trouble getting the initiator to reconnect.

you actuallly would not need to start and stop the initiator for this case. You can rescan the disk or scan for new disks or delete old disks from sysfs.

  I've uncommented the
appropriate DiscoveryAddress line in /etc/iscsi.conf and tried several "service iscsi reload" commands, but the initiation will not reconnect to the target.

Try
# killall iscsid
# iscsid


I've tested connecting from another machine configured as an initiator and it worked first time, so the problem is not on the target.

What am I doing wrong ? How can I reconnect to a target/restart a session after "shutting it down" ?

CS


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
linux-iscsi-users mailing list
linux-iscsi-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/linux-iscsi-users



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
linux-iscsi-users mailing list
linux-iscsi-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/linux-iscsi-users

[IP Storage]     [IETF]     [Linux SCSI]     [iSCSI Book]     [Linux Resources]     [Yosemite News]     [Photo]     [Home]     [IETF Announcements]     [IETF Discussion]     [SCSI Hardware]