Backup | Restore |
Each backup job includes a series of clean-up tasks that are performed by the system. In some cases, these clean-up tasks may not complete successfully, which in turn causes the current backup job, as well as any subsequent backup jobs, to fail. In such scenarios, the clean-up operations must be performed manually before any other backup jobs can complete successfully.
The manual clean-up process consists of three phases.
The steps to complete each phase are described in the following sections.
_cvbackupsnpt_<Snapshot_GUID>
where <Snapshot_GUID> is a series of numbers and letters. In the following example, the snapshot's GUID is displayed in bold:
_cvbackupsnpt_491a866d-b916-9389-fa3e-0139b0d5d8d3_200911217212
To destroy the GUIDs of the snapshot, VBDs, and VDIs:
xe template-list name-label=_cvbackupsnpt_<Snapshot_GUID> params=uuid
This command will provide the GUID of the snapshot, as displayed below:
[root@<root_name> ~]# xe template-list name-label=_cvbackupsnpt_<GUID> params=uuid
uuid ( RO) : <Snapshot_GUID>
xe vbd-list vm-uuid=<Snapshot_GUID> params=uuid type=Disk
This command will provide the VBD GUIs of the snapshot, as displayed below (this example assumes 3 VBDs are present):
[root@<root_name> ~]# xe vbd-list vm-uuid=<Snapshot_GUID> params=uuid type=Disk
uuid ( RO) : <VBD_1_GUID>
uuid ( RO) : <VBD_2_GUID>
uuid ( RO) : <VBD_3_GUID>
xe vdi-list vdi-uuids=<VBD_x_GUID> params=uuid
This command will provide the VDIs of each VDB, as displayed below (this example assumes each VBD has one VDI):
[root@<root_name> ~]# xe vdi-list vbd-uuids=<VBD_1_GUID> params=uuid
uuid ( RO) : <VDI_1_GUID>
[root@<root_name> ~]# xe vdi-list vbd-uuids=<VBD_2_GUID> params=uuid
uuid ( RO) : <VDI_2_GUID>
[root@<root_name> ~]# xe vdi-list vbd-uuids=<VBD_3_GUID> params=uuid
uuid ( RO) : <VDI_3_GUID>
xe vdi-destroy uuid=<VDI_x_GUID>
This command will destroy each VDI GUID. The following text is displayed for each VDI GUID:
[root@<root_name> ~]# xe vdi-destroy uuid=<VDI_x_GUID>
xe vdi-destroy uuid=<VBD_x_GUID>
This command will destroy each VBD GUID. The following text is displayed for each VBD GUID:
[root@<root_name> ~]# xe vdi-destroy uuid=9<VBD_x_GUID>
xe vdi-destroy uuid=<Snapshot_GUID>
The following text is displayed. Answer yes to all questions in this command:
[root@<root_name> ~]# xe template-uninstall template-uuid=<Snapshot_GUID>
This command will destroy the snapshot. The following text is displayed:
[root@<root_name> ~]# xe template-list name-label=_cvbackupsnpt_<Snapshot_GUID> params=uuid
uuid ( RO) : <Snapshot_GUID>
Once the above steps have been completed, move on to Phase II, below.
To delete the mounted disks from the proxy virtual machine:
xe vbd-list vm-name-label=<Proxy_Virtual_Machine_Name>
The above command displays all the VDI UUIDs attached to the proxy virtual machine. In the following example, the proxy virtual machine contains two VDI UUIDs:
[root@<root_name> ~]# xe vbd-list vm-name-label=<Proxy_Virtual_Machine_Name>
uuid ( RO) : <UUID_1>
vm-uuid ( RO): <VM_UUID>
vm-name-label ( RO): <Proxy_Virtual_Machine_Name_Label>
vdi-uuid ( RO): <VDI_UUID_1>
empty ( RO): false
device ( RO): hdb
uuid ( RO) : <UUID_2>
vm-uuid ( RO): vm-uuid ( RO): <VM_UUID>
vm-name-label ( RO): <Proxy_Virtual_Machine_Name_Label>
vdi-uuid ( RO): <VDI_UUID_2>
empty ( RO): false
device ( RO): hda
xe vbd-param-set uuid=<VDI_UUID_x> unpluggable=true;
xe vbd-unplug uuid=<VDI_UUID_x>
xe vbd-destroy uuid=<VDI_UUID_x>
xe vdi-destroy uuid=<VDI_UUID_x>
Do not delete any disks of type hda. For example, VDI_UUID_2 displayed in Step 1 is of type hda and, as such, should not be removed. |
Once the above steps have been completed, move on to Phase III, below.
To delete the files from the mount path:
This completes the clean-up process.
During a Virtual Server iDataAgent backup, the Xen Server becomes unresponsive.
If you are performing backup of more than 4 virtual machines simultaneously, the Xen server may stop responding.
If you want to backup more than 4 virtual machines, perform the sequential backups. Otherwise, install Virtual Server iDataAgent on another Xen server for the load balancing. Each server will share the load of the backup job and will not become unresponsive.
The backup job goes to pending state with the following error message:
No network connection to the host
The virtual machine, where you have installed the Virtual Server iDataAgent has a xencenter name different than its host name.
Change the xencenter name of the virtual machine where you have installed the Virtual Server iDataAgent. Ensure that the xencenter name is same as the host name.