Comments (25)
confirmed. The problem is in this for:
for block_device in "$block_devices"; do
quotes around $block_devices
creates a single string with all available devices.
from libvirtkvm-scripts.
Thanks, Davide!
I checked, and it appears that the quotes are already there:
[root@dualix images-backup-gear]# grep -n block_devices fi-backup.sh
128: local block_devices=
153: block_devices=$($VIRSH -q -r domblklist "$domain_name" --details | awk '"disk"==$2 {print $4}')
160: for block_device in "$block_devices"; do
213: local block_devices=$($VIRSH -q -r domblklist "$domain_name" --details | awk '"disk"==$2 {print $4}')
221: print_v d "Block devices to be consolidated:\n $(echo $block_devices | sed 's/ /\n/g')"
223: for block_device in "$block_devices"; do
[root@dualix images-backup-gear]# grep -n block_devices fi-backup.sh | grep for
160: for block_device in "$block_devices"; do
223: for block_device in "$block_devices"; do
However, I now remember (I am using CentOS 7; maybe this is the problem?), I added the following to your code (after # Add this (SV)):
Executables
QEMU_IMG="/usr/bin/qemu-img"
VIRSH="/usr/bin/virsh"
KVM="/usr/bin/kvm"
if [ -x "/usr/bin/qemu-kvm" ]; then
KVM="/usr/bin/qemu-kvm"
fi
Add this! (SV, for CentOS7)
if [ -x "/usr/libexec/qemu-kvm" ]; then
KVM="/usr/libexec/qemu-kvm"
fi
because:
[root@dualix /]# find / -type f -name "kvm"
[root@dualix /]# find / -type f -name "qemu-kvm"
/usr/libexec/qemu-kvm
[root@dualix /]# grep -i centos /etc/*
/etc/redhat-release:CentOS Linux release 7.1.1503 (Core)
/etc/system-release:CentOS Linux release 7.1.1503 (Core)
from libvirtkvm-scripts.
You are welcome.
I am working on the first issue. Can you open another ticket for the second, please?
from libvirtkvm-scripts.
sorry, maybe I just misunderstood; I just wanted to say that the quotes are already in my version of the fi-backup.sh script:
[root@dualix images-backup-gear]# grep -n block_devices fi-backup.sh | grep for
160: for block_device in "$block_devices"; do
223: for block_device in "$block_devices"; do
from libvirtkvm-scripts.
Yep, they shouldn't :)
from libvirtkvm-scripts.
Davide,
do you mean that just removing the double quotes in two occurrences above will fix the script?
from libvirtkvm-scripts.
@svorobyov, before I merge into master, can you please check this PR out?
from libvirtkvm-scripts.
last night I removed double quotes in the two following lines of the old script
[root@dualix images-backup-gear]# grep -n block_devices fi-backup.sh | grep for
160: for block_device in "$block_devices"; do
223: for block_device in "$block_devices"; do
and everything went well:
===== 2015-05-26 03:27:05, backing up getafix.intertex.se =====
[DEB] libVirt version '1.2.8' is supported
[DEB] /usr/bin/qemu-img version '1.5.3' is supported
[DEB] KVM version '1.5.3' is supported
[DEB] Snapshot for domain 'getafix.intertex.se' requested
[DEB] Using timestamp '20150526-032705'
[DEB] Snapshotting block devices for 'getafix.intertex.se' using suffix 'bimg-20150526-032705'
[VER] Snapshot for block devices of 'getafix.intertex.se' successful
[VER] Copy backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150525-032702' to '/var/lib/libvirt/images-backups/getafix-hda.bimg-20150525-032702'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.bimg-20150524-032708'
[VER] Copy backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150525-032702' to '/var/lib/libvirt/images-backups/getafix-hdb.bimg-20150525-032702'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.bimg-20150524-032708'
I will test your new script as soon as possible
from libvirtkvm-scripts.
Just checked your latest/newest script in the production environment, and everything went well:
===== 2015-05-26 08:59:06, backing up getafix.intertex.se =====
[DEB] libVirt version '1.2.8' is supported
[DEB] /usr/bin/qemu-img version '1.5.3' is supported
[DEB] KVM version '2.0.0,' is supported
[DEB] Snapshot for domain 'getafix.intertex.se' requested
[DEB] Using timestamp '20150526-085906'
[DEB] Snapshotting block devices for 'getafix.intertex.se' using suffix 'bimg-20150526-085906'
[VER] Snapshot for block devices of 'getafix.intertex.se' successful
[VER] Copy backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150526-032705' to '/var/lib/libvirt/images-backups/getafix-hda.bimg-20150526-032705'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.bimg-20150525-032702'
[VER] Copy backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-032705' to '/var/lib/libvirt/images-backups/getafix-hdb.bimg-20150526-032705'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.bimg-20150525-032702'
I will check consolidation later today.
Many thanks, Davide!
from libvirtkvm-scripts.
Davide,
about consolidation:
- shouldn't it be done only when the VM is stopped?
- or it's live? (i.e., can be performed while the VM is running)
This should be specified in the README.md
from libvirtkvm-scripts.
Split/Consolidation are designed to be performed on live systems. :)
Nevertheless, at this stage of testing, I'd recommend you to take a backup before trying out the script.
I will update the README with that. Thanks.
from libvirtkvm-scripts.
What is the disaster recovery procedure for domain A, with images in directory B, backup directory C?
Is it:
- clean up the directory B from all images for domain A;
- copy the desired chains of the backing images for domain A from C to B (can the chains be of different lengths, e.g., I want to recover disk 1 to the state two days back and disk 2 to the state three days back?);
- specify (in virt-manager or similar) that the disks for A are the last images of the chains in 2 (this is important, I think; otherwise the VM state description may be inconsistent)
- consolidate for domain A (which will use chains of images in B)
from libvirtkvm-scripts.
Yes, that is the recovery procedure.
I am writing a small guide with these details (and I will use your description)
from libvirtkvm-scripts.
@svorobyov https://gist.github.com/dguerri/70efcfe0c3ae0fac8bd7 what do you think?
from libvirtkvm-scripts.
@svorobyov I updated this PR with improved doc and tests.
I will merge it into master as soon as you confirm it is working for you.
If you have some idea for additional tests, I will be happy to add it.
from libvirtkvm-scripts.
Two single-disk VMs seem to successfully consolidate (I will now proceed to testing consolidating for a third, two-disk VM). Here's the second, quite long consolidation chain:
[DEB] libVirt version '1.2.8' is supported
[DEB] /usr/bin/qemu-img version '1.5.3' is supported
[DEB] QEMU/KVM version '2.0.0,' is supported
[DEB] Consolidation of block devices for 'washi.ingate.se' requested
[DEB] Block devices to be consolidated:
/var/lib/libvirt/images/washi.ingate.bimg-20150526-180404
[DEB] Consolidation of block device: '/var/lib/libvirt/images/washi.ingate.bimg-20150526-180404' for 'washi.ingate.se'
[DEB] Parent block device: '/var/lib/libvirt/images/washi.ingate.bimg-20150526-085905'
[VER] Consolidation of block device '/var/lib/libvirt/images/washi.ingate.bimg-20150526-180404' for 'washi.ingate.se' successful
[VER] Deleting old backup files for 'washi.ingate.se'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150526-085905' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150526-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150526-085905'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150526-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150526-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150525-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150526-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150525-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150525-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150524-032704'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150525-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150524-032704'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150524-032704' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150523-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150524-032704'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150523-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150523-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150522-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150523-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150522-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150522-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150521-032704'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150522-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150521-032704'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150521-032704' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150520-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150521-032704'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150520-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150520-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150519-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150520-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150519-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150519-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150518-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150519-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150518-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150518-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150517-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150518-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150517-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150517-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150516-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150517-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150516-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150516-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150515-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150516-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150515-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150515-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150514-032718'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150515-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150514-032718'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150514-032718' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150513-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150514-032718'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150513-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150513-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150512-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150513-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150512-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150512-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150511-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150512-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150511-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150511-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150510-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150511-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150510-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150510-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150509-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150510-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150509-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150509-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150508-033402'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150509-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150508-033402'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150508-033402' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150507-032838'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150508-033402'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150507-032838'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150507-032838' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150506-032742'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150507-032838'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150506-032742'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150506-032742' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150505-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150506-032742'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150505-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150505-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150504-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150505-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150504-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150504-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150503-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150504-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150503-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150503-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150502-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150503-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150502-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150502-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150501-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150502-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150501-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150501-032702' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150430-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150501-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150430-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150430-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150429-032703'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150430-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150429-032703'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150429-032703' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150428-032701'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150429-032703'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150428-032701'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150428-032701' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150427-160802'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150428-032701'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150427-160802'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150427-160802' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.bimg-20150427-153048'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150427-160802'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.bimg-20150427-153048'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150427-153048' for 'washi.ingate.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/washi.ingate.se'
[VER] Deleting backing file '/var/lib/libvirt/images/washi.ingate.bimg-20150427-153048'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/washi.ingate.se'
[DEB] Processing old backing file '/var/lib/libvirt/images/washi.ingate.se' for 'washi.ingate.se'
[WAR] '/var/lib/libvirt/images/washi.ingate.se' doesn't seem to be a backup backing file image.
[WAR] Stopping backing file chain removal (manual intervetion might be required)
[WAR] This is expected if this is the first consolidation
from libvirtkvm-scripts.
Consolidation for a two-disk VM was also completely successful:
[DEB] libVirt version '1.2.8' is supported
[DEB] /usr/bin/qemu-img version '1.5.3' is supported
[DEB] QEMU/KVM version '2.0.0,' is supported
[DEB] Consolidation of block devices for 'getafix.intertex.se' requested
[DEB] Block devices to be consolidated:
/var/lib/libvirt/images/getafix-hda.bimg-20150526-180408 /var/lib/libvirt/images/getafix-hdb.bimg-20150526-180408
[DEB] Consolidation of block device: '/var/lib/libvirt/images/getafix-hda.bimg-20150526-180408' for 'getafix.intertex.se'
[DEB] Parent block device: '/var/lib/libvirt/images/getafix-hda.bimg-20150526-085906'
[VER] Consolidation of block device '/var/lib/libvirt/images/getafix-hda.bimg-20150526-180408' for 'getafix.intertex.se' successful
[VER] Deleting old backup files for 'getafix.intertex.se'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150526-085906' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.bimg-20150526-032705'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150526-085906'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hda.bimg-20150526-032705'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150526-032705' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.bimg-20150525-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150526-032705'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hda.bimg-20150525-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150525-032702' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.bimg-20150524-032708'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150525-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hda.bimg-20150524-032708'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150524-032708' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.bimg-20150523-032706'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150524-032708'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hda.bimg-20150523-032706'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150523-032706' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hda.qcow2'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hda.bimg-20150523-032706'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hda.qcow2'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hda.qcow2' for 'getafix.intertex.se'
[WAR] '/var/lib/libvirt/images/getafix-hda.qcow2' doesn't seem to be a backup backing file image.
[WAR] Stopping backing file chain removal (manual intervetion might be required)
[WAR] This is expected if this is the first consolidation
[DEB] Consolidation of block device: '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-180408' for 'getafix.intertex.se'
[DEB] Parent block device: '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-085906'
[VER] Consolidation of block device '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-180408' for 'getafix.intertex.se' successful
[VER] Deleting old backup files for 'getafix.intertex.se'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-085906' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-032705'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-085906'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-032705'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-032705' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.bimg-20150525-032702'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150526-032705'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hdb.bimg-20150525-032702'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150525-032702' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.bimg-20150524-032708'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150525-032702'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hdb.bimg-20150524-032708'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150524-032708' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.bimg-20150523-032706'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150524-032708'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hdb.bimg-20150523-032706'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150523-032706' for 'getafix.intertex.se'
[DEB] Parent backing file: '/var/lib/libvirt/images/getafix-hdb.qcow2'
[VER] Deleting backing file '/var/lib/libvirt/images/getafix-hdb.bimg-20150523-032706'
[DEB] Next file in backing file chain: '/var/lib/libvirt/images/getafix-hdb.qcow2'
[DEB] Processing old backing file '/var/lib/libvirt/images/getafix-hdb.qcow2' for 'getafix.intertex.se'
[WAR] '/var/lib/libvirt/images/getafix-hdb.qcow2' doesn't seem to be a backup backing file image.
[WAR] Stopping backing file chain removal (manual intervetion might be required)
[WAR] This is expected if this is the first consolidation
from libvirtkvm-scripts.
Many thanks, Davide! I think you can now merge the development branch into master.
from libvirtkvm-scripts.
👍 Waiting for Travis-CI :)
from libvirtkvm-scripts.
So, removing quotes will work only if there are no spaces in image file names.
I had to refactor that piece of code quite a bit but now it is definitely more robust.
from libvirtkvm-scripts.
what is Travis-CI? I do not have anything related in my clone of LibVirtKvm-scripts/
from libvirtkvm-scripts.
https://travis-ci.org/dguerri/LibVirtKvm-scripts/builds
You should have a file named .travis.yml
from libvirtkvm-scripts.
I will need to study it carefully before adapting to CentOS, since apt-get won't work (it's yum based)
from libvirtkvm-scripts.
Unfortunately you can't run it locally :(
That's why it takes forever to get a working CI test!
from libvirtkvm-scripts.
Issue fixed. Fix merged in master.
from libvirtkvm-scripts.
Related Issues (20)
- Any plans for using active blockcommit? HOT 9
- Consolidating a not running domain results in a Backup of its single files HOT 4
- Exit with an error when there are no running domains and -c is used HOT 1
- Support of different backup strategies; be not dependend on cp HOT 2
- Consolidation: Deleting old backing files does not work HOT 7
- Question: XML? HOT 4
- TravisCI tests and KVM/libvertd seem incompatible HOT 2
- XML dumps HOT 5
- fi_backup fails when local LANG is fr_FR.UTF-8
- fails if a physical drive is attached to VM HOT 2
- Error consolidating block device: block copy still active HOT 5
- blockcommit completes successfully if I change virtual disk Cache mode from Hypervisor default to none
- The LICENSE file should contain the full license. HOT 1
- Add ability to specify/exclude disks to backup for a domain
- consolidation - failed to get shared write lock HOT 4
- unable to execute QEMU command 'transaction' HOT 7
- SC1087 fix causes files to not be found in consolidation HOT 1
- No clear documentation on restoring backups HOT 3
- duplicate files will get overwritten
- consolidation fails: "numerical result out of range" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libvirtkvm-scripts.