My gitlab installation is running out of space. I want to move the user's repositories to another drive. I can not find any walkthroughs or good forum posts about doing this.
I have tries moving /opt/gitlab/apps/gitlab/repositories
to another drive, and then creating a symlink from the original folder name to the new one. This worked as far as it allowed me to read the data in the repositories, but it failed at the point of trying to create a new repo, when trying to push to the master branch (git push -u origin master
), stating that I had no permission to commit to master. When I put the folder back in place instead of the symlink, all went back to working as expected.
Is there a better/correct way to move the repositories into a different location, and different drive on the system?
chown git:git
on all the GitLab related files.