3505 - Promoting a Grid Master Candidate (GMC) in the NIOS Grid
Scenario
Your team is performing a Disaster Recovery (DR) exercise, during which you need to switch all Grid management function to the backup or secondary site, verify everything works, then switch back to the primary site.
Estimate Completion Time
30 to 45 minutes
Credentials
Description | Username | Password | URL or IP |
---|---|---|---|
Grid Manager UI | admin | infoblox |
Requirements
Administrative access to the Grid
Console access to NIOS appliances
Course References
1001 : NIOS Grid Overview
1002 : Using the NIOS Grid Manager UI
2002: Managing NIOS Grid Members
3001 : Setting up the NIOS Grid
Lab Initiation
Access jump-desktop
Once the lab is deployed, you can access the virtual machines required to complete this lab activity. To initiate the lab, click on the jump-desktop tile and login to the Linux UI:
Username: training
Password: infoblox
Initiate lab
To initiate the lab, double-click the Launch Lab icon on the Desktop.
Choose the lab number from the list and click OK.
After clicking OK, you will see a pop-up message with a brief description of the lab task. If the description looks correct, click Yes to continue lab initiation.
Lab initiation will take a couple of minutes to finish.
Once complete, you will see another pop-up message with the login credentials and the URL for the Grid Manager’s User Interface. Note that the credentials may differ from those from prior labs.
Tasks
Task 1 : Obtaining information on GMC
Login to the GM web interface and collect the network information of the Grid Master Candidate. If more than one GMC is configured, please write down all their network information. You will need this information for the next task.
Task 2 : Documenting service impact
As part of the DR exercise, you need to provide the service impact and plan for outage (if appropriate). Please answer the following questions:
Are DNS/DHCP/IPAM services affected by this activity?
Will the service be unreachable for more than 60 minutes?
After promoting the backup site, do NIOS administrators need to login to a different address to access the GM user interface to make changes?
Task 3 : Promoting the GMC
Login to the GMC via console access. Execute the command set promote_master
.
Task 4 : Verifying functionality
Login to the newly promoted GM at its IP address. Please verify that all members have rejoined successfully. The original GM (nios-1) should have rejoined the Grid, and automatically change its role to the new GMC.
Task 5 : Promoting original GM
Login to the original GM (nios-1) via console access. Execute the command set promote_master
.
Task 6 : Verifying functionality
Login to the original GM at its IP address. Please note that all members have rejoined successfully. The GMC (nios-5) should have rejoined the Grid, and automatically change its role to GMC.
Solutions
Task 1 Solution: Obtaining information on GMC
Log in to the GM web interface and examine the services active in the grid and the members on which these services run.
Login to the NIOS GM web interface.
Navigate to Grid → Grid Manager → Members.
Note the services running for ibns2.techblue.net and ibns1.techblue.net. If a service runs correctly, it will be shown with a green icon.
Alternatively, you may find the same information in the web interface this way, one service at a time:
Login to NIOS GM web interface
Navigate to Grid → Grid Manager → Services.
Click on DHCP to verify if DHCP service is running for ibns2.techblue.net and ibns1.techblue.net .
Repeat the same step for DNS and other services.
Task 2 Solution: Documenting service impact
As part of the DR exercise, you need to provide the service impact and plan for outage (if appropriate). Please answer the following questions:
Are DNS/DHCP/IPAM services affected by this activity?
Answer: Services will remain unaffected.Will the service be unreachable for more than 60 minutes?
Answer: Same as above.After promoting the backup site, do NIOS administrators need to login to a different address to access the GM user interface to make changes?
Answer: Administrators are automatically redirected to the new GM’s login page.
Task 3 Solution: Promoting the GMC
Login to the GMC via console access. Execute the command set promote_master
.
Access the console of nios-5 VM using default credentials.
At the prompt, type the command set promote-master.
When prompted to add a delay between notification to Grid members, say Y, and accept the default delay of 30 seconds.
When prompted to confirm you want to promote this candidate, say Y to accept.
You will now see the NIOS appliance restart.
Go back to the VM jump-desktop.
Wait a couple of minutes and then refresh your web browser.
If the web browser says, “Refused to connect” wait a few more minutes and refresh again.
You will be automatically redirected to the new GM’s IP address (10.200.0.100).
Login with the default credentials
Go to Grid→Grid Manager→Members
All members should be online and running
You will now see that the icons for ibgm and ibgmc have been swapped around, ibgmc is now the Grid Master, ibgm is a Grid Master Candidate.
Task 4 Solution: Verifying functionality
Login to the newly promoted GM at its IP address (10.200.0.100). Please verify that all members have rejoined successfully. The original GM (nios-1) should have rejoined the Grid, and automatically change its role to the new GMC.
Go to Grid→Grid Manager→Members.
Check the Status of members and verify that they have all successfully joined the newly promoted ibgmc
Task 5 Solution: Promoting original GM
Login to the original GM (nios-1) via console access. Execute the command set promote_master
.
Access the console of nios-1 VM using default credentials.
At the prompt, type the command set promote-master
When prompted to add a delay between notification to Grid members, say Y, and accept the default delay of 30 seconds
When prompted to confirm you want to promote this candidate, say Y to accept
You will no see the NIOS appliance restart.
Go back to jump-desktop.
Wait a couple of minutes and then refresh your web browser
If the web browser says, “Refused to connect” wait a few more minutes and refresh again.
You will be automatically redirected to the new Grid Master’s IP address (10.100.0.100).
Login with the default credentials.
Go to Grid→Grid Manager→Members.
All members should be online and running.
You will now see that the icons for ibgm and ibgmc have once again swapped around, ibgm is once again the Grid Master, ibgmc is back to being the Grid Master Candidate.
Task 6 Solution: Verifying functionality
Login to the newly promoted GM at its IP address (10.100.0.100). Please verify that all members have rejoined successfully.
Go to Grid→Grid Manager→Members.
Check the Status of members and verify that they have all successfully joined the newly promoted ibgm