Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Sep 2016 10:30:08 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: zpool (online|replace|labelclear) issues, -f option also failing
Message-ID:  <66613fe7-9558-137d-5561-e3d3180e5893@freebsd.org>
In-Reply-To: <CANJ8om4xX2pAkCxPTc8MarQo08cZ7R8j_M7aEKKV=2rtmm71yQ@mail.gmail.com>
References:  <CANJ8om4xX2pAkCxPTc8MarQo08cZ7R8j_M7aEKKV=2rtmm71yQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--QBjN7AOPAJIDFfMpivG95gB2OM4GA7R5V
Content-Type: multipart/mixed; boundary="ra57PXlth7QivpiBmdSM8gpRcR9sW3EMV";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-current@freebsd.org
Message-ID: <66613fe7-9558-137d-5561-e3d3180e5893@freebsd.org>
Subject: Re: zpool (online|replace|labelclear) issues, -f option also failing
References: <CANJ8om4xX2pAkCxPTc8MarQo08cZ7R8j_M7aEKKV=2rtmm71yQ@mail.gmail.com>
In-Reply-To: <CANJ8om4xX2pAkCxPTc8MarQo08cZ7R8j_M7aEKKV=2rtmm71yQ@mail.gmail.com>

--ra57PXlth7QivpiBmdSM8gpRcR9sW3EMV
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2016-09-27 16:53, Ultima wrote:
> Hello,
>=20
>  I am currently trying to replace a disk that was offlined and getting =
the
> following error:
>=20
> # zpool replace tank 14989197580381994958
> gptid/31be0527-84f0-11e6-bbbc-fcaa14edc6a6
> invalid vdev specification
> use '-f' to override the following errors:
> /dev/gptid/31be0527-84f0-11e6-bbbc-fcaa14edc6a6 is part of active pool
> 'tank'
>=20

zdb -l /dev/gptid/31be0527-84f0-11e6-bbbc-fcaa14edc6a6

Will tell you about the ZFS label that is on that disk.

The subject mentions labelclear, but you didn't indicate how you tried
to use it.

> # zpool replace -f tank 14989197580381994958
> gptid/31be0527-84f0-11e6-bbbc-fcaa14edc6a6
> invalid vdev specification
> the following errors must be manually repaired:
> /dev/gptid/31be0527-84f0-11e6-bbbc-fcaa14edc6a6 is part of active pool
> 'tank'
>=20
> # zpool status tank
>   pool: tank
>  state: DEGRADED
> status: One or more devices has been taken offline by the administrator=
=2E
> Sufficient replicas exist for the pool to continue functioning in a
> degraded state.
> action: Online the device using 'zpool online' or replace the device wi=
th
> 'zpool replace'.
>   scan: resilvered 1.10T in 9h4m with 0 errors on Tue Sep 20 00:33:32 2=
016
> config:
>=20
> NAME                                            STATE     READ WRITE CK=
SUM
> tank                                            DEGRADED     0     0   =
  0
>  raidz2-0                                      ONLINE       0     0    =
 0
>    gptid/8bdbd180-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8c4df91d-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8ccf21a3-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8d5521cb-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8de13b47-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8e842f92-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>  raidz2-1                                      DEGRADED     0     0    =
 0
>    gptid/8bba4a82-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8c26d491-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8ca3fea6-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    14989197580381994958                        OFFLINE      0     0    =
 0
>  was /dev/diskid/DISK-********p2
>    gptid/8db26351-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8e4bfa70-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>  raidz2-2                                      ONLINE       0     0    =
 0
>    gptid/8b957b47-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8c0340da-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8c77ddcb-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8cf6b7f1-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8d84b31e-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8e146dad-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>  raidz2-3                                      ONLINE       0     0    =
 0
>    gptid/8ebb39df-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8ef49770-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/2f94035d-7e9f-11e6-abe9-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8f69cf08-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8fa7c0a6-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
>    gptid/8fe7816d-f52a-11e5-90c5-fcaa14edc6a6  ONLINE       0     0    =
 0
> logs
>  gptid/683dc146-f531-11e5-90c5-fcaa14edc6a6    ONLINE       0     0    =
 0
>=20
> errors: No known data errors
>=20
> # glabel status | grep da14
> gptid/24a57a9b-84f0-11e6-bbbc-fcaa14edc6a6     N/A  da14p1
> gptid/31be0527-84f0-11e6-bbbc-fcaa14edc6a6     N/A  da14p2
>                       diskid/DISK-********     N/A  da14
>=20
> # gpart show da13 da14
> =3D>        40  7814037088  da13  GPT  (3.6T)
>           40     4194304     1  freebsd-swap  (2.0G)
>      4194344  7809842784     2  freebsd-zfs  (3.6T)
>=20
> =3D>        40  7814037088  da14  GPT  (3.6T)
>           40     4194304     1  freebsd-swap  (2.0G)
>      4194344  7809842784     2  freebsd-zfs  (3.6T)
>=20
> # uname -a
> FreeBSD S1 12.0-CURRENT FreeBSD 12.0-CURRENT #4 r306300: Sat Sep 24
> 14:24:23 EDT 2016
> root@S1:/usr/src/head/obj/usr/src/head/src/sys/MYKERNEL-NODEBUG
>  amd64
>=20
> I recently offlined the device and after onlining it the label changed =
to
> geom. After a few reboots the pool started importing by diskid. After
> attempting to offline/online by gptid, would continue to fail with an
> error. I decided try to replace it and is also failing with the error
> above. I also wiped the first & last 2MB of the disk without success. I=
s
> they're a known issue or perhaps I'm missing something obvious? zpool
> labelclear is also providing a similar error. The -f options are not
> helping.
>=20
>=20
> Any ideas what my issue maybe? The error suggests it is currently activ=
e on
> the pool, however the offline should have changed that status correct?
>=20
> Ultima
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"
>=20


--=20
Allan Jude


--ra57PXlth7QivpiBmdSM8gpRcR9sW3EMV--

--QBjN7AOPAJIDFfMpivG95gB2OM4GA7R5V
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJX69P0AAoJEBmVNT4SmAt+YuAQALyeX0rCaHHt031fqinN2cWD
Gx1a7MdUzdE2djCGKMJr2zgBkR3PaNjBwnr8e0BYRYO7iCrI9oQj9EGN47FgHrYL
qvN5VBNsa1ykVVfqHQexRDNO3ZwxM9gNCAOeuVRFb99nZr4bzlKpMwbyaOfedou8
kdcduxlGcgtNB81gGgjchKs9NkI/3TTUJbMlZ3ka862R3C5hSNN0olp5Q0Fn2pOC
hub+4iLstQnHEDujxB+4E+AeO88sXXvoB0jJslSgbkLi7CoL13EL0wntVmMJxRlF
Q0QtTVScW3L2Z7/E9Ptt9VkHNNfoH7RVj5Nk/xZWDlPKjhjxzkh0PhbfiplyihHt
ZS1wQas/ErqmpZJ0CJQD/jBVEm+zIDgDSQ20oz5BY4zcWuVdLmZG0DldwptLNUXn
k2cx4eGmS15KVYPs/qwlz0WGkFNg0jEvF9+1BNJ9TML1PX/BYSZhWBOFX15qp7qi
0ChA9Sbt2AJIlNcMzjSZmQbm/EUAMHqZMeMZPA0FSZCebr3TOuoiP+DUBaj305BD
wraO16WHYU+3Mv/lD/YS2/i48KxsvaZXV6jjngbubdeufZEHOeMGnHM6piYCf4Qp
3ZMrhR/NLSHjHTlak+sFIrOm585dHAck1jx+el2lp83gPJR5M04/u7cCZcqGE/Tt
LFmtFpA/xnYZ0e2M0Fss
=rGGp
-----END PGP SIGNATURE-----

--QBjN7AOPAJIDFfMpivG95gB2OM4GA7R5V--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66613fe7-9558-137d-5561-e3d3180e5893>