1 Create Nutanix Cluster
After the deploy of 3 Nested Nutanix CE VM’s, we need to create a Nutanix cluster.
Connect to one of Nutanix CVM Console
Username : nutanix
Password : nutanix/4u
a) Create the cluster:
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">cluster -s <IPCVM1>,<IPCVM2>,<IPCVM3> create </span> |
The process discovers 3 nodes:
The process configures Zeus mapping on 3 nodes:
Starts all cluster services on the 3 nodes:
The Cluster start successfully:
With the message:
CVM is trying to contact the host KVM and being unsuccessful Restart Genesis services on 3 nodes:
Check the errors on genesis log : tail -f genesis.out
Log on each KVM host
Run : sshd-keygen on each KVM host
Log on each CVM : Run : cluster –f destroy Try to recreate the cluster ! |
b) Add DNS servers to the cluster :
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">ncli cluster add-to-name-servers servers="primary dns server,secondary dns server" </span> |
Check the DNS servers:
1 |
<span style="font-family: Courier New; font-size: 10pt;">ncli cluster get-name-servers</span> |
c) Define the name of the cluster.
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">ncli cluster edit-params new-name=CLUSTER-NTX </span> |
Or
Click on Cluster Details
Enter the cluster name and click Save
d) Configure the NTP servers :
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">ncli cluster add-to-ntp-servers servers=</span><span style="font-family: Times New Roman; font-size: 12pt;">"0.fr.pool.ntp.org,1.fr.pool.ntp.org</span><span style="font-family: Times New Roman; font-size: 12pt;">" </span> |
Or
Click on NTP Servers
Enter NTP Servers and click Add
e) Configure an external IP address for the cluster :
Set the cluster_ip_address with a virtual IP address for the cluster
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">ncli cluster set-external-ip-address external-ip-address=</span><span style="font-family: Times New Roman; font-size: 12pt;">"10.1.7.200</span><span style="font-family: Times New Roman; font-size: 12pt;">" </span> |
Or
Click on Cluster Details
Enter the Cluster Virtual IP Address and click Save
f) Log into the CVM IP address of any of the nodes on HTTPS port 9440 or on Virtual cluster IP address.
g) Update PRISM admin user password.
h) Enter your .NEXT account :
2 Validate Nutanix Cluster status
After creating a cluster ensure everything is working successfully.
Log onto one of CVM:
Run a diagnostics test with the command:
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">diagnostics/diagnostics.py --display_latency_stats --run_iperf run; diagnostics/diagnostics.py cleanup </span> |
Test latency stats and IO stats for random/sequential reads/writes and network performance
Check the cluster status (if all services are UP) :
Run command:
1 2 |
<span style="font-family: Times New Roman; font-size: 12pt;">cluster status </span> |
3 Create Storage Pool and container
Connect to PRISM web interface :
Click on Storage.
Click on Storage Pool.
Enter Storage Pool Name and Save.
Confirme de
Click on Container.
Enter Container Name, select the Storage Pool and Save.
In the Advanced settings you can activate some features like, Erasure Coding, deduplication, compression, nfs whitelists or change the Replication Factor :
:
Enjoy 😉


Laisser un commentaire