You are not logged in.
A hardware failure forced me to move my zpool hardrives into a new server. I am finding the wiki a little confusing... has anyone been in a similar situation? What is the safe way to simply import the old pool onto the new server?
Last edited by graysky (2015-11-29 20:24:31)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Hi !
What do you miss on the wiki ??
zpool import -d /dev/disk/by-id <YourPoolName>
You can start with >zpool import< just to see, what
pools are there - if you do not remember the names.
Best regards,
Manfred
Offline
Actually, this was not as involved as I thought it might be.
`zpool import` found the array and `zpool import myzpool` did the job.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
The default without -d is to import by /dev/sd*. Check your pools and you may want to reimport them with -d to prevent problems when disks are changed.
Offline
Thanks for the tip. You were correct. When I cat /etc/zfs/zpool.cache I did find references to `/dev/sdx` ... after deleting that file and rebooting by mistake (damn up arrow) it seems that /usr/lib/systemd/system/zfs.target handled this automatically for me using the uuids. When I inspect zfs.target I see that it has a number of zfs* service files one of which (/usr/lib/systemd/system/zfs-import-cache.service) did the deed.
So, long story short, when moving the hardware under a zpool to a new server, simply leave zfs.target enabled and boot.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline