As we know PCF Ops Manager is a singleton component and there is no High Availability. If it is corrupted or crashed for some reason, PCF platform level operations may be hampered - though it does not affect the ELR or running applications.
It is always advisable to test backup and recovery procedure of Ops Manager. I have done the same using these three ways
1) Export / Import via Ops Manager GUI
2) Using "CF OPS" (http://www.cfops.io/)
3) Image level VADP backup of Ops Manager VM (in case of VMWare)
In this test, assumption is that only Ops Manager is affected while BOSH Director and other PCF/ELR VMs are running fine.
1) Export / Import via Ops Manager GUI:
This is pretty much manual way of backing up Ops Manager where you export the settings via Ops Manager.
This exports base VM images and necessary packages and references to the installation IP addresses. Which means the export size can be large and export might take some time.
This will save a file from the browser window. Which includes the exported content.
Now let us deploy a new Ops Manager giving the same IP and hostname.
Once deployed, open a web browser and type FQDN of Ops Manager and choose to Import Existing Installation.
Provide decryption password (set during the first setup of Ops Manager), path of backup/exported installation.zip file and press Import.
Again this import process may take time depending on the size of data to be imported.
Once the import is completed, it will display the login screen. Login with username/password and you will see the message that import is successful.
While this method woks, it may not be straightforward to automate for regular backups. Now let's test second method using CF OPS.
2) "CF OPS" (http://www.cfops.io/)
This is an automation utility from Pivotal which can be downloaded from https://github.com/pivotalservices/cfops/releases and installed on a jumpbox.
Once done, backup can be triggered via a simple script like below and the same can be scheduled via cron or other scheduling tools.
Now assume that Ops Manager VM is corrupted/crashed/lost (for this testing I am just powering it off).
Now let us deploy a new Ops Manager giving the same IP and hostname.
Once deployed, open a web browser and type FQDN of Ops Manager. Choose internal authentication for this fresh setup.
This will bring up a fresh Ops Manager without any configuration/tiles.
DO NOT setup the authentication at this stage. Just go ahead with the restoration using CFOPS.
Here assumption is that original BOSH director is still operational.
If this is not the case, rename the bosh-state.json in order to force creation of the BOSH director. Removing bosh-state.json causes Ops Manager to treat the deploy as a new deployment, recreating missing Virtual Machines(VMs) including BOSH. The new deployment ignores existing VMs such as your Pivotal Cloud Foundry deployment.
Once restored, open the FQDN in a web browser which will not ask to setup authentication and directly prompt for id/password.
You will need to apply the changes and once done.... it's all good!
And during all these operations, Elastic Runtime and deployed apps were running perfectly fine.
3) Image level VADP backup of Ops Manager VM (in case of VMWare)
This is like backing up any standard VM via any enterprise backup software leveraging VADP api.
For this testing, I am using EMC Avamar.
Now assume that Ops Manager VM is corrupted/crashed/lost (for this testing I am actually deleting the VM).
And let us restore it from the Avamar backup.
Once restore is completed, power it on(if not selected to do so during restore) wait for couple of minutes for it to start and open the FQDN in a web browser.
It will prompt for decryption passphrase.
Once entered, it will prompt for login/password. That's it... its fully operational again.
I feel this is the simplest way of backing up and restoring Ops Manager.
Hope this will be useful.
What a great post it was. I have bookmarked this blog for my future reference. Thanks for sharing.
ReplyDeleteIELTS Coaching in Tambaram
IELTS Coaching Centre in Tambaram
IELTS Training in Tambaram
IELTS Coaching In Velachery
IELTS Coaching Centre in Velachery
IELTS Training in Velachery
IELTS Coaching in T Nagar
IELTS Classes in T Nagar
IELTS Training in T Nagar
Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
ReplyDeleteiOS Training in Chennai
iOS Training in OMR
JAVA Training in Chennai
Python Training in Chennai
Hadoop Training in Chennai
Digital Marketing Course in Chennai
IOS Training in Chennai
iOS Training in Velachery
very useful information, the post shared was very nice
ReplyDeletePivotal Cloud Foundry Online Training
It was a great information and Its really worth reading it.
ReplyDeletePivotal Cloud Foundry Online Training
Hi there,I enjoy reading through your article post. Thank you for sharing.
ReplyDeletePivotal Cloud Foundry Online Training in Ameerpet
Cloud Foundry Training in Hyderabad
PCF Training in Hyderabad
Cloud Foundry Developer Online Training in Hyderabad
Very good explanation. Thank you for sharing.
ReplyDeletePivotal Cloud Foundry Online Training
This comment has been removed by the author.
ReplyDeleteNice Article you have made here, It’s an informative and interesting post, keep it up.
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
Nice article with lots of valuable and amazing information.
ReplyDeleteAngularJS training in chennai | AngularJS training in anna nagar | AngularJS training in omr | AngularJS training in porur | AngularJS training in tambaram | AngularJS training in velachery
Thank you for sharing this valuable information with us.
ReplyDeleteramanichandran novels
muthulakshmi raghavan novels
sashi murali novels
tamil novels
srikala novels
mallika manivannan novels
tamil novel writers
Driver Toolkit 8.9 Crack Full is a driver installer that allows you to install your PC driver without searching the Internet. Driver Downloader License Key
ReplyDeletevery nice post thanks for sharing this post
ReplyDeleteHanuman Chalisa Lyrics Pdf
Hanuman Chalisa Tamil Pdf
Hanuman Chalisa English Pdf
Hanuman Chalisa Telugu pdf
Excellent post.
ReplyDeleteEgg price today
What a good and helpful post
ReplyDeleteNational egg rate