Unfortunately, I was deleted a KVM virtual machine VM, It has very huge data. How can i restore it?
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unfortunately, I was deleted a KVM virtual machine VM, It has very huge data. How can i restore it?
Hola,
Good to here with you.
Recently, I was deleted KVM Virtual Machine around 250GB File size. It has S4HANA Database. I tried to restore by using following tools (Photorec, foremost, extundelete).
By Using Photorec, ".cow" file is restored. But, i am getting an grub error when i create a new VM with this file.
By Using foremost, I got so many .qcow2 files. But all are below 100MB Size.
By Using extundelete, I am getting to run a command.
Can you suggest any other tools and procedure or any other solution. Please help me to solve my problem. This VM is very important to me and my team. It will gives more benefit to us.
I know this is after the fact but backups prevent this problem. I can't help with recovery but in the future you should always backup your data, vm or bare metal doesn't matter. Always backup everything you can't afford to lose from now on.
Not important enough for you to have a backup apparently. why is it so valuable now ?.
If photorec found the image, it should be usable - does it contain your data ?. If so, do you have any means to ensure it is actually valid - i.e. not corrupted ?. Grub not booting is the least of your worries - you should be able to mount the image as nbd in the host, or try booting the guest from a liveCD iso and take a look around. In need you can probably chroot into the image to fix grub. Do some research online.
As jefro suggested, the very first step with such oopsies is to STOP USING THE AFFECTED FILESYSTEM IMMEDIATELY.
Then you might get lucky with extundelete or photorec (in that order).
And yes, you probably want to restore ALL files related to that vm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.