星期四, 11月 09, 2017

NFS datastore change IP address

摘錄自 Changing IP address of NFS Datastore
- Shut down all VMs (via the VIC)

- Put the server into maintenance mode:
# vimsh -n -e /hostsvc/maintenance_mode_enter

- For each datastore whose address has changed, delete the old, and re-add it with new address (and exact same label):
# esxcfg-nas -d <label>
# esxcfg-nas -a --host <new_name> --share <remote_nfs_share_path> <label>

- Mount the datastores
# esxcfg-nas -r
(this will fail if any datastore hosts are still unreachable, or will complete silently if all goes well)

- Bring the server out of maintenance mode:
# vimsh -n -e /hostsvc/maintenance_mode_exit

沒有留言: