How do I upgrade ZFS under fuse-zfs-0.69 to the now recommended ZFS-Linux kernel module setup?
We've run our web/email server using ZFS to mirror 2 HDD (500GB), but now that fuse-zfs is unmaintained (never did get fuse-zfs-0.70 to work at all), question is how to make the transition to the kernel-based method.
Installing the modules, etc., looks pretty straightforward, but not at all clear if the zpool/zfs configuration is automatically found by the kernel and ZFS upgraded, or do I need to do something in particular to continue to use the data on the mirrored disks, like export/import zpools, or start from scratch, or what?
Anyway, I'm far from an expert in ZFS usage, even if I had the rudimentary skills to have gotten our current system to work.
Any help from anyone with more knowledge of ZFS than I possess will be sincerely appreciated.
If more specific info about the current installation (under zfs-fuse) is needed, I can easily provide it, but I'm not sure what details would be useful.
Start by backing up all of your ZFS datasets... ZFS Fuse is absolutely immature and ZFS on Linux although quite robust is not as mature as in Solaris/OpenIndiana). Then :
# rc-service zfs-fuse stop # rc-update zsf-fuse delete default
This will shutdown ZFS Fuse and unmount all of your ZFS datasets. The second line will make sure that zfs-fuse will not be run at system start up. Then:
* emerge sys-fs/zfs (all dependencies will be taken care of, espcially SPL)
* Start ZFS (your pools are automatically imported and mounted) :
# rc-service zfs start
* Ensure it is automatically started :
# rc-update add zfs default
When everything is in working order again, remove zfs-fuse :
# emerge -C zfs-fuse
Altought quite dusty, a bit of reading about simple usage of ZFS pools :