Ubuntu 18.04.1 LTS with 100% storage and processing

Asked

Viewed 36 times

2

I’m having a problem with my development server and I can’t fix it. I’ve done a lot of research, but I can’t find the solution. Probably those who have more advanced knowledge of the OS believe it could help a lot: I was developing a bash script and at a time the code had to implement file deletion, but my script executed a rm -f with the variable value (accidently).

My luck is that the command deletes only files .tmp and .save to delete files generated by nano. However, since the command ran at the root, I started to experience the following problems in the OS:

  1. the storage /dev/vda1 goes to 100% use after a few hours with the machine on.
  2. When storage is full CPU usage also goes to 100% being the sh program the consumer of the processing.
  3. When restarting the machine everything works normally.
  4. After a while it happens all over again.

What I did to try to solve it was:

  1. I updated with apt-get update && apt-get dist-upgrade. Problem persists.
  2. This Ubuntu was 16.04, I upgraded to 18.04.1 with do-release-upgrade. There were some update errors from headers.
  3. I tried to reinstall headers with apt upgrade --fix-Missing. Problem persists.

Anyway, I stopped by and decided to ask for help from the community, I ask you to help me fix this server, it would be very stressful to have to reconfigure all the services in a new machine and maybe this post can help someone in the future with this same problem. I’m willing to run all the necessary tests.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.