LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Rollback imageof kvm guest (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/rollback-imageof-kvm-guest-4175698128/)

laureanojm 07-22-2021 12:22 AM

Rollback imageof kvm guest
 
Good morning, I have a fedora server, in which I have kvm with virt-manager. The images of the guests are qcow2. Days ago by mistake 2 images of 2 guests were deleted. Both are in the snapshot the day before, but I can't put them back in the location where they were deleted. The snapshots are made with btrfs, the partition of the vm and the snapshots is the same

jefro 07-27-2021 02:28 PM

Hello.

I'll venture some questions since this has been sitting a while.

"The snapshots are made with btrfs, the partition of the vm and the snapshots is the same"
Are you saying the host or client is btrfs? I assume you mean host.

Something like this should bring file to the btrfs system if I get question correctly. https://fedoramagazine.org/recover-y...rfs-snapshots/

laureanojm 08-04-2021 07:00 AM

Hello, sorry for the delay in answering. yes, I mean the host. Before any problem, cp /mnt/snapshots/server/serverimage.qcow2 / mnt / vm / server / for example.
At this moment, when doing the example, cp throws the input / output error. Solve by copying with rsync and the --inplace function (at the end of the copy rsync also gave an error and began to copy again, but what was already copied was in its entirety and working.
Now, the cp and rsync errors, are they disk errors? btrfs partition? Do not know.


All times are GMT -5. The time now is 04:13 AM.