2014年3月23日 星期日

Windows Server DNS 轉移

目前客戶的伺服器裝了DNS、DHCP、防毒、File Server,但是發現Serevr本身系統有些問題,所以只好做轉移,但是這次已經把DNS另外獨立,因為其他三種服務是可以停機久一些也不會有人反應,但是DNS一停機立刻就有人員反應不能上網,而且是嚴重影響到他的工作,平常也不曾看到有多重要,真是給他三隻鳥飛過去。

首先轉移DNS Server 首先執行。

(1) 先到原先的伺服器裡將下面的三件事做好,DNS服務記得先停一下。
執行 regedit,進行匯出註冊檔。
(A) 匯出
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS

(B) 匯出
 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server

(C) 備份 C:\Windows\System32\DNS 目錄中的所有檔案

再將上述三個檔案,Copy到新的伺服器上。

(2) 到新的伺服器先要將 DNS 服務停止。
(A) 匯入註冊檔
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS

(B) 匯入註冊檔
 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server

(C) 將備份的 C:\Windows\System32\DNS 目錄的檔案,Copy到相同的位置。

重新啟動 DNS服務,一切就搞定。

2014年3月20日 星期四

Windows Server IE 安全性關閉

參考 a123133 sir
http://www.bloghome.com.tw/Users/user1/43/archives/2007/1781.html

取消IE增強式安全性設定工具:(Win 2003 Server最常碰到的問題點)
你的主機是Win 2003 Server(安全性最嚴謹的作業系統),關閉IE的增強式安全性設定(這個設定我只在Windows 2003 Server上看過,其他版本的Windows作業系統則應該不會預設就有這個工具),其方法就像一般移除某一項Windows元件一樣。見下圖


20090824新增 win 2008 
可參考 安裝Windows Server 2008的痛苦經驗
節錄設定方式
系統管理工具→伺服器管理員 主畫面中間→設定IE ESC→Administrator關閉

Windows Server DHCP 備份指令

Windows Server上的DHCP資料備份使用下列指令就可以將資料備份出來
備份:
C:\netsh dhcp server export C:\DHCP.txt all

還原:
C:\netsh dhcp server import C:\DHCP.txt all
===========================================
也可針對領域做備份還原
備份:
C:\netsh dhcp server exportC:\DHCP.txt 192.168.0.0 192.168.10.0

還原:
C:\netsh dhcp server importC:\DHCP.txt 192.168.0.0 192.168.10.0

Windows 2003 DHCP 轉移Windows 2008 R2

由於客戶目前的Windows 2003 Server 一直有奇怪的問題,所以就決定進行轉移,之前到Google找了許多文章試了也不行,不然就會一直出現錯誤,後來發現其實有更簡單方法轉移更快也方便。

Windows 2003 Server【IP為192.168.100.1】
Windows 2008 Server【IP為192.168.100.2】

一、先登入Windows 2003 Server 然後到DOS視窗下指令。

C:\netsh dhcp server 192.168.100.1 dump > c:\dhcptable.txt
【192.168.100.1 是Windows 2003 Server 的 IP】

二、再將 Windows 2008 R2  DHCP Server 安裝完成。

三、再將 Windows 2003 Server 匯出的 DHCP 檔案(dhcptable.txt),Copy 到 Windows 2008 Serve。

四、使用 NotePad 筆記本編輯取代功能將文字裡的【192.168.100.1】取代為【192.168.100.2】

五、然後到DOS視窗下指令。

C:\netsh -F C:\dhcptable.txt

一切都搞定了。

2014年3月18日 星期二

EXSI 支援64位元系統更改BIOS

最近將老舊的 HP DL380 G5升級為ESXI 5.5的版本,結果發現不支援,要調整BIOS的設定

Now, to fix the issue: 
Reboot your server and go into the BIOS by pressing F9. 
Go to "Advanced options > Processor Options" and enable these two sub-options: 
"No-Excecute Memory Protection" and
"Intel(R) Virtualization Technology"
Save with F10. 
=============================================================
Acer Server BIOS更改方式




2014年3月16日 星期日

FreeBSD Fsck修復

首先先開機進入 Single Mode ,開機選單按 4 即可進入 Single Mode
接下來進去後先按一下 Enter ,以我的系統為例,輸入下列指令
# mount -a
# df
/dev/da0s1a   10154158      70668   9271158     1%    /
devfs                1          1         0   100%    /dev
/dev/da1s1d 2055518950 1106617646 784459788    59%    /home
/dev/da0s1e   10154158    1037240   8304586    11%    /tmp
/dev/da0s1f   80729226   30448924  43821964    41%    /usr
/dev/da0s1d   81245672     800846  73945174     1%    /var
先確認有哪些目錄後,就一個一個 umont 做 fsck 修復的動作,修復完再 mount 回來
# umount /home
# fsck -y /home
# mount /home
但是一開始連 / 都 mount 不起來的話,記得要先 fsck 根目錄才行唷!

重建 Vswitch0 介面

多人可能會誤砍 VSwif0 介面,導致不能用 VI Client 登入管理 ESX Server。
所以學起來也不賴,可以救急。
以下方式重建 Service Console 需到 ESX Server Console 畫面前面開始以下步驟:
1.建立新 vswitch
esxcfg-vswitch -a vSwitch0
2.建立新的 portgroup
esxcfg-vswitch -A "Service Console" vSwitch0
3.分配網卡
esxcfg-vswitch –L vmnic0 vSwitch0
4.分配 vswif 介面並設定 IP
esxcfg-vswif –a vswif0 -p "Service Console" -i 192.168.1.1 –n 255.255.255.0
完成上述指令後就可以使用 VI Client 登入管理 ESX Server。

2014年3月12日 星期三

EXSI 5.5 HP伺服器安裝錯誤訊息處理

安裝 EXSI 5.5 於HP DL380G5時發生的錯誤訊息處理

VMware ESXi requires the Execute Disable/No Execute CPU feature to be enabled.

To solve the problem, reboot the HP Blade server and hit F9 to enter the CMOS setup. In the main CMOS setup screen, choose 【Advanced Options】 After that, scroll down to 【Processor Options】…. In the next screen, you will find one line that said 【No-Execute Memory Protection】. Choose that and select 【Enable】 afterward.

Once that is done, save the changes and exit the CMOS setup. The VMware ESXi installer should work fine now.

2014年3月7日 星期五

Windows KMS 非正版通知啟用期內執行問題處理

最近公司內部的電腦突然一直秀出「出現「windows目前在非正版通知期內執行,請執行'slui.exe'到線上驗證windows」之錯誤訊息的解決方式。」

結果是因為大家的電腦一直在更新,所以把KMS主機IP弄不見了,所以只好全部重來了。

cscript C:\windows\system32\slmgr.vbs -rearm  

cscript C:\windows\system32\slmgr.vbs -skms 8.8.8.8

cscript C:\windows\system32\slmgr.vbs -ato