Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2022 11:05:59 +0800
From:      Bill Yuan <bycn82@gmail.com>
To:        freebsd-fs@freebsd.org, pjd@freebsd.org
Subject:   How to handle message "provider hast/data has error 6 set"
Message-ID:  <CAC%2BJH2zAKq1G5efG0k=8rysZL4J3v0zZbCyA%2BwP-YYeKfxN6Lw@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello,

I am trying to build a HA across 2 machines, but I am facing some
challenges and failed to get more explanations/answers from the internet.

What I did is a simple failover which means switching the secondary to
primary, and primary to secondary.

I noticed the status is "complete" on both machines, But, the device
/dev/hast/data is not founded on the primary machine. (data is the resource
name).

After a while, I restarted the hastd service, and I saw these error
messages. and a few seconds later, the /dev/hast/data appear.

g_access(961): provider hast/data has error 6 set
g_access(961): provider hast/data has error 6 set
g_access(961): provider hast/data has error 6 set

So, I got below questions need your help.
Q1. When the status is "complete", does it mean the information in the
block device is exactly the same on both machines?
Q2. If everything is correct, the /dev/hast/data should appear after the
status changed to primary, and does the partition size impact the time (I
meant, the duration between the status changed and the /dev/hast/data
appearing).
Q3. Is it correct that the /dev/hast/data may not appear due to some issue?
and is there any way to check whether any issue there?
Q4. As mentioned in the beginning, I restarted the hastd service and saw
that error message. My question is, what is the proper way to recover from
that situation?

Thanks!

Regards,
Bill Yuan

[-- Attachment #2 --]
<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Hello,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">I am trying to build a HA across 2 machines, but I am facing some challenges and failed to get more explanations/answers from the internet. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">What I did is a simple failover which means switching the secondary to primary, and primary to secondary.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">I noticed the status is &quot;complete&quot; on both machines, But, the device /dev/hast/data is not founded on the primary machine. (data is the resource name). </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">After a while, I restarted the hastd service, and I saw these error messages. and a few seconds later, the /dev/hast/data appear.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">g_access(961): provider hast/data has error 6 set<br>g_access(961): provider hast/data has error 6 set<br>g_access(961): provider hast/data has error 6 set<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">So, I got below questions need your help.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="background-color:rgb(255,255,255)"><font color="#0000ff">Q1. When the status is &quot;complete&quot;, does it mean the information in the block device is exactly the same on both machines?</font></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="background-color:rgb(255,255,255)"><font color="#0000ff">Q2. If everything is correct, the /dev/hast/data should appear after the status changed to primary, and does the partition size impact the time (I meant, the duration between the status changed and the /dev/hast/data appearing).<br>Q3. Is it correct that the /dev/hast/data may not appear due to some issue? and is there any way to check whether any issue there?<br>Q4. As mentioned in the beginning, I restarted the hastd service and saw that error message. My question is, what is the proper way to recover from that situation?</font></span></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Thanks!</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Bill Yuan</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC%2BJH2zAKq1G5efG0k=8rysZL4J3v0zZbCyA%2BwP-YYeKfxN6Lw>