From nobody Fri Jul 29 03:05:59 2022 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LvC8q0dlBz4XqxQ for ; Fri, 29 Jul 2022 03:06:35 +0000 (UTC) (envelope-from bycn82@gmail.com) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LvC8p2ST7z3CjT; Fri, 29 Jul 2022 03:06:34 +0000 (UTC) (envelope-from bycn82@gmail.com) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-31bf3656517so38228707b3.12; Thu, 28 Jul 2022 20:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc; bh=CnK4zu5GUBc1JLuKNk30FarRgZTBC1MgI3MxuwnZY3Y=; b=mqzMCTxkYGs2GB0Wz5zYalsU00KZjSYs4Fg44mwURHd9naBsoCfxtZN4CFRpr9unvH cjpdIlLcMkmB1OCAkD15PneXaCvNdmRMjCDMoW40vU5LU9Crlxn9FkcomoKDfhCPWxm9 9d1mLxklsLdsgsqZTHHVgG9+zmDrJWYU4GiHGxdM6zsFgTOhgcDGCj65uqz734TWbuY/ mXigmR+8e1XOePwPjIwOIez6HvsDO1zCjUy3stvQYWc/8Ja9fck170J0ktMfvMPYRn4d AOeGELTHUyha+qkRKjeh9uLpDpkKMFCgvT7HQgqZHwvgqDfwhmYvCVDBUmkQaGOTnUMy EEpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc; bh=CnK4zu5GUBc1JLuKNk30FarRgZTBC1MgI3MxuwnZY3Y=; b=4g25bHFuZc655yKz2cUPZqipKTN95rfUHgKcCja9FpgO+kPoMj+Zi8ocwy/ciiSbCn BBB5ntaRm1GasVEafkFdQ58yGhYi0Hp31JS+lKurlN4904yxRkNL4aKjh2qm6B/5ZtdS qgYc8l0VLJYlVNeqW7tiDaZXogB6Pbl6KcXGN3qCKZGKSqR0ih00i39R5zrulqX7rSej NkutO4cR3JwxSslLV4PrD1wbimxDBJnUIP8lp6gjEwPyeS1NKCd3t2FlKN/X1n9NryD0 A3M3yC+FOv/T8qgXDxxLnPyBigvfXtnADA2LHkGwmHBMFrNGDscRK9mqJFbLcoQRys1U VFdQ== X-Gm-Message-State: ACgBeo1lpXq/uDOsOfO5vXPRfVW0drBd/CNvrDD0yLVKolVtUUhVOSu7 864awn6sm1+u95b3zNj1vmvfXld6xnK2ReahXnMb1oPg/Fo= X-Google-Smtp-Source: AA6agR78LY2kpLKcWp3AFeFwdz2EAzSRMAi7YZ99N/WlNgzK9Hc2fN+BbvgMUoByjbv5E+kgMzMK1aDabwni9/lX3mY= X-Received: by 2002:a81:9942:0:b0:31f:5b81:bbc4 with SMTP id q63-20020a819942000000b0031f5b81bbc4mr1441600ywg.259.1659063993365; Thu, 28 Jul 2022 20:06:33 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Reply-To: bycn82@dragonflybsd.org From: Bill Yuan Date: Fri, 29 Jul 2022 11:05:59 +0800 Message-ID: Subject: How to handle message "provider hast/data has error 6 set" To: freebsd-fs@freebsd.org, pjd@freebsd.org Content-Type: multipart/alternative; boundary="000000000000fbf8b205e4e8ef51" X-Rspamd-Queue-Id: 4LvC8p2ST7z3CjT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=mqzMCTxk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bycn82@gmail.com designates 2607:f8b0:4864:20::1131 as permitted sender) smtp.mailfrom=bycn82@gmail.com X-Spamd-Result: default: False [-3.67 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.98)[-0.978]; NEURAL_HAM_MEDIUM(-0.69)[-0.692]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[bycn82@dragonflybsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1131:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --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
Hello,

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

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 pr= imary machine. (data is the resource name).=C2=A0

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 class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:r= gb(0,0,0)">
g_access(961): provider hast/data has erro= r 6 set
g_access(961): provider hast/data has error 6 set
g_access(96= 1): provider hast/data has error 6 set

So, I got below questions need your help.
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?
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).
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?
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?

Thanks!

Regards,
Bill Yuan







--000000000000fbf8b205e4e8ef51--