title | excerpt | updated |
---|---|---|
Reemplazo de Prism Central del modo Small al modo X-LARGE (EN) |
How to replace Prism Central with three X-Large VMs |
2023-12-18 |
Warning
This guide is only intended for customers who are in Bring Your Own License mode on their Nutanix cluster. If you are not in this configuration, contact the OVHcloud support teams to change the size of your Prism Central.
Warning
Before you make any changes, you must unregister your Prism Central license on your Nutanix portal.
This guide will show you how to redeploy Prism-Central in X-LARGE mode across three virtual machines.
Warning
This tutorial will show you how to use one or more OVHcloud solutions with external tools, and will describe the actions to be carried out in a specific context. You may need to adapt the instructions according to your situation.
If you encounter any difficulties performing these actions, please contact a specialist service provider and/or discuss the issue with our community. You can find more information in the Go further section of this tutorial.
- A Nutanix cluster in your OVHcloud account
- Access to the OVHcloud Control Panel
- You must be connected to the cluster via Prism Central
- You need to know the Prism Element admin password (when deploying a Nutanix cluster by OVHcloud this password is created in the same way as Prism Central but can be changed later)
You can deploy Prism Central in a custom sizing with these options:
- Small with 6 vCPU, 26GB of memory and 500GB of storage per virtual machine.
- Large with 10 vCPU, 44 GB of memory and 2500GB of storage per virtual machine.
- X-Large with 14 vCPU, 60GB of memory and 2500GB of storage per virtual machine.
By default, Prism Central is deployed on Nutanix by OVHcloud on a single virtual machine in Small mode.
When redeploying a cluster from the OVHcloud Control Panel, you can configure Prism Central with one or three virtual machines in small mode only.
We will look at how to replace Prism Central in Small mode on a single virtual machine with a Prism Central in X-Large mode and then extend Prism Central on 3 virtual machines for more resilience.
The Nutanix cluster remains operational during this operation but the features that require Prism Central will be removed.
Go to the OVHcloud Control Panel, choose the Hosted Private Cloud
{.action} tab at the top, then click on your Cluster
{.action} on the left in the Nutanix category, scroll down the window and click on the Load Balancer
{.action} associated with your cluster.
In the configuration pages for your Load Balancer, go to the Server clusters
{.action} tab and click Add a server cluster
{.action}.
Enter this information :
- Name (optional) :
PE SSH
. - Protocol :
TCP
. - Port :
22
. - Datacenter :
ALL
. - Private network :
nutanix
.
Then click Add
{.action}.
Within the server cluster, click Add server
{.action}.
Fill in these values :
- Name (Optional) :
PE SSH
. - IPv4 address :
Private IP address of Prism Element
. - Port :
22
.
And click Add
{.action}.
Click Apply configuration
{.action} to the right of the warning message Your load balancer configuration has not been applied in all datacenters
.
Select your location and click on Apply configuration
{.action}.
Select your location again and click Apply configuration
{.action}.
Go to the Tasks
{.action} tab to see the progress of the configuration change.
When the task is finished, go to the Front-ends
{.action} tab and click Add a Front-end
{.action}.
Enter the following information:
- Name(Optional) :
PE-FRONTEND
. - Port :
22
. - Datacenter :
ALL
.
Then click Show
{.action}.
In the Restrict access to IPs option, enter the network or IP address that will have access permission to Prism Element in SSH with this format XX.XX.XX.XX or XX.XX.XX.XX/XX.
Click Add
{.action}.
Click Apply configuration
{.action} to the right of the warning message Your load balancer configuration has not been applied in all datacenters
.
Select your site and click Apply configuration
{.action}.
Select your site again and click on Apply configuration
{.action}.
Go to the Tasks
{.action} tab to see the progress of the configuration change.
You have finished configuring the Load Balancer. You can now log in via SSH to the Prism Element console, with this information :
ssh admin@nutanix-cluster-ovhcloud-fqdn
or:
ssh nutanix@nutanix-cluster-ovhcloud-fqdn
Run these commands after you have modified the following information:
- <Prism-Central-Private-IP-address> : Private IP address of Prism Central
- <Prism-Element-Admin-Password> : Prism Element admin account password
- <Prism-Central-VM-Name> : Prism Central VM name
# Disconnect Prism Element in Prism Central
ncli multicluster remove-from-multicluster external-ip-address-or-svm-ips=<Prism-Central-Private-IP-address> username=admin password=<Prism-Element-Admin-Password> force=true
# Delete VM
acli vm.delete <Prism-Central-VM-Name>
Next, connect to an AHV host in the cluster with this command.
ssh root@private-ip-address-of-one-ahv-servers
Run this command to retrieve the UUID of your default storage, once you have modified the following information:
- <Prism-Element-Password> : Prism Element admin account password.
- <Prism-Element-IP> : Private IP address of Prism Element.
curl -k -H Accept:application/json -H Content-Type:application/json -u "admin:<Prism-Element-Password>" -X GET "https://<Prism-Element-Ip>:9440/PrismGateway/services/rest/v2.0/storage_containers/" | jq -r '[.entities[] | select( .name | contains("default-container")) | .storage_container_uuid][0]'
Next, run this other command to retrieve the UUID of your cluster’s administration network, with the same elements you modified for the previous command:
curl -s -k -H Accept:application/json -H Content-Type:application/json -u "admin:<Prism-Element-Password>" -X POST https://<prism6element-IP>:9440/api/nutanix/v3/subnets/list -d {} | jq -r "[.entities[] | select( .spec.name | contains(\"<subnet name>\")) | .metadata.uuid][0]"
Create a file named PrismCentralXlarge.json with the information below :
{
"resources": {
"version": "pc.2022.6.0.1",
"should_auto_register": false,
"initial_password": "<Prism-Central-Password>",
"pc_vm_list": [
{
"vm_name": "prism-central",
"container_uuid": "<Default-Container-UUID>",
"num_sockets": 14,
"data_disk_size_bytes": 2684354560000,
"memory_size_bytes": 64424509440,
"nic_list": [
{
"ip_list": [
"<Prism-Central-Private-IP-Address>"
],
"network_configuration": {
"network_uuid": "<Nutanix-Network-Admin-UUID>",
"subnet_mask": "<Nutanix-Network-Admin-mask>",
"default_gateway": "<Nutanix-Network-Admin-Gateway>"
}
}
]
}
]
}
}
Replace these items in the file :
- <Prism-Central-Password> : Password for the future Prism Central virtual machine.
- <Default-Container-UUID> : UUID of the default storage retrieved earlier.
- <Prism-Central-Private-IP-Address> : Private IP address of Prism Central.
- <Nutanix-Network-Admin-UUID> : Nutanix Cluster Administration Network UUID.
- <Nutanix-Network-Admin-mask> : Nutanix cluster administration network subnet mask.
- <Nutanix-Network-Admin-Gateway> : Nutanix cluster administration network default gateway.
Run this command to deploy your Prism Central virtual machine in X-Large mode, once you changed these settings:
- <Prism-Element-Password> : Prism Element admin account password.
- <Prism-Element-Private-IP-Address> : Private IP address of Prism Element.
curl -k -H Accept:application/json -H Content-Type:application/json -u "admin:<Prism-Element-Password>" -X POST "https://<Prism-Element-Private-IP-Address>:9440/api/nutanix/v3/prism_central" -d @PrismCentralXlarge.json
Warning
Wait thirty minutes for this virtual machine to deploy.
Enter the following command by editing these options to create a pcregister.json file:
- <Prism-Central-Password> : Prism Central Password.
- <Prism-Central-Private-IP-Address> : Private IP address of Prism Central.
echo "{\"username\":\"admin\",\"password\":\"<Prism-Central-Password>\",\"port\":9440,\"ipAddresses\":[\"<Prism-Central-Private-IP-Address>\"]}" > pcregister.json
Run this command to save Prism Element into your new Prism Central virtual machine, after changing these settings :
- <Prism-Element-Password> : Prism Element admin account password.
- <Prism-Element-Private-IP-Address> : Private IP address of Prism Element.
curl -k -H Accept:application/json -H Content-Type:application/json -u "admin:<Prism-Element-Password>" -X POST "https://<Prism-Element-Private-IP-Address>:9440/PrismGateway/services/rest/v1/multicluster/prism_central/register" -d @pcregister.json
Prism Element is now saved in the new Prism Central.
Now that Prism Element is attached to your Prism Central virtual machine, you will connect to Prism Central and extend Prism Central to three virtual machines.
Log in to Prism Central with the URL provided during deployment.
Enter your Personal Information, check the box I have read and agree to the terms and conditions
{.action} and click Accept
{.action}.
Click Continue
{.action} when prompted to activate Pulse.
Click the Prism Central configuration gear
{.action} icon.
Click Prism Central Management
{.action} to the left and click Scale Out PC
{.action}.
Click Confirm
{.action}.
Expansion of Prism Central requires three additional private IP addresses, one for the virtual IP address and two for the new virtual machines.
Scroll through the window and enter this information :
- Virtual IP : Prism Central virtual private IP address.
- VM Name : Name of the second Prism Central virtual machine.
- IP : Private IP address of the second virtual machine.
- VM Name : Name of the third Prism Central virtual machine.
- IP : Private IP address of the third virtual machine.
Click Expand
{.action}.
Warning
Please wait while the expansion is in progress, it may take around thirty minutes.
When the expansion is complete the configuration appears in Prism Central with one virtual IP address and 3 IP addresses for each virtual machine.
We will replace the IP address of the Prism Central URL with the new virtual IP address through the OVHcloud Load Balancer configuration.
Go to the Server clusters
{.action} tab, go to NutaClusterAll and click on the down arrow
{.action} icon to view the servers.
Click Add Server
{.action}.
Enter this information :
- Name (Optional) : PC VIP as Prism Central Virtual IP address.
- IPv4 address : Virtual Private IP address
- Port : 9440.
Click Add
{.action}.
Click the ...
{.action} configuration icon to the right of the prismCentral server and choose Remove
{.action} from the menu.
Click delete
{.action}.
Click Apply Configuration
{.action}.
Select location and click Apply Configuration
{.action}.
Select the site
{.action} again and click Apply Configuration
{.action}.
Go to the Tasks
{.action} tab to see the progress of the changes. The task will be completed when its status is done.
You now have Prism Central in X-Large mode with three virtual machines.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.
Join our community of users on https://community.ovh.com/en/.