* register new block device script
@ 2005-10-24 14:38 Michael Mey
2005-10-24 14:43 ` Mark Williamson
2005-10-24 14:59 ` Ewan Mellor
0 siblings, 2 replies; 5+ messages in thread
From: Michael Mey @ 2005-10-24 14:38 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 497 bytes --]
Hi all,
I'd like to develop a new script for block-devices.
Where do I have to register it?
It's for DRBD block devices. It's called 'block-drbd' .
I tried the following steps:
1) copy it in /etc/xen/scripts
2) register it in /etc/xen/xend-config.sxp :
# Setup script for drbd block devices
(block-drbd block-drbd)
3) use it in a domU config file:
...
disk = [ 'drbd:drbd0,hda1,w' ]
...
So far, it doesn't work.
Can anyone give me a hint?
Thx,
Mike
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: register new block device script
2005-10-24 14:38 register new block device script Michael Mey
@ 2005-10-24 14:43 ` Mark Williamson
2005-10-24 15:32 ` Michael Mey
2005-10-24 14:59 ` Ewan Mellor
1 sibling, 1 reply; 5+ messages in thread
From: Mark Williamson @ 2005-10-24 14:43 UTC (permalink / raw)
To: xen-devel; +Cc: Michael Mey
What version of Xen is this? For Xen 2.0, that looks correct. Xen 3.0 does
things differently and I don't know if it needs anything else (like, possibly
extra hotplug rules???).
Just a silly question: did you chmod +x the script?
Cheers,
Mark
On Monday 24 October 2005 15:38, Michael Mey wrote:
> Hi all,
>
> I'd like to develop a new script for block-devices.
> Where do I have to register it?
>
> It's for DRBD block devices. It's called 'block-drbd' .
> I tried the following steps:
>
> 1) copy it in /etc/xen/scripts
> 2) register it in /etc/xen/xend-config.sxp :
> # Setup script for drbd block devices
> (block-drbd block-drbd)
> 3) use it in a domU config file:
> ...
> disk = [ 'drbd:drbd0,hda1,w' ]
> ...
>
> So far, it doesn't work.
> Can anyone give me a hint?
> Thx,
>
> Mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: register new block device script
2005-10-24 14:38 register new block device script Michael Mey
2005-10-24 14:43 ` Mark Williamson
@ 2005-10-24 14:59 ` Ewan Mellor
2005-10-24 15:34 ` Michael Mey
1 sibling, 1 reply; 5+ messages in thread
From: Ewan Mellor @ 2005-10-24 14:59 UTC (permalink / raw)
To: xen-devel
On Mon, Oct 24, 2005 at 04:38:39PM +0200, Michael Mey wrote:
> Hi all,
>
> I'd like to develop a new script for block-devices.
> Where do I have to register it?
>
> It's for DRBD block devices. It's called 'block-drbd' .
> I tried the following steps:
>
> 1) copy it in /etc/xen/scripts
> 2) register it in /etc/xen/xend-config.sxp :
> # Setup script for drbd block devices
> (block-drbd block-drbd)
There's no need to do this. This is out-of-date stuff from the pre-hotplug
days. I removed these examples last week, in fact, so you may want to update
your config file.
These scripts are now called by the hotplug/udev infrastructure. There should
be no need to register the script as such -- xen-backend.agent should be
called by udev, and then that will call /etc/xen/scripts/block, which in turn
will call /etc/xen/scripts/block-drdb.
Have a look in your syslog files (particularly the debug level one,
e.g. /var/log/debug) and maybe add some tracing to those files, to see where
it gets stuck.
You might also want to try
PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose.py <dom>
which at least will tell you whether the store entries for the device have
been created correctly.
Cheers,
Ewan.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: register new block device script
2005-10-24 14:43 ` Mark Williamson
@ 2005-10-24 15:32 ` Michael Mey
0 siblings, 0 replies; 5+ messages in thread
From: Michael Mey @ 2005-10-24 15:32 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1849 bytes --]
Oh sorry, I forgot to mention. Yes, it's for Xen 2.0.7.
Hm, strange. I rechecked everything including execution permissions for the
script. Now it works fine. Thought it wasn't called, but I guess there was a
problem with drbd.
Thanks, regards
Mike
On Monday 24 October 2005 16:43, Mark Williamson wrote:
> What version of Xen is this? For Xen 2.0, that looks correct. Xen 3.0
> does things differently and I don't know if it needs anything else (like,
> possibly extra hotplug rules???).
>
> Just a silly question: did you chmod +x the script?
>
> Cheers,
> Mark
>
> On Monday 24 October 2005 15:38, Michael Mey wrote:
> > Hi all,
> >
> > I'd like to develop a new script for block-devices.
> > Where do I have to register it?
> >
> > It's for DRBD block devices. It's called 'block-drbd' .
> > I tried the following steps:
> >
> > 1) copy it in /etc/xen/scripts
> > 2) register it in /etc/xen/xend-config.sxp :
> > # Setup script for drbd block devices
> > (block-drbd block-drbd)
> > 3) use it in a domU config file:
> > ...
> > disk = [ 'drbd:drbd0,hda1,w' ]
> > ...
> >
> > So far, it doesn't work.
> > Can anyone give me a hint?
> > Thx,
> >
> > Mike
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
--
----------------------------------------------------------------------------------------
Michael Mey
Thinking Objects Software GmbH | mailto: michael.mey@to.com
Lilienthalstrasse 2/1 | phone: +49 711 88770-147
70825 Stuttgart-Korntal, Germany | fax: +49 711 88770-449
----------------------------------------------------------------------------------------
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: register new block device script
2005-10-24 14:59 ` Ewan Mellor
@ 2005-10-24 15:34 ` Michael Mey
0 siblings, 0 replies; 5+ messages in thread
From: Michael Mey @ 2005-10-24 15:34 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 2202 bytes --]
The hotplug/udev infrastructure support is for Xen 3.0, right? Because I
downloaded the latest sources of Xen-stable last week.
After rechecking all of my steps, it finally works fine :)
Regards,
Mike
On Monday 24 October 2005 16:59, Ewan Mellor wrote:
> On Mon, Oct 24, 2005 at 04:38:39PM +0200, Michael Mey wrote:
> > Hi all,
> >
> > I'd like to develop a new script for block-devices.
> > Where do I have to register it?
> >
> > It's for DRBD block devices. It's called 'block-drbd' .
> > I tried the following steps:
> >
> > 1) copy it in /etc/xen/scripts
> > 2) register it in /etc/xen/xend-config.sxp :
> > # Setup script for drbd block devices
> > (block-drbd block-drbd)
>
> There's no need to do this. This is out-of-date stuff from the pre-hotplug
> days. I removed these examples last week, in fact, so you may want to
> update your config file.
>
> These scripts are now called by the hotplug/udev infrastructure. There
> should be no need to register the script as such -- xen-backend.agent
> should be called by udev, and then that will call /etc/xen/scripts/block,
> which in turn will call /etc/xen/scripts/block-drdb.
>
> Have a look in your syslog files (particularly the debug level one,
> e.g. /var/log/debug) and maybe add some tracing to those files, to see
> where it gets stuck.
>
> You might also want to try
>
> PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose.py
> <dom>
>
> which at least will tell you whether the store entries for the device have
> been created correctly.
>
> Cheers,
>
> Ewan.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
--
----------------------------------------------------------------------------------------
Michael Mey
Thinking Objects Software GmbH | mailto: michael.mey@to.com
Lilienthalstrasse 2/1 | phone: +49 711 88770-147
70825 Stuttgart-Korntal, Germany | fax: +49 711 88770-449
----------------------------------------------------------------------------------------
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-10-24 15:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-24 14:38 register new block device script Michael Mey
2005-10-24 14:43 ` Mark Williamson
2005-10-24 15:32 ` Michael Mey
2005-10-24 14:59 ` Ewan Mellor
2005-10-24 15:34 ` Michael Mey
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.