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 but now it is upgraded to 21.10 for highest compatibility possible with Alder Lake stuff.

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.

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.