How to retrieve backup from virtual CPPM which fails to boot
How to retrieve the backup from the ClearPass server by using an Ubuntu image, in the situations where ClearPass deployed on a virtual platform fails to boot, or has gone corrupted and we don't have the configuration backup neither the snapshot of the instance.
We will boot the ClearPass instance with Ubuntu image on it and will access the hard drive which will be automatically mounted on the Ubuntu OS by the os image or we can manually mount the HDD.
Steps below have step by step explanation of how we can achieve it.
1. Power OFF the ClearPass [CPPM] instance.
2. Click on "Edit Settings" , and ADD a CD/DVD drive to the list of devices as shown below:
3. Please download Ubuntu image and upload it to the VM data store.
*Note: For this illustration, I have used Ubuntu 18_04 image which you could download by clicking here
4. Once you have the image uploaded to the data-store, edit the CD/DVD drive.
5. In the Device type, select the "Datastore ISO File" as shown below and select the uploaded image.
WARN: Make sure you have enabled "Connect at Power ON" in the CD/DVD drive parameters.
6. Navigate to Option/VM Options and enable force entry to BIOS screen on boot-up as shown below:
7. Power ON the instance, and access the console.
8. Once you are in the BIOS screen make CD/DVD drive the top priority and select "Save and Exit" [F10].
9. This will load up Ubuntu OS and will bring the setup wizard as shown below, hit Try Ubuntu to proceed further
WARN: Do not hit "Install Ubuntu" as this will erase all the CPPM files and install the Ubuntu OS on top of it.
10. This will load up the OS and bring up the home screen.
11. Once you are at the home screen, select Files from the option in the left side and select "other location". Which would bring up the screen as shown and you can select /dev/sdb1/ or /dev/sdb2/ depending upon which partition you want to look into.
Note: ClearPass Platform has 2 partition, /dev/sdb1 will be having the image/CPPM OS which you had deployed initially on, as you upgrade the CPPM OS /dev/sdb2/ will be used. Now if you upgrade again then the initially deployed partition will be cleaned up [ie:/dev/sdb1/] and then the new upgrade image will processed there which will go on.
Example: If you had deployed the server on 6.5.x it will be deployed on /dev/sdb1/, when you upgrade the OS to 6.6.x that will installed on /dev/sdb2/ and now if you upgrade to 6.7.x it will clear the 6.5.x image in /dev/sdb1/ and install the new 6.7.x image there. Hence you can choose your partition according to which is the active partition.
12. The files shown in the picture above will only be available if the HDD is mounted on the Ubuntu OS and you are good to move to the next step [the mounting should happen automatically if you are deploying Ubuntu 18.04], if you are using old version of Ubuntu, you can manually mount the HDD, by accessing terminal and using the commands below:
sh-4.2# mkdir mounted_image //Creates a directory named mounted_image
sh-4.2# mount /dev/sdb2/ mounted_image // mount the content of /dev/sdb2/ to the created directory mounted_image
13. Once you are able to access /dev/sdb2/ go to the below location to access the automatic backup files.
14. You can copy it to the Ubuntu local directory like Documents or Desktop, by giving Copy to for ease of access.
15. Once you get the access to the file you can give an IP to the Ubuntu wired interface so that it will be able to communicate outside as shown below.
16. After you assign an IP in your subnet, you can scp/sftp the backup file from your local folder to an external machine, or if your subnet has internet access, you can use a browser to upload the file.
17. In this specific example I have done a scp transfer as shown: