add disk
This commit is contained in:
parent
f409d9849c
commit
31ba716b2e
4 changed files with 31 additions and 25 deletions
|
@ -24,8 +24,7 @@
|
||||||
parityFiles =
|
parityFiles =
|
||||||
[
|
[
|
||||||
"/mnt/parity1/snapraid.parity"
|
"/mnt/parity1/snapraid.parity"
|
||||||
"/mnt/parity2/snapraid.parity-2"
|
"/mnt/parity2/snapraid.parity"
|
||||||
"/mnt/parity3/snapraid.parity-3"
|
|
||||||
];
|
];
|
||||||
dataDisks = {
|
dataDisks = {
|
||||||
d1 = "/mnt/disk1";
|
d1 = "/mnt/disk1";
|
||||||
|
@ -34,6 +33,7 @@
|
||||||
d4 = "/mnt/disk4";
|
d4 = "/mnt/disk4";
|
||||||
d5 = "/mnt/disk5";
|
d5 = "/mnt/disk5";
|
||||||
d6 = "/mnt/disk6";
|
d6 = "/mnt/disk6";
|
||||||
|
d7 = "/mnt/disk7";
|
||||||
};
|
};
|
||||||
contentFiles = [
|
contentFiles = [
|
||||||
"/var/lib/snapraid/snapraid.content"
|
"/var/lib/snapraid/snapraid.content"
|
||||||
|
@ -52,7 +52,6 @@
|
||||||
"/torrents/"
|
"/torrents/"
|
||||||
"/exclusion-zone/"
|
"/exclusion-zone/"
|
||||||
"/roms/"
|
"/roms/"
|
||||||
"/roms/"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ mergerfs mergerfs-tools smartmontools ];
|
environment.systemPackages = with pkgs; [
|
||||||
|
mergerfs
|
||||||
|
mergerfs-tools
|
||||||
|
smartmontools
|
||||||
|
];
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/mnt/disk1" = {
|
"/mnt/disk1" = {
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
@ -32,17 +36,17 @@
|
||||||
device = "/dev/disk/by-uuid/63381321-fe00-4838-8668-4d1decc94296";
|
device = "/dev/disk/by-uuid/63381321-fe00-4838-8668-4d1decc94296";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/mnt/disk7" = {
|
||||||
|
fsType = "ext4";
|
||||||
|
device = "/dev/disk/by-uuid/6c568887-9d2e-45ce-ab85-4c48cca2226a";
|
||||||
|
};
|
||||||
|
|
||||||
"/mnt/parity1" = {
|
"/mnt/parity1" = {
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
device = "/dev/disk/by-partuuid/7c9b88ed-b8f8-40c9-bbc3-b75d30e04e01";
|
device = "/dev/disk/by-partuuid/7c9b88ed-b8f8-40c9-bbc3-b75d30e04e01";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/mnt/parity2" = {
|
"/mnt/parity2" = {
|
||||||
fsType = "ext4";
|
|
||||||
device = "/dev/disk/by-uuid/6c568887-9d2e-45ce-ab85-4c48cca2226a";
|
|
||||||
};
|
|
||||||
|
|
||||||
"/mnt/parity3" = {
|
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
device = "/dev/disk/by-partuuid/5d2d7e3e-3730-4d9b-8759-dc14396f3357";
|
device = "/dev/disk/by-partuuid/5d2d7e3e-3730-4d9b-8759-dc14396f3357";
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,11 +34,14 @@ in
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 67 ];
|
networking.firewall.allowedUDPPorts = [ 67 ];
|
||||||
|
|
||||||
# services.prometheus.exporters.kea = {
|
services.prometheus.exporters.kea = {
|
||||||
# enable = true;
|
enable = false;
|
||||||
# openFirewall = true;
|
openFirewall = true;
|
||||||
# controlSocketPaths = [ "/run/kea/kea-dhcp4.socket" ];
|
user = "kea";
|
||||||
# };
|
controlSocketPaths = [ "/tmp/kea-dhcp4.socket" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# To make sure the control socket is accesible
|
||||||
|
|
||||||
services.kea.dhcp4 = {
|
services.kea.dhcp4 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -50,10 +53,10 @@ in
|
||||||
|
|
||||||
interfaces-config.interfaces = [ "eth0" ];
|
interfaces-config.interfaces = [ "eth0" ];
|
||||||
|
|
||||||
# control-socket = {
|
control-socket = {
|
||||||
# socket-type = "unix";
|
socket-type = "unix";
|
||||||
# socket-name = "/run/kea/kea-dhcp4.socket";
|
socket-name = "/tmp/kea-dhcp4.socket";
|
||||||
# };
|
};
|
||||||
# failed to initialize Kea server: configuration error using file '/etc/kea/dhcp4-server.conf': cannot create socket lockfile, /run/kea/kea-dhcp4.socket.lock, : No such file or directory
|
# failed to initialize Kea server: configuration error using file '/etc/kea/dhcp4-server.conf': cannot create socket lockfile, /run/kea/kea-dhcp4.socket.lock, : No such file or directory
|
||||||
|
|
||||||
lease-database = {
|
lease-database = {
|
||||||
|
|
|
@ -38,13 +38,13 @@ in {
|
||||||
scrape_timeout = "30s";
|
scrape_timeout = "30s";
|
||||||
};
|
};
|
||||||
scrape_configs = [
|
scrape_configs = [
|
||||||
{
|
# {
|
||||||
job_name = "kea";
|
# job_name = "kea";
|
||||||
static_configs = [{
|
# static_configs = [{
|
||||||
targets = [ "dhcp.olympus:9547" ];
|
# targets = [ "dhcp.olympus:9547" ];
|
||||||
labels.app = "dhcp";
|
# labels.app = "dhcp";
|
||||||
}];
|
# }];
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
job_name = "nginx";
|
job_name = "nginx";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
|
|
Loading…
Add table
Reference in a new issue