VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

公司之前部署的是外部PSC架構vCenter。不久前爲使用全功能HTML5 的vSphere Client,將vCenter 和外部PSC升級到了6.7U1,原本想的是升級時直接轉換爲嵌入式PSC架構,查了下資料不能一步登天。

調整流程如下:
VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

前提條件:
1、下載和掛載 vCenter Server Appliance 6.7 Update 1 ISO。
2、創建 vCenter Server 和外部 Platform Services Controller 實例的快照或備份,以便在重新配置失敗時可以恢復到快照。
3、在開始該過程之前,禁用並移除 vCenter HA。

使用工具:
此融合是使用 vcsa-util 命令行實用程序執行的。可以在VCSA ISO中 vcsa-converge-cli 目錄中找到 vcsa-util 實用程序:

Linux 64 位:lin64/vcsa-util

MasOS X:mac/vcsa-util

Windows:win32/vcsa-util.exe

過程:
1、編輯 converge.json 和 decommission_psc.json 模板以便包含有關管理 ESXi 主機或 vCenter Server 以及 vCenter Server Appliance 的信息。關於這2個文件詳細信息請參考:
https://docs.vmware.com/cn/VMware-vSphere/6.7/com.vmware.vcenter.install.doc/GUID-A1FED951-0286-4460-B578-F139E49CD72D.html#GUID-A1FED951-0286-4460-B578-F139E49CD72D

2、在目標 vCenter Server 上運行 vcsa-util converge converge.json 命令,以開始安裝和配置新嵌入式 Platform Services Controller 的融合流程。有關 vsca-util converge 命令的可用參數列表,請參見 融合命令語法(https://docs.vmware.com/cn/VMware-vSphere/6.7/com.vmware.vcenter.install.doc/GUID-7E703CB3-C082-4ACE-ABFF-9A2CDA5DEC62.html#GUID-7E703CB3-C082-4ACE-ABFF-9A2CDA5DEC62)。
2.1、輸入 yes 或 no(如果備份了 Platform Services Controller 和 vCenter Server)。
2.2、命令提供證書的指紋,並要求您接受。輸入 1 以接受並繼續。

該實用程序成功完成後,您可以登錄到 vCenter Server Appliance 設備管理界面 (https://appliance-IP-address-or-FQDN:5480),並且可以看到現在是具有嵌入式 Platform Services Controller 部署的 vCenter Server。

VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

3、(可選) 將部署到使用外部 Platform Services Controller 的環境的任何產品重新配置爲使用新部署的嵌入式 Platform Services Controller。

取消與原PSC關聯:

4、運行 vcsa-util decommission decomission.json 命令以取消配置原始 Platform Services Controller。此操作會將外部 Platform Services Controller 從 SSO 域中移除。
vcsa-util decommission 實用程序會使用 cmsso-util 實用程序取消配置 Platform Services Controller。如果使用 cmsso-util 取消配置 Platform Services Controller,必須先手動關閉 Platform Services Controller,然後再使用 cmsso-util 取消註冊。請參見 VMware 知識庫文章 https://kb.vmware.com/s/article/2106736,瞭解有關直接使用 cmsso-util 命令的說明。

注:
如果在取消配置之前關閉 Platform Services Controller 或沒有使用 cmsso-util 手動取消配置,則可能會出現安全和複製問題。

本人在使用工具vcsa-util 取消與原PSC關聯一直失敗,無法成功:後使用cmsso-util完成,步驟如下:

1、shutdown 原PSC
2、使用root登陸到新PSC
3、使用命令查看域內的所有PSC
VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

4、執行以下命令:
cmsso-util unregister --node-pnid oldpsc.example.com --username [email protected] --passwd P@ssw0rd
VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

4、第3步完成後再次查看域內所有PSC

VMware vCenter Server“具有外部PSC”架構調整爲“具有嵌入式PSC”架構

5、刪除老PSC

參考資料:
https://docs.vmware.com/cn/VMware-vSphere/6.7/com.vmware.vcenter.install.doc/GUID-CE9B6683-D7B0-4717-AD7E-5E89CD069500.html

http://emadyounis.com/vcenter-server-6-7-update-1-convergence-tool/

https://virtualtassie.com/2018/vcenter-server-6-7u1-converge-tool/

使用命令cmsso-util 刪除PSC參考:
https://kb.vmware.com/s/article/2106736

查看域內PSC關係命令參考:
https://kb.vmware.com/s/article/2127057?lang=zh_CN

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章