Always use Ctrl+C to stop Mithril cleanly rather than killing the terminal or closing the SSH session. This allows Mithril to flush data and exit gracefully, preventing data corruption and ensuring file handles are properly released.
If Mithril processes are terminated abruptly (e.g., by closing SSH or killing the terminal), they may become zombie processes that hold deleted files open. This can cause "phantom" disk usage where df shows the disk as full but du shows less data than expected.
Symptoms:
df -hshows disk at 100% usagedu -sh /path/to/datashows significantly less data than expected- SIGBUS errors during AccountsDB flush operations
Prevention:
- Mithril automatically detects and kills existing mithril processes at startup
- Always use
Ctrl+Cto stop Mithril cleanly
Recovery:
- Check for zombie mithril processes:
ps aux | grep mithril - Kill any stopped/zombie processes:
pkill -9 -f mithril - Unmount and remount the affected disk to release file handles:
sudo umount -l /mnt/mithril-accounts sudo mount /dev/nvme1n1p1 /mnt/mithril-accounts
The snapshot finder automatically tests many nodes and selects the fastest. If downloads are consistently slow:
- Check your network bandwidth
- Try increasing stage 2 parameters in config
- Enable
verbose = truein the[snapshot]config section to see detailed node discovery statistics
- Ensure AccountsDB is on your fastest NVMe drive
- Consider using a higher-endurance drive (Samsung 990 Pro or better recommended)
- By default, Mithril saves snapshots to disk (
max_full_snapshots = 1). Setmax_full_snapshots = 0for stream-only mode which doesn't require disk space for snapshot files. - Initial sync uses more RAM than steady-state replay
- Consider increasing swap space for systems with limited RAM