Possible Duplicate:
Is it possible to recover filed removed by rm in linux?
I'm using a RHEL6 server RAID10 with a ext4 fs, with a volumeGroup (lvm2) VolGroup00
created on a PV /dev/sda5
[831Go]. The logical volume concerned is /dev/VolGroup00/LogVol06
[683Go].
The path where LogVol06
is mounted is /data/
.
A virtual environment was creating on this server. We use Libvirt+qemu (managed with Virt-Manager). And the VMs disks image are stored in /data/storage/. (files: v_data.img [74Go] & v_apps.img [26Go])
I accidently use tar -cvf v_data.img v_data.tgz
instead of tar -cvf v_data.tgz v_data.img
.
Yes,... my 74Go v_data.img file was overwritten by a 10k empty file...
And libvirtd daemon wasn't running as this time so I have no file PID. (Well, I cannot still access Virt-manager because libvritd wont start, but this is another problem..)
3 Months ago, I created some snapshots through Virt-Manager for the v_data_img
disk image.
But I cannot restore snapshots because Libvirtd wont start. (still investigating on the source of the issue).
Also, I created a copy of the file just before my mistake using cp /data/storage/v_data_img /data/
but I unfortunately also removed it using rm -rf
just before the tar command, so no more backup...
I have no physical access to this server. I cannot reboot the system because there're some encrypted logical volumes which will ask a passphrase at boot. It will require someone to enter the password but this is currently no possible. Also, there is not external storage attached to the server
This VM has some very very important informations.
I'm quite lost, and I'm not familiar with recovering files process under Linux. I don't really know what solution will fit to my problem... (Photorec? no external storage..., debugfs ? foremost ? etc.)