适用于 Linux 的此版本的vRealize Operations Manager不包括完全卸载选项。要移除本产品,请运行卸载命令并手动移除 vRealize Operations Manager安装的剩余项目。

开始之前

vCenter Server中以 root 用户身份登录到控制台,或直接访问控制台。在 vCenter Server中,使用 Alt+F1 访问登录提示。

出于安全考虑,默认情况下会禁用 vRealize Operations Manager远程终端会话。

过程

  1. 通过运行以下命令卸载产品:
    /usr/bin/sh /usr/lib/vmware-vcopssuite-installsupport/_vRealize\ Operations\ Manager\ Enterprise_installation/Uninstall\ vRealize\ Operations\ Manager\ Enterprise -i silent

    或者,如果要移除测试版本,请运行以下命令:

    /usr/bin/sh /usr/lib/vmware-vcopssuite-installsupport/_vCenter\ Operations\ Manager\ Enterprise_installation/Uninstall\ vCenter\ Operations\ Manager\ Enterprise -i silent
  2. 通过运行以下命令停止 HTTPD 服务。
    /sbin/service httpd stop
    
  3. 通过运行以下命令移除 RPM:
    /bin/rpm -e --nodeps httpd
    /bin/rpm -e --nodeps httpd-tools
    /bin/rpm -e --nodeps VMware-Postgres
    /bin/rpm -e --nodeps VMware-Postgres-libs
    /bin/rpm -e --nodeps VMware-Postgres-osslibs
    /bin/rpm -e --nodeps VMware-Postgres-osslibs-server
    
  4. 通过运行以下命令移除额外的用户和组:
    /usr/sbin/userdel -fr admin
    /usr/sbin/userdel -fr postgres
    /usr/sbin/groupdel admin
    
  5. 通过运行以下命令移除额外的文件和目录:
    /bin/rm -rf /usr/lib/openssl/lib/libcrypto.so.10
    /bin/rm -rf /usr/lib/openssl/lib/libssl.so.10
    /bin/rm -rf /usr/lib/openssl/lib/
    /bin/rm -rf /usr/lib/openssl/
    /bin/rm -rf /usr/lib/vmware-vcopssuite-installsupport/.buildInfo.<build_number>
    /bin/rm -rf /usr/lib/vmware-vcopssuite-installsupport/
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops-watchdog
    /bin/rm -rf /etc/rc.d/*/*vmware-casa
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops-web
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops-reboot-config
    /bin/rm -rf /var/log/firstboot
    /bin/rm -rf /var/log/preb2b
    /bin/rm -rf /var/log/postb2b
    /bin/rm -rf /var/log/firstboot
    /bin/rm -rf /var/log/casa_logs
    /bin/rm -rf /var/log/tomcat_logs
    /bin/rm -rf /var/log/vcops_logs
    /bin/rm -rf /var/.com.zerog.registry.xml
    /bin/rm -rf /var/log/log
    
  6. 通过运行以下命令移除sudoers条目: 如果多次运行了安装程序,那么可能需要多次运行以下命令:
    /bin/sed -i '/# ------ vCenter Operations Manager Settings for VCOPS_USER/,/# ------ End of vCenter Operations Manager Settings for VCOPS_USER/d' /etc/sudoers
    /bin/sed -i '/# ------ vCenter Operations Manager Settings for CaSA/,/# ------ End of vCenter Operations Manager Settings for CaSA/d' /etc/sudoers
    /bin/sed -i '/# ------ vCenter Operations Manager Settings for vsutilities/,/# ------ End of vCenter Operations Manager Settings for vsutilities/d' /etc/sudoers
    
  7. 检查 sudoers文件 /etc/sudoers,以确保没有 vRealize Operations Manager 条目。