0

I am running many python process as services under SystemD. The count could exceed 200 python system services which i found using the below command

systemctl list-units --type=service | grep "search string specfic to my created python services" | wc -l
output:245 

I know that these many services can create so many logs that a disk could be filled.

So I was thinking to setup logrotate and delete logs in a fixed interval. But now I have totally run out of the disk space, and I tried many solutions to clear any space possible and find where space is getting occupied but no luck.

whole 49gb diskspace is used up:

enter image description here

trying to find what dir occupied more space.

enter image description here

I had similar problem in gcp, disk got full, but I resolved it by deleting trash listed by this command.

sudo find / -type f -printf '%12s %p\n' 2>/dev/null|awk '{if($1>999999999)print $0;}'

but I when i am using this the only thing it lists is /proc/kcrore,

enter image description here

I know i can't delete this

  • Welcome to the site. Please don't post screenshots of console-output. They are oftendifficult to read, and contributors will have to type-copy example content of commands in order to reproduce the problem. Instead, copy-and-paste the console I/O into the question using code formatting tags. – AdminBee Sep 16 '20 at 09:48
  • See this: https://unix.stackexchange.com/questions/125429/ – FedKad Sep 16 '20 at 12:23

0 Answers0