New here, so please excuse the inevitable knowledge gaps. I’ll try to be concise to make up the difference…
We run an on-prem Gitlab EE server, version 12.0.2 on Centos 7. For conciseness;
Currently, our repo storage location is a mount point connected to a NAS, and it contains about 7GB of .git files. For various reasons, including that pointing at a NAS for this fills me some horror, we’d like to move the repo location from this mountpoint/NAS to a local storage location which is part of the server.
I already/mount point allocated and with enough storage space, but before touching anything I wanted to confirm that I am following the right process to safely move the repo.
If my digging around for answers is correct, I am going to follow this process;
- Stop the Gitlab services.
- Copy the data from /nasmountpoint to /local/data/gitrepo/
- Browse to/open /var/opt/gitlab/gitaly/config.toml
- Under [[storage]] change path = ‘/gitrepo/repositories’ to the /local/data/gitrepo folder above.
- Unmount /nasmountpoint (to be sure it is no longer being used)
- Start the Gitlab services
As I said, pretty fresh to Gitlab in general, so please scream at me if the above is incorrect, incomplete or unnecessarily risky.