As the heading says. I've tracked down which file is growing to fill the filesystem, it's /proc/kcore. Here's a snippet of 'ls /proc'
{ -rw------- 1 root root 140737471590400 Nov 9 02:54 kcore }
I tried 'tail /proc/kcore' but it's obviously a binary file and wouldn't stop until I killed it. Even logged in as root, it wouldn't let me delete it. Heeelp! Peter
/procis a virtual filesystem. By simply googling the file, I found this SO question: https://stackoverflow.com/questions/21170795/proc-kcore-file-is-huge – Oskar Skog Nov 10 '23 at 00:41/proc/kcorebeing huge is not an issue at all. Are there any real signs of trouble? – Oskar Skog Nov 10 '23 at 00:43The problem is (if you look at the numbers) is that my approx 45GB installation has produced an approximately 400GB kcore file which only stopped growing because there was no room left on the partition.
– OldBikerPete Nov 10 '23 at 01:03If there were a way for me to attach a file, I would attach the syslog and maybe the dmesg log to assist an answer.
– OldBikerPete Nov 10 '23 at 01:15/procshould be a virtual file system, I don't think it can even work otherwise. There will of course exist an empty directoryprocin the root file system, but that's just the mount point. Can you rundu -h /procto check how much disk storage /proc actually uses? – Oskar Skog Nov 10 '23 at 02:00There's no point in pursuing the line that /proc should be a virtual filesystem. On my machine IT IS NOT.
– OldBikerPete Nov 10 '23 at 02:07findmnt -T /proc/kcore? Please [edit] and add this information to the question. Note140737471590400from the output of yourlsis128T, not400G; but tryls -ls /proc/kcoreand you will most likely see the size on disk (first number) is0. The problem with your root filesystem lies somewhere else. Trysudo ncdu -x /to track the real culprit; and if there is nothing suspicious there then see this question: 2T file system full!dusays only 70G consumed. Where is the rest? – Kamil Maciorowski Nov 10 '23 at 05:21mount | grep /proc& post. On my system, it returnsproc on /proc type proc (rw,nosuid,nodev,noexec,relatime). Theproctype means it is virtual, not real. – Bib Nov 10 '23 at 10:36Output from ls -ls /proc/kcore is: 0 -r-------- 1 root root 140737471590400 Nov 12 03:54 /proc/kcore
du -H produces a looong list of file and directory names all preceded by 0
Bib: I get that "this is a virtual filesystem' answer .
– OldBikerPete Nov 12 '23 at 04:31Now if I could finde a button which activates the 'Solved message, I'd press it.
– OldBikerPete Nov 13 '23 at 01:00