Score:0

Ubuntu with root on ZFS boot and motherboard change

cn flag

I'm soon changing my motherboard (and CPU and RAM btw.) from Asrock J5005-ITX to the new one with Intel's B660 chip. I have Ubuntu Server booting root from ZFS pool.

How should I prepare for the migration? What should I double check before and should I expect any particular issues that I should prepare solutions for in advance?

From what I have been reading such hardware migrations are mostly safe but I haven't found much info on migrations particularly with system booting from ZFS.

The system originally was Ubuntu Server 18.04 with ZFS pool configured using this guide https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2018.04%20Root%20on%20ZFS.html but now it is upgraded to 21.10 for highest compatibility possible with Alder Lake stuff.

Score:2
bv flag

I'm guessing here, as I have not gone through the process myself.

As long as you don't have full encryption, which might rely on your hardware TPM, you should be safe.

A way to test it would be to connect your harddrives to a live OS (booting from USB) running on a different machine and attempt to import the pool. If that works, ZFS has no ties to your motherboard.

One thing you might encounter though are hardware compatibility issues in the boot process, here you'll need more seasoned Ubuntu users to comment on that aspect.

Rychu avatar
cn flag
Thanks for your thoughts. I appreciate. Do you think that failed boot after migration may damage the pool somehow or make any irreversible changes to the data? My pool runs in mirror mode. I started to wonder wouldn't it be safer to first boot with only one SSD and leave the other laying on the desk just in case? If everything will boot well then I'll shutdown and reattach the other one. If not then I'll have a backup that I can use to boot J5005 again to avoid extended downtime of the server. Just thinking out loud here
bv flag
If you are using ZSYS with snapshots I doubt any damage would happen. You can always revert to a previous snapshot state.
Rychu avatar
cn flag
Everything went amazingly fine. I mean from the OS perspective. I had been reading the internet for a few hours preparing myself for grub failure and creating the LiveCD and it booted as if nothing had happened
bv flag
That's great news! Please run the following: `apt policy zfs*` and `zfs version`. Make sure that all zfs packages match in versions. If they don't read [this](https://askubuntu.com/a/1389086/720005)
Rychu avatar
cn flag
I'm not sure I understand what you mean by zfs packages match in versions. If `zfs version` gives me `2.0.6` then all packages should be in `2.0.6`? This is the output of these commands on my server. Is this correct? https://pastebin.com/bs4fAcgE
bv flag
I had an issue in 20.04, you are running 21.10. By the output you sent, you are good! What to look for: It is imperative that zfs (the utils) and zfs-kmod (the kernel driver) match - otherwise simple features might not work. With the `policy` output, what counts is what is installed.
Rychu avatar
cn flag
Great, thank you for all your help!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.