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. If all Platform Services Controller instances fail, you can restore the environment.

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

Restore the most recently backed up Platform Services Controller instance by using the direct-to-host emergency restore.

See Restore a Virtual Machine with the Direct-to-Host Emergency Restore Operation.

6

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.

7

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.

8

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.

9

Run the psc_restore script with an additional --ignore-sync command line argument.

Note

You must use the --ignore-sync command line argument, because you restore the first node in the federation and you cannot sync with any other node.

Option

Steps

For a Platform Services Controller deployed as an appliance

Run the psc_restore script.

psc_restore -u psc_administrator_username -p psc_administrator_password --ignore-sync

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 --ignore-sync
10

After the restore is complete, 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

(Optional) Enable the Bash shell.

shell.set --enabled true
2

To access the Bash shell, run shell.

3

Run the command to get the topology of the federation.

/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

From the Windows command prompt, run the command to get the topology of the federation.

C:\Program Files\VMware\vCenter Server\vmdird\bin\vdcrepadmin -f showpartners -h localhost -u psc_administrator_username -w psc_administrator_password
11

Restore a failed replication partner of the restored Platform Services Controller by using one of the available methods:

Restore a virtual machine to the original location.

See Restore a Virtual Machine to the Original Location.

Restore a virtual machine to a new location.

See Restore a Virtual Machine to a New Location.

Restore a virtual machine directly to the ESXi host that is running the vSphere Data Protection Appliance if the vCenter Server service becomes unavailable or if you cannot access the vSphere Data Protection user interface by using the vSphere Web Client.

See Restore a Virtual Machine with the Direct-to-Host Emergency Restore Operation.

12

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.

13

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.

14

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.

15

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.

16

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.

17

Repeat Step 10 through Step 17 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.

18

Restart all vCenter Server services.

See vCenter Server and Host Management.