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>
next in thread | raw e-mail | index | archive | help
--000000000000fbf8b205e4e8ef51 Content-Type: text/plain; charset="UTF-8" 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 --000000000000fbf8b205e4e8ef51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:verdana,= sans-serif;color:rgb(0,0,0)">Hello,</div><div class=3D"gmail_default" style= =3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class= =3D"gmail_default" style=3D"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 challen= ges and failed to get more explanations/answers from the internet.=C2=A0</d= iv><div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;col= or:rgb(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"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><d= iv class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rg= b(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verda= na,sans-serif;color:rgb(0,0,0)">I noticed the status is "complete"= ; on both machines, But, the device /dev/hast/data is not founded on the pr= imary machine. (data is the resource name).=C2=A0</div><div class=3D"gmail_= default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></di= v><div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;colo= r: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=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:r= gb(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verd= ana,sans-serif;color:rgb(0,0,0)">g_access(961): provider hast/data has erro= r 6 set<br>g_access(961): provider hast/data has error 6 set<br>g_access(96= 1): provider hast/data has error 6 set<br></div><div class=3D"gmail_default= " style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div = class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0= ,0,0)">So, I got below questions need your help.</div><div class=3D"gmail_d= efault" style=3D"font-family:verdana,sans-serif"><span style=3D"background-= color:rgb(255,255,255)"><font color=3D"#0000ff">Q1. When the status is &quo= t;complete", does it mean the information in the block device is exact= ly the same on both machines?</font></span></div><div class=3D"gmail_defaul= t" style=3D"font-family:verdana,sans-serif"><span style=3D"background-color= :rgb(255,255,255)"><font color=3D"#0000ff">Q2. If everything is correct, th= e /dev/hast/data should appear after the status changed to primary, and doe= s the partition size impact the time (I meant, the duration between the sta= tus changed and the /dev/hast/data appearing).<br>Q3. Is it correct that th= e /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 rest= arted 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 cla= ss=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,= 0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verdana,san= s-serif;color:rgb(0,0,0)">Thanks!</div><div class=3D"gmail_default" style= =3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class= =3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)= ">Regards,</div><div class=3D"gmail_default" style=3D"font-family:verdana,s= ans-serif;color:rgb(0,0,0)">Bill Yuan</div><div class=3D"gmail_default" sty= le=3D"font-family:verdana,sans-serif;font-size:small;color:#000000"><br></d= iv><div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;fon= t-size:small;color:#000000"><br></div><div class=3D"gmail_default" style=3D= "font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><d= iv class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-siz= e:small;color:#000000"><br></div><div class=3D"gmail_default" style=3D"font= -family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div cl= ass=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-size:sma= ll;color:#000000"><br></div><div class=3D"gmail_default" style=3D"font-fami= ly:verdana,sans-serif;font-size:small;color:#000000"><br></div></div> --000000000000fbf8b205e4e8ef51--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC%2BJH2zAKq1G5efG0k=8rysZL4J3v0zZbCyA%2BwP-YYeKfxN6Lw>