Re: Replacing a REMOVED drive in DEGRADED zpool

From: Robert <robert_at_webtent.org>
Date: Thu, 21 Aug 2025 14:19:02 UTC
On 8/21/2025 2:56 AM, Dag-Erling Smørgrav wrote:
> David Christensen <dpchrist@holgerdanske.com> writes:
>> Robert <robert@webtent.org> writes:
>>> 3. Boot up and run `gpart backup ada1 > gpart.ada1` then `gpart
>>> restore ada0 < gpart.ada1`
>> Cloning ada1's GPT's (primary and secondary) to ada0 will result in
>> duplicate identifiers on two disks -- UUID's, labels, etc..
> `gpart backup | gpart restore` does not copy UUIDs or labels.

Good to know, this would be the best option then for preparing the drive 
for zpool-replace?

>> [...] cloning the failed disk to the replacement disk could save
>> effort.  ddrescue(1) may be required to get past bad blocks.
> You mean recoverdisk(1).
Would recovering the disk be beneficial versus replace? As far as faster 
recovery, not needing to resilver or as much. These are not big drives 
as you can see and RAID10 zpool.

Thanks for the pointers!