vcenter 升級
一、小版本升級vc6.0u1 升級vc6.0u
下載升級補丁鏡像,例如:VMware-vCenter-Server-Appliance-6.0.0.xxxx-xxxxxxx-patch-FP.iso.將鏡像掛載到vc驅動上,登錄https://vc_ip:5480——>更新——>檢查cd/cdrom,如果更新包有效,安裝更新即可。
二、大版本升級vc6.0u1升級到vc6.7u3
此過程可以有兩種完成的方法。(使用vds交換機,未配置vsan,未使用nsx網絡)
方法(一)
1.新建創建vc6.7
2.導出原vc6.0的分布式交換機配置,在新vc6.7網絡導入分布式交換機配置。
3.新建集群,並添加主機
4.為分布式交換機添加主機,並按原來的配置分配上行適配器,例如:vds1上行適配器分配vmnic0和vmnic1.
此時,新vc6.7接管原來的vc的esxi主機,業務基本沒有丟包,不影響業務。
注意事項,新接管的esxi 上運行的vm可能在“虛擬機硬件”中的網絡適配器1,2...無法顯示出對應網絡端口組信息。可能顯示成“不可使用的數據”。解決方法是,將主機“斷開連接”,待徹底斷開后重新連接,即可顯示正常的信息配置。此過程不影響esxi 上的業務vm,不會產生斷網。
方法(二)
1.下載最新的vc6.7u3版本,在任意網絡可達的機器上運行\vdsa-ui-installer\win32\installer,彈出vc安裝向導,
2.向導彈出后,此時選擇升級而非安裝。根據向導填寫對應的配置(此過程會新安裝一個vc6.7),並且配置一個臨時ip,同原vc 保持同網段,升級成功后,原vc6.0會關機,並將原vc的ip地址替換掉臨時ip地址形成的升級的后vc
3.根據向導第一階段部署新機器后,進入第二階段配置,在此階段vc會做升級前檢查,如果出現報錯將無法進行升級。反之,進入升級階段,即將原vc6.0 的配置,可選保留原任務即性能數據,導入到新升級后的機器上。配置及數據導入完成后,原vc 自動關閉,地址切換成原vc ip。升級完成
注意事項:
升級檢查報錯1
修復的方法是1.使用 SSH 及 root 賬號連接到 原vCenter Appliance。2.瀏覽到 /etc/vmware-eam/。3.備份eam.properties 文件cp eam.properties eam.properties.old。4.運行命令:cat /etc/vmware/install-defaults/sca.hostid。5.記錄輸出。輸出應該是一個字符串,如下所示:0a12dfe2-b3b7-4eb6-9737-1ec5a8e770ec。6.編輯eam.properties 文件。7.將下面內容貼入文件中:
######################################################################### # Copyright 2013-2014 VMware, Inc. All rights reserved. VMware Confidential ######################################################################### vc.proxy.host=localhost vc.proxy.port=80 # Hostname or IP of the EAM server # Fill only if EAM is not running on the same host as VC eam.host= # EAM service port used to configure the HTTP connector of the application server. eam.int.http.port=15005 # Port and scheme configuration which is used by the ESX 6.x hosts to reach EAM Vib # file server. eam.ext.port=443 eam.ext.scheme=https # Port and scheme configuration which is used by the ESX 5.x hosts to reach EAM Vib # file server. eam.ext.port.deprecated=80 eam.ext.scheme.deprecated=http eam.support_linked_clone=true eam.clear_db_on_startup=false eam.debug_ref_count=false eam.recent_event_size=20 # Enable/disable VUM integration vum.integration=true # Value is specified in minutes (set to 24h = 1440m) eam.scan_for_unknown_agent_vms=1440 # The timeout to wait for hostd to restart on a host (set to 5m=300s) eam.hostd_restart_timeout=300 # The following entries will be added verbatim to the advanced options # of hosts on which EAM is enabled. All are optional. Net.DVFilterBindIpAddress=169.254.0.1 Net.TrafficFilterIpAddress= #The IP for the VSWIF NIC on the dvFilter switch (for ESX classic). Net.DVFilterVswifIpAddress=169.254.0.2 # Resource bundle configuration eam.resourcebundle.filename=eam-resourcebundle.jar # VLSI embedded tcServer configuration # tcserver.tmp.dir=/var/tmp/vmware/eam/tomcat # EAM SSL configuration # eam.keystore.type=VKS eam.key.alias=vpxd-extension eam.keystore.storename=vpxd-extension # CM configuration # cm.url=http://localhost:18090/cm/sdk/?hostid=0a12dfe2-b3b7-4eb6-9737-1ec5a8e770ec <====== 使用第 5 步中記錄的輸出 cm.wait.attempts=360 cm.wait.intervalSeconds=5 # SSO configuration # sso.wait.attempts=360 sso.wait.intervalSeconds=5 # VC SSL configuration # vc.truststore.type=VKS vc.truststore.storename=TRUSTED_ROOTS vc.tunnelSdkUri.template=https://##{VC_HOST_NAME}##:8089/sdk/vimService vc.tunnelSdkUri=<vCenter_FQDN>:8089/sdk/vimService <====== 將此更改為您的 vCenter FQDN/IP drs.demandCapacityRatio=100
8.保存退出后,給文件更改權限644
chmod 0644 eam.properties
9.啟動EAM服務
service-control --start vmware-eam
再次執行升級檢查將不會出現以上問題
參考:https://kb.vmware.com/s/article/50113982?lang=zh_CN
升級檢查報錯2
升級檢查出現分布式交換機或分布式端口組命名重復的的問題。經過檢查,沒有相同命名的vds 交換機,也沒有相同命名的分布式端口組。后經測試。問題原因是,存在vds分布式交換機和分布式端口組的命名相同的問題,將分布式交換機重新命名后,該問題解決。因此判斷vds 和端口組也不能出現相同的命名。