Re: Replacing a REMOVED drive in DEGRADED zpool

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Thu, 21 Aug 2025 19:28:22 UTC
On 8/21/25 12:06, Dag-Erling Smørgrav wrote:
> David Christensen <dpchrist@holgerdanske.com> writes:
>> You are correct -- gpart(8) backups are incomplete (!).  Disk GUID
>> (UUID) is missing and partition GUID's (UUID's) and names (labels) are
>> missing.  Where is this documented?
> 
> Labels are included, they're just not restored unless you specify -l.
> If your backup doesn't include labels, it means your partition table
> didn't have any. 


Thank you for the clarification -- the disk I tested does not have GPT 
partition labels.  Testing on a disk with GPT partition labels, gpart(8) 
action "backup" does print the labels.


> UUIDs are intentionally neither included nor restored.
> 
>> RTFM glabel(8), I believe I see how to set labels after a gpart(8)
>> restore onto a wiped disk.
> 
> glabel labels are different and separate from gpart labels.
> 
> DES


Thank you for the clarification regarding GPT partition labels, GEOM 
provider labels, and glabel(8).


So if I want a GPT partition label, I will use gpart(8) action "add" 
with option "-l label" or action "modify" with option "-l label".


David