[zfs-discuss] Replacing hard drive controller - pool changes needed?

Hajo Möller dasjoe at gmail.com
Sun Feb 14 14:33:13 EST 2016

As long as you shut down the computer before replacing the controller
and the devices come back online ZFS should import the pool without

A general recommendation would be to use stable device names in your
pool, i.e. the links in /dev/disk/by-id (or by-path, by-vdev, ...).
If your pool is using /dev/sdX as names you could export and re-import
by running

zpool export poolname
zpool import -d /dev/disk/by-id/ pool-name

to switch it over. You may need to rebuild your initrd after this for
the change to become persistent.

Hajo Möller

More information about the zfs-discuss mailing list