19 messages in com.xensource.lists.xen-develRe: [Xen-devel] AFS-based VBD backend
FromSent OnAttachments
Steve Traugott23 Dec 2004 00:55 
Luciano Miguel Ferreira Rocha23 Dec 2004 02:36 
Keir Fraser23 Dec 2004 02:41 
Luciano Miguel Ferreira Rocha23 Dec 2004 02:56 
Steve Traugott23 Dec 2004 03:17 
Ian Pratt23 Dec 2004 03:40 
Steve Traugott23 Dec 2004 03:58 
Steve Traugott23 Dec 2004 04:22 
Ian Pratt23 Dec 2004 04:31 
Andrew Warfield23 Dec 2004 04:36 
Steve Traugott23 Dec 2004 04:38 
Steve Traugott23 Dec 2004 05:17 
Ian Pratt23 Dec 2004 05:38 
Steve Traugott23 Dec 2004 05:47 
Andrew Warfield23 Dec 2004 05:59 
Johannes Formann28 Dec 2004 11:21 
Steve Traugott03 Jan 2005 18:53 
Kris Van Hees03 Jan 2005 18:59 
Steve Traugott17 Jan 2005 16:35 
Subject:Re: [Xen-devel] AFS-based VBD backend
From:Luciano Miguel Ferreira Rocha (stra@nsk.no-ip.org)
Date:12/23/2004 02:56:30 AM
List:com.xensource.lists.xen-devel

On Thu, Dec 23, 2004 at 10:42:18AM +0000, Keir Fraser wrote:

Q: Why not just use a loop device on top of AFS, with the 'file:' VBD type? A: Loop devices on top of AFS files hang with large volumes of I/O -- looks like a deadlock of some sort (in my tests, a dd of around 2-300 Mb into an AFS-based loop device appears to consistently hang the kernel, even with a 500Mb or larger AFS cache). In addition, an unmodified loop.c will not fsync() the underlying file; changes won't get written back to the AFS server until loop teardown. I've added an fsync() to the worker thread of loop.c to take care of this every few seconds; that seems to work but I can't really stress test it much because of the hang problem.

That it's already possible to use normal files. :)

So, no need for explicit support in xen. If your dom0 already knows and uses afs, just specify the file in the xen configuration:

disk = [ 'file:/afs/file,sda1,w' ]

The OP did have an explanation why he didn't want to use a loop device. However, I would say that the correct approach here is probably to enhance/fix the existign loop support rather than adding a whole new backend driver.

I was unaware that the 'file' backend used loop devices. The documentation doesn't state that.

Regards, Luciano Rocha