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

Re: [Xen-users] FIX: was Re: "Exception starting xend ((2, 'No such file

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] FIX: was Re: "Exception starting xend ((2, 'No such file or directory'))" - what file?
From: "Dick Davies" <rasputnik@xxxxxxxxx>
Date: Thu, 11 May 2006 15:57:20 +0100
Delivery-date: Thu, 11 May 2006 07:57:54 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BdBl4wexFBYCgjFtb6cMS2+2gjb9ZLByH5h+RaVkW9yLfYkWwhVqEliXzuB/y5N/ZWbfouuCteoHOIhTl+Z1k0NBWRFkFA6BfFYZXTGedEMqIkqEKRqpb92UYZwjgId9iikxXzhlsmfi+4hCY6t0lQCVUdV1YWlkjY97nQe1IuA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44634C17.50205@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <3f1760605110420h6a868b52g8dc2642dc56ac6cb@xxxxxxxxxxxxxx> <44633EF7.70203@xxxxxxxx> <3f1760605110723s67074384wa57a35fc545a3948@xxxxxxxxxxxxxx> <44634C17.50205@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 11/05/06, Frank Meyer <frank@xxxxxxxx> wrote:
Dick Davies wrote:

> Someone on ubuntu-users mentioned that, but
> ...(removes it and reboots to check)...
> yeah, /var/run/xend *is* being created properly, with xen 3.0.2.

On my xen-3.0.2 system /var/run/xend has *not* being created by xend:

eis # rm -r /var/run/xenstored /var/run/xend
eis # /etc/init.d/xend start
eis # ps -ef | grep xend
root      2727     1  0 17:30 ?        00:00:00 python /usr/sbin/xend start
root      2729  2727  0 17:30 ?        00:00:00 python /usr/sbin/xend start
root      2731  2729  0 17:30 ?        00:00:00 python /usr/sbin/xend start
root      2732  2731  0 17:30 ?        00:00:00 python /usr/sbin/xend start
root      2738  2676  0 17:30 pts/0    00:00:00 grep xend
eis # xm create -c xmeisfair
Using config file "/etc/xen/xmeisfair".
Error: (2, 'No such file or directory')            <----- here it is!
eis # ls -l /var/run/xenstored /var/run/xend
ls: /var/run/xenstored: No such file or directory


Got t. If you make the xenstored directory, then xend can do its own:


planb:~/ $ rm -r /var/run/xend* /var/run/xenstore*
planb:~/ $ /etc/init.d/xend start
planb:~/ $ ls -ld /var/run/xend /var/run/xenstored
ls: /var/run/xend: No such file or directory
ls: /var/run/xenstored: No such file or directory
planb:~/ $ /etc/init.d/xend stop
planb:~/ $ vi /etc/init.d/xend
# add a line at the top to 'mkdir -p /var/run/xenstored'
planb:~/ $ /etc/init.d/xend start
planb:~/ $ ls -ld /var/run/xend /var/run/xenstored
drwx------ 2 root root 60 2006-05-11 15:53 /var/run/xend
drwxr-xr-x 2 root root 80 2006-05-11 15:53 /var/run/xenstored

Probably worth doing it in xen itself, so you don't pick up a  screwy umask
like I just did (755 probably not the best permissions to put on the xenstored/
directory...)


--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

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