LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 02-18-2022, 04:07 AM   #1
vinayborra
LQ Newbie
 
Registered: Feb 2022
Posts: 1

Rep: Reputation: 0
Unhappy 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.


Thanks in advance.
 
Old 02-18-2022, 06:42 AM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
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.
 
Old 02-18-2022, 07:14 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by vinayborra View Post
This VM is very important to me and my team.
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.
 
Old 02-18-2022, 03:49 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I might be tempted to pull plug, boot to a live media that has testdisk/photorec and see what you can get.
 
Old 02-19-2022, 06:15 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[US politics] [unfortunately concerns us all] Censorship - Alternative Data ondoho General 73 02-17-2017 10:04 PM
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM svandyk Linux - Networking 1 09-23-2011 06:45 AM
A very very very very big problem!! Elbryan Linux - Software 2 09-23-2005 05:56 AM
Unfortunately the time has come... ./usr/stevo Linux - Software 6 04-07-2005 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration