NutanixのCVMのhostnameをあとから変更するメモ
まずはhostnameを変えたいCVMにログイン
NTNX-aaaaa-CVMからNUTANIX-01-CVMに変えます。
Nutanix Controller VM
Last login: Fri Sep 11 20:05:23 2018
nutanix@NTNX-aaaaa-CVM:172.10.5.5:~$ /usr/local/nutanix/cluster/bin/change_cvm_hostname NUTANIX-01-CVM
Script must be run as root
nutanixユーザーでは実行できません。
sudoで実行
nutanix@NTNX-aaaaa-CVM:172.10.5.5:~$ sudo /usr/local/nutanix/cluster/bin/change_cvm_hostname NUTANIX-01-CVM
Changing hostname to NUTANIX-01-CVM. This will reboot the CVM. Do you want to proceed? (Y/N): y
2018-09-28 12:51:56 INFO hostname_utils.py:72 Did not find the local SVM hostname NUTANIX-01-CVM in the host look uptable /etc/hosts
2018-08-28 12:51:56 INFO hostname_utils.py:97 Found that the SVM hostname in /etc/sysconfig/network does not match NUTANIX-01-CVM
2018-08-28 12:51:56 INFO hostname_utils.py:137 Setting display name to NUTANIX-01-CVM
2018-08-28 12:51:56 INFO hostname_utils.py:156 Writing custom hostname marker
2018-08-28 12:51:56 INFO change_cvm_hostname:86 Forwarding storage traffic to another CVM
これで変更完了