Migrating ZFS from one server to another

Hello.

I need to run my system FreeBSD 9.0 (ZFS, jails etc) to another disk. My first server had performance problems. I made backup of it, and sent it to a NAS. Now on another server I run 2 x 750G disk, install on it FreeBSD 9.1 STABLE, make zfs mirror with BE. It runs fine, latecy is on sys/ROOT/default. Now I get my backup and wrote it as sys/ROOT/zroot (sys/ROOT/zroot/usr, sys/ROOT/zroot/usr/jails etc.) But when I set
[CMD=""]zfs set mountpoint=legacy sys/ROOT/zroot[/CMD]
and
[CMD=""]zpool set bootfs=sys/ROOT/zroot sys[/CMD]
I got
Code:
Mounting from zfs:sys/ROOT/zroot failed with error 2
and my server freees; only poweroff helps.

I find @vermaden hint that I need to boot from liveCD and make/copy zpool.cache. I did it, but still got that same problem.

I will be grateful for any help. Let me know if more info needed.
Regards.
 
Last edited by a moderator:
@kpa,

In /boot/loader.conf on sys/ROOT/zroot I have
Code:
vfs.root.mountfrom="zfs:sys/ROOT/zroot"
 
Last edited by a moderator:
Copy the sys/ROOT/default/boot/zfs/zpool.cache into sys/ROOT/zroot/boot/zfs/zpool.cache (check the mount points for them)

The pool most not be in "exported" state when attempting to boot from it.
HTH
 
@HarryE, I don't have zpool.cache on default. It was installed from STABLE without zpool.cache.
 
Last edited by a moderator:
[SOLVED]
Even ZFS is not so super, to mount spool without disks ;)
I need to add to /boot/loader.conf
Code:
mps_load="YES"

Thank you for your time.
 
Back
Top