Changing the disks from /sdX to UUID on an OS bootable ZFS raid-1 pool?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

vl1969

Active Member
Feb 5, 2014
634
76
28
ok, I have posted a question on Proxmox forum but thought maybe some one here can shed some light on this.
Starting with version 4.2+ the Proxmox install supports the ZFS raid for OS install and boot.
so I am playing with Proxmox v5 setup using ZFS raid-1 for OS install.
so far it looks nice and all but my problem, if you want to call it that, is that the install uses the disk
assigned names /sdX for creation of main pool "rpool"

Example from my test config.
Code:
root@pve:~# zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            sda2    ONLINE       0     0     0
            sdb2    ONLINE       0     0     0

errors: No known data errors

so my question is, is there a way to force the installer to use the UUID
that is it should look like
Code:
    root@pve:~# zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
config:

        NAME                                        STATE     READ WRITE CKSUM
        rpool                                       ONLINE       0     0     0
          mirror-0                                  ONLINE       0     0     0
            scsi-360022480e2b5d312f71798988153c486  ONLINE       0     0     0
            scsi-360022480039f2676908c6d4ab3163810  ONLINE       0     0     0

errors: No known data errors
or is there a way to change this after install on running system. and how would I do that?

FYI, keep in mind that if I do this it would be on a new setup so I do not have to worry about any custom configs or anything BUT I may not have an extra disk to use for replacing the disk in vdev as many suggestions I have seen. it may work on my test setup as it is virtual and i can always create a new disk to use, but on real system I do not have physical drive on my real setup.