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

Re: [Xen-devel] Re: Virtual block devices (vbd) still not working... :-(

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Virtual block devices (vbd) still not working... :-(
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 11 Oct 2003 14:39:22 +0100
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, sven.kretzschmar@xxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 11 Oct 2003 14:40:13 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Sat, 11 Oct 2003 11:21:44 BST." <E1A8Gsb-0004AZ-00@xxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> 
> > This refreshes Linux's view of its partition table, and also polls Xen
> > to find out the current parameters of the VBD. Without doing this,
> > Linux will never see the correct capacity for the VBD (it will
> > probably continue to think that it has zero size!).
> 
> Whenever Alex or I have used VDs they've just worked: There's
> no way to populate a vd with a file system unless you can access
> it from domain0, so its obviously been working for some people.
> 
> I wander if it's got something to do with whether the newly
> created virtual disk just happens to have something approximating
> a valid partition table or not?

No, it doesn't. Linux definitely thinks the vbd has zero size so never
even gets to try to read a partition table. 

I followed what you did exactly, and without an explicit poll of Xen
it definitely didn't work. I'd like to see how your machine setup is
different -- for example, are you sure the /dev/vbd* nodes have the
right device numbers? (Should be major = 125, minor =
(vbd_id*16)+partition).

I'm going to have some more of a look at the blkdev stuff now, but it
would be nice to know how come it's been "working" for you.

 -- Keir


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel