A
A
Alexey Yarkov2018-02-25 19:00:50
linux
Alexey Yarkov, 2018-02-25 19:00:50

How to properly clean up space on a VPS?

Haven't logged into the VPS for a couple of months.
Today I tried to deploy and build a container, but it didn't work.
First Jenkins didn't start, then Docker. Executed the command to remove all images and rebooted.
Jenkins took off, but the deploy crashes at the last stage of the container build with an error:

Terminated
No space left on device

I log in via SSH, execute df and see this:
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             8205888        4   8205884   1% /dev
tmpfs            1643424      384   1643040   1% /run
/dev/vda2       50261700 47111216    574256  99% /
none                   4        0         4   0% /sys/fs/cgroup
none                5120        0      5120   0% /run/lock
none             8217116        0   8217116   0% /run/shm
none              102400        0    102400   0% /run/user

What the hell is that anyway? On the server, one application is running, a small API. And then as a stage platform. What could fill the disc?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Spiridonov, 2018-02-25
@yarkov

The logs can be cleaned up first. Someone -verbose, as usual.
Leftover updates.
If you run midnight comander (mc), by pressing Ctrl-Enter you can find out the size of the contents of the subdirectories.

A
Alexey Skobkin, 2018-02-25
@skobkin

ncdu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question