Source:Citrix XenServer Backup: Difference between revisions
mNo edit summary |
(replacing screenshots) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude><div class="noprint"><languages /> | ||
<div class="noprint"><languages /> | <br /> | ||
<!--T: | =={{anchor|overview}}<translate><!--T:3--> Overview== </translate> | ||
</div></noinclude><span style="font-size:92%; line-height: 1.3em; color:grey;"><translate><!--T:68--> | |||
This article describes Citrix XenServer backup procedure. For detailed information about Citrix XenServer requirements and configuration steps, see [[Special:MyLanguage/Citrix_XenServer_Requirements_and_Configuration|Citrix XenServer Requirements and Configuration]].</translate></span> | |||
<translate><!--T:13--> | <translate><!--T:13--> | ||
SEP sesam provides '''efficient data protection for virtual machines (VMs) running on a Citrix XenServer'''. Virtual machine-consistent [[Special:MyLanguage/SEP_sesam_Glossary#backup|backup]] requests a snapshot of the VM. After creation, the snapshot is exported to a SEP sesam backup medium. VSS writers on Windows VMs are notified before snapshot creation, so all VSS-aware applications, such as MS SQL, are brought into a consistent state | SEP sesam provides '''efficient data protection for virtual machines (VMs) running on a Citrix XenServer'''. Virtual machine-consistent [[Special:MyLanguage/SEP_sesam_Glossary#backup|backup]] requests a snapshot of the VM. After creation, the snapshot is exported to a SEP sesam backup medium. VSS writers on Windows VMs are notified before snapshot creation, so all VSS-aware applications, such as MS SQL, are brought into a consistent state. | ||
<!--T:60--> | <!--T:60--> | ||
;CBT:SEP sesam supports ''changed block tracking'' (CBT) for ''Citrix XenServer 7.3 and higher''. The XenServer CBT feature provides incremental backup capabilities, making VM backups faster while saving storage space. XenServer backup with CBT is significantly faster than regular backup without CBT and the amount of I/O required for processing is reduced. With CBT, only the blocks that have changed since the last backup are backed up. Note that Citrix XenServer CBT is only available for ''XenServer Enterprise Edition''. For details, see [[Special:MyLanguage/Changed_Block_Tracking_(CBT)|Changed Block Tracking (CBT)]]. | |||
<!--T:69--> | |||
;VSS and quiesced snapshots:Note that VSS and quiesced snapshots of Windows VMs are only supported in Citrix Hypervisor 8.0 and earlier versions; they have been ''removed in Citrix Hypervisor ≥ 8.1''' and version ''≥ 9.0.x.x drivers''. If you want to continue using the quiesced snapshot feature with Windows VMs hosted on Citrix Hypervisor 8.0 and earlier, keep your current 8.2.x.x version of the Windows I/O drivers and do not update to the 9.0.x.x drivers. For more information, see [https://docs.citrix.com/en-us/citrix-hypervisor/whats-new/removed-features.html Citrix Hypervisor 8.1 Deprecations and removals]. | |||
<!--T:61--> | <!--T:61--> | ||
For | For a list of supported Citrix XenServer versions, see [[Special:MyLanguage/SEP_sesam_OS_and_Database_Support_Matrix#Citrix|support matrix]].</translate> | ||
{{tip| | |||
*<translate><!--T:64--> | |||
Simplify the backup of multiple VMs by automatically creating tasks for VMs (introduced in v. [[Special:MyLanguage/SEP_sesam_Release_Versions|5.0.0 ''Jaglion'']]) that are connected to the same host. You can also automatically create clients for VMs to which the created tasks and ACLs can be assigned. It is recommended to use these features when a new hypervisor is added and many new VMs need to be backed up. For details, see [[Special:MyLanguage/Automating_Backup_Process|Automating Backup Process]]. | |||
*If you prefer to watch a video, you can see all the steps of the backup process in ''Backup Citrix Hypervisor (XCP-ng/XenServer) with SEP sesam'' on the {{SEP youtube}}.</translate>}} | |||
<!--T:14--> | <translate><!--T:14--> | ||
'''Backup levels''' | '''Backup levels''' | ||
<!--T:15--> | <!--T:15--> | ||
SEP sesam supports all backup levels for Citrix XenServer backup: ''COPY'', ''FULL'', ''INC'' and ''DIFF''.</translate> | |||
*<translate><!--T:62--> | *<translate><!--T:62--> | ||
''COPY'': Back up the entire VM; note that a COPY backup cannot be used as a starting point for INC/DIFF backups and restores.</translate> | ''COPY'': Back up the entire VM; note that a COPY backup cannot be used as a starting point for INC/DIFF backups and restores.</translate> | ||
*<translate><!--T:16--> | *<translate><!--T:16--> | ||
''FULL'': Back up the entire VM.</translate> | ''FULL'': Back up the entire VM.</translate><br /><translate><!--T:63--> Full backup uses [[Special:MyLanguage/SEP_sesam_Glossary#CBT|CBT]] to allow differential and incremental backups. If you use Citrix XenServer lower than 7.3 or the server is not licensed for CBT, only COPY backups are possible.</translate> | ||
*<translate><!--T:17--> | *<translate><!--T:17--> | ||
''INC'': Back up VM data that has changed since the | ''INC'': Back up VM data that has changed since the last (FULL, DIFF or INCR) backup.</translate> | ||
*<translate><!--T:18--> | *<translate><!--T:18--> | ||
''DIFF'': Back up VM data that has changed since the | ''DIFF'': Back up VM data that has changed since the last FULL backup.</translate> | ||
{{ | {{note|<translate><!--T:58--> | ||
note | If you back up via a hypervisor and use an external disk, SEP sesam cannot back up the data on RDM disks or on a VM without attached SCSI controller(s). The data of such disks is silently skipped during the backup, so the backup savesets do not contain data for the external disk, while the backup is successful and no warning about the missing data is issued. If a VM with an external disk is restored with the option ''overwrite'' to the original VM, the disk is re-created and all existing data on the restore target is lost.</translate> <br /> | ||
<translate><!--T:59--> | <translate><!--T:59--> | ||
To back these hypervisors, you | To back up these hypervisors, you must add one or more SCSI controllers to the VM before performing a backup, even if there are no devices to use SCSI, or you have to install a SEP sesam Client on the virtual machine and perform an additional file or application backup to back up this data.</translate>}} | ||
== {{anchor|templates}}<translate><!--T:19--> | |||
Backing up the VMs and Xen templates == | |||
<!--T:70--> | |||
Create a new backup task for the Citrix Xen client containing the virtual machines. When backing up a Citrix XenServer, you can perform a '''hot''' (online) or '''cold''' (offline) backup of one VM per task.</translate> <translate><!--T:37--> | |||
For details about backup configuration, see [[Special:MyLanguage/Standard_Backup_Procedure|Standard Backup Procedure]].</translate> | |||
<translate> | {{tip|<translate><!--T:72--> You can simplify the backup of multiple VMs by automatically creating tasks for VMs that are connected to the same host. For details, see [[Special:MyLanguage/Automating_Backup_Process|Automating Backup Process]].</translate>}} | ||
<ol><li><translate><!--T:20--> | <ol><li><translate><!--T:20--> | ||
From '''Main Selection''' -> '''Tasks''' -> '''By | From '''Main Selection''' -> '''Tasks''' -> '''By Clients''', select ''Citrix'' client and click '''New Backup Task'''. The ''New Backup Task'' window opens.</translate></li> | ||
<li><translate><!--T:21--> | <li><translate><!--T:21--> | ||
Specify the '''Source'''. Click the '''Browse''' button (big arrow) and select the VM you want to back up. By selecting the source, the ''task type'' and ''task name'' are set automatically.</translate></li> | |||
{{ | {{note|<translate><!--T:23--> | ||
note | |||
Citrix XenServer allows you to have more virtual machines with the same name, however, if you select one of these as a backup source, backup fails. The following error appears: ''Backup failed. A virtual machine with the same name already exists.''</translate>}} | Citrix XenServer allows you to have more virtual machines with the same name, however, if you select one of these as a backup source, backup fails. The following error appears: ''Backup failed. A virtual machine with the same name already exists.''</translate>}} | ||
<translate><!--T:24--> | <translate><!--T:24--> | ||
[[Image: | [[Image:Citrix_source_Apollon.jpg|730px|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
<translate><!--T:25--> | <translate><!--T:25--> | ||
Line 92: | Line 68: | ||
xe vm-list | xe vm-list | ||
{{ | {{note| <translate><!--T:27--> | ||
note | |||
You can only configure one VM per backup task.</translate>}} | You can only configure one VM per backup task.</translate>}} | ||
<li><translate><!--T:73--> In v. ≥ [[Special:MyLanguage/SEP_sesam_Release Versions|5.0.0 ''Jaglion'']], you can exclude individual virtual disk (VHD) from ''FULL''/''DIFF''/''INCR'' backup in two different ways:</translate></li> | |||
{{Note|<translate><!--T:74--> You cannot exclude VHDs from ''Copy'' backups.</translate>}} | |||
*<translate><!--T:75--> Use the big ''Browse'' button and deselect the disk you want to exclude from backup in the ''Client File View'' window.</translate> | |||
<translate><!--T:76--> OR</translate> | |||
*<translate><!--T:77--> | |||
Enter the disk ID in the ''Exclude list'' field as follows: | |||
-x <device number></translate> | |||
<li><translate><!--T:28--> | <li><translate><!--T:28--> | ||
If you want to specify other options, such as the pre/post backup and restore commands, encryption, etc., click the corresponding tabs in the ''New Backup Task'' window.</translate></li> | |||
<translate><!--T:29--> | <translate><!--T:29--> | ||
[[Image: | [[Image:Citrix_bck_task_Apollon.jpg|730px|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
<li><translate><!--T:30--> | <li><translate><!--T:30--> | ||
Click '''OK''' to create the task.</translate></li> | Click '''OK''' to create the task.</translate></li> | ||
<li><translate><!--T:31--> | <li><translate><!--T:31--> | ||
If you want to start the newly created task immediately, right-click the name of the task and click '''Immediate | If you want to start the newly created task immediately, right-click the name of the task and click '''Immediate Start'''. If you want to schedule the task, click '''New schedule''' under '''Main Selection''' -> '''Scheduling''' -> '''Schedules'''. For more details, see [[Special:MyLanguage/Creating_a_Schedule|Creating a Schedule]].</translate> </li> | ||
{{tip| <translate><!--T:34--> | |||
{{ | |||
tip | |||
You can also add your [[Special:MyLanguage/SEP_sesam_Glossary#backup_task|backup task]] to an existing schedule by double-clicking the backup task, selecting the tab '''Schedules''' and adding it to one or more schedules.</translate>}} | You can also add your [[Special:MyLanguage/SEP_sesam_Glossary#backup_task|backup task]] to an existing schedule by double-clicking the backup task, selecting the tab '''Schedules''' and adding it to one or more schedules.</translate>}} | ||
<li><translate><!--T:35--> | <li><translate><!--T:35--> | ||
Once you have configured a schedule, you must create a new backup event for it. Go to '''Main Selection''' -> '''Scheduling''' -> '''New Backup Event''', click the '''Parameter''' tab and select ''FULL, INC or DIFF'' backup from the '''Backup | Once you have configured a schedule, you must create a new backup event for it. Go to '''Main Selection''' -> '''Scheduling''' -> '''New Backup Event''', click the '''Parameter''' tab and select ''FULL'', ''INC'' or ''DIFF'' backup from the '''Backup level''' drop-down list. For detailed procedure, see [[Special:MyLanguage/Creating_a_Backup_Event|Creating a Backup Event]].</translate></li> | ||
</ol> | </ol> | ||
<translate><!--T:36--> | <translate><!--T:36--> | ||
The backup is done ''online''. If ''XenServer'' tools are installed on VM, ''VSS-Writers'' are executed before | The backup is done ''online''. If ''XenServer'' tools are installed on the VM, ''VSS-Writers'' are executed before the snapshot is created.</translate> | ||
== {{anchor|meta}}<translate><!--T:38--> | |||
Metadata backup == | |||
== {{anchor|meta}} | |||
<!--T:39--> | <!--T:39--> | ||
The backup includes the XenServer pool database and the needed metadata of the pool. | |||
<!--T:40--> | <!--T:40--> | ||
Create a new backup task for the Xen master.</translate> | Create a new backup task for the Xen master.</translate> | ||
<ol><li><translate><!--T:41--> | <ol><li><translate><!--T:41--> | ||
From '''Main Selection''' -> '''Tasks''' -> '''By | From '''Main Selection''' -> '''Tasks''' -> '''By Clients''', select ''Citrix'' client and click '''New Backup Task'''. The ''New Backup Task'' window opens.</translate></li> | ||
<li><translate><!--T:42--> | <li><translate><!--T:42--> | ||
Specify the '''Source'''. Use the '''Browse''' button (big arrow) and select '''meta-data'''. By selecting the source, the ''task type'' and ''task name'' are set automatically.</translate></li> | |||
<translate><!--T:43--> | <translate><!--T:43--> | ||
[[Image: | [[Image:Citrix_meta_data_bck_Apollon.jpg|730px|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
<li><translate><!--T:44--> | <li><translate><!--T:44--> | ||
Line 147: | Line 121: | ||
Click '''OK''' to create the task.</translate></li></ol> | Click '''OK''' to create the task.</translate></li></ol> | ||
{{ | {{note| <translate><!--T:47--> | ||
note | Citrix recommends that you perform metadata backup via Citrix native backup options as often as necessary.</translate>}} | ||
Citrix recommends | |||
== {{anchor|host}}<translate><!--T:48--> | |||
Host data backup == | |||
<!--T:49--> | <!--T:49--> | ||
This is a file backup of the Xen hypervisor without the VMs. This is required in special cases for | This is a file backup of the Xen hypervisor without the VMs. This is required in special cases for Citrix support. You cannot recover this host backup directly to the hypervisor via SEP sesam. | ||
<!--T:50--> | <!--T:50--> | ||
Create a new backup task for each Xen host.</translate> | Create a new backup task for each Xen host.</translate> | ||
<ol><li><translate><!--T:51--> | <ol><li><translate><!--T:51--> | ||
From '''Main Selection''' -> '''Tasks''' -> '''By | From '''Main Selection''' -> '''Tasks''' -> '''By Clients''', select ''Citrix'' client and click '''New Backup Task'''. The ''New Backup Task'' window opens.</translate></li> | ||
<li><translate><!--T:52--> | <li><translate><!--T:52--> | ||
Specify the Source. Use the '''Browse''' button (big arrow) and select '''host-backup'''. By selecting the source, the ''task type'' and ''task name'' are set automatically.</translate></li> | |||
<translate><!--T:53--> | <translate><!--T:53--> | ||
[[Image: | [[Image:Citrix_host_bck_Apollon.jpg|730px|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
<li><translate><!--T:54--> | <li><translate><!--T:54--> | ||
If you want to add a comment, enter it in the '''Notes''' field.<br> | If you want to add a comment, enter it in the '''Notes''' field.<br /> | ||
Click '''OK''' to create the task.</translate></li></ol> | Click '''OK''' to create the task.</translate></li></ol> | ||
<translate>< | == {{anchor|monitoring}}<translate><!--T:65--> | ||
== | Monitoring backups == | ||
<!--T:66--> | |||
You can view the status of your backup jobs in the GUI (''Monitoring'' -> ''Last Backup State'' or ''Job State'' -> ''Backups'') or [[Special:MyLanguage/SEP_sesam_Web_UI|SEP sesam Web UI]] (in v. ≥ [[Special:MyLanguage/SEP_sesam_Release_Versions|4.4.3 ''Beefalo V2'']]). The backup status overview provides detailed information about the last run of backup jobs, including the task name, start and stop time of the last backup, backup level, data size, throughput, assigned media pool, etc.</translate> | |||
<noinclude>{{Copyright}}</noinclude> | |||
Latest revision as of 13:30, 29 May 2023
This article describes Citrix XenServer backup procedure. For detailed information about Citrix XenServer requirements and configuration steps, see Citrix XenServer Requirements and Configuration.
SEP sesam provides efficient data protection for virtual machines (VMs) running on a Citrix XenServer. Virtual machine-consistent backup requests a snapshot of the VM. After creation, the snapshot is exported to a SEP sesam backup medium. VSS writers on Windows VMs are notified before snapshot creation, so all VSS-aware applications, such as MS SQL, are brought into a consistent state.
- CBT
- SEP sesam supports changed block tracking (CBT) for Citrix XenServer 7.3 and higher. The XenServer CBT feature provides incremental backup capabilities, making VM backups faster while saving storage space. XenServer backup with CBT is significantly faster than regular backup without CBT and the amount of I/O required for processing is reduced. With CBT, only the blocks that have changed since the last backup are backed up. Note that Citrix XenServer CBT is only available for XenServer Enterprise Edition. For details, see Changed Block Tracking (CBT).
- VSS and quiesced snapshots
- Note that VSS and quiesced snapshots of Windows VMs are only supported in Citrix Hypervisor 8.0 and earlier versions; they have been removed in Citrix Hypervisor ≥ 8.1' and version ≥ 9.0.x.x drivers. If you want to continue using the quiesced snapshot feature with Windows VMs hosted on Citrix Hypervisor 8.0 and earlier, keep your current 8.2.x.x version of the Windows I/O drivers and do not update to the 9.0.x.x drivers. For more information, see Citrix Hypervisor 8.1 Deprecations and removals.
For a list of supported Citrix XenServer versions, see support matrix.
Tip | |
|
Backup levels
SEP sesam supports all backup levels for Citrix XenServer backup: COPY, FULL, INC and DIFF.
- COPY: Back up the entire VM; note that a COPY backup cannot be used as a starting point for INC/DIFF backups and restores.
- FULL: Back up the entire VM.
Full backup uses CBT to allow differential and incremental backups. If you use Citrix XenServer lower than 7.3 or the server is not licensed for CBT, only COPY backups are possible. - INC: Back up VM data that has changed since the last (FULL, DIFF or INCR) backup.
- DIFF: Back up VM data that has changed since the last FULL backup.
Note | |
If you back up via a hypervisor and use an external disk, SEP sesam cannot back up the data on RDM disks or on a VM without attached SCSI controller(s). The data of such disks is silently skipped during the backup, so the backup savesets do not contain data for the external disk, while the backup is successful and no warning about the missing data is issued. If a VM with an external disk is restored with the option overwrite to the original VM, the disk is re-created and all existing data on the restore target is lost. To back up these hypervisors, you must add one or more SCSI controllers to the VM before performing a backup, even if there are no devices to use SCSI, or you have to install a SEP sesam Client on the virtual machine and perform an additional file or application backup to back up this data. |
Backing up the VMs and Xen templates
Create a new backup task for the Citrix Xen client containing the virtual machines. When backing up a Citrix XenServer, you can perform a hot (online) or cold (offline) backup of one VM per task. For details about backup configuration, see Standard Backup Procedure.
Tip | |
You can simplify the backup of multiple VMs by automatically creating tasks for VMs that are connected to the same host. For details, see Automating Backup Process. |
- From Main Selection -> Tasks -> By Clients, select Citrix client and click New Backup Task. The New Backup Task window opens.
- Specify the Source. Click the Browse button (big arrow) and select the VM you want to back up. By selecting the source, the task type and task name are set automatically.
- In v. ≥ 5.0.0 Jaglion, you can exclude individual virtual disk (VHD) from FULL/DIFF/INCR backup in two different ways:
- Use the big Browse button and deselect the disk you want to exclude from backup in the Client File View window.
- Enter the disk ID in the Exclude list field as follows:
- If you want to specify other options, such as the pre/post backup and restore commands, encryption, etc., click the corresponding tabs in the New Backup Task window.
- Click OK to create the task.
- If you want to start the newly created task immediately, right-click the name of the task and click Immediate Start. If you want to schedule the task, click New schedule under Main Selection -> Scheduling -> Schedules. For more details, see Creating a Schedule.
- Once you have configured a schedule, you must create a new backup event for it. Go to Main Selection -> Scheduling -> New Backup Event, click the Parameter tab and select FULL, INC or DIFF backup from the Backup level drop-down list. For detailed procedure, see Creating a Backup Event.
Note | |
Citrix XenServer allows you to have more virtual machines with the same name, however, if you select one of these as a backup source, backup fails. The following error appears: Backup failed. A virtual machine with the same name already exists. |
You can also get the name from Xen center or on the XenServer by executing command:
xe vm-list
Note | |
You can only configure one VM per backup task. |
Note | |
You cannot exclude VHDs from Copy backups. |
OR
-x <device number>
Tip | |
You can also add your backup task to an existing schedule by double-clicking the backup task, selecting the tab Schedules and adding it to one or more schedules. |
The backup is done online. If XenServer tools are installed on the VM, VSS-Writers are executed before the snapshot is created.
Metadata backup
The backup includes the XenServer pool database and the needed metadata of the pool.
Create a new backup task for the Xen master.
- From Main Selection -> Tasks -> By Clients, select Citrix client and click New Backup Task. The New Backup Task window opens.
- Specify the Source. Use the Browse button (big arrow) and select meta-data. By selecting the source, the task type and task name are set automatically.
- If you want to add a comment, enter it in the Notes field.
Click OK to create the task.
Note | |
Citrix recommends that you perform metadata backup via Citrix native backup options as often as necessary. |
Host data backup
This is a file backup of the Xen hypervisor without the VMs. This is required in special cases for Citrix support. You cannot recover this host backup directly to the hypervisor via SEP sesam.
Create a new backup task for each Xen host.
- From Main Selection -> Tasks -> By Clients, select Citrix client and click New Backup Task. The New Backup Task window opens.
- Specify the Source. Use the Browse button (big arrow) and select host-backup. By selecting the source, the task type and task name are set automatically.
- If you want to add a comment, enter it in the Notes field.
Click OK to create the task.
Monitoring backups
You can view the status of your backup jobs in the GUI (Monitoring -> Last Backup State or Job State -> Backups) or SEP sesam Web UI (in v. ≥ 4.4.3 Beefalo V2). The backup status overview provides detailed information about the last run of backup jobs, including the task name, start and stop time of the last backup, backup level, data size, throughput, assigned media pool, etc.