From f7914ce3ebdd000c049a09de76ad22d750b247e8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 28 Jul 2025 14:28:41 +0300 Subject: Update content for gemtext --- .../2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi | 17 ++++++++--------- ...5-07-14-f3s-kubernetes-with-freebsd-part-6.gmi.tpl | 17 ++++++++--------- gemfeed/DRAFT-kubernetes-with-freebsd-part-7.gmi | 3 +++ gemfeed/atom.xml | 19 +++++++++---------- 4 files changed, 28 insertions(+), 28 deletions(-) (limited to 'gemfeed') diff --git a/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi b/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi index 1ca4a287..f02d2c9f 100644 --- a/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi +++ b/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi @@ -1423,20 +1423,24 @@ fi touch "$LOCK_FILE" trap "rm -f $LOCK_FILE" EXIT -mount_it () { +remount_it () { + # Try to fix + echo "Attempting to fix/remount NFS mount at $(date)" | systemd-cat -t nfs-monitor -p notice + umount -f "$MOUNT_POINT" 2>/dev/null + sleep 1 + if mount "$MOUNT_POINT"; then echo "NFS mount fixed at $(date)" | systemd-cat -t nfs-monitor -p info rm -f "$STATE_FILE" else echo "Failed to fix NFS mount at $(date)" | systemd-cat -t nfs-monitor -p err - exit 1 fi } # Quick check - ensure it's actually mounted if ! mountpoint -q "$MOUNT_POINT"; then echo "NFS mount not found at $(date)" | systemd-cat -t nfs-monitor -p err - mount_it + remount_it fi # Quick check - try to stat a directory with a very short timeout @@ -1457,12 +1461,7 @@ if [ ! -f "$STATE_FILE" ]; then touch "$STATE_FILE" fi -# Try to fix -echo "Attempting to fix stale NFS mount at $(date)" | systemd-cat -t nfs-monitor -p notice -umount -f "$MOUNT_POINT" 2>/dev/null -sleep 1 - -mount_it +remount_it EOF [root@r0 ~]# chmod +x /usr/local/bin/check-nfs-mount.sh ``` diff --git a/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi.tpl b/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi.tpl index 4fbbdb28..b1a260c9 100644 --- a/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi.tpl +++ b/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi.tpl @@ -1376,20 +1376,24 @@ fi touch "$LOCK_FILE" trap "rm -f $LOCK_FILE" EXIT -mount_it () { +remount_it () { + # Try to fix + echo "Attempting to fix/remount NFS mount at $(date)" | systemd-cat -t nfs-monitor -p notice + umount -f "$MOUNT_POINT" 2>/dev/null + sleep 1 + if mount "$MOUNT_POINT"; then echo "NFS mount fixed at $(date)" | systemd-cat -t nfs-monitor -p info rm -f "$STATE_FILE" else echo "Failed to fix NFS mount at $(date)" | systemd-cat -t nfs-monitor -p err - exit 1 fi } # Quick check - ensure it's actually mounted if ! mountpoint -q "$MOUNT_POINT"; then echo "NFS mount not found at $(date)" | systemd-cat -t nfs-monitor -p err - mount_it + remount_it fi # Quick check - try to stat a directory with a very short timeout @@ -1410,12 +1414,7 @@ if [ ! -f "$STATE_FILE" ]; then touch "$STATE_FILE" fi -# Try to fix -echo "Attempting to fix stale NFS mount at $(date)" | systemd-cat -t nfs-monitor -p notice -umount -f "$MOUNT_POINT" 2>/dev/null -sleep 1 - -mount_it +remount_it EOF [root@r0 ~]# chmod +x /usr/local/bin/check-nfs-mount.sh ``` diff --git a/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.gmi b/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.gmi index 70e44715..057b05a3 100644 --- a/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.gmi +++ b/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.gmi @@ -536,6 +536,9 @@ Shutting down `f0` and let NFS failing over for the Apache content. TODO: include k9s screenshot TODO: include a diagram again? +TODO: increase replica of traefik to 2, persist config surviving reboots +TODO: fix check-mounts script (mountpoint command and stale mounts... differentiate better) +TODO: remove traefic metal lb pods? persist the change? Other *BSD-related posts: diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index b46b5eb3..2d953034 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2025-07-27T23:04:32+03:00 + 2025-07-28T14:27:18+03:00 foo.zone feed To be in the .zone! @@ -1618,20 +1618,24 @@ STATE_FILE="/var/run/nfs-mount.state" touch "$LOCK_FILE" trap "rm -f $LOCK_FILE" EXIT -mount_it () { +remount_it () { + # Try to fix + echo "Attempting to fix/remount NFS mount at $(date)" | systemd-cat -t nfs-monitor -p notice + umount -f "$MOUNT_POINT" 2>/dev/null + sleep 1 + if mount "$MOUNT_POINT"; then echo "NFS mount fixed at $(date)" | systemd-cat -t nfs-monitor -p info rm -f "$STATE_FILE" else echo "Failed to fix NFS mount at $(date)" | systemd-cat -t nfs-monitor -p err - exit 1 fi } # Quick check - ensure it's actually mounted if ! mountpoint -q "$MOUNT_POINT"; then echo "NFS mount not found at $(date)" | systemd-cat -t nfs-monitor -p err - mount_it + remount_it fi # Quick check - try to stat a directory with a very short timeout @@ -1652,12 +1656,7 @@ mount_it () { touch "$STATE_FILE" fi -# Try to fix -echo "Attempting to fix stale NFS mount at $(date)" | systemd-cat -t nfs-monitor -p notice -umount -f "$MOUNT_POINT" 2>/dev/null -sleep 1 - -mount_it +remount_it EOF [root@r0 ~]# chmod +x /usr/local/bin/check-nfs-mount.sh -- cgit v1.2.3