nutanix-cvm-ahv-maintenance-mode-1.jpg
nutanix-cvm-ahv-maintenance-mode-1.jpg

Description:
Main­te­nance mode is cru­cial when per­form­ing hard­ware main­te­nance, soft­ware and firmware up­grades, and trou­bleshoot­ing.

To en­sure that a CVM will not be part of any ac­tive stor­age or meta­data con­nec­tion, en­able main­te­nance mode in the CVM.

It is rec­om­mended to en­able main­te­nance mode be­fore a CVM is shut­down.


Nutanix CVM IP Allocation:(Sample)
Host NameCVM NameIP Address
HCIVMS01cvm0110.110.5.148
HCIVMS02cvm0210.110.5.149
HCIVMS03cvm0310.110.5.150
HCIVMS04cvm0410.110.5.151
HCIVMS05cvm0510.110.5.179
HCIVMS06cvm0610.110.5.180
HCIVMS07cvm0710.110.5.181
HCIVMS08cvm0810.110.5.182

Operating:
Con­nect to CVM via SSH (*ex­clude the CVM from en­ter­ing main­te­nance mode) .

Check the Host ID:

svmips -d
10.110.5.148 -> 6
10.110.5.149 -> 7
10.110.5.150 -> 8
10.110.5.151 -> 9
10.110.5.179 -> 10
10.110.5.180 -> 11
10.110.5.181 -> 12
10.110.5.182 -> 13

e.g. Place the HCIVM­S05's CVM into main­te­nance mode sta­tus:

ncli host edit id=10 enable-maintenance-mode=true
Re­fer to "Nu­tanix CVM IP Al­lo­ca­tion:(Sam­ple)", and found that id is 10.

Check Nu­tanix CVM main­te­nance mode sta­tus to ex­e­cute the fol­low­ing com­mand:

ncli host ls
Id : 00059358-35f2-ead3-4091-1234567890ab::10
Uuid : 9ca26d70-ba56-4166-931e-1234567890ab
Name : HCIVM­S05
IPMI Ad­dress : 10.110.6.69
Con­troller VM Ad­dress : 10.110.5.179
Con­troller VM NAT Ad­dress :
Con­troller VM NAT PORT :
Hy­per­vi­sor Ad­dress : 10.110.5.144
Hy­per­vi­sor Ver­sion : VMware ESXi 6.7.0 build-17167734
Host Sta­tus : NOR­MAL
Oplog Disk Size : 352 GiB (377,957,122,048 bytes) (1.7%)
Un­der Main­te­nance Mode : ture (AOS up­grade)
Meta­data store sta­tus : Meta­data store en­abled on the node
Node Po­si­tion : Node phys­i­cal po­si­tion can't be dis­played for this model. Please re­fer to Prism UI for this in­for­ma­tion.
Node Se­r­ial (UUID) : JXXXXXXX
Block Se­r­ial (Model) : JXXXXXXX (HX3321
If the pa­ra­me­ter Under Maintenance Mode is set to True for the node where the ser­vices are up.

PowerOff the spec­i­fied CVM:

ssh 10.110.5.179 'cvm_shutdown -P now'

Turn on CVM af­ter all soft­ware, hard­ware, and firmware ac­tiv­i­ties are com­plete.
From one of the other CVMs run the fol­low­ing com­mand to re­move Nu­tanix CVMs from main­te­nance mode:

ncli host edit id=10 enable-maintenance-mode=false

Ver­ify that the CVM is in main­te­nance mode sta­tus:

ncli host ls
Id : 00059358-35f2-ead3-4091-1234567890ab::10
Uuid : 9ca26d70-ba56-4166-931e-1234567890ab
Name : HCIVM­S05
IPMI Ad­dress : 10.110.6.69
Con­troller VM Ad­dress : 10.110.5.179
Con­troller VM NAT Ad­dress :
Con­troller VM NAT PORT :
Hy­per­vi­sor Ad­dress : 10.110.5.144
Hy­per­vi­sor Ver­sion : VMware ESXi 6.7.0 build-17167734
Host Sta­tus : NOR­MAL
Oplog Disk Size : 352 GiB (377,957,122,048 bytes) (1.7%)
Un­der Main­te­nance Mode : false (AOS up­grade)
Meta­data store sta­tus : Meta­data store en­abled on the node
Node Po­si­tion : Node phys­i­cal po­si­tion can't be dis­played for this model. Please re­fer to Prism UI for this in­for­ma­tion.
Node Se­r­ial (UUID) : JXXXXXXX
Block Se­r­ial (Model) : JXXXXXXX (HX3321
Ver­ify if the pa­ra­me­ter Under Maintenance Mode is set to False for the node where the ser­vices are down.

Reference:

How to enable or disable the Nutanix CVM maintenance mode for ThinkAgile HX - Lenovo Support ZA