WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: HELP PLEASE !! How to Recover deleted img file?
From: "Radu Stanescu" <radukn@xxxxxxxxx>
Date: Fri, 2 Feb 2007 15:39:55 +0200
Delivery-date: Fri, 02 Feb 2007 05:39:48 -0800
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=URGjJMB7yfqJX6QyyfiEYnJl//Ny1j84IGWxPwhx7Tmm7QRQu2XdlqJsAX7GKMYgLnv68PC/RrJSB9HIi6cDN3iL03P9ZEAdqMxoFb5XZrB5ninohF7JNSHtjJF044jKRgxhJxAm/IC4eUp/WU3YkaFCQe7oNORzt6JOc5mM6VQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <a65866940702020446i7b2d722asabe08d420f373854@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <a65866940702020446i7b2d722asabe08d420f373854@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hewh!

I did it! I recovered my img file! :D  Ext3 doesn't permite undelete, but hopefully xen mount img file as loop devices so doing a "losetup -a" will show xen mounted devices then with dd you can recover from the /dev/loopXX to a img file. It is recommended to stop on the domU all daemons that could write anything to the hdd while doing the dd. after recovery, fsck the recovered file and recreate the vm from the recovered file.

Thank you very much for you help guys!



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. 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

Thanks!

--
Radu Stanescu




--
Radu Stanescu
Best Internet Security Systems
www.biss.ro
radukn@xxxxxxxxx
radukn@xxxxxxx
0722.234.788
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users