From owner-freebsd-current@freebsd.org Wed Sep 28 14:30:20 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 770B2C015EC for ; Wed, 28 Sep 2016 14:30:20 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53DE2166B for ; Wed, 28 Sep 2016 14:30:19 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id EF66211BCE for ; Wed, 28 Sep 2016 14:30:12 +0000 (UTC) Subject: Re: zpool (online|replace|labelclear) issues, -f option also failing To: freebsd-current@freebsd.org References: From: Allan Jude Message-ID: <66613fe7-9558-137d-5561-e3d3180e5893@freebsd.org> Date: Wed, 28 Sep 2016 10:30:08 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QBjN7AOPAJIDFfMpivG95gB2OM4GA7R5V" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 14:30:20 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QBjN7AOPAJIDFfMpivG95gB2OM4GA7R5V Content-Type: multipart/mixed; boundary="ra57PXlth7QivpiBmdSM8gpRcR9sW3EMV"; protected-headers="v1" From: Allan Jude 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: In-Reply-To: --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--