summaryrefslogtreecommitdiff
path: root/gemfeed
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-28 14:28:41 +0300
committerPaul Buetow <paul@buetow.org>2025-07-28 14:28:41 +0300
commitf7914ce3ebdd000c049a09de76ad22d750b247e8 (patch)
tree6fdfbab4d8b1862a0cbfdfd227c6faa683a34327 /gemfeed
parent1ca44f205e383d3c6e41145aff99ad12cc70e658 (diff)
Update content for gemtext
Diffstat (limited to 'gemfeed')
-rw-r--r--gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi17
-rw-r--r--gemfeed/2025-07-14-f3s-kubernetes-with-freebsd-part-6.gmi.tpl17
-rw-r--r--gemfeed/DRAFT-kubernetes-with-freebsd-part-7.gmi3
-rw-r--r--gemfeed/atom.xml19
4 files changed, 28 insertions, 28 deletions
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 @@
<?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="gemini://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>&gt;/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>&gt;/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>