From: Tomasz C. <ma...@wp...> - 2007-11-29 14:07:16
|
S. J. van Harmelen schrieb: >> If it works, do the same for the real target - note again - ietd can >> hang when being restarted (there are workarounds, though)! > > Oke, but my question was how to do it without restarting IET because I > have a production target running on the same server as the target that I > want to change. > > So how can I do this with ietadm without restarting ietd? Restarting the iSCSI target shouldn't confuse the initiator. The worst that can happen is that the initiator will do a "host reset" - which also can happen and happens with normal drives. Restarting the target also seems to be the fastest way for me. Other possibility would be to remove a given target with "ietadm --op delete" (as Arne already suggested) - but you can't do it, as long as the initiator is connected to it. As a consequence, you would have to block the initiator with iptables, wait ~10 minutes until the connection times out, remove the target, add it again. Again, initiator should survive a 10 minute disconnection if it's configured properly (by default, open-iscsi will drop a connection if there is no activity for more than 120 seconds). -- Tomasz Chmielewski http://wpkg.org |