Import a zpool whose name is already taken

10
Jan.

I would like to import a zpool from another system whose name is already used. The import via the gui from TrueNas aborts with an error message. In that case the zpool named Raupe.

Step 1:
zfs set mountpoint=/mnt/Raupe_old Raupe_old

import -f because the pool comes from another system. The name of the pool to be imported is „Raupe“, this will be named „Raupe_old“ .

zpool import -f Raupe Raupe_old

zpool list Now Raupe_old should be listed with

Setp 2: now the pool only has to be mounted, with

zfs set mountpoint=/mnt/Raupe_old Raupe_old

now both pools should be mounted in / mnt