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

Re: [Xen-users] Lost images..


  • To: "'Ian Campbell'" <Ian.Campbell@xxxxxxxxxx>
  • From: "Stephan Viljoen" <steph@xxxxxxxxx>
  • Date: Thu, 26 Jun 2014 16:50:53 +0200
  • Cc: xen-users@xxxxxxxxxxxxx
  • Delivery-date: Thu, 26 Jun 2014 14:52:26 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: AQKKZfWp0pxzy0XOQQctciao48mbzgGjI+DrmgCpizA=

Sorry for the spam , but hopefully I'm posting more meaningful information as 
I'm figuring this out.

Ian , seems like my domains are using blkback so I'm guessing those two 
processes : 2567 and 2568 are the ones keeping my images open for Xen ? How do 
I actually link the /dev/loop file to the actual image and then copy / undelete 
it ?

2354 ?        Sl     3:37 /usr/lib/xen/bin/qemu-dm -d 4 -serial pty 
-domain-name test-01 -videoram 4 -k en-us -vnc 0.0.0.0:0 -vncunused -M xenpv
 2567 ?        S      1:15 [blkback.4.xvda]
 2568 ?        S      2:11 [blkback.4.xvdb]

Thanks a ton for the help.
-steph


-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxx] 
On Behalf Of Ian Campbell
Sent: Thursday, June 26, 2014 2:58 PM
To: Stephan Viljoen
Cc: xen-users@xxxxxxxxxxxxx
Subject: Re: [Xen-users] Lost images..

On Thu, 2014-06-26 at 14:41 +0200, Stephan Viljoen wrote:
> I just made one hell of screw up by accidently deleting the wrong 
> folder containing all my xend domain images. Now the strange part is , 
> all those hosts are still alive and thankfully Iâm able to make 
> backups for the content so I was wondering whether thereâs a way to 
> somehow restore the images?

If this were happening with normal processes (i.e. you've deleted a file which 
some process has open) then you'd be able to recover it via /proc/$PID/fd.

So if the domains are using a userspace process as a disk backend (e.g.
tapdisk or qdisk) then you could probably apply that technique to the backend 
processes.

If the domains are using loop+blkback then I guess you might find the content 
in /dev/loop*.

If the domains are using just blkback directly then I think you might be stuck, 
or at least I don't know what to suggest. You said folder of images so I'm 
hopeful you don't fall into this case.

Ian.




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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