跳到主要內容

發表文章

目前顯示的是有「VMWare」標籤的文章

NFS datastore的優缺點

使用NFS datastore的優點: 可以用任何client去讀取資料,像我偶爾需要去修改 vmx 檔時,可以不用透過console用vi改,用Notepad++/Atom/Pluma去修改實在是一大樂事。 備份容易,可以用NAS/NFS provider上的備份機制,目前的NAS都有快照機制,也可以將快照備份到其他台NAS。我買一套 Veeam Backup and Replication 的$,就足夠買一座S牌或Q牌NAS做為備份用。 由於是File based,所以支援 重複資料刪除 ( Deduplication )。使用iSCSI時 Deduplication 的效率其實很差,雖然很多家都說是block level deduplication,其實效果有限。 不過若不是買NetApp這種等級的神器,還是不要輕易開啟,我曾經在Nexenta Store上開啟,效果非常不滿意,對效能影響甚鉅。 需要還原備份時很容易,可以快速掛載備份的vmdk取代原有的vmdk達成快速復原。  使用NFS datastore的缺點:  只能用單一網路,沒有MPIO之類的機制。多埠合併都需要switch支援,不在討論之列。 使用NFS target的File System,不是 VMFS ,限制比較多。 效能不如iSCSI,原因就是以上兩點綜合。 結論: 需要極高速的datastore時,首選仍然是iSCSI,但若考慮到備份還原時,NFS 對於窮人 也可以納入考量。

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

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 。

是否需要升級到VMware vSphere ESXi 5.5?

朋友傳來一篇 Don’t upgrade to ESXi 5.5!! ,在此替朋友解釋清楚。

ESXi VM內使用磁帶櫃 Tape Library 及 SCSI 卡 Path Status Dead 的解法

之前說過,我的目標是100%虛擬化,只留下VM Host OS;所以我今天要做Tape的第二線備份時,仍然在VM內執行BackupExec。 所以要把SCSI device加到VM之內,但是很不幸的,在Edit Settings時居然顯示沒有SCSI device可加。

Ubuntu Server安裝vmware tools

Ubuntu Server安裝vmware tools不如在CentOS或Redhat Enterprise方便,還需要自己編 module。 Guest -> Install/Upgrade VMware Tools $sudo apt-get install build-essential $sudo apt-get install linux-headers-$(uname -r) $sudo mount -o ro /dev/cdrom /mnt $cd /tmp $umount /mnt/VMwareTools*.tar.gz $cd vmware-tools-distrib $sudo ./vmware-install.pl 接下來一直按Enter就好 如果更新kernel,就必須再裝新的header,重新編modules $sudo apt-get install linux-headers-$(uname -r) $sudo vmware-config-tools.pl

三大伺服器虛擬化技術比較

這一年來我試用了Hyper-V、XenServer以及VMware vSphere ESXi,現在將測試結果列表如下: ESXi XenServer Hyper-V 執行速度 快 最快 普通 iSCSI 存取速度 快 快 普通 細部設定 可 否 可 作業系統相容性 最高 普通 普通 Windows相容性 最高 高 高 Linux相容性 最高 高 少 FreeBSD相容性 有 差 有(2012年8月新增) HA價格 高 低 普通 Cluster價格 $ Free Free Live Migration價格 $ Free Free SmbFS 儲存 無 有 有 * Hyper-V可以在未安裝VM Tools的狀況下Live Migrate,非常強大! ** VMware可以將硬體不相同的伺服器加入HA cluster,Hyper-V和XenServer都需要相同的CPU、RAM甚至於完全相同的網路。 Hyper-V的IO實在太慢了,我個人覺得是敗在NTFS的效能差,我現在查不到 WinFS 的時程,所以就暫時不考慮在公司使用。另一個在下覺得比較重大的缺點是在未安裝vm tools的情況下不能在console使用mouse,許多boot cd都變得很難用或不能用。 以企業使用,若不介意不容易修改細部設定,又缺乏第三方備份軟體支援的情況,XenServer是不錯的選擇。個人使用測試的話,Hyper-V Server功能完整,又有廣泛支援,值得考慮。在銀彈充足的情況下,就別想太多,衝VMware ESXi吧! P.S. 最後我選擇的是 VMware vSphere Essentials Plus Kit ,比起CPU定價,算是小公司可以負擔,而且也足以撐起全公司的Server。 Update :參加完 Tech Days 2012後,我要說當初太不瞭解Server 2012。若要真實測試Hyper-V 3.0,請準備『符合Server 2012的硬體』,再啟用SMB 3.0當做共用儲存空間,雖然說Server 2012不需要共用儲存空間也行,但有還是比較好。 至於我的比較,大家就當做我在放屁就好,非客觀第三方測試! 對此有興趣的朋友請參考 Microsoft Windows Server 2012 Hyper-V compare...

How to install VMware ESXi 5 tools for FreeBSD 9

There are some problems while install FreeBSD 9 vmware tools on VMware ESXi 5 update 1, after searching a few hours, I got the solution.  You will make the new binary from source, thus no more COMPACT 6 in kernel configuration. 在VMware ESXi 5 update 1安裝vmware tools有不少問題,經過幾個小時的奮戰,終於找到答案。 首先要強調,不需要在Kernel設COMPACT 6,但是需要裝compact6x的package。以下用藍色標明需要key的指令: Install compact6x package # cd /usr/ports/misc/compat6x # make install clean Mount the cdrom image from vCenter/vSphere Client to guest vm. # mount -t cd9660 -o ro /dev/cd0 /mnt 若你已經試著裝過,cd0 可能會變成acd0,就改成 # mount  -t cd9660 -o ro /dev/acd0 /mnt Extract the source code. # cd /root && tar xzf /mnt/vmware-freebsd-tools.tar.gz  # cd vmware-tools-distriblib/modules/source # tar xf vmblock.tar && tar xf vmmemctl.tar && tar xf vmxnet.tar && tar xf vmxnet3.tar Compile the vmblock module. # cd vmblock-only # make && make install & cd .. Compile the vmmemctl module...

Why I moved to VMWare 為何我換成VMWare

I installed XenServer last year (2011/07), because it is fast and free. Before that, I had tried Hyper-V 2.0 Server,it's slower than XenServer. Last month, I wanted to add a FreeBSD vm and got bad experience. Another problem, it is very hard to modify vm setting on XenServer. My boss asked me to do server 100% virtualized, I had to search better solution. After googling a few hours, I decided to move to VMWare vSphere. Why? Because I need FreeBSD vm tools installed to get more control, besides I found VMWare Essentials Plus Kits ,it's not as expensive as I thought. Then I installed a test vm server, it's amazing! ESXi 5 Server gave me a whole new experience. It's fast and powerful, with so many APIs and 3rd party tools. Now, I got very good vm hosts, a stable and fast environment.  Thanks VMWare, I can work easier. 去年評估虛擬化Server後採用XenServer,使用一年也沒有什麼大事,但是支援的作業系統太少始終是個遺憾。會採用XenServer而不用Hyper-V 2.0除了Hyper-V的Linux支援度差外,另一個重要原因是效能不夠好。 主管和我說要讓伺服器100%虛擬化,包括我目前使用...