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] xen_blk timeout connecting to device

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] xen_blk timeout connecting to device
From: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Date: Wed, 5 Oct 2005 19:50:02 +0100
Delivery-date: Wed, 05 Oct 2005 18:47:34 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EqHKgKMYrLB9SnI7eI3WIHHwXa1oeTHiNNJW9FT07BXbISW4y0Oon34fM4MtKmnJhRD47Vg6SM7ZIaNlg9s/N475HYqyehfNZkc5wqUxp543rDRWewX/aZRjZivpPVNTadLP05rdRPJJP1Yv/PKb8lI8PNsY4vd3seBmQwuL32w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <9e246b4d0510050618m2af7f13cu39e1f4ddbd1a3f2a@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9e246b4d0510050618m2af7f13cu39e1f4ddbd1a3f2a@xxxxxxxxxxxxxx>
Reply-to: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 05/10/05, Tim Durack <tdurack@xxxxxxxxx> wrote:
> I have hotplug and udev installed, but am seeing the same problem.

"cat /proc/sys/kernel/hotplug". /sbin/hotplug seems to work for
everyone (?). /sbin/udevsend needs udev rules. The backward compatible
udev rules should work, but don't.

Some notes on debugging this stuff, in case anyone else has problems

in /etc/udev/udev.conf add:

udev_log="info"

In /etc/hotplug.d/default/default.hotplug:

DEBUG=yes export DEBUG

In /etc/hotplug/xen-backend.agent:

add "set -x" as 2nd line.

You should now get debug info in either /var/log/messages or
/var/log/udev (depends on syslog setup).

I gave up with the hotplug stuff, and used the udev rules I posted a
few days ago. If you go that route comment out this line from
/etc/udev/rules.d/50-udev.rules:

ENV{UDEVD_EVENT}=="1", RUN+="/sbin/udev_run_hotplugd"

That will disable the backward compatible hotplug stuff which seems to
be broken with respect to xen. You will now be able to see the udev
events and rules in your log file, and exactly what is going on in the
scripts you execute (echo to stdout will be syslogged by udev). After
that it's just a matter of tying together the unhandled events with
actions.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel