-
Notifications
You must be signed in to change notification settings - Fork 6
Mu Master Backup
rpattcorner edited this page Apr 2, 2018
·
1 revision
You'll want to back up your Mu Master periodically as it provides valuable management capabilities for your deployments. Currently problems with Chef's backup process prevent a fully automated process, so here's a stopgap that will tide us over until we resolve the issues.
- Always launch your mu master with an elastic IP.
- Periodically image your master, which creates your backup
- Restore by restoring the imaged master, and attaching the former master's elastic IP
- You'll want to launch your mu master with an EIP, or attach one before configuring it. In theory you could simply run mu-configure on a restored image with a different IP, but in practice Chef has significant problems with adjusting to a change in its server's IP
- Image your master as an AMI, allowing reboot (it won't affect your instances) and clearly labeling the imaged AMI as a backup of your master
- Create a new instance from the desired backup AMI in the same VPC as your former Mu Master
- Attach the former master's EIP to the new master
- Be sure to reupload cookbooks using
mu-upload-chef-artifacts
-- run as default for Mu's cookbooks and with -r for any repositories of your own - Run mu-node-manage and verify connectivity to your existing deploys
- Run and destroy a sample deploy to verify full operation