Three Body
For private addresses, accounts, ports, and host roles, see .brain/resources/operator-network-context.svx in the private dark-wizard repo and the tailnet-topology skill. Replace angle-bracket placeholders with the configured values before running commands.
Use this for ASUSTOR NAS operations. Use system-architecture for Central service changes and tailnet-topology for SSH and route verification.
Access
Default non-interactive SSH check:
ssh -o BatchMode=yes -o ConnectTimeout=8 <ssh-user>@<nas> 'hostname && whoami && pwd && uptime'
Use the SSH target and administration URL from private configuration. Verify the LAN and tailnet addresses independently; a working SSH alias is not evidence of a valid NFS route.
Do not print SSH identity paths, private keys, tokens, raw serial numbers, or host IDs.
Host Facts
Verified from /etc/nas.conf and live SSH on 2026-06-17:
- Vendor/model: ASUSTOR AS6508T
- ADM version:
5.1.3.RI81 - Kernel: Linux
6.6.x - Network config has four LAN slots and DHCP on at least
eth2/eth3 - Active LAN path observed on
eth2, MTU9000, default gateway<private-ip> eth2link reported 10000Mb/s full duplex byethtool- Tailscale was active and directly reachable from central host; verify current truth with
tailscale status
Remote ADM is not a normal full Linux distro. Expect missing tools like rg, hostnamectl, findmnt, and sometimes lsblk. Prefer grep, awk, sed, ps w, netstat, df, mount, /proc/mdstat, and ASUSTOR's /usr/builtin/* paths.
Storage Map
Current storage receipt from 2026-06-17:
/volume1: main Btrfs storage on/dev/md1, about 64T, RAID5 across 8 disks, mounted through/share/*/volume2: Btrfs storage on/dev/md2, about 1.9T, RAID1 across two NVMe devices, mounted through privately configured shares/volume0: small ext4 system volume on/dev/md0/share: user-facing share mount surface; source paths usually live under/volume1/*or/volume2/*
Healthy mdstat shape observed:
md1 ... raid5 ... [8/8] [UUUUUUUU]
md2 ... raid1 ... [2/2] [UU]
md0 ... raid1 ... [8/8] [UUUUUUUU]
Use these read-only checks before blaming ASUSTOR itself:
ssh <ssh-user>@<nas> 'uptime; cat /proc/mdstat; df -hT; mount | grep -Ei "volume|share|btrfs|nfs|smb|cifs"'
ssh <ssh-user>@<nas> 'dmesg 2>/dev/null | tail -n 250 | grep -Ei "error|fail|reset|timeout|btrfs|md[0-9]|raid|sata|nvme|nfs|smb|cifs|eth|link" | tail -n 80'
For SMART checks, smartctl exists at /usr/builtin/sbin/smartctl, but disk-level inspection likely needs root.
Shares And Services
SMB and NFS were both running on 2026-06-17:
- SMB: TCP
139and445,/usr/builtin/sbin/smbd,/usr/builtin/sbin/nmbd,/usr/builtin/sbin/winbindd - NFS: TCP/UDP
111and2049, kernelnfsd - Docker/Tailscale also run on the NAS; do not assume a plain Debian layout
Important config paths:
/usr/builtin/etc/samba/smb.conf
/usr/builtin/etc/samba/asustorsmb.conf
/etc/exports
/etc/default/exports
/usr/builtin/etc/init.d/S41nfs
/usr/builtin/etc/init.d/S47smbd
Read current protocol state:
ssh <ssh-user>@<nas> 'ps w | grep -Ei "[s]mb|[n]mb|[n]fs|[t]ailscale|[d]ocker" || true'
ssh <ssh-user>@<nas> 'netstat -tulpn 2>/dev/null | grep -E ":(22|111|139|445|2049)[[:space:]]" || true'
showmount -e <nas>
Look up the actual share names and permitted accounts in the private operator map and Samba config. Do not assume the SMB share and the NFS export use the same path.
NFS Gotchas
Current NFS exports are mostly LAN-scoped, not tailnet-scoped. If a client mounts via MagicDNS/Tailscale IP, the server may see the client as a 100.x tailnet source that does not match exports like <private-cidr>.
Current exports include:
<nas-nvme-export>for<private-cidr>and selected LAN hosts<nas-hdd-export>for<private-cidr>, Kubernetes-ish subnets, and selected LAN hosts<nas-nvme-export>for<private-ip><nas-hdd-export>/joelfor<private-ip><nas-hdd-export>for selected LAN/container subnets<nas-hdd-export>for<private-ip>
Historical helper scripts in ~joel/flagg-nfs-*.sh encode an important ASUSTOR/NFS gotcha: broad subnet entries can effectively win over later host-specific entries. Those scripts remove/reinsert the host rule before the broad rule, back up /etc/exports, run /usr/builtin/sbin/exportfs -ra, and sometimes restart NFS with an ASUSTOR-safe PATH.
Useful identity facts from those scripts:
- ADM user
joel: uid1002, gid100 flaggsvcexperiments used uid1003, gid100- Some older squash experiments used uid/gid
999
Do not run the helper scripts or edit /etc/exports without explicit authorization. If asked to change NFS exports:
- Inspect
/etc/exportsandexportfs -v. - Copy
/etc/exportsto a timestamped backup. - Make the smallest change.
- Run
/usr/builtin/sbin/exportfs -ra. - Verify with
showmount -e NASfrom the client. - If restarting NFS, use:
PATH=/usr/builtin/sbin:/usr/builtin/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/builtin/etc/init.d/S41nfs restart
central host LAN Mount Contract
Shelf-local rule: for devices physically on the same shelf/LAN, mounted storage should be LAN-shaped by default. Use Tailscale/MagicDNS for remote access, admin/control-plane access, and emergency reachability; do not use it as the default data path for stable high-throughput NAS mounts unless explicitly configured and tested that way.
For central host Central, the repo-managed NFS mount contract is:
- NAS LAN IP:
<private-ip> - NAS LAN IP is static/reserved; do not treat normal DHCP drift as the likely cause unless new evidence contradicts this.
- central host LAN IP:
<private-ip> - Expected central host interface:
en0 - Expected media:
10Gbase-T - Current safe MTU proof target:
8192 - Full jumbo target:
9000, but only after end-to-end switch/NAS path proof passes above the current 8192-byte ceiling - NAS NVMe mount:
<nas-nvme-mount>from<private-ip>:<nas-nvme-export> - NAS HDD mount:
<nas-hdd-mount>from<private-ip>:<nas-hdd-export> - Media mount:
<media-mount>from<private-ip>:<nas-hdd-export> - Tuned NFS options:
rw,resvport,nfsvers=3,tcp,soft,intr,timeo=10,retrans=2,rsize=524288,wsize=524288,dsize=65536,readahead=128
Media locality rule: central host is physically adjacent to <nas> on proved 10GbE. Media transcription, analysis, and editing jobs should read source audio/video directly from <media-mount> and write derived artifacts there. Do not stage/copy large media through SSH, /tmp, or local SSD merely because a tool accepts only local-looking paths. Fix or mount the media export instead. Small claim-check metadata may remain local; raw media stays authoritative on NAS.
Do not use <nas>:/volume... for persistent NFS mounts on central host. On 2026-06-17, <nas> resolved to the Tailscale IP:
<nas> -> <tailnet-host> -> <tailnet-ip>
route to <tailnet-ip> -> utun1
route to <private-ip> -> en0
The previous LaunchDaemon logs showed repeated NFS Permission denied while mounting <nas>:<nas-nvme-export>; that is consistent with accidentally mounting over Tailscale while the NFS exports allow LAN clients.
Mount scripts live in infra/central/scripts/:
./infra/central/scripts/mount-nas.sh status
sudo ./infra/central/scripts/mount-nas.sh mount
./infra/central/scripts/verify-nas.sh --write-probe --benchmark-mib 64
A healthy live mount does not prove boot durability. Regression receipt 2026-07-09: both mounts were live and tuned on central host while /Library/LaunchDaemons/com.joelclaw.central.nas-mounts.plist was missing and launchctl print system/com.joelclaw.central.nas-mounts returned "Could not find service" — a reboot would have silently dropped both mounts. Check durability explicitly:
ls -l /Library/LaunchDaemons/com.joelclaw.central.nas-mounts.plist
sudo launchctl print system/com.joelclaw.central.nas-mounts | head -5
If the plist is missing, reinstall idempotently from the service checkout:
sudo /Users/Shared/joelclaw/src/joelclaw/infra/central/scripts/install-nas-mounts.sh --bootstrap
verify-nas.sh hard-fails on a missing plist; preflight.sh warns.
No sudo is needed to verify any of this. verify-nas.sh runs fully green unprivileged: the plist is world-readable, and daemon liveness is proved by log freshness — the daemon fires every 300s and emits one healthy-run receipt to /Users/Shared/joelclaw/logs/central/nas-mounts.out.log, so a recent mtime means loaded without launchctl print on the root-only system domain. Reserve sudo for install/reinstall, manual mount-nas.sh mount|unmount (resvport needs root), and sync-service-checkout.sh; see infra/central/README.md "Sudo discipline" for the full split and the optional read-only sudoers line.
If the LAN IP path says No route to host, do not fall back to Tailscale silently. Fix LAN reachability or the ASUSTOR/network rule first.
On macOS, No route to host for a same-subnet LAN service can be Local Network privacy for the invoking app, even when ARP and routing look correct. On 2026-06-17, accepting the GUI Local Network prompt let nc -vz -G 3 <private-ip> 2049 and showmount -e <private-ip> succeed. If an agent shell is blocked but Terminal works, use Terminal for the privileged repair or grant Local Network permission to the app hosting the agent.
Allow-list path on macOS:
open "x-apple.systempreferences:com.apple.preference.security?Privacy_LocalNetwork"
Then enable the app that runs the LAN probe, such as Terminal, iTerm, or Codex. tccutil can reset privacy decisions, but it does not grant Local Network permission from the CLI. Treat the GUI toggle/prompt as the durable allow-list.
Successful central host repair receipt from 2026-06-17:
- Synced fixed NAS scripts into
/Users/Shared/joelclaw/src/joelclaw - Installed and bootstrapped
system/com.joelclaw.central.nas-mounts - Mounted
<nas-nvme-mount>from<private-ip>:<nas-nvme-export> - Mounted
<nas-hdd-mount>from<private-ip>:<nas-hdd-export> - Passed
verify-nas.sh --write-probe --benchmark-mib 64
MTU/NFS tuning receipt from 2026-06-17:
networksetup -setMTU Ethernet 9000worked locally on central host and route MTU changed to9000.- Full MTU 9000 proof failed:
ping -D -c 5 -s 8972 <private-ip>had100%packet loss withMessage too longsend errors. - Practical jumbo proof passed: after setting central host
Ethernetto MTU8192,ping -D -c 3 -s 8164 <private-ip>had0%packet loss.8165failed as expected at the local 8192-byte ceiling. - Baseline 8K NFS transfer benchmark at MTU
1500, 512 MiB per tier: <nas-nvme-mount>/s3: write about144 MiB/s, read about165 MiB/s<nas-hdd-mount>/s3: write about123 MiB/s, read about166 MiB/s- Tuned NFS transfer sweep at MTU
1500, 512 MiB per tier: - 64K: NVMe write about
485 MiB/s, read about930 MiB/s - 128K: NVMe write about
561 MiB/s, read about973 MiB/s - 256K: NVMe write about
598 MiB/s, read about1014 MiB/s - 512K: NVMe write about
624 MiB/s, read about1017 MiB/s; HDD write about612 MiB/s, read about1010 MiB/s - 1M: NVMe write about
627 MiB/s, read about967 MiB/s; HDD write regressed to about431 MiB/s - Chosen default: 512K
rsize/wsize, 64Kdsize,readahead=128, noasync. - Final live 512K remount proof, 1024 MiB per tier:
<nas-nvme-mount>/s3: write about573 MiB/s, read about992 MiB/s<nas-hdd-mount>/s3: write about474 MiB/s, read about975 MiB/s- Final live 8192-MTU proof, 1024 MiB per tier:
<nas-nvme-mount>/s3: write about614 MiB/s, read about1018 MiB/s<nas-hdd-mount>/s3: write about552 MiB/s, read about925 MiB/sinfra/central/scripts/common.shand/Users/Shared/joelclaw/src/joelclaw/infra/central/scripts/common.shboth carried the 8192 MTU default and 512K NFS transfer defaults after sync./Users/Shared/joelclaw/src/joelclaw/infra/central/scripts/verify-nas.sh --write-probe --benchmark-mib 64passed from the service checkout withexpected_mtu=8192.nfsstat -mshowed both mounted filesystems usingrsize=524288,wsize=524288,readahead=128.
satellite host NAS mount receipt from 2026-06-22 pre-install:
- satellite host host reports
<local-hostname>; Tailscale advertises<satellite-host>/<tailnet-ip>. - Route to NAS LAN IP
<private-ip>usesen9. en9isThunderbolt Ethernet Slot 0, LAN IP<private-ip>, media10Gbase-T, MTU initially1500.- NFS port
2049on<private-ip>is reachable and exports include<nas-nvme-export>+<nas-hdd-export>for<private-cidr>. - satellite host requires interactive sudo, so privileged durable mount installation must run locally on satellite host:
sudo ./scripts/install-satellite-nas-mounts.sh --bootstrap. - The satellite installer uses IP exports, installs
system/com.joelclaw.satellite.nas-mounts, sets/proves MTU8192, and resets to1500+ stops if jumbo proof fails.
Next MTU steps:
- Keep central host
Ethernetat MTU8192unless new errors appear; this is the proved practical jumbo ceiling for the current path. - Confirm the ASUSTOR
eth2interface still reports MTU9000and 10000Mb/s full duplex. - Inspect the switch path if full 9000-byte jumbo is still desired; something between central host and
<nas>appears capped around 8192-byte IP packets. - If full 9000 passes later, update
NAS_EXPECTED_MTUto9000, remount, runverify-nas.sh --write-probe --benchmark-mib 1024, then hard-reboot central host and prove no-login restore. - If full 9000 still fails, keep MTU
8192and treat the 512K NFS transfer tuning as the current 10GbE-safe performance posture.
Mount Debugging
Do not treat Finder sidebar mounts or macOS Login Items as reliable infrastructure.
When Joel reports disappearing drives, split the problem:
- NAS health: uptime,
/proc/mdstat,df,dmesg, SMART, ADM logs. - Network path: wired vs Wi-Fi, DHCP/IP drift, Tailscale vs LAN source address, 10G link state.
- Protocol: SMB vs NFS, export/client allowlist, UID mapping, stale mount options.
- macOS mount mechanism: Finder/manual mount vs
autofsor launchd.
Local checks:
tailscale status | grep -i <nas> || true
mount | grep -Ei '<nas>|smbfs|nfs|100\.67\.156\.41|192\.168\.1\.163'
showmount -e <nas>
showmount -e <private-ip>
smbutil view //<ssh-user>@<nas>
If NFS is being used from macOS, verify whether <nas> resolves to a LAN IP or a Tailscale IP. If the export only allows <private-cidr>, a tailnet-sourced NFS mount is suspect even when showmount lists exports.
For stable mounted access, prefer one deterministic path while debugging:
- SMB: use an explicit LAN share URL like
smb://<private-ip>/Mediaor a stable LAN DNS name that resolves to the NAS LAN IP. - NFS: use the LAN address that matches
/etc/exports, likely<private-ip>from the 2026-06-17 receipt, or add a deliberate tailnet export rule. - Automation: use launchd for Central mounts; do not rely on Finder remembering a mount.
Safety
- Never print secrets, keys, token files,
.env, or raw private config from the NAS. - Treat tailnet hostnames/IPs and share ACLs as private operator context.
- Storage repair, RAID changes, Btrfs scrub/balance, NFS export edits, and service restarts can affect active workloads. Inspect first and summarize risk before changing anything.
- Prefer read-only inventory until Joel explicitly asks for a fix.