On 04/26/2014 01:14 AM, Cheng Cheng wrote:
> Hi Mike,
> 
>>>> You should not have to logout the session. For Red Hat and I think
>>>> SLES, when the system is shutting down the root FS gets mounted as
>>>> read-only. iSCSI is left running. Eventually /sbin/shutdown is run and
>>>> from there the kernel is shutdown and if needed the scsi layer might
>>>> have the iscsi layer send some commands like a sync cache. So for this
>>>> you just need to leave the network up.
>>>
>>> I did some research today around this. For Debian, yes, the root FS will
>>> be remounted as read-only before shutting down/rebooting. However, the
>>> system will then stuck at sync cache, even I have left network running.
>>> I have not looked into the Linux kernel to check whether iscsi layer
>>> will send logout command to the target, but I highly suspect it won't.
>>
>> It will not logout of the target at this time. It cannot because
>> userspace is shutdown and iscsid is what sends the logout request.
>>
>> A logout is *not* needed though. It is not what is causing your problem.
>>
>> For RHEL/OEL and SUSE we do not send a logout and it works fine.
> 
> The reason I need the logout operation is not only limited to a gracefully 
> shutdown. I also want to have the tgt side have a clean record for the target.
> 

If you want to send a patch for iscsistart then that would be ok.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to