Random Notes by agilob

ZFSZFS rename devices in pool to disk ID

Jump to Section
sudo zpool import -d /dev/disk/by-id poolname

Converts:

NAME                                       STATE     READ WRITE CKSUM
poolname                                    ONLINE       0     0     0
mdisk1                                      ONLINE       0     0   204
mdisk2                                      ONLINE       0     0  627K
mdisk3                                      ONLINE       0     0     0

to map disks by ID (example):

NAME                                       STATE     READ WRITE CKSUM
wdblack                                    ONLINE       0     0     0
wwn-0x1000000                              ONLINE       0     0   204
wwn-0x2000000                              ONLINE       0     0  627K
wwn-0x3000000                              ONLINE       0     0     0