ronaldprettyman said:
I'm testing out Freebsd as an alternative to Solaris, and trying to import solaris zfs partitions. I've tried doing it locally but didn't realy expect that to work because of the different naming conventions in dev, though I wonder if I made symbolic links to the freebsd dev to the dsk/c0d0 type of solaris if I'd have better luck.
On the solaris box:
# zpool export nameofpool
Move the drives into the FreeBSD box. Then:
# zpool import nameofpool
That's it. When you do the export, it removes all the system-specific stuff (like the direct links to the device nodes, the endien-ness of the data, etc), but keeps all the metadata on the drives (ie "this drive is part of vdev X which is part of pool Y).
The import looks at the metadata on the disks, and then rebuilds all the system-specific stuff to allow you to use the pool on this system.
Be sure to have
zfs_enable="YES" in /etc/rc.conf. If you have not rebooted since putting that in there, then you'll also need to run:
# /etc/rc.d/hostid start
# /etc/rc.d/zfs start
I also tried doing it thought the network
Code:
"zfs send foo/bar|ssh foo@bar zfs receive foo/bar"
and recieved a kernel crash. I'm about to try exporting to file and then importing the file into a new zfs partion on freebsd.
At least in FreeBSD 7.2 with ZFSv6, there are issues with the zfs snapshot send feature (well, technically, it's the receive side). There's some poorly optimised buffers in there, which limits the throughput to about 15 KBytes/sec.

Haven't tried on anything newer.
Anyone have any idea's any experience moving zfs partions from solaris to freebsd.
Do the export/import process and things Will Just Work(tm).

After all, that's the whole point of export/import.