fix zfs race condition
This commit is contained in:
parent
7c4dd94c2e
commit
d9bf94b864
2 changed files with 31 additions and 2 deletions
|
@ -50,6 +50,35 @@
|
|||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.kernelModules = [ "nct6775" "coretemp" ];
|
||||
|
||||
boot.zfs.extraPools = [ "garage" "storage" ];
|
||||
boot.zfs.devNodes = "/dev/disk/by-id";
|
||||
boot.zfs.forceImportAll = true;
|
||||
|
||||
systemd.services.zfs-import-cache.enable = false;
|
||||
systemd.services.zfs-import-scan.enable = true;
|
||||
|
||||
systemd.services.zfs-import-scan = {
|
||||
after = [ "systemd-udev-settle.service" ];
|
||||
wants = [ "systemd-udev-settle.service" ];
|
||||
};
|
||||
|
||||
systemd.mounts = [
|
||||
{
|
||||
what = "garage";
|
||||
where = "/garage";
|
||||
type = "zfs";
|
||||
after = [ "zfs-import-scan.service" ];
|
||||
wants = [ "zfs-import-scan.service" ];
|
||||
}
|
||||
{
|
||||
what = "storage";
|
||||
where = "/storage";
|
||||
type = "zfs";
|
||||
after = [ "zfs-import-scan.service" ];
|
||||
wants = [ "zfs-import-scan.service" ];
|
||||
}
|
||||
];
|
||||
|
||||
services.zfs.autoScrub.enable = true;
|
||||
services.zfs.trim.enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue