Unable to delete KVM snapshot
-
@emad-r said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@jaredbusch said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
Hi,
What is the reasoning for doing external snapshots and going against the default (where everything is saved in one file), I use virt but I love virt-manager and with that it always does the snap internally.
Any benefits of external aside being the ESXi way?
Cause it seems here that what is causing the issue, and I recall somewhere I read the qcow2 expects everything to be in 1 file.
I just read @stacksofplates basically what he says.
because you cannot copy the file off to backup when you use the internal snapshot
Interesting I dont take VM backup frequently, when I do I rsync the whole VM file.
rsync --progress --inplace -h -W /var/lib/libvirt/images/VM/centos7.0-clone.qcow2 [email protected]:/var/lib/libvirt/images/VM/centos7.0-clone.qcow2
This after the initial copy, if you are extra paranoid you can take the file everytime if you dont trust rsync algorithms.
But it is interesting this external snapshot approach, how much are the sizes of external snapshots roughly ? I know it depends but what are we dealing with here. 100 MB ?
You have to shut the VM off to just rsync the drive. This way you can leave the VM on.
You don’t copy the external snapshot. You take a snapshot and copy the backing store. Then blockcommit (merge) the snapshot back into the original image.
No need if you freeze the filesystem first then rsync. but for this I recommend taking each time the whole file with rsync
Uh there’s no difference. If you freeze the system it can’t be used. This is to run on live systems so they remain running the whole time.
-
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@jaredbusch said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
Hi,
What is the reasoning for doing external snapshots and going against the default (where everything is saved in one file), I use virt but I love virt-manager and with that it always does the snap internally.
Any benefits of external aside being the ESXi way?
Cause it seems here that what is causing the issue, and I recall somewhere I read the qcow2 expects everything to be in 1 file.
I just read @stacksofplates basically what he says.
because you cannot copy the file off to backup when you use the internal snapshot
Interesting I dont take VM backup frequently, when I do I rsync the whole VM file.
rsync --progress --inplace -h -W /var/lib/libvirt/images/VM/centos7.0-clone.qcow2 [email protected]:/var/lib/libvirt/images/VM/centos7.0-clone.qcow2
This after the initial copy, if you are extra paranoid you can take the file everytime if you dont trust rsync algorithms.
But it is interesting this external snapshot approach, how much are the sizes of external snapshots roughly ? I know it depends but what are we dealing with here. 100 MB ?
You have to shut the VM off to just rsync the drive. This way you can leave the VM on.
You don’t copy the external snapshot. You take a snapshot and copy the backing store. Then blockcommit (merge) the snapshot back into the original image.
No need if you freeze the filesystem first then rsync. but for this I recommend taking each time the whole file with rsync
Uh there’s no difference. If you freeze the system it can’t be used. This is to run on live systems so they remain running the whole time.
I guess I need to look into your backup script thing one of these days.
The systems I want to backup are not stateful, like yours, but it will give me a starting point.
-
@jaredbusch said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@jaredbusch said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
Hi,
What is the reasoning for doing external snapshots and going against the default (where everything is saved in one file), I use virt but I love virt-manager and with that it always does the snap internally.
Any benefits of external aside being the ESXi way?
Cause it seems here that what is causing the issue, and I recall somewhere I read the qcow2 expects everything to be in 1 file.
I just read @stacksofplates basically what he says.
because you cannot copy the file off to backup when you use the internal snapshot
Interesting I dont take VM backup frequently, when I do I rsync the whole VM file.
rsync --progress --inplace -h -W /var/lib/libvirt/images/VM/centos7.0-clone.qcow2 [email protected]:/var/lib/libvirt/images/VM/centos7.0-clone.qcow2
This after the initial copy, if you are extra paranoid you can take the file everytime if you dont trust rsync algorithms.
But it is interesting this external snapshot approach, how much are the sizes of external snapshots roughly ? I know it depends but what are we dealing with here. 100 MB ?
You have to shut the VM off to just rsync the drive. This way you can leave the VM on.
You don’t copy the external snapshot. You take a snapshot and copy the backing store. Then blockcommit (merge) the snapshot back into the original image.
No need if you freeze the filesystem first then rsync. but for this I recommend taking each time the whole file with rsync
Uh there’s no difference. If you freeze the system it can’t be used. This is to run on live systems so they remain running the whole time.
I guess I need to look into your backup script thing one of these days.
The systems I want to backup are not stateful, like yours, but it will give me a starting point.
It's pretty much what you did here with some other crap, like an interactive part. I should probably add more logic to it, it was just a quick thing I put together. I also mostly just backed up the data volumes. The OS 99% of the time is a separate disk from the data so I just back up the data.
-
@stacksofplates said in Unable to delete KVM snapshot:
@jaredbusch said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
@jaredbusch said in Unable to delete KVM snapshot:
@emad-r said in Unable to delete KVM snapshot:
Hi,
What is the reasoning for doing external snapshots and going against the default (where everything is saved in one file), I use virt but I love virt-manager and with that it always does the snap internally.
Any benefits of external aside being the ESXi way?
Cause it seems here that what is causing the issue, and I recall somewhere I read the qcow2 expects everything to be in 1 file.
I just read @stacksofplates basically what he says.
because you cannot copy the file off to backup when you use the internal snapshot
Interesting I dont take VM backup frequently, when I do I rsync the whole VM file.
rsync --progress --inplace -h -W /var/lib/libvirt/images/VM/centos7.0-clone.qcow2 [email protected]:/var/lib/libvirt/images/VM/centos7.0-clone.qcow2
This after the initial copy, if you are extra paranoid you can take the file everytime if you dont trust rsync algorithms.
But it is interesting this external snapshot approach, how much are the sizes of external snapshots roughly ? I know it depends but what are we dealing with here. 100 MB ?
You have to shut the VM off to just rsync the drive. This way you can leave the VM on.
You don’t copy the external snapshot. You take a snapshot and copy the backing store. Then blockcommit (merge) the snapshot back into the original image.
No need if you freeze the filesystem first then rsync. but for this I recommend taking each time the whole file with rsync
Uh there’s no difference. If you freeze the system it can’t be used. This is to run on live systems so they remain running the whole time.
I guess I need to look into your backup script thing one of these days.
The systems I want to backup are not stateful, like yours, but it will give me a starting point.
It's pretty much what you did here with some other crap, like an interactive part. I should probably add more logic to it, it was just a quick thing I put together. I also mostly just backed up the data volumes. The OS 99% of the time is a separate disk from the data so I just back up the data.
Well, I also need a NAS to store things on until I can upload them too so I should work on that...
-
@stacksofplates said in Unable to delete KVM snapshot:
Uh there’s no difference. If you freeze the system it can’t be used. This is to run on live systems so they remain running the whole time.
What no coffee break for servers !!!
-
@emad-r said in Unable to delete KVM snapshot:
@stacksofplates said in Unable to delete KVM snapshot:
Uh there’s no difference. If you freeze the system it can’t be used. This is to run on live systems so they remain running the whole time.
What no coffee break for servers !!!
They definitely get a break if you pour coffee on them.