跳到主要內容

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

留言

這個網誌中的熱門文章

自然人憑證讀卡機驅動程式

鳥毅用的是第一代的自然人憑證讀卡機,EZ100PU(後來有同事買EZmini可以讀SIM卡似乎更好),每年報稅時用一次。 本來只是要申請些政府業務,一時之間找不到光碟,沒想到在 驅動程式下載 居然看到Linux和Mac的驅動程式,剩下的就是政府單位的網頁和程式應該改版了吧!!!