From 68bc99fd15a043729202d59d16601d721ba4ab1f Mon Sep 17 00:00:00 2001 From: Ciapa Date: Sat, 6 May 2023 06:55:37 +0000 Subject: [PATCH] Increase mirror cache on fsn1 --- deployments/mirror/rclone_mount.nix | 2 +- hosts/fsn1-1.mirror.lewd.wtf/hardware-configuration.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deployments/mirror/rclone_mount.nix b/deployments/mirror/rclone_mount.nix index cf22f8d..71a5ac0 100644 --- a/deployments/mirror/rclone_mount.nix +++ b/deployments/mirror/rclone_mount.nix @@ -8,7 +8,7 @@ Type = "notify"; KillMode = "none"; User = "root"; - ExecStart = "${pkgs.rclone}/bin/rclone mount master:/mnt/data /var/www/mirror --allow-other --dir-cache-time=5m --log-level INFO --umask 002 --cache-dir /mnt/cache --vfs-cache-mode full --vfs-cache-max-age 72h0m0s --vfs-cache-max-size 5Gi"; + ExecStart = "${pkgs.rclone}/bin/rclone mount master:/mnt/data /var/www/mirror --allow-other --dir-cache-time=5m --log-level INFO --umask 002 --cache-dir /mnt/cache --vfs-cache-mode full --vfs-cache-max-age 168h0m0s --vfs-cache-max-size 80Gi"; ExecStop = "/run/wrappers/bin/fusermount -uz /var/www/mirror"; Restart = "on-failure"; Environment = [ "PATH=/run/wrappers/bin/:$PATH" ]; diff --git a/hosts/fsn1-1.mirror.lewd.wtf/hardware-configuration.nix b/hosts/fsn1-1.mirror.lewd.wtf/hardware-configuration.nix index 6132e3f..5d64f03 100644 --- a/hosts/fsn1-1.mirror.lewd.wtf/hardware-configuration.nix +++ b/hosts/fsn1-1.mirror.lewd.wtf/hardware-configuration.nix @@ -4,5 +4,6 @@ boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; boot.initrd.kernelModules = [ "nvme" ]; fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + fileSystems."/mnt/cache" = { device = "/dev/disk/by-label/mirror_cache"; fsType = "ext4"; }; }