Hello, everybody.
I have a strange problem with one of my servers. Some facts:
However, from time to time /data runs havoc. Logs are overflowed by <3>pid 657 (mosquitto), uid 885 inumber 4 on /data: out of inodes (and I can't login via SSH, which is strange as logon does not use any files or dirs on /data). Inode usage log does not indicate lack of inodes, it stays flat at 8 (no spikes on rotation as this doesn't happen any longer). There's no sudden rise of processed entries or something, no incerase of used space, no nothing suspicious. All applications continue to operate normal (unless they need to do some writing, as login or DB compaction - luckily the only application I really care about runs entirely in-memory with no fs accesses). As for now, only 1 out of 6 machines exhibits this problem and one problematic has the pendrive replaced, to rule out physical damage to the media.
It feels as if all partitions (including all tmpfs'es) turned suddenly read-only without any reason (and any trace in syslog for that matter)
TL;DR;
mosquitto reports out of inodes on a pendrive, when there's clearly not the case.
Where to go next?
I have a strange problem with one of my servers. Some facts:
- Prepared via slightly modified NanoBSD from 11.2-STABLE #0 r342216
- Is running on a 8GB pendrive, UEFI boot, 4 GPT partitions,
- #1 is UEFI
- #2 is /cfg (r/o)
- #3 is / (r/o)
- #4 is /data, (r/w, created via
makefs -t ffs -B little -o optimization=space ...
).
- Is running (among the others)
df -hi
reports /data having 8 inodes used out of 3.1k (spiking to 9 when mosquitto compacts database by copying to a new file - this is confirmed by Telegraf graph of inode usage: it is always flat 8 with tiny spikes on compaction).However, from time to time /data runs havoc. Logs are overflowed by <3>pid 657 (mosquitto), uid 885 inumber 4 on /data: out of inodes (and I can't login via SSH, which is strange as logon does not use any files or dirs on /data). Inode usage log does not indicate lack of inodes, it stays flat at 8 (no spikes on rotation as this doesn't happen any longer). There's no sudden rise of processed entries or something, no incerase of used space, no nothing suspicious. All applications continue to operate normal (unless they need to do some writing, as login or DB compaction - luckily the only application I really care about runs entirely in-memory with no fs accesses). As for now, only 1 out of 6 machines exhibits this problem and one problematic has the pendrive replaced, to rule out physical damage to the media.
It feels as if all partitions (including all tmpfs'es) turned suddenly read-only without any reason (and any trace in syslog for that matter)
TL;DR;
mosquitto reports out of inodes on a pendrive, when there's clearly not the case.
Where to go next?