ZFS: Difference between revisions

imported>Asdf8dfafjk
m Why hostId
imported>Mschwaig
Since ZFS is part of the installation isos for 2 years again that probably does not need it's own section anymore
Line 1: Line 1:
[[NixOS]] has native support for ZFS ([[wikipedia:ZFS]]). It uses the code from the [http://zfsonlinux.org/ ZFS on Linux project], including kernel modules and userspace utilities. The installation CD also comes with zfs.
[[NixOS]] has native support for ZFS ([[wikipedia:ZFS]]). It uses the code from the [http://zfsonlinux.org/ ZFS on Linux project], including kernel modules and userspace utilities. The installation isos also come with zfs.


== What works ==
== What works ==
Line 467: Line 467:


When you login by SSH into dropbear or when you have physical access to the machine itself, you will be prompted to supply the unlocking password for your zroot and tankXXX pools.
When you login by SSH into dropbear or when you have physical access to the machine itself, you will be prompted to supply the unlocking password for your zroot and tankXXX pools.
== Regarding installation of NixOS to ZFS direct from installation media ==
* Since [https://github.com/NixOS/nixpkgs/pull/51090 18.09] the installation iso comes with zfs by default again.
* For older versions it is still possible to enable it in the existing ISO at runtime adding:
<syntaxhighlight lang="nix">
  boot.supportedFilesystems = [ "zfs" ];
}
</syntaxHighlight>
to the iso's configuration.nix followed by a <code>nixos-rebuild switch</code> ([https://discourse.nixos.org/t/install-report-from-new-user/1390/9 source])


== ZFS Trim Support for SSDs ==
== ZFS Trim Support for SSDs ==
Line 510: Line 496:
* https://discourse.nixos.org/t/zfs-dedup-on-nix-store-is-it-worth-it/4959
* https://discourse.nixos.org/t/zfs-dedup-on-nix-store-is-it-worth-it/4959
* https://discourse.nixos.org/t/how-to-add-extra-build-input-to-linux-kernel/8208/3
* https://discourse.nixos.org/t/how-to-add-extra-build-input-to-linux-kernel/8208/3
*