1 2 3 4 5 6 7
#!/bin/bash export POOL=tpool2 export ROOTFS_DIR="/mnt" zpool export $POOL zpool import -R $ROOTFS_DIR -N $POOL