* Bugs with block devices to domU - let's find solution
@ 2005-10-18 17:06 Guryanov Dmitry
2005-10-19 12:56 ` Ewan Mellor
0 siblings, 1 reply; 4+ messages in thread
From: Guryanov Dmitry @ 2005-10-18 17:06 UTC (permalink / raw)
To: xen-devel
Hello
I have the same bug, that've been disscussed before - domU can't find
any block devices and crashes with "Unable to mount root fs". I've spend
a week under heavy debugging and find, that this bug take place because
dom0 backend driver can't read parameter physical-device from xenstore.
For example /local/domain/0/backend/vbd/1/776/physical_device, where 1-
domU id, 776=0x308 - major and minor numbers of block device, which will
used by domU.
This parameter must be written by script /etc/xen/scripts/block, which
must start like /etc/xen/scripts/vif-bridge any time as domU starts, but
it doesn't.
So, there is a question to xen developers: when and how must this script
must been started ?
P.S.
To start domU i comment out block in backend driver, where this
parameter must be obtained and give explicitly value for that variable:
file - linux-.../drivers/xen/blkback/xenbus.c
function - backend_changed
replace
---------------------
err = xenbus_scanf(NULL, dev->nodename,
"physical-device", "%li", &pdev);
if (XENBUS_EXIST_ERR(err))
return;
---------------------
with, for example:
---------------------
pdev=0x307; //hda7 - physical device
err=1;
---------------------
--
Guryanov Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Bugs with block devices to domU - let's find solution
2005-10-18 17:06 Bugs with block devices to domU - let's find solution Guryanov Dmitry
@ 2005-10-19 12:56 ` Ewan Mellor
2005-10-19 15:03 ` Guryanov Dmitry
0 siblings, 1 reply; 4+ messages in thread
From: Ewan Mellor @ 2005-10-19 12:56 UTC (permalink / raw)
To: xen-devel
On Tue, Oct 18, 2005 at 09:06:51PM +0400, Guryanov Dmitry wrote:
> Hello
>
> I have the same bug, that've been disscussed before - domU can't find
> any block devices and crashes with "Unable to mount root fs". I've spend
> a week under heavy debugging and find, that this bug take place because
> dom0 backend driver can't read parameter physical-device from xenstore.
> For example /local/domain/0/backend/vbd/1/776/physical_device, where 1-
> domU id, 776=0x308 - major and minor numbers of block device, which will
> used by domU.
> This parameter must be written by script /etc/xen/scripts/block, which
> must start like /etc/xen/scripts/vif-bridge any time as domU starts, but
> it doesn't.
>
> So, there is a question to xen developers: when and how must this script
> must been started ?
This script is run by your hotplug / udev installation inside dom0 when the
domU starts up. Do you have hotplug and udev installed in dom0?
Ewan.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bugs with block devices to domU - let's find solution
2005-10-19 12:56 ` Ewan Mellor
@ 2005-10-19 15:03 ` Guryanov Dmitry
0 siblings, 0 replies; 4+ messages in thread
From: Guryanov Dmitry @ 2005-10-19 15:03 UTC (permalink / raw)
To: xen-devel
Ewan Mellor wrote:
>On Tue, Oct 18, 2005 at 09:06:51PM +0400, Guryanov Dmitry wrote:
>
>
>
>>Hello
>>
>>I have the same bug, that've been disscussed before - domU can't find
>>any block devices and crashes with "Unable to mount root fs". I've spend
>>a week under heavy debugging and find, that this bug take place because
>>dom0 backend driver can't read parameter physical-device from xenstore.
>>For example /local/domain/0/backend/vbd/1/776/physical_device, where 1-
>>domU id, 776=0x308 - major and minor numbers of block device, which will
>>used by domU.
>>This parameter must be written by script /etc/xen/scripts/block, which
>>must start like /etc/xen/scripts/vif-bridge any time as domU starts, but
>>it doesn't.
>>
>>So, there is a question to xen developers: when and how must this script
>>must been started ?
>>
>>
>
>This script is run by your hotplug / udev installation inside dom0 when the
>domU starts up. Do you have hotplug and udev installed in dom0?
>
>
>
>Ewan.
>
>
>
Thanks, that's was a bug, now it works properly.
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bugs with block devices to domU - let's find solution
@ 2005-10-18 17:23 Stephan Boni
0 siblings, 0 replies; 4+ messages in thread
From: Stephan Boni @ 2005-10-18 17:23 UTC (permalink / raw)
To: Guryanov Dmitry, xen-devel
> Hello
>
> I have the same bug, that've been disscussed before - domU can't find
> any block devices and crashes with "Unable to mount root fs".
> I've spend
> a week under heavy debugging and find, that this bug take
> place because
> dom0 backend driver can't read parameter physical-device from
> xenstore.
> For example
> /local/domain/0/backend/vbd/1/776/physical_device, where 1-
> domU id, 776=0x308 - major and minor numbers of block device,
> which will
> used by domU.
> This parameter must be written by script
> /etc/xen/scripts/block, which
> must start like /etc/xen/scripts/vif-bridge any time as domU
> starts, but
> it doesn't.
>
> So, there is a question to xen developers: when and how must
> this script
> must been started ?
I have this problem too! Can anyone of the xen developers solve this problem? It seams, it's the last very critical bug we have.
Thanks a lot.
Stephan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-10-19 15:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 17:06 Bugs with block devices to domU - let's find solution Guryanov Dmitry
2005-10-19 12:56 ` Ewan Mellor
2005-10-19 15:03 ` Guryanov Dmitry
-- strict thread matches above, loose matches on Subject: below --
2005-10-18 17:23 Stephan Boni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.