發表文章

VMware iSCSI enable Jumbo Frames & multi-path

Assuming your starting off with a brand new install you most likely have only one vSwitch configured. We’re going to create a second vSwitch to use for our iSCSI nics --------------------------------------------- esxcfg-vswitch -a vSwitch1 esxcfg-vswitch -l --------------------------------------------- The last command lists all the current switches created. You should vSwitch1 has nothing configure at this point. Before we go any further we need to set the MTU of the switch to 9000 to allow us to use jumbo frames --------------------------------------------- esxcfg-vswitch -m 9000 vSwitch1 --------------------------------------------- Next up we need to create two vmKernel ports which we’ll later bind to our two dedicated nics. This is a two part process, first you create port groups (-A) for the switch and then you add an interface to each port group with a unique ip address within you iSCSI subnet. You’ll also notice we set the MTU of each interface to 9000 (-m) -----...

Show %computername% instead off “my computer” on the desktop

Locate the key [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D} Rename the value named “LocalizedString” to “LocalizedString.old”. Create a new REG_EXPAND_SZ value named “LocalizedString”, and set the value to “%USERNAME% or %COMPUTERNAME%”. Exit the registry editor, click on your desktop and press F5 (for refresh). The “My Computer” icon should now be rename to “Username on Computername”. On Windows 2008 you do not have enough permissions to change the key. Take ownership of the key and you can change it.

Cannot open Microsoft Sites

Open the register editor and navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ Add the following DWORD: MTU and set the Decimal setting to 1492. After a restart the machine can reach Microsoft websites

設定 Linux Time Zone

設定 Linux Time Zone    #ls -F /usr/share/zoneinfo/    #cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime or #ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime #vi /etc/sysconfig/clock # 修改 clock 為台灣時間 ZONE="Asia/Taipei" #date ; hwclock -r # 查看系統時間是否跟 BIOS 時相等 #hwclock -w # 將系統時間寫入到 BIOS 時間 如果嫌麻煩,可以用 tzconfig 這個指令, 校正完畢之後使用 date 指令檢查是否正確。 如果現在台灣時間是下午 4 點 59 分,則系統應顯示: Sun May 24 16:59:59 CST 2010 CST(Central Standard Time) 代表當地標準時間,正確來說,在台灣的 CST 時間就是 GMT (Greenwich Mean Time) 時間再加上 8 小時。另外 UTC(Coordinated Universal Time) 時區和 GMT 時區相同,只是 UTC 是美國算出來的時間。

Network Card Bonding On CentOS

Bonding is the same as port trunking. In the following I will use the word bonding because practically we will bond interfaces as one. Bonding allows you to aggregate multiple ports into a single group, effectively combining the bandwidth into a single connection. Bonding also allows you to create multi-gigabit pipes to transport traffic through the highest traffic areas of your network. For example, you can aggregate three megabits ports into a three-megabits trunk port. That is equivalent with having one interface with three megabytes speed. Where should I use bonding? ----------------------------------------------------------------------------------------------------------- You can use it wherever you need redundant links, fault tolerance or load balancing networks. It is the best way to have a high availability network segment. A very useful way to use bonding is to use it in connection with 802.1q VLAN support (your network equipment must have 802.1q protocol implemented). ...

Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM

Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM A rescan can be issued by typing the following command: echo "- - -" > /sys/class/scsi_host/ host# /scan fdisk -l tail -f /var/log/message Replace host# with actual value such as host0. You can find scsi_host value using the following command: # ls /sys/class/scsi_host Output: host0 Now type the following to send a rescan request: echo "- - -" > /sys/class/scsi_host/ host0 /scan fdisk -l tail -f /var/log/message Sample Outputs: Jul 18 16:29:39 localhost kernel: Vendor: VMware, Model: VMware Virtual S Rev: 1.0 Jul 18 16:29:39 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02 Jul 18 16:29:39 localhost kernel: target0:0:1: Beginning Domain Validation Jul 18 16:29:39 localhost kernel: target0:0:1: Domain Validation skipping write tests Jul 18 16:29:39 localhost kernel: target0:0:1: Ending Domain Validation Jul 18 16:29:39 localhost kernel: target0:0:1: FAST-40 WID...

升級vSphere ESX 4.0 to 4.1步驟與方式 (方法三)

方法三,使用vihostupdate A. vihostupdate工具內含在Vmware vShpere CLI和Vmware Manager Appliance(VMA) B. Vmware vShpere CLI請到Vmware官網下載 C. 開啟VI Client,選擇FilesàDeploy OWF Template->Deploy from file ->瀏覽選擇預先下載好的vMA-4.1.0.0-268837.ovf D. 將VMA部署到ESX上。 E. 到Vmware官網下載 “pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip” “upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip” 以及Drivers&ToolsàAutomation Tools and SDKs中的Vmware vShpere CLI F. 將Vmware vShpere CLI安裝在vCenter上 G. 升級前請將運作在該ESX上的所有虛擬機器關閉,並將ESX切換到維護模式。 H. 於Vcenter中開啟Dos視窗,切換到program files\Vmware vShpere CLI , 並執行vihostupdate.pl I.   vihostupdate.pl --server x.x.x.x --install --bundle C:\~~\pre-upgradexxx.zip J. vihostupdate.pl --server x.x.x.x --install --bundle C:\~~\upgradexxx.zip K. 升級完畢後,執行     vihostupdate.pl --server x.x.x.x –query L. 重新啟動ESX host     vihostupdate.pl --server x.x.x.x --o reboot