Skip to content
Snippets Groups Projects
Commit 37b2959e authored by Alex Hanselka's avatar Alex Hanselka Committed by Pablo Carranza
Browse files

update runbook with correct paths

parent 6ecebe70
No related branches found
No related tags found
1 merge request!239update runbook with correct paths
Loading
Loading
@@ -4,29 +4,29 @@ Free disk space on runners cache node is less than 20%.
 
## Possible checks
 
* SSH to the `runners-cache-1.gitlab.com`.
* SSH to the `runners-cache-X.gitlab.com`.
* Check available space by executing `df -h | grep /dev/vda1`.
* Check which directory is consuming the largest space by executing `cd /; du -h -d 1 -x`, `-x` limits to a single filesystem to prevent reaching larger drives
* Most of the cases it will be either `/opt/minio` or `/opt/registry`.
* Most of the cases it will be either `/opt/gitlab/cache/` or `/opt/gitlab/registry`.
* Some hosts mount the `cache`, AKA `minio` and `registry` folders in `/opt/gitlab/` using a different drive.
 
## Fixing `/opt/minio` or `/opt/gitlab/cache`
## Fixing `/opt/gitlab/cache/.minio.sys` or `/opt/gitlab/cache/runner/runner`
 
> Adjust these commands depending on the filesystem structure.
 
You can delete files from cache which is more three days old by running following command
 
```
sudo find /opt/minio/runner/runner/ -mindepth 3 -maxdepth 6 -ctime -3 -exec rm -rf {} \;
sudo find /opt/gitlab/cache/ -mindepth 3 -maxdepth 6 -ctime -3 -exec rm -rf {} \;
```
 
Or more than two days old
 
```
sudo find /opt/minio/runner/runner/ -mindepth 3 -maxdepth 6 -ctime -2 -exec rm -rf {} \;
sudo find /opt/gitlab/cache/ -mindepth 3 -maxdepth 6 -ctime -2 -exec rm -rf {} \;
```
 
## Fixing `/opt/registry`
## Fixing `/opt/gitlab/registry`
 
First, stop the registry container
 
Loading
Loading
@@ -34,10 +34,10 @@ First, stop the registry container
sudo docker stop registry
```
 
then remove everything in `/opt/registry`
then remove everything in `/opt/gitlab/registry`
 
```
sudo rm -r /opt/registry/*
sudo rm -r /opt/gitlab/registry/*
```
 
and finally start the registry container again
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment