Hi,
after a few days work, more than I wished it would be, I managed to setup Manjaro on a ZFS root. I used this howtos:
- β[[HowTo] Install full Manjaro on ZFS filesystem]
- Install Arch Linux on ZFS(Install Arch Linux on ZFS - ArchWiki)
- Arch Linux Root on ZFS(Arch Linux Root on ZFS β OpenZFS documentation)
and finally this thread helped as well:
Also many other google results.
I used systemd-boot, because I was not able to setup Grub correctly. Also, at least I experienced it like this, Grub does not really want to support ZFS.
The system itself is running and booting. On boot the prompt for the ZFS encrypted fro the root pool is shown, but now I created another pool for data like photos, etc. to be mounted and boot, and the boot fails with this error:
...
Mar 28 09:35:20 manjaro systemd[1]: Mounting /data...
ββ Subject: A start job for unit data.mount has begun execution
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit data.mount has begun execution.
ββ
ββ The job identifier is 65.
...
Mar 28 09:35:20 manjaro mount[1181]: filesystem 'dpool_<randomUUID>/DATA' cannot be mounted, unable to open the dataset
...
Mar 28 09:35:20 manjaro systemd[1]: Failed to mount /data.
ββ Subject: A start job for unit data.mount has failed
ββ Defined-By: systemd
ββ Support: https://forum.manjaro.org/c/support
ββ
ββ A start job for unit data.mount has finished with a failure.
ββ
ββ The job identifier is 65 and the job result is failed.
Iβm mount the ZFS root pool with fstab according to the above mentioned howto.
My fstab looks like this:
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
rpool_<randomUUID>/manjaro/ROOT/default / zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/home /home zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/home/<username> /home/sebastian zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/srv /srv zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/root /root zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/var/log /var/log zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/usr/local /usr/local zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/var/games /var/games zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/var/spool /var/spool zfs zfsutil,rw,relatime,xattr,posixacl 0 0
rpool_<randomUUID>/manjaro/DATA/default/var/lib/libvirt /var/lib/libvirt zfs zfsutil,rw,relatime,xattr,posixacl 0 0
#dpool_<randomUUID>/DATA /data zfs zfsutil,rw,relatime,xattr,posixacl 0 0
UUID=4531-AAAB /boot vfat defaults 0 0
UUID=3c1efb01-0020-4d75-867a-c40b23008bf9 none swap defaults 0 0
The βdpool_/DATAβ dataset results in a system unable to boot. However, it is no problem to boot it manually later.
Can someone tell me, how to solve this issue?
Greetings
Sebastian