Re: Upgrade from Ubuntu 14.04.4 LTS with ZFSonLinux to 16.04
A real migration of the data is not even needed probably. If the OS is on a separate disk (as it usually should be), you can simply export the zpools, do a clean install of 16.04, and import the zpools.
Of course, whether you choose to do a clean install will depend also on other services you might have configured on the server and how easy it is to configure them again on a new installation. But the zpools are very resilient and should survive the reinstall perfectly. And of course, don't do it without a good backup of the data.
About a year or two ago I was doing some testing between FreeNAS and ubuntu with ubuntu-zfs package. But the test was with smaller VBox VMs with small disks and only small amount of test data. The principle should be true for a prod system too... I did the ubuntu install, create small zpool on separate disks, put some small data there. Then I formatted the OS disk and installed FreeNAS, without even exporting the zpools first (I wanted to simulate a sudden crash where you had no time to export the pools). FreeNAS was able to pick them up perfectly, and the data structure was there. Even the quotas for the zfs datasets were kept if I remember correctly. Then I did it again, formatting the OS disk and putting ubuntu back. It was also able to pick up the zpool and import it without problems.
So despite that FreeNAS is based on BSD and ubuntu on debian linux, the zpool survived this ping-pong between OSs perfectly. Note that this was only a small zpool with little data and no special settings. Maybe on a larger scale it wouldn't have worked so smoothly. But I was happy with that test...
Darko.
-----------------------------------------------------------------------
Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit
Bookmarks