Editing Virsh blockcommit
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<code>[[virsh]] blockcommit domain path [bandwidth] [--bytes] [base] [--shallow] [top] [--delete] [--keep-relative] [--wait [--async] [--verbose]] [--timeout seconds] [--active] [{--pivot | --keep-overlay}]</code> | <code>[[virsh]] blockcommit domain path [bandwidth] [--bytes] [base] [--shallow] [top] [--delete] [--keep-relative] [--wait [--async] [--verbose]] [--timeout seconds] [--active] [{--pivot | --keep-overlay}]</code> | ||
− | Requires at least [[QEMU | + | Requires at least [[QEMU]] 2.1 and [[kVM/libvirt|libvirt]]-1.2.9.<ref>https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit</ref> |
− | Review your security_driver configuration in <code> | + | Review your security_driver configuration in <code>/ect/libvirt/qemu.conf</code>. You may need to change it to none to allow <code>virsh blockcommit</code> |
:<code>security_driver = "none"</code><ref>https://github.com/milkey-mouse/backup-vm/issues/17#issuecomment-547843000</ref> | :<code>security_driver = "none"</code><ref>https://github.com/milkey-mouse/backup-vm/issues/17#issuecomment-547843000</ref> | ||
Line 11: | Line 11: | ||
:<code>--wait</code> | :<code>--wait</code> | ||
:<code>--verbose</code> | :<code>--verbose</code> | ||
− | |||
== Examples == | == Examples == | ||
+ | <pre>virsh blockcommit MY_DOMAIN_NAME vda --active --pivot | ||
+ | Successfully pivoted | ||
+ | </pre> | ||
− | + | <pre>virsh blockcommit MY_DOMAIN_NAME vda --active --pivot | |
− | + | Commit aborted | |
+ | </pre> | ||
− | + | <pre>virsh blockcommit MY_DOMAIN_NAME vda --active --pivot --wait --verbose | |
− | + | Block commit: [ 22 %] | |
+ | Successfully pivoted | ||
+ | </pre> | ||
− | + | <pre> | |
− | + | virsh blockcommit MY_DOMAIN_NAME hda --active --pivot | |
+ | error: invalid argument: top '/path/to/libvirt/MY_DOMAIN_NAME.qcow2' in chain for 'hda' has no backing file | ||
+ | </pre> | ||
− | + | Use: <code>[[virsh domblklist]] --details</code> to find your block name. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Journalctl errors == | == Journalctl errors == | ||
− | + | :[[libvirtd]][14189]: 2019-11-21 15:08:13.035+0000: 14192: error : qemuDomainBlockCommit:17568 : invalid argument: top '/path/to/file/VM_NAME.qcow2' in chain for 'hda' has no backing file | |
− | |||
− | |||
== Activities == | == Activities == | ||
− | * Create a [[KVM Live backup]] using <code>[[virsh | + | * Create a [[Virsh/Create Live backups|KVM Live backup]] using <code>[[virsh/virsh snapshot-create-as|virsh snapshot-create-as]]</code> and <code>[[virsh/virsh blockcommit|virsh blockcommit]]</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* {{virsh block}} | * {{virsh block}} | ||
+ | * <code>[[virsh domblklist]]</code> | ||
* <code>[[virsh console]]</code> | * <code>[[virsh console]]</code> | ||
− | + | ||
− | |||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:KVM]] | [[Category:KVM]] |
Advertising: