diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-28 14:28:39 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-28 14:28:39 +0300 |
| commit | 5d773fe53266f2cc69ff0ec306dbd4e779816752 (patch) | |
| tree | 9dc684d95c5b6f01667f5f0266d98c13f8c4b1ad /gemfeed | |
| parent | 30db7379ba631618f58bef2dc3b91feef7397437 (diff) | |
Update content for html
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.html | 17 | ||||
| -rw-r--r-- | gemfeed/DRAFT-kubernetes-with-freebsd-part-7.html | 3 | ||||
| -rw-r--r-- | gemfeed/atom.xml | 19 |
3 files changed, 20 insertions, 19 deletions
diff --git a/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.html b/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.html index 7963fb4d..85d007e8 100644 --- a/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.html +++ b/gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.html @@ -1611,20 +1611,24 @@ STATE_FILE=<font color="#808080">"/var/run/nfs-mount.state"</font> touch <font color="#808080">"$LOCK_FILE"</font> <b><u><font color="#000000">trap</font></u></b> <font color="#808080">"rm -f $LOCK_FILE"</font> EXIT -mount_it () { +remount_it () { + <i><font color="silver"># Try to fix</font></i> + echo <font color="#808080">"Attempting to fix/remount NFS mount at $(date)"</font> | systemd-cat -t nfs-monitor -p notice + umount -f <font color="#808080">"$MOUNT_POINT"</font> <font color="#000000">2</font>>/dev/null + sleep <font color="#000000">1</font> + <b><u><font color="#000000">if</font></u></b> mount <font color="#808080">"$MOUNT_POINT"</font>; <b><u><font color="#000000">then</font></u></b> echo <font color="#808080">"NFS mount fixed at $(date)"</font> | systemd-cat -t nfs-monitor -p info rm -f <font color="#808080">"$STATE_FILE"</font> <b><u><font color="#000000">else</font></u></b> echo <font color="#808080">"Failed to fix NFS mount at $(date)"</font> | systemd-cat -t nfs-monitor -p err - <b><u><font color="#000000">exit</font></u></b> <font color="#000000">1</font> <b><u><font color="#000000">fi</font></u></b> } <i><font color="silver"># Quick check - ensure it's actually mounted</font></i> <b><u><font color="#000000">if</font></u></b> ! mountpoint -q <font color="#808080">"$MOUNT_POINT"</font>; <b><u><font color="#000000">then</font></u></b> echo <font color="#808080">"NFS mount not found at $(date)"</font> | systemd-cat -t nfs-monitor -p err - mount_it + remount_it <b><u><font color="#000000">fi</font></u></b> <i><font color="silver"># Quick check - try to stat a directory with a very short timeout</font></i> @@ -1645,12 +1649,7 @@ mount_it () { touch <font color="#808080">"$STATE_FILE"</font> <b><u><font color="#000000">fi</font></u></b> -<i><font color="silver"># Try to fix</font></i> -echo <font color="#808080">"Attempting to fix stale NFS mount at $(date)"</font> | systemd-cat -t nfs-monitor -p notice -umount -f <font color="#808080">"$MOUNT_POINT"</font> <font color="#000000">2</font>>/dev/null -sleep <font color="#000000">1</font> - -mount_it +remount_it EOF [root@r0 ~]<i><font color="silver"># chmod +x /usr/local/bin/check-nfs-mount.sh</font></i> </pre> diff --git a/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.html b/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.html index 7a359b19..9fa4043f 100644 --- a/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.html +++ b/gemfeed/DRAFT-kubernetes-with-freebsd-part-7.html @@ -602,6 +602,9 @@ http://www.gnu.org/software/src-highlite --> <br /> <span>TODO: include k9s screenshot</span><br /> <span>TODO: include a diagram again?</span><br /> +<span>TODO: increase replica of traefik to 2, persist config surviving reboots</span><br /> +<span>TODO: fix check-mounts script (mountpoint command and stale mounts... differentiate better)</span><br /> +<span>TODO: remove traefic metal lb pods? persist the change? </span><br /> <br /> <span>Other *BSD-related posts:</span><br /> <br /> diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index db00b626..dc1c83bb 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2025-07-27T23:04:32+03:00</updated> + <updated>2025-07-28T14:27:18+03:00</updated> <title>foo.zone feed</title> <subtitle>To be in the .zone!</subtitle> <link href="https://foo.zone/gemfeed/atom.xml" rel="self" /> @@ -1618,20 +1618,24 @@ STATE_FILE=<font color="#808080">"/var/run/nfs-mount.state"</font> touch <font color="#808080">"$LOCK_FILE"</font> <b><u><font color="#000000">trap</font></u></b> <font color="#808080">"rm -f $LOCK_FILE"</font> EXIT -mount_it () { +remount_it () { + <i><font color="silver"># Try to fix</font></i> + echo <font color="#808080">"Attempting to fix/remount NFS mount at $(date)"</font> | systemd-cat -t nfs-monitor -p notice + umount -f <font color="#808080">"$MOUNT_POINT"</font> <font color="#000000">2</font>>/dev/null + sleep <font color="#000000">1</font> + <b><u><font color="#000000">if</font></u></b> mount <font color="#808080">"$MOUNT_POINT"</font>; <b><u><font color="#000000">then</font></u></b> echo <font color="#808080">"NFS mount fixed at $(date)"</font> | systemd-cat -t nfs-monitor -p info rm -f <font color="#808080">"$STATE_FILE"</font> <b><u><font color="#000000">else</font></u></b> echo <font color="#808080">"Failed to fix NFS mount at $(date)"</font> | systemd-cat -t nfs-monitor -p err - <b><u><font color="#000000">exit</font></u></b> <font color="#000000">1</font> <b><u><font color="#000000">fi</font></u></b> } <i><font color="silver"># Quick check - ensure it's actually mounted</font></i> <b><u><font color="#000000">if</font></u></b> ! mountpoint -q <font color="#808080">"$MOUNT_POINT"</font>; <b><u><font color="#000000">then</font></u></b> echo <font color="#808080">"NFS mount not found at $(date)"</font> | systemd-cat -t nfs-monitor -p err - mount_it + remount_it <b><u><font color="#000000">fi</font></u></b> <i><font color="silver"># Quick check - try to stat a directory with a very short timeout</font></i> @@ -1652,12 +1656,7 @@ mount_it () { touch <font color="#808080">"$STATE_FILE"</font> <b><u><font color="#000000">fi</font></u></b> -<i><font color="silver"># Try to fix</font></i> -echo <font color="#808080">"Attempting to fix stale NFS mount at $(date)"</font> | systemd-cat -t nfs-monitor -p notice -umount -f <font color="#808080">"$MOUNT_POINT"</font> <font color="#000000">2</font>>/dev/null -sleep <font color="#000000">1</font> - -mount_it +remount_it EOF [root@r0 ~]<i><font color="silver"># chmod +x /usr/local/bin/check-nfs-mount.sh</font></i> </pre> |
