You are not logged in.

#1 2015-11-29 12:22:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,696
Website

Import ZFS pool on a new motherboard [solved]

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 packagesZsh and other configs

Offline

#2 2015-11-29 17:14:35

mabra
Member
From: Brühl
Registered: 2015-10-05
Posts: 22

Re: Import ZFS pool on a new motherboard [solved]

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

#3 2015-11-29 19:54:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,696
Website

Re: Import ZFS pool on a new motherboard [solved]

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 packagesZsh and other configs

Offline

#4 2015-11-29 20:11:49

severach
Member
Registered: 2015-05-23
Posts: 198

Re: Import ZFS pool on a new motherboard [solved]

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

#5 2015-11-29 20:24:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,696
Website

Re: Import ZFS pool on a new motherboard [solved]

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 packagesZsh and other configs

Offline

Board footer

Powered by FluxBB