跳到主要內容

Mounting NFS datastores with different IP address one different ESXi Hosts 讓不同的ESXi host使用不同的IP掛載同一個NFS Target

I have a small vSphere environment, the NAS has 4 NIC ports, 3 ESXi client direct connect to NAS without switch/hub by different IPs. vCenter thake them as different NFS datastore, because of different UUIDs.
A UUID mismatch between two datastores occurs because the UUID is based on a hash of the NFS Server and Path, as seen by running esxcfg-nas. If you have specified the NFS server information using different methods on different hosts, then the hash value, and ultimately the UUIDs will be different.
我有一個小型的vSphere環境,其中1座4埠網路NAS和3台ESXi使用不同網段IP直接連接到NAS。但是vCenter認為它們是不同的NFS datastore,因為產生的hash和UUID不同,詳見 VMware KB1005930
山不轉路轉,路不轉人轉。 ESXi底層也是Linux,所以網路查詢host對應ip時會先找 /etc/hosts 。 用ssh 登入console,用vi修改 /etc/hosts 加上類似以下這行:
172.16.1.1   nas
每一台 ESXi 都要做,用對應的IP設定在 /etc/hosts ,使用hostname去mount NFS,收工!

Use ssh login into console, edit /etc/hosts by vi. Every ESXi host use correspond IP, then mount NFS storage by hostname.

如果現有VM在上面,必須在ESXi host先取消註冊才能重新掛載。

If there are VMs on a NFS datastore, you have to unregister them from ESXi host.

留言

這個網誌中的熱門文章

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

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

在Windows Server設定L2TP over IPSec VPN

簡單地說,macOS Sierra與iOS 10發表後,大家忽然發現Apple不再支援PPTP,所以一定得設定其他的VPN型態。若不要另外裝client,用L2TP是最方便的,SSL VPN雖然好,但若沒有安裝Agent要連線到任一電腦或是非網頁服務還是挺麻煩的。

DBeaver 介面語言

DBeaver是我個人頗常用的一套跨平台Database管理工具,最近升級後發現Windows版本居然變成簡體中文,而且無法切換為英文。