I’m running a slightly modified OpenZFS/Root on ZFS on Ubuntu 26.04 – its a bit of a hybrid of the Ubuntu and Debian instructions on a msata drive I don’t trust very much. Initial setup was done using /dev/disk/by-id, and I’ve skipped the zsys install. I’m using grub as per the instructions.
For reference here’s the blkid, lsblk and zfs list output. I’ll share anything else that’s needed on request
blkid:
/dev/sda4: LABEL="rpool" UUID="14974327425135169529" UUID_SUB="296516135525017196" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="b243a43c-f144-4ff7-90e2-2eafacfdcf1c"
/dev/sda2: LABEL_FATBOOT="EFI" LABEL="EFI" UUID="D627-8F9D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="53a6ba92-5a33-4166-af8b-53e8cc0e10ef"
/dev/sda3: LABEL="bpool" UUID="6886114316569906209" UUID_SUB="13909149511061915631" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="d9cc4074-5789-4262-8378-78d62dd1c704"```
lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 119.2G 0 disk
├─sda2 8:2 0 512M 0 part
├─sda3 8:3 0 1G 0 part
└─sda4 8:4 0 117.7G 0 part
zfs list:
NAME USED AVAIL REFER MOUNTPOINT
rpool 1.53G 112G 96K /
rpool/ROOT 1.52G 112G 96K none
rpool/ROOT/ubuntu_hmc77y 1.52G 112G 1.52G /
rpool/etc 2.78M 112G 2.78M /etc
rpool/home 300K 112G 168K /home
rpool/home/root 132K 112G 132K /root
rpool/var 2.86M 112G 96K /var
rpool/var/lib 96K 112G 96K /var/lib
rpool/var/log 2.57M 112G 2.57M /var/log
rpool/var/spool 104K 112G 104K /var/spool
Now with another file system, I’d just dd the whole drive offline (and I still might). I’ve not found any examples of someone else doing so. Alternatively I’m told I can use zfs send/zfs recv to backup the datasets, but what do I need to do to back this up for a bootable system? Do I do another setup, and just move what I need (/etc etc) or is there a ‘easy’ way to simply send over/copy over a full install?
I have two goals here: Firstly, to duplicate the install on this drive as easily as possible, and secondly have a way to quickly update a second install.