diff --git a/nfs-stability.yml b/nfs-stability.yml new file mode 100644 index 0000000..c5c3014 --- /dev/null +++ b/nfs-stability.yml @@ -0,0 +1,6 @@ +--- +- name: NFS and mergerfs stability + hosts: emby-sascha:emby-chris:arrapps + become: yes + roles: + - nfs_stability diff --git a/pfannkuchen.ini b/pfannkuchen.ini index 9d72c0b..943d6b7 100644 --- a/pfannkuchen.ini +++ b/pfannkuchen.ini @@ -40,7 +40,7 @@ n8n ansible_host=10.4.1.113 hermes ansible_host=10.4.1.100 monitoring ansible_host=10.1.1.111 automation1 ansible_host=10.5.85.5 -outline ansible_host=10.1.1.100 + satisfactory ansible_host=10.3.1.120 [communication] diff --git a/pfannkuchen.sh b/pfannkuchen.sh index 6e91824..7f0955b 100755 --- a/pfannkuchen.sh +++ b/pfannkuchen.sh @@ -23,6 +23,7 @@ usage() { echo -e " ${C}wstunnel${N} [host] wstunnel + WireGuard deployen" echo -e " ${C}sshfs${N} [host] SSHFS Mounts einrichten" echo -e " ${C}tune${N} Sysctl Netzwerk-Tuning" + echo -e " ${C}nfs${N} NFS-/mergerfs-Stabilisierung ausrollen" echo -e " ${C}pvetune${N} [host] Proxmox Host Tuning (sysctl, resolv, hosts)" echo -e " ${C}tc${N} [host] tc per-flow Rate-Limit (50 Mbit/s pro Connection)" echo -e " ${C}watchdog${N} Network Watchdog deployen (Whitelist aus Ansible)" @@ -103,6 +104,10 @@ case "$CMD" in [ -z "$HOST" ] && echo -e "${R}Fehler: Host angeben${N}" && exit 1 run sysctl.yaml -l "$HOST" ;; + nfs) + [ -z "$HOST" ] && echo -e "${R}Fehler: Host angeben${N}" && exit 1 + run nfs-stability.yml -l "$HOST" + ;; pvetune) if [ -n "$HOST" ]; then run sysctl-proxmox.yaml -l "$HOST" diff --git a/roles/nfs_stability/tasks/main.yml b/roles/nfs_stability/tasks/main.yml index f8b86cc..8073ba6 100644 --- a/roles/nfs_stability/tasks/main.yml +++ b/roles/nfs_stability/tasks/main.yml @@ -106,6 +106,12 @@ enabled: true state: started +- name: Run the safe helper once to recover mounts left missing by the legacy loop + ansible.builtin.command: + argv: + - /usr/local/sbin/remount-nfs-safe + changed_when: false + - name: Verify systemd unit dependency graph ansible.builtin.command: argv: