Sun Cluster Geographic Edition 系统管理指南

禁用 Sun Cluster Geographic Edition 软件

您可以使用以下过程禁用 Sun Cluster Geographic Edition 基础结构。

Procedure如何禁用 Sun Cluster Geographic Edition 软件

开始之前

确保本地群集上的所有保护组均处于脱机状态。

  1. 登录到一个群集节点。

    要完成此过程,必须为您指定 Geo Management RBAC 权限配置文件。有关 RBAC 的更多信息,请参见Sun Cluster Geographic Edition 软件和 RBAC

  2. 确认本地群集上的所有保护组是否均处于脱机状态。


    phys-paris-1# geoadm status
    

    有关 geoadm status 命令及其输出的更多信息,请参见监视 Sun Cluster Geographic Edition 软件的运行时状态


    注意 – 注意 –

    如果希望在取消激活保护组的同时使应用程序资源组保持联机状态,请执行以下数据复制指南中所述的相应过程:


  3. 禁用 Sun Cluster Geographic Edition 软件。


    phys-paris-1# geoadm stop
    

    此命令将删除您启用 Sun Cluster Geographic Edition 基础结构时所创建的基础结构资源组。

    有关此命令的更多信息,请参见 geoadm(1M) 手册页。


    注 –

    禁用 Sun Cluster Geographic Edition 软件只会删除基础结构资源组。那些为支持数据复制而创建的资源组不会被删除,除非您使用 geopg delete 命令删除这些资源组所支持的保护组。


  4. 验证是否已禁用了该软件以及是否不再显示 Sun Cluster Geographic Edition 资源组。


    phys-paris-1# geoadm show
    phys-paris-1# clresourcegroup status
    

    有关更多信息,请参见 clresourcegroup(1CL) 手册页。


示例 3–2 禁用群集

此示例将禁用 cluster-paris 群集。

  1. 确认所有保护组均处于脱机状态。


    phys-paris-1# geoadm status
    
    Cluster: cluster-paris
    
    Partnership "paris-newyork-ps" :OK
       Partner clusters   :cluster-newyork
       Synchronization    :OK
       ICRM Connection    :OK
    
       Heartbeat "paris-to-newyork" monitoring "cluster-newyork":OK
           Heartbeat plug-in "ping_plugin"   :Inactive
           Heartbeat plug-in "tcp_udp_plugin":OK
    
    Protection group "tcpg"      :OK
        Partnership              :paris-newyork-ps
        Synchronization          :OK
    
        Cluster cluster-paris    :OK
            Role                 :Primary
            PG activation state  :Deactivated
            Configuration        :OK
            Data replication     :OK
            Resource groups      :OK
    
    
        Cluster cluster-newyork  :OK
            Role                 :Secondary
            PG activation state  :Deactivated
            Configuration        :OK
            Data replication     :OK
            Resource groups      :OK
  2. 禁用 Sun Cluster Geographic Edition 基础结构。


    phys-paris-1# geoadm stop
    ... verifying pre conditions and performing pre remove operations ... done
    ...removing product infrastructure ... please wait ...
  3. 确认是否已成功禁用 Sun Cluster Geographic Edition 基础结构。


    phys-paris-1# geoadm show
    
    --- CLUSTER LEVEL INFORMATION ---
    Sun Cluster Geographic Edition is not active on cluster-paris
    
    --- LOCAL NODE INFORMATION ---
    Node phys-paris-1 does not host active product module.
    
    Command execution successful
    phys-paris-1#
  4. 检验是否已删除 Sun Cluster Geographic Edition 资源组和资源。


    phys-paris-1# clresourcegroup status
    phys-paris-1#