This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
Using changed block tracking with a virtual disk image
The changed block tracking capability can be enabled and disabled for individual virtual disk images (VDIs).
Incremental backup sets
When you enable changed block tracking for a VDI you start a new set of incremental backups for that VDI. The first action you must take when starting a set of incremental backups is to create a baseline snapshot and to backup its full data.
After you disable changed block tracking, or after changed block tracking is disabled by XenServer or a user, no further incremental backups can be added to this set. If changed block tracking is enabled again, you must take another baseline snapshot and start a new set of incremental backups.
You cannot compare VDI snapshots taken as part of one set of incremental backups with VDI snapshots taken as part of a different set of incremental backups.
If you attempt to list the changed blocks between snapshots that are part of different sets, you get an error with the message Source and target VDI are unrelated
.
You can use some or all of the data in previous incremental backup sets to create VDIs that you can use to restore the state of a VDI. For more information, see Coalescing changed blocks onto a base VDI.
Enabling changed block tracking for a VDI
By default, changed block tracking is not enabled for a VDI.
You can enable changed block tracking by using the enable_cbt
call.
When changed block tracking is enabled for a VDI, additional log files are created on the SR to list the changes since the last backup. Blocks of 64 kB within the VDI are tracked and changes to these blocks recorded in the log layer.
The associated VM remains in the same state as before changed block tracking was enabled.
To enable changed block tracking, an SR must be attached, be writable, and have enough free space for the log files to be created on it. The associated VM can be in any state when changed block tracking is enabled or disabled. It is not required that the VM be offline.
Changed block tracking can only be enabled for a VDI that is one of the following types:
-
user
-
system
In addition, if the VDI.on_boot
field is set to reset
, you cannot enable changed block tracking for the VDI.
Examples
You can use any of our supported language bindings to enable changed block tracking for a VDI. The following examples show how to do it in Python and at the xe command line.
Python:
session.xenapi.VDI.enable_cbt(<vdi_ref>)
<!--NeedCopy-->
xe command line:
xe vdi-enable-cbt uuid=<vdi-uuid>
<!--NeedCopy-->
Errors
You might see the following errors when using this call:
VDI_MISSING:
-
The call cannot find the VDI.
Check that the reference or UUID you are using to refer to the VDI is correct. Check that the VDI exists.
VDI_INCOMPATIBLE_TYPE:
-
The VDI is of a type that does not support changed block tracking.
Check that the type of the VDI is
system
oruser
. You can use theget_type
call to find out the type of a VDI. If your VDI is an incompatible type, you cannot enable changed block tracking. For more information, see Checking the type of a VDI or VDI snapshot.
VDI_ON_BOOT_MODE_INCOMPATIBLE_WITH_OPERATION:
-
The value of the
on_boot
field of the VDI is set toreset
.Check the value of the
on_boot
field by using theget_on_boot
call. If appropriate, you can use theset_on_boot
call to change the value of this field topersist
.
SR_NOT_ATTACHED, SR_HAS_NO_PBDS:
-
The call cannot find an attached SR.
Check that there is an SR attached to the host and that the SR is writable. You cannot enable changed block tracking unless the host has access to an SR to which the changed block information can be written.
If you attempt to enable changed block tracking for a VDI that already has changed block tracking enabled, no error is thrown.
Disabling changed block tracking for a VDI
You can disable changed block tracking for a VDI by using the disable_cbt
call.
When changed block tracking is disabled for a VDI, the active disks are detached and reattached without the log layer. The associated VM remains in the same state as before changed block tracking was disabled.
Examples
You can use any of our supported language bindings to disable changed block tracking for a VDI. The following examples show how to do it in Python and at the xe command line.
Python:
session.xenapi.VDI.disable_cbt(<vdi_ref>)
<!--NeedCopy-->
xe command line:
xe vdi-disable-cbt uuid=<vdi-uuid>
<!--NeedCopy-->
Errors
You might see the same sorts of errors for this call and you might for the enable_cbt
call.
If you attempt to disable changed block tracking for a VDI that already has changed block tracking disabled, no error is thrown.
Checking whether changed block tracking is enabled
The value of the boolean cbt_enabled
VDI field shows whether changed block tracking is enabled for that VDI.
You can query the value of this field by using the get_cbt_enabled
call.
A return value of true
indicated that changed block tracking is enabled for this VDI.
Examples
You can use any of our supported languages to check whether a VDI has changed block tracking enabled. The following examples show how to do it in Python and at the xe command line.
Python:
is_cbt_enabled = session.xenapi.VDI.get_cbt_enabled(<vdi_ref>)
<!--NeedCopy-->
xe command line:
xe vdi-param-get param-name=cbt-enabled uuid=<vdi-uuid>
<!--NeedCopy-->
Share
Share
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.