Your environment might contain multiple vCenter Server instances registered with different external Platform Services Controller instances that replicate their data. You can use vSphere Data Protection for backing up and restoring the whole environment, so that if several Platform Services Controller instances fail, you can restore them.

Important:

You can back up and restore only virtual machines that contain vCenter Server, vCenter Server Appliance, and Platform Services Controller. You cannot back up and restore physical machines that are running vCenter Server by using vSphere Data Protection.

  1. Deploy the vSphere Data Protection Appliance.

    See Deploy the vSphere Data Protection OVF Template.

  2. Complete the initial vSphere Data Protection configuration.

    See Configure vSphere Data Protection.

  3. Perform image-based backups of all Platform Services Controller and vCenter Server instances.

    See Create a Backup Job in vSphere Data Protection.

    Note:

    Back up all vCenter Server and Platform Services Controller instances at the same time.

  4. (Optional) To run an existing backup job immediately, start the process manually.

    See Start a Backup Job Manually.

  5. Get the Platform Services Controller replication topology from a functional Platform Services Controller.

    Note:

    The replication topology command provides information only about the direct replication partners of the functional Platform Services Controller.

    Option

    Steps

    For a Platform Services Controller deployed as an appliance

    1. Log in to the appliance shell as root.

      • If you have direct access to the appliance console, press Alt+F1.

      • If you want to connect remotely, use SSH or another remote console connection to start a session to the appliance.

    2. (Optional) Enable the Bash shell.

      shell.set --enabled true
    3. To access the Bash shell, run shell.

    4. Run the vdcrepadmin command.

      /usr/lib/vmware-vmdir/bin/vdcrepadmin -f showpartners -h localhost -u PSC_Administrator_username -w PSC_Administrator_password

    For a Platform Services Controller installed on Windows

    1. Log in to the Windows machine as an administrator.

    2. In the Windows command prompt, run the vdcrepadmin command.

      C:\Program Files\VMware\vCenter Server\vmdird\bin\vdcrepadmin -f showpartners -h localhost -u psc_administrator_username -w psc_administrator_password
  6. (Optional) If a vCenter Server instance is registered with a failed Platform Services Controller, repoint the connections between the vCenter Server instances and the failed Platform Services Controller instances to any remaining functional external Platform Services Controller.

    See Repoint vCenter Server to Another External Platform Services Controller.

    Important:

    Repointing the connections between vCenter Server and the Platform Services Controller results in loss of all backup jobs and replication jobs. Existing restore points remain intact, but you must re‐create backup jobs and replication jobs.

  7. Restore the replication partners of a functional Platform Services Controller.

    1. Restore a failed Platform Services Controller from its backup image.

    2. Power on the virtual machine that contains the Platform Services Controller.

      Important:

      For Platform Services Controller instances installed on Windows, if the system prompts you to restart the virtual machine, do not restart the machine before you run the psc_restore script.

    3. Log in to the Platform Services Controller instance.

      • For a Platform Services Controller deployed as an appliance, log in to the vCenter Server Appliance shell as root.

      • For a Platform Services Controller installed on Windows, log in as an administrator to the virtual machine that you installed vCenter Server on.

    4. Verify that no Platform Services Controller services are running.

      • For a Platform Services Controller deployed as an appliance, run the service-control --status --all command in the appliance shell.

      • For a Platform Services Controller installed on Windows, from the Windows Start menu, select Control Panel > Administrative Tools > Services.

    5. Run the psc_restore script to restore the Platform Services Controller.

      Option

      Steps

      For a Platform Services Controller deployed as an appliance

      Run the psc_restore script in the appliance shell.

      psc_restore -u psc_administrator_username -p psc_administrator_password
      
      Note:

      If you do not provide arguments, the script prompts you for the necessary arguments thrice before closing.

      For a Platform Services Controller installed on Windows

      1. From the Windows command prompt, navigate to the psc_restore script.

        By default, the script is located in C:\Program Files\VMware\vCenter Server\.

      2. Run the psc_restore script.

        psc_restore -u psc_administrator_username -p psc_administrator_password
         
        Note:

        If you do not provide arguments, the script closes after notifying you that the required arguments were not provided.

  8. Verify that all Platform Services Controller services of the restored Platform Services Controller are running.

    • For a Platform Services Controller deployed as an appliance, run the service-control --status --all command in the appliance shell.

    • For a Platform Services Controller installed on Windows, from the Windows Start menu, select Control Panel > Administrative Tools > Services.

  9. Repeat 5 through 9 to restore the replication partners of each failed Platform Services Controller that you restored.

    Note:

    Restore the Platform Services Controller instances that have at least one functional replication partner before others.

  10. (Optional) Repoint back any connections between the vCenter Server instances to the restored Platform Services Controller instances, repointed previously in 6, and restart the corresponding vCenter Server instances.