ZFS: Difference between revisions

imported>Sjau
No edit summary
imported>Jmesmon
note alternate devNodes option to fix vm boot
Line 19: Line 19:
==== boot.zfs.devNodes in virtual machines ====
==== boot.zfs.devNodes in virtual machines ====


If you are running within a VM and NixOS fails to import the zpool on reboot, you may need to add <syntaxhighlight lang="nix" inline>boot.zfs.devNodes = "/dev/disk/by-path";</syntaxhighlight> to your configuration.nix file.
If you are running within a VM and NixOS fails to import the zpool on reboot, you may need to add <syntaxhighlight lang="nix" inline>boot.zfs.devNodes = "/dev/disk/by-path";</syntaxhighlight> or <syntaxhighlight lang="nix" inline>boot.zfs.devNodes = "/dev/disk/by-partuuid";</syntaxhighlight> to your configuration.nix file.  


==== declarative mounting of ZFS datasets ====
==== declarative mounting of ZFS datasets ====