Putting this out into the world because it helped me solve my own "Mystery of Where All The Disk Space Went" and maybe it will help someone else:
Make your mountpoint directories immutable to prevent processes from writing to it if the drive/network/whatever device is ever disconnected:
chattr +i /mnt/mountpoint
(With the device unmounted)
[#]selfhosting #selfhosted #linux
=> More informations about this toot | More toots from bpettis@benpettis.ninja
If you don't do this, when your NAS disconnects and the filesystem unmounts, your web app may write to the /mnt/mountpoint directory on your root drive and then fill up all the remaining space.
Ask me how I know this. 🙃
=> More informations about this toot | More toots from bpettis@benpettis.ninja This content has been proxied by September (3851b).Proxy Information
text/gemini