From 0caab342feaec0ccf2166036a982b403e8163ec0 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 28 Oct 2019 13:27:24 -0400 Subject: [PATCH] created a pool on 004 --- morph/storage004-hardware.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/morph/storage004-hardware.nix b/morph/storage004-hardware.nix index 6b8d0f19..07de74e2 100644 --- a/morph/storage004-hardware.nix +++ b/morph/storage004-hardware.nix @@ -8,7 +8,7 @@ [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]; - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -18,6 +18,13 @@ fsType = "ext4"; }; + # Manually created using: + # zpool create -f -m legacy -o ashift=12 root raidz /dev/disk/by-id/{wwn-0x5000cca25cc0b6f9,wwn-0x5000cca25cc073af,wwn-0x5000cca25dcca3b5,wwn-0x5000cca25cc0addc,wwn-0x5000cca25cc08772,wwn-0x5000cca25dcc6f5f,wwn-0x5000cca25dcc4491} + fileSystems."/storage" = + { device = "root"; + fsType = "zfs"; + }; + swapDevices = [ ]; nix.maxJobs = lib.mkDefault 32; -- GitLab