Why reboots feel like they work
/tmp get cleaned. If your only issue is a slow memory leak in an application you cannot patch right now, a scheduled restart of that specific service (not the whole server) is a valid band-aid.
But operators often generalize from this. They see that a reboot fixed a sluggish server once, so they schedule weekly reboots for all servers. The problem: every reboot is a controlled crash. Services need to come back in the right order. Network filesystems need the network to be up first. Databases need to replay write-ahead logs. Caches start cold. Active connections drop. Each of these is a failure point, and the more complex the server, the more failure points exist.
As one infrastructure guide puts it plainly: every restart introduces a high-risk window where services fail to start automatically, databases take time to recover, APIs drop connections, and cache-warming periods choke downstream systems.
Stale NFS mounts that survive reboots
/etc/fstab. The server reboots. During boot, the system tries to mount the NFS share before the network is fully up, or the NFS server on the other end is unreachable. The mount attempt hangs.
By default, NFS mounts use hard mode, which means the client retries indefinitely until the server responds. If the NFS server is down or the network path is broken, the boot process stalls. The server sits there, apparently hung, and the operator gets a ticket saying "server won't come back up after reboot."
The reboot did not prevent an outage. It caused one.
Even when the NFS server is reachable, stale file handles are a separate problem. If the NFS server was rebooted or the export was re-created between client reboots, the client may hold stale NFS file handles. Processes trying to access those mounts get Stale file handle errors. A reboot of the client does not fix this if the underlying export changed — the mount comes back, but the handles are still invalid until the mount is fully re-established.
What actually helps:
-
Use the
_netdevmount option in/etc/fstabfor any network filesystem. This tells systemd (or the init system) to wait for the network before attempting the mount. -
Consider adding
soft,timeo=30,retrans=3to NFS mount options so a failed mount returns an error instead of hanging forever. Trade-off:softmounts can cause silent data corruption if writes fail without the application noticing. Usesoftonly for read-only or non-critical mounts. -
Add
nofailto the fstab options so a failed mount does not block the rest of the boot process.
TEXT
nfs-server:/export/data /mnt/data nfs _netdev,soft,timeo=30,retrans=3,nofail 0 0- After every reboot, verify mounts actually came up. Do not assume.
BASH
# Check mounted filesystems — look for your NFS paths
mount | grep nfs
# Check for stale handles on a specific path
ls /mnt/data 2>&1 | grep -i staleumount -l /mnt/data followed by a fresh mount /mnt/data typically resolves it — but only if the NFS server and export are healthy.
Orphaned cron jobs that keep firing
- Try to write to a mount point that no longer exists, filling the root partition with error logs.
- Attempt to connect to a database that moved, generating connection timeout errors that fill syslog.
- Run a backup script that tries to tar a directory that is now an empty mount point, producing a zero-byte backup that overwrites the real one.
- Execute as root and spawn processes that consume CPU or memory for no useful purpose.
/var/spool/cron/, in /etc/cron.d/, in /etc/cron.daily/, and in user crontabs. Rebooting just restarts crond, which dutifully loads and executes every entry it finds.
What actually helps:
Audit cron entries regularly. Not just root's crontab — every user's.
BASH
# List all user crontabs (run as root)
for user in $(cut -f1 -d: /etc/passwd); do
crontab_content=(crontab -l -u "user" 2>/dev/null)
if [ -n "$crontab_content" ]; then
echo "=== $user ==="
echo "$crontab_content"
fi
done
# Also check system cron directories
ls -la /etc/cron.d/
ls -la /etc/cron.daily/
ls -la /etc/cron.hourly/systemctl list-timers --all and look for timers in a failed or inactive state that still have a schedule.
The reboot itself is a risk window
fsck on ext4 filesystems, adding minutes to boot time. XFS does not do scheduled checks on mount, but ext4 with default tune2fs settings might.
What to do instead of weekly reboots
systemctl restart <service> is surgical. A full reboot is a shotgun.
If you are rebooting weekly because "it is best practice," reconsider. Linux servers are designed to run for months or years between reboots. The only strong reason to reboot is a kernel update that cannot be applied live (though live-patching solutions exist for some distributions).
Build a pre-reboot and post-reboot checklist for when reboots are genuinely needed:
Before rebooting:
- Verify all fstab entries point to reachable targets. For NFS, confirm the server and export are up.
- Review all cron entries and systemd timers. Remove or disable anything that targets decommissioned services.
- Check that critical services have correct systemd dependencies and are set to
enabledso they start on boot. - If the server is behind a load balancer, drain it from the pool first.
- Verify all expected filesystems are mounted (
mount,df -h, and specifically check NFS paths). - Confirm all critical services are running (
systemctl is-active <service>). - Check for failed systemd units:
systemctl --failed. - Tail syslog and application logs for errors during the first few minutes.
- If behind a load balancer, wait for cache warming and health checks to pass before adding the node back.
