During Proxmox 4.0 installation, I install root on a mirrored vdev on rpool. The installer appears to have created the pool by disk assignment (/dev/sdx) instead of by-id. Is there any way to force a re-import of the root zpool by-id? I know for a storage pool one can simply:
Is this possible for a root zpool? Barring that, is it possible to change the zfs init.d script (or similar startup script) to mount the zpool by-id instead of by disk assignment?
In other words, zpool status returns this:
How can I get it to return something like this:
Code:
[COLOR=#000000][FONT=Ubuntubeta]# zpool export rpool[/FONT][/COLOR]
[COLOR=#000000][FONT=Ubuntubeta]# zpool import -d /dev/disk/by-id rpool[/FONT][/COLOR]
Is this possible for a root zpool? Barring that, is it possible to change the zfs init.d script (or similar startup script) to mount the zpool by-id instead of by disk assignment?
In other words, zpool status returns this:
Code:
root@proxmox:/# zpool status pool: rpool
state: ONLINE
scan: scrub repaired 0 in 0h3m with 0 errors on Mon Nov 2 18:56:29 2015
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sdb2 ONLINE 0 0 0
sdc2 ONLINE 0 0 0
How can I get it to return something like this:
Code:
root@proxmox:/# zpool status pool: rpool
state: ONLINE
scan: scrub repaired 0 in 0h3m with 0 errors on Mon Nov 2 18:56:29 2015
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-ST4000DM000-1F2168_XXXXXXXX ONLINE 0 0 0
ata-ST4000DM000-1F2168_XXXXXXXX ONLINE 0 0 0