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

Re: [Xen-users] HELP PLEASE !! How to Recover deleted img file?


  • To: "Radu Stanescu" <radukn@xxxxxxxxx>
  • From: "Henning Sprang" <henning_sprang@xxxxxx>
  • Date: Fri, 2 Feb 2007 14:15:30 +0100
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 02 Feb 2007 05:15:52 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=sW4cr5Fjpu5K2xfErI5dwgz4+iV+WYCVQDZiX+9r4Ity/nV9ho4AXEpsmwiG7PdNH5pg2Wqu9uy4NASy4Pbxb3ViXi0YGk8fA3Xj2nFXGUpKtMicrUn35cSsLRPwEx5vOzWM1JvN4jVAuxJsfUlaAIBc4Rm4DC019e1vlU8AP80=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On 2/2/07, Radu Stanescu <radukn@xxxxxxxxx> wrote:
Hy today I accidentaly delete the img file of one of my domU. The guest is
still up and running.

Interesting, can you even login, and the system still works?
Then Xen is saving the file from being deleted totally until the vm is
shut down. After that, it will probably free the open file, and it
will be gone.

So don't stop the vm, and do a full rsync backup ASAP.

How can i recover the img file from which it was
loaded?
I tried lsof but i don't see any open file by xen regarding my domU

This is a generic linux problem and has nothing to do with Xen.

I think, if you once stop the vm and have not done an rsaync backup as
said above, you have  not much chances, but at very first, you should
stop the machine completely and not use the harddisk where the lost
image resided.

Go to linux recovery mailing lists and read about that.

As far as I know, when you don't use special techniques in advance,
(there is some libraray that makes rm not really delete stuff, AFAIK,
and for sure we all have backups, at least _after_ we lost important
data the first time, right?!), it's absolitely not easy to recover
lost files.

Heninng

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.