Re: Replacing a REMOVED drive in DEGRADED zpool
- Reply: Robert : "Re: Replacing a REMOVED drive in DEGRADED zpool"
- In reply to: Robert : "Re: Replacing a REMOVED drive in DEGRADED zpool"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Aug 2025 19:03:31 UTC
Robert <robert@webtent.org> writes: > Dag-Erling Smørgrav <des@FreeBSD.org> writes: > > `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? Yes. You should take a look in /var/backups, you may find a backup of the partition table from the failed drive. Assuming you remove the failed drive first, you can safely `gpart restore -l` this backup onto the replacement drive, which will recreate the labels (but not UUIDs). > 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. You can try to use recoverdisk to copy undamaged portions of the failed drive onto the replacement, but it's likely to take longer than resilvering. DES -- Dag-Erling Smørgrav - des@FreeBSD.org