-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto reconnect #260
Comments
You can set how many times libiscsi will try to reconnect before giving up
using :
void iscsi_set_reconnect_max_retries(struct iscsi_context *iscsi, int count)
This should however default to -1, which means never give up, try
reconnecting forever.
…On Fri, Jan 5, 2018 at 7:53 PM, clicx ***@***.***> wrote:
How to set auto reconnect to server if connection broken?
It seems not recovery iscsi connection after host is down for a period
time.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#260>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeNkCnAHSodIqE3VqRH6JWTX6YiquPTks5tHfEngaJpZM4RUPS6>
.
|
iscsi_tcp_service (iscsi=0x643c80, revents=4) at lib/socket.c:868 Even add this function calling still not work. after iscsi server stopped, in the polling, we get revent=4, and wk always =1, even start iscsi server again, the same things returned. |
@clicx can you tell us which platform you're using libiscsi on? |
@sitsofe Linux, I think in qemu built-in libiscsi has same behaviour, while I using an iSCSI target to start a vm, after connection lost for a period of time, the vm will lost disk permanently. But kernel mode iscsi initiator in linux does not, it always keep connection session. So I think if it need any extra configuration on it. |
I tested, it seems working in most time, but some time, it happened something: |
How to set auto reconnect to server if connection broken?
It seems not recovery iscsi connection after host is down for a period time.
The text was updated successfully, but these errors were encountered: