Other restored gpart backup different from source

Hello,

I’m currently preparing an SSD to replace a dead one from a mirror:

Code:
# zpool status flash
  pool: flash
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
    the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: scrub repaired 0B in 01:17:56 with 0 errors on Wed Nov 13 04:41:43 2024
config:

    NAME              STATE     READ WRITE CKSUM
    flash             DEGRADED     0     0     0
      mirror-0        DEGRADED     0     0     0
        gpt/ssd_99DF  ONLINE       0     0     0
        gpt/ssd_9BC4  UNAVAIL      0     0     0  cannot open

errors: No known data errors

The remaining drive looks like this:

Code:
# gpart show -l da0
=>         40  13674549088  da0  GPT  (6.4T)
           40       532480    1  efiboot0  (260M)
       532520         1024    2  gptboot0  (512K)
       533544          984       - free -  (492K)
       534528     41943040    3  swap_99DF  (20G)
     42477568  13632069632    4  ssd_99DF  (6.3T)
  13674547200         1928       - free -  (964K)

I took the gpart backup file and used it to restore the partition table on the new drive on a different machine. After restoration and label modification, the partition table on the new drive is:

Code:
# gpart show -l da0
=>         34  13674549101  da0  GPT  (6.4T)
           34            6       - free -  (3.0K)
           40       532480    1  efiboot1  (260M)
       532520         1024    2  gptboot1  (512K)
       533544          984       - free -  (492K)
       534528     41943040    3  swap_74C3  (20G)
     42477568  13632069632    4  ssd_74C3  (6.3T)
  13674547200         1935       - free -  (968K)

Why those partition tables are different?
 
Thank you. As I understand it, it could be related to an optimisation of 4K alignment, but «non-free» partitions are at the exact same place as on the source, so I guess I’m good with either layout.
 
Back
Top