From nobody Mon Jul 25 09:43:22 2022 X-Original-To: questions@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 4Lrw8z1yCpz4X1Qf for ; Mon, 25 Jul 2022 09:43:47 +0000 (UTC) (envelope-from void@f-m.fm) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lrw8y1Wzpz3whg for ; Mon, 25 Jul 2022 09:43:46 +0000 (UTC) (envelope-from void@f-m.fm) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id D82C632001E9; Mon, 25 Jul 2022 05:43:43 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute3.internal (MEProxy); Mon, 25 Jul 2022 05:43:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1658742223; x=1658828623; bh=2AjLsQWFYI UXMBOzLCwLI0SFRrKFoMBTZ/aLLUQ40H0=; b=WMn1G7fDF/3G6R48spcyaJmNPO dPMsDwPBKvOd6LRWWAtmhNMTGyUNcdj7HPRUxy+FsHBcTplhsh+ZXHiii0RoMCsz OW07w52LfBsZEftXpNoB4Y8F8QsDbXZxi/KRe2CaCcZs0y9eJq72LyA/5YIbg4Hp gBC41gQ7SZRRVAW8SmVgMFK6LAumjHatUTYEs8K6ZPjCFOOHvhXtNWzyp2ZmS96I U57IJllFcBsjrYvu6BegWRNLq7zT/zTrYUxaH+NGYPc2m7aiPT4OgQ0kr0AuOuGr TT0rrLRxN8Ns4Uyn2PHKsS8KrBhAoqfvCRRjRXqmXfV+VLE7yBG9OpbGBwfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658742223; x=1658828623; bh=2AjLsQWFYIUXMBOzLCwLI0SFRrKF oMBTZ/aLLUQ40H0=; b=vdOOJwrNtv+nAKV6sSoD6aSGAHuiDgsij24mFbNixQ7+ MqYZtfHDLYbHoiPOMG9Eqw0w/dKzyNaemMF8h6iNYvmlI61y4K9063VfHxxGjJ+D 3k9UkN6Ry2ssoIDxHMtEgB/pOMKitWkHz+u72TFwBRlynKkGmqw0/ULLl0Du8fKz UjlW0gS4ucyaiMzUbsUAFYgK0Uz/mC1LqhEuoUp4IL/0JzQgoit/ywOwOydw95de 1491XCE/wsPzdcJOt6NoRJ8u+9Mm9uFRMxAntp7mOKM7KRKAP44lcKTpm8TVAy8A cvWpbuwSJMhDEjiwdzDJJavK1bTci+j1DHNsWNbnQg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtkedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpehvohhi ugcuoehvohhiugesfhdqmhdrfhhmqeenucggtffrrghtthgvrhhnpefhhedvhfetjedvud evtefhteffgfeludeuudehuedvueekgfeugeffhfekvdeujeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehvohhiugesfhdqmhdrfhhm X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 144DF2A20075; Mon, 25 Jul 2022 05:43:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-757-gc3ad9c75d3-fm-20220722.001-gc3ad9c75 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Message-Id: <56329e9f-5e66-40b7-87dc-e5e11704c041@www.fastmail.com> In-Reply-To: <20220724160608.5e0a288a8c279b1f3348f890@sohara.org> References: <6baba52f-309a-4ebd-aef5-5b513470a48c@www.fastmail.com> <20220724160608.5e0a288a8c279b1f3348f890@sohara.org> Date: Mon, 25 Jul 2022 09:43:22 +0000 From: void To: questions@freebsd.org Cc: "Steve O'Hara-Smith" Subject: Re: zpool query Content-Type: text/plain X-Rspamd-Queue-Id: 4Lrw8y1Wzpz3whg X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm3 header.b=WMn1G7fD; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=vdOOJwrN; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 64.147.123.19 as permitted sender) smtp.mailfrom=void@f-m.fm X-Spamd-Result: default: False [-4.01 / 15.00]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.988]; NEURAL_HAM_MEDIUM(-0.93)[-0.932]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; MID_RHS_WWW(0.50)[]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm3,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.19]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.19:from]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm] X-ThisMailContainsUnwantedMimeParts: N Hello On Sun, 24 Jul 2022, at 15:06, Steve O'Hara-Smith wrote: > Provided there is not too much data then you can use zpool remove > to remove one drive from the stripe - this will take time because all the > data has to be copied and it will fail if there isn't room for it all. > > Once the drive is removed you can use zpool attach to add it as a > mirror of the other drive. > > Full disclosure - this is as documented I've never needed to do it. Thank you Steve, this worked. It tells you progress of what it's doing like so: remove: Evacuation of /dev/ada1 in progress since Mon Jul 25 00:35:56 2022 2.34G copied out of 7.24G at 100M/s, 32.38% done, 0h0m to go (eventually) remove: Removal of vdev 1 copied 7.24G in 0h1m, completed on Mon Jul 25 00:37:29 2022 221K memory used for removed device mappings this was really painless; I'm very impressed. I was *sure* I'd have to shift data, which would have been a pain. In the end, decided not to mirror as the removed disk was clocking errors (this was the reason I wanted to remove it from the striped array in the first place). Thought i might be able to remap the bad blocks with a dd read of the whole disk and then use it to make a mirror but there's like >10k already, so it's being junked. The other disk, which is the same make/vintage has 0 errors. thanks again