標籤:windows
目標:
- Windows server 2008 r2 系統standard 版本不支援資料重刪除,而wsus所在盤想啟用dedup ,雖然網上說大概只有17%的去重率,但是如果佔用空間在240GB,17%的去重率還是節省不少空間的。
- Inplace 升級wsus 3.0 sp2 到wsus 6是不支援的,官方的步驟是安裝另外一台wsus伺服器,然後遷移資料庫、組、WSUS下載的檔案,更改wsus的Identifier,再更改用戶端WSUS Server指向。
- 因為之前的WSUS還有其他服務,比如Volume active 服務。SCCM 的update點等等。還是傾向於在原有系統上升級,保持主機名稱什麼的不變。
- 之前的系統是window server 2008 r2 ent ,需要inplace 升級到windows server 2012 r2 std(但官方是不支援這樣升級的)
需要解決的問題:
- Windows server 2008 ent 的版本更改為 std版本,然後就地升級到windows server 2012 r2 std
- 需要先卸載wsus 3.0 sp2,等待第一步完成後,啟用安裝windows server 2012 r2 上的wsus,並且匯入之前的更新檔案、資料庫
- Wsus 資料庫放在專門的SQL Server上,不用備份和遷移。
步驟:
- 快照整個虛擬機器
- 卸載wsus 3.0 sp2 ,保留資料庫和檔案。會刪除wsus 的相關共用,WSUS相關的組等。
- 更改註冊表(黑魔法,降級Ent 到Std 版本,實際並沒有降級,如果看winver的話,還是顯示為Enterprise,但是我們會騙過windows 升級程式)
Set-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" -Name EditionID -Value "ServerStandard"
Set-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" -Name ProductName -Value "Windows Server 2008 R2 Standard"
- 使用windows server 2012 r2 安裝盤,就地升級OS(選擇standard gui 版本,並選擇升級現有系統,會提示一些不相容的警告資訊,大部分都可以忽略)
650) this.width=650;" title="clip_image001" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image001" src="http://s3.51cto.com/wyfs02/M00/87/DC/wKioL1fjkaujDyP5AAB5dv5vqVA633.png" "1035" height="707" />
升級後變成standard 版本
650) this.width=650;" title="clip_image002" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image002" src="http://s3.51cto.com/wyfs02/M01/87/E0/wKiom1fjka2wN-ysAABSTB401D8390.png" "539" height="285" />
安裝wsus 角色,注意一點是Content 放在原來位置,資料庫設定指向遠程SQL server
650) this.width=650;" title="clip_image003" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image003" src="http://s3.51cto.com/wyfs02/M01/87/DC/wKioL1fjka7AqYn9AAHQsZrZZrc101.png" "782" height="524" />
650) this.width=650;" title="clip_image004" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image004" src="http://s3.51cto.com/wyfs02/M02/87/E0/wKiom1fjkbGRHHWPAAM5ORibtIA635.png" "773" height="429" />
650) this.width=650;" title="clip_image005" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image005" src="http://s3.51cto.com/wyfs02/M00/87/E0/wKiom1fjkbKSLXaCAAG19MGHMqA379.png" "766" height="331" />
在IIS中刪除預設網站,然後更改wsus 管理的ID為1(如果沒有該步驟,會報告下面錯誤)
650) this.width=650;" title="clip_image006" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image006" src="http://s3.51cto.com/wyfs02/M02/87/DC/wKioL1fjkbPALTkaAABM3tQ9huo264.png" "913" height="243" />
在網站進階設定部分
650) this.width=650;" title="clip_image007" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image007" src="http://s3.51cto.com/wyfs02/M01/87/DC/wKioL1fjkbPiNVVYAAA-BOXc8Vk921.png" "455" height="555" />
更改WSUS預設連接埠監聽為80 以及443
650) this.width=650;" title="clip_image008" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="clip_image008" src="http://s3.51cto.com/wyfs02/M01/87/E0/wKiom1fjkbTgIhW2AABKbxpEMsw154.png" "662" height="506" />
命令列中執行postinstall 任務
650) this.width=650;" title="clip_image009" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="clip_image009" src="http://s3.51cto.com/wyfs02/M00/87/DC/wKioL1fjkbTwyT09AAAd34reXNs179.png" "677" height="161" />
就地升級WSUS 3.0 SP2 ON windows server 2008 R2 ENT 到windows server 2012 R2 S