Update zpool devs to use uuid or by-id

I looked over the old forum thread here: /community/threads/truenas-keeps-importing-zfs-by-dev-sd-x-mount-point-changes.108122/

This seems to be similar to my predicament…I’ve just upgraded from CORE (clean install method), but on a reboot one of my pools was degraded because it picked-up the wrong dev as a member. Using zpool status I see names like “sdg2” and “sdi2”.

To bring one pool back online, I “replaced” the failed disk (it was the wrong disk) and that’s now resilvering and says “was /dev/sdf2”, but the new dev looks like a UUID. So maybe this is a carry-over from CORE config?

Bottom line: Is there a clean way to update the zpool configs so they reference something more unique (UUID or by-id method) instead of the traditional sda,b,c,d references that are obviously prone to change at times?

Thanks

Here is “pool1” after re-adding the correct disk…note that now the “new” disk is referenced by uuid. How do I get all the disks in this pool (and my other pools) to be referenced by something unique like that without having to rebuild and resilver all the pools? I’m afraid I’ll lose one or more of my pools on reboot!

HOWEVER, that resilvered disk now only has one partition. The other two disks have a swap partition as part-1?

root@freenas[~]# zpool status -vv pool1
pool: pool1
state: ONLINE
scan: resilvered 1.28T in 07:23:25 with 0 errors on Mon Feb 3 19:35:58 2025
config:

    NAME                                      STATE     READ WRITE CKSUM
    pool1                                     ONLINE       0     0     0
      raidz1-0                                ONLINE       0     0     0
        df0774c4-e524-444a-bf68-e32745b2ee18  ONLINE       0     0     0
        sdg2                                  ONLINE       0     0     0
        sdi2                                  ONLINE       0     0     0

errors: No known data errors