[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Any way to recover after qemu-img snapshot -a? desparate!

From: Aaron Williams
Subject: [Qemu-discuss] Any way to recover after qemu-img snapshot -a? desparate!
Date: Fri, 29 May 2015 02:55:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

First some background,

I managed to screw up a VM running an older version of Ubuntu so it
wouldn't boot and was going to attempt to fix it by restoring the boot
partition from an earlier snapshot. Unfortunately I didn't fully read
the documentation saying that it would blow away anything newer than the
snapshot. In any event, at this point it looks like all data is lost.

What happened is that my snapshot list looks something like this
according to qemu-img snapshot -l:

Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
                                    0 1969-12-31 16:00:00   00:00:00.000
                                    0 1969-12-31 16:00:00   00:00:00.000
                                    0 1969-12-31 16:00:00   00:00:00.000
1         broken-boot               0 2015-05-29 00:56:26   00:00:00.000

I had made some earlier snapshots, but those were created through
virt-manager and it didn't insert the proper labels in the qcow2 image.

I later learned that virsh shows the following:
Name                 Creation Time             State
 Broken               2015-05-29 01:06:03 -0700 shutoff
 post-con 2014        2014-11-22 02:44:45 -0800 running
 snapshot1            2015-04-06 12:23:14 -0700 running
 Working              2014-11-07 00:32:45 -0800 running

In any event, I issues the following command which seems to have totally
nuked everything. I backed up the qcow2 file, unfortunately it was not
before I did this:

qemu-img snapshot -a "" vm1.qcow2

Is there any way I can recover either my "snapshot1" or "Broken" image
from the qcow2 file or is all the data forever lost? There is a lot of
critical data here.

I should have read the man pages and backed up the file before I started
this but one doesn't always think straight when suffering from the flu.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]