diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 08:08:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 08:08:23 +0300 |
| commit | 0de4d8bdfc62cc763b969b5a5ce07eca1b602f14 (patch) | |
| tree | 80725271a49afbb9790611599abf09873a20d935 /scripts/randomnote.rb | |
| parent | 550c7bbe4fb227b492f6147618ab31a8ace3c9b3 (diff) | |
wol-f3s: umount NFS filesystems on earth before shutdown
Before shutting down f3s Beelink hosts (f0/f1/f2/f3), attempt to
umount all NFS filesystems currently mounted on earth. NFS mounts on
earth go through stunnel (127.0.0.1:2323 -> 192.168.1.138:2323 CARP
VIP on f0/f1). If any mount is active and cannot be umounted, the
shutdown is aborted to prevent data loss or a hung filesystem.
- Add umount_nfs_mounts() that reads /proc/mounts for nfs/nfs4 types,
attempts to umount each, and returns 1 if any fail
- Call umount_nfs_mounts before proceeding in shutdown, shutdown-f3,
and shutdown-all cases (shutdown-pis skipped: Pis do not serve NFS)
- Update all comments to explain the NFS-over-stunnel architecture and
the safety rationale
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts/randomnote.rb')
0 files changed, 0 insertions, 0 deletions
