# fala.cl upgrade plan ## "Hardware" All resources lives in the resource group ecommerce-gitlab in Azure. Gitlab is deployed in a manually provisioned VM (F16s_v2). Additionally, a 4TB volume is attached for registry storage. > https://fala.cl/self/gitlab/-/tree/master#hardware > *Azure region : __East US__* *Azure rg : __ecommerce-gitlab__* *gitlab vm name: __gitlab-ng__* ## to keep in mind all snapshots must be created in the same resource group, also the same region. ## steps - snapshots of the disks in azure. -- OS disk -- Data disk (2Tb) -- Data disk for container registry (4Tb) - check last backup is up-to-date, if not, do manually `sudo gitlab-backup create` - backup configuration files `/etc/gitlab/gitlab-secrets.json` `/etc/gitlab/gitlab.rb` - update OS packages `sudo apt update` - update gitlab to the last version of major release 12.10.14 `sudo apt install gitlab-ee=12.10.14-ee.0` - wait til the update is done. - if all goes ok, we can iterate again to upgrade to 13.x ## rollback All these steps runs in azure. - take the vm down (stop & deallocate) - create a managed disk from the OS disk snapshot - go to the vm blade __*gitlab-ng*__ - go to the disks blade and click __*swap OS disk*__ - select the recently created disk - and confirm the action. - start the VM --- > [name=Browse DevOps team]