Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am hoping I can get some help here. I have a server that is hosted with a very large server hosting company and today the server became unavailable.

On contacting the company they said that the server seems to have a connection issue and they will investigate it.

Following a few tickets it was told to me that the VPS is corrupt and they are attempting to run a repair on the VDA. I was then told that the repair had failed and that an attempt in a recovery mode to access the files off the disk also failed.

I have a backup snapshot which unbelievable has also failed. So I am stuck.

I have now requested that they give me a temporary server and that they copy the corrupt VDA image onto the new machine so that I can have a go at getting the data off.

I need to get the /var/lib/mysql data.

I am pretty new to VDA disk images but I am very competent with Linux.

Is there anyone out there who could help me with some guidance on recovering some files off this disk.

Below is a bit of debugging information that I have been given by my hosting company.

This image appears to be corrupt. I have not been able to access it via a recovery image and it is reporting as "raw" (a type of disk image) when the image is intended to be qcow2, this suggests damage to the filesystem. I am attempting to repair the image.

I am incredibly sorry to say that this machine image is unrecoverable.

The machine initially failed when starting with this error

error: Failed to start domain vps-15144322
error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/3
qemu-kvm: -drive file=/var/lib/libvirt/images/vps-15144322.img,if=none,id=drive-virtio-    disk0,format=qcow2,cache=unsafe: could not open disk image /var/lib/libvirt/images/vps-  15144322.img: Invalid argument

This error states that the image format is incorrect, inspecting the image shows:

image: /mnt/sdh/vps-15144322.img
file format: raw
virtual size: 889G (954997407744 bytes)
disk size: 72G

Which means the image is reporting as raw, this often denotes a corruption in the filesystem.

This sort of corruption can often be fixed by trying to convert the image, I attempted this but the resulting image still would not boot.

qemu-img convert -O qcow2 -o preallocation=metadata /mnt/sdh/vps-15144322.img /mnt/sdh/vps-15144322.img.qcow2

So now I have a new VPS with the original VPS corrupt disk image copied onto it.

If there is any more information I can give, please let me know.

Thanks in advance Dkn

share|improve this question
Now I guess you see the value of backups. –  Iain Jan 19 at 20:18
Wait, those idiots tried to do recovery operations on the original image and not a copy of it? If there was any data to be had, it's probably gone now, thanks to their bumbling. It's time to restore your backups...at another provider. –  Michael Hampton Jan 24 at 0:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.