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

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] HELP PLEASE !! How to Recover deleted img file?
From: "Ulrich Windl" <ulrich.windl@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 02 Feb 2007 15:52:35 +0100
Delivery-date: Fri, 02 Feb 2007 06:52:53 -0800
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>
Organization: Universitaet Regensburg, Klinikum
Priority: normal
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 2 Feb 2007 at 14:46, Radu Stanescu 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

UNIX semantics mean that the file will go away once it's no longer open. Can 
you 
do something like (please refine!) in DomU?:

tar cf - / | rsh server_with_lots_of_space "cat >backup.tar"

You could also try a blockwise dd of the partitions, but I would not recommend 
it.

Ulrich


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