卸载集群依赖

使用pdbcli uninstall卸载集群所有节点或目标节点的集群依赖。

  • 根据配置文件内容,卸载集群所有节点的集群依赖。

    pdbcli uninstall cluster

    您可执行pdbcli help uninstall clusterpdbcli uninstall cluster -help命令,获取具体的命令说明:

    Using config file: ./config.yaml
    Uninstall PolarDB components for all node of the cluster. Including Database, Cluster Manager, Proxy, and Agent.
    
    	For example:
    
        pdbcli uninstall cluster
    
    Usage:
      pdbcli uninstall cluster [flags]
    
    Flags:
      -h, --help                   help for cluster
          --no-prompt              No command line confirmation. # 增加此flag后,不会有命令行的确认信息,请谨慎使用
          --no-validate            Skip config file validation.
          --start-at-task string   Resumed failed task at last failed task name (INTERNAL USE ONLY). #当操作失败时,可使用该flag从失败的步骤开始重试。
    Global Flags:
          --config string   Specify Config file. (default "./config.yaml") # 指定配置文件,默认为./config.yaml
          --debug           Enable additional output for debugging. # 显示更多输出信息,用于调试
    
  • 卸载指定节点的集群依赖。

    pdbcli uninstall node --target '目标节点的IP地址'

    您可以执行pdbcli help uninstall nodepdbcli uninstall node --help命令,获取相应的命令说明。