Replace this template with your information
Describe your question in as much detail as possible:
We have a GitLab on-premise instance (ubuntu server, installed using apt-get)
We just noticed that the VM storage was almost 100% after it failed to upgrade to the latest version. Using the du -sh
tool we found the issue in this path
$ du -sh /var/opt/gitlab/postgresql/data/base/*/
7.4M /var/opt/gitlab/postgresql/data/base/12661/
7.8M /var/opt/gitlab/postgresql/data/base/16400/
16G /var/opt/gitlab/postgresql/data/base/16401/
7.6M /var/opt/gitlab/postgresql/data/base/26404/
$ sudo -u gitlab-psql -i bash
gitlabhq_production=# SELECT relname, relfilenode FROM pg_class WHERE relfilenode=16401;
relname | relfilenode
---------+-------------
(0 rows)
We don’t know what is that file being used for, and our instance right now has less than 15 repos created. Some of them with pipelines configured, but nothing crazy that may explain this 16GB file.
In the meantime, we increased the VM disk size but it would be great if we could sort this out and fix the real problem, if there even is one to fix.
I don’t know if this is a bug so I decided to post here first.