You unconfigure the vCloud Availability solution by cleaning up the components configuration in a specific order.

Procedure

  1. Unconfigure the vSphere Replication Server.

    Standard Command

    Command Using Registry

    # vcav hbr unconfigure \
    --hbr-address=$HBR_ADDRESS \
    --vsphere-address=$VSPHERE01_ADDRESS \
    --vsphere-user=$SSO_USER \
    --vsphere-password-file=~/.ssh/.sso \
    --vcd-address=$VCD_ADDRESS \
    --vcd-user=$VCD_USER \
    --vcd-password-file=~/.ssh/.vcd
    # vcav hbr unconfigure \
    --hbr-address=$HBR_ADDRESS \
    --vsphere=vsphere-01-name \
    --vcd=vcd-01-name
    Important:

    Repeat this step for every vSphere Replication Server in your vCloud Availability environment. The vCloud Availability Installer Appliance returns an error when you try to unconfigure the last vSphere Replication Server in your vCloud Availability environment. You can ignore the error and proceed to the next step.

  2. Unconfigure the vSphere Replication Cloud Service Appliance.

    Standard Command

    Command Using Registry

    # vcav hcs unconfigure \
    --hcs-address=$HCS01_ADDRESS \
    --vcd-address=$VCD_ADDRESS \
    --vcd-user=$VCD_USER \
    --vcd-password-file=~/.ssh/.vcd \
    --sso-user=$SSO_USER \
    --sso-password-file=~/.ssh/.sso 
    # vcav hcs unconfigure \
    --hcs-address=$HCS01_ADDRESS \
    --vcd=vcd-01-name
    Important:

    Repeat this step for every vSphere Replication Cloud Service host in your vCloud Availability environment.

  3. Remove all com.vmware.vr rights from vCloud Director roles that are using them.
  4. Unregister the vSphere Replication Cloud Service extension from vCloud Director.

    Standard Command

    Command Using Registry

    # vcav hcs unregister-extension \
    --hcs-address=$HCS01_ADDRESS \
    --vcd-address=$VCD_ADDRESS \
    --vcd-user=$VCD_USER \
    --vcd-password-file=~/.ssh/.vcd \
    --sso-user=$SSO_USER \
    --sso-password-file=~/.ssh/.sso 
    # vcav hcs unregister-extension \
    --hcs-address=$HCS01_ADDRESS \
    --vcd=vcd-01-name
    

    You run this command once per vCloud Availability instance.

  5. Unconfigure the vSphere Replication Manager.

    Standard Command

    Command Using Registry

    # vcav hms unconfigure \
    --hms-address=$HMS01_ADDRESS \
    --vsphere-address=$VSPHERE01_ADDRESS \
    --vsphere-user=$SSO_USER \
    --vsphere-password-file=~/.ssh/.sso \
    --vcd-address=$VCD_ADDRESS \
    --vcd-user=$VCD_USER \
    --vcd-password-file=~/.ssh/.vcd \
    --sso-user=$SSO_USER \
    --sso-password-file=~/.ssh/.sso
     
    # vcav hms unconfigure \
    --hms-address=$HMS01_ADDRESS \
    --vsphere=vsphere-01-name \
    --vcd=vcd-01-name
      
    
    
    Important:

    Repeat this step for every vSphere Replication Manager in your vCloud Availability environment.

  6. Clean up Cassandra endpoints from the lookup service.
    1. List all Cassandra hosts that are configured with a vSphere Replication Cloud Service appliance and are registered to a lookup service used by vCloud Director.

      Standard Command

      Command Using Registry

      vcav hcs list-cassandra \
      --hcs-address=hcs-IP-address \
      --vcd-address=$VCD_ADDRESS \
      --vcd-user=$VCD_USER \
      --vcd-password-file=~/.ssh/.vcd 
      
      vcav hcs list-cassandra \
      --hcs-address=hcs-IP-address \
      --vcd=vcd-01-name
    2. Remove all Cassandra entries from the vCloud Director lookup service.

      Standard Command

      Command Using Registry

      vcav hcs unregister-cassandra \
      --hcs-address=hcs-IP-address \
      --vcd-address=$VCD_ADDRESS \
      --vcd-user=$VCD_USER \
      --vcd-password-file=~/.ssh/.vcd \
      --all
      vcav hcs unregister-cassandra \
      --hcs-address=hcs-IP-address \
      --vcd=vcd-01-name \
      --all
  7. Delete the Cassandra key space.
    1. Connect to the Cassandra host over SSH.
    2. To delete the Cassandra key space, run the following command.
      drop keyspace keyspace_name

      By default, the Cassandra key space name is vr2c and is defined in the /opt/vmware/hms/conf/hcs-config.properties file of the associated vSphere Replication Cloud Service host.

      Note:

      If you configured client encryption for the Cassandra host, the cqlsh utility requires additional configuration. For more information about configuring Cassandra, see Enable Server and Client Communication with Cassandra over SSL. For more information about using the cqlsh utility in a Cassandra host with client encryption, see the Using cqlsh with SSL encryption topic in the DataStax documentation.

  8. Remove the vSphere Replication solution user from vCloud Director.
    1. List all vSphere Replication solution user in vCloud Director

      Standard Command

      Command Using Registry

      vcav vcd list-vr-users \
      --vcd-address=$VCD_ADDRESS \
      --vcd-user=$VCD_USER \
      --vcd-password-file=~/.ssh/.vcd
      vcav vcd list-vr-users \
      --vcd=vcd-01-name
    2. Remove the vSphere Replication solution user from vCloud Director

      Standard Command

      Command Using Registry

      vcav vcd remove-vr-user \
      --vcd-address=$VCD_ADDRESS \
      --vcd-user=$VCD_USER \
      --vcd-password-file=~/.ssh/.vcd \
      --user=user_id@vsphere.local
      vcav vcd remove-vr-user \
      --vcd=vcd-01-name \
      --user=user_id@vsphere.local

      To remove allvSphere Replication solution users from vCloud Director, replace the --user=user_id@vsphere.local argument with the --all argument.

  9. Delete all vCloud Availability VMs by using the vSphere Web Client.