Automate to Automate HA
Upgrading with FileSystem Backup locally
Here we expect both the versions of Standalone Chef Automate and Chef Automate HA are same. Chef Automate HA is only available in version 4.x.
- Create Backup of Chef Automate Standalone using command:
chef-automate backup create chef-automate bootstrap bundle create bootstrap.abb
- The First command will create the backup to the
/var/opt/chef-automate/backup
location unless you specify the location inconfig.toml
- Second command will create the
bootstrap.abb
- Once the backup is completed successfully, please save the backup Id. Example :
20210622065515
Create Bundle using this command:
tar -cvf backup.tar.gz path/to/backup/<backup_id>/ /path/to/backup/automatebackup-elasticsearch/ /path/to/backup/.tmp/
Transfer this
tar
bundle to one of the Chef Automate HA Frontend Nodes.Transfer
bootstrap.abb
file to all the Chef Automate HA FrontEnd Nodes (both Chef Automate and Chef Infra Server).Go the Chef Automate HA, where we copied the
tar
file. Unzip the bundle using:tar -xf backup.tar.gz -C /mnt/automate_backups
Stop all the service’s at frontend nodes in Automate HA Cluster. Run the below command to all the Automate and Chef Infra Server nodes
sudo chef-automate stop
Run the command at Chef-Automate node of Automate HA cluster to get the applied config
sudo chef-automate config show > current_config.toml
Restore in Chef-Automate HA using this command:
automate_version_number=4.0.91 ## please change this based on the version of Chef Automate running. chef-automate backup restore /mnt/automate_backups/backups/<backup_id>/ --patch-config current_config.toml --airgap-bundle /var/tmp/frontend-${automate_version_number}.aib --skip-preflight
Upack the
bootstrap.abb
file on all the Frontend nodes:
Login to Each Frontend Node and then run after copying thebootstrap.abb
file.chef-automate bootstrap bundle unpack bootstrap.abb
Start the Service in All the Frontend Nodes with below command.
sudo chef-automate start
Upgrading with FileSystem Backup via volume mount
Here we expect both the versions of Standalone Chef Automate and Chef Automate HA are same. Chef Automate HA is only available in version 4.x.
- Create Backup of Chef Automate Standalone using command:
chef-automate backup create chef-automate bootstrap bundle create bootstrap.abb
- First command will create the backup at the file mount location mention in the
config.toml
- Second command will create the
bootstrap.abb
- Once the backup is completed successfully, please save the backup Id. Example :
20210622065515
Detach the File system from Standlalone Chef-Automate.
Attach and Mount the same file system to the Automate-HA all the nodes:
- Make sure that it should have permission for hab user
Stop all the service’s at frontend nodes in Automate HA Cluster. Run the below command to all the Automate and Chef Infra Server nodes
sudo chef-automate stop
Please Get the Automate HA version number from the location
/var/tmp/
in Automate instance. Example :frontend-4.x.y.aib
Run the command at Chef-Automate node of Automate HA cluster to get the applied config
sudo chef-automate config show > current_config.toml
Run the restore command in one of the Chef Automate node in Chef-Automate HA cluster :
chef-automate backup restore /mnt/automate_backups/backups/<backup_id>/ --patch-config current_config.toml --airgap-bundle /var/tmp/frontend-4.x.y.aib --skip-preflight
Copy the
bootstrap.abb
file to all the Chef Automate HA FrontEnd Nodes (both Chef Automate and Chef Infra Server).Upack the
bootstrap.abb
file on all the Frontend nodes. ssh to Each Frontend Node and then run below commandchef-automate bootstrap bundle unpack bootstrap.abb
Start the Service in All the Frontend Nodes with below command.
sudo chef-automate start
Was this page helpful?