Disk space mysteriously filled up

We setup a Gitlab instance in AWS and then promptly ignored it for about 2-3 weeks. (Nobody and nothing was using it)

When I tried to log into it, turns out the disk was full! We expanded it and it works again.

While I might have thought the culprit was logs, that was only a few megs. Most of the space was in the /opt and /var/opt areas.

Any thoughts? (Actually happened on another AWS instance as well, same non-usage situation.)

Hi @jagosta :wave:

I’m not sure what would be consuming so much space. Maybe backups?

We can investigate what is taking up so much space in /var/opt/gitlab and /opt/gitlab with the following commands:

du --max-depth 2 -h /var/opt/gitlab/ | sort -hr | head -n 10
du --max-depth 1 -h /opt/gitlab/ | sort -hr | head -n 10
1 Like


Hmm. I don’t know if my systems guy deleted something, but /var/opt is smaller now.

2.7GB is in /opt/gitlab/embedded (the bulk of /opt/gitlab).

IDK. I appreciate the answer and I’ll have to keep my eye on it.