Teck Choon Giam
2007-Sep-25 18:09 UTC
[Xen-devel] Report Xen-3.1.1-rc1 make install does not install /etc/hotplug
Hi, This is my testing in a fresh CentOS 5.0 system. I downloaded the xen-3.1.1-rc1 aka xen-3.1-testing.hg and do my normal make world and make install. # ls -al /etc/hotplug/xen-backend.agent ls: /etc/hotplug/xen-backend.agent: No such file or directory # ls -al /usr/src/xen-3.1.1-rc1-src/dist/install/etc/hotplug/ total 12 drwxr-xr-x 2 root root 4096 Sep 25 12:44 . drwxr-xr-x 7 root root 4096 Sep 25 12:44 .. -rwxr-xr-x 1 root root 513 Sep 2 08:31 xen-backend.agent I just did the mkdir /etc/hotplug and copy the xen-backend.agent to it or else domainU can''t be started and will show you error such as: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working. Thanks. Kindest regards, Giam Teck Choon _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Sep-25 18:25 UTC
Re: [Xen-devel] Report Xen-3.1.1-rc1 make install does not install /etc/hotplug
''make install'' probably decided that your system uses udev rather than hotplug. This will be because ''udevinfo -V'' on your system indicates a version greater than or equal to 059. -- Keir On 25/9/07 19:09, "Teck Choon Giam" <giamteckchoon@gmail.com> wrote:> Hi, > > This is my testing in a fresh CentOS 5.0 system. I downloaded the > xen-3.1.1-rc1 aka xen-3.1-testing.hg and do my normal make world and > make install. > > # ls -al /etc/hotplug/xen-backend.agent > ls: /etc/hotplug/xen-backend.agent: No such file or directory > > # ls -al /usr/src/xen-3.1.1-rc1-src/dist/install/etc/hotplug/ > total 12 > drwxr-xr-x 2 root root 4096 Sep 25 12:44 . > drwxr-xr-x 7 root root 4096 Sep 25 12:44 .. > -rwxr-xr-x 1 root root 513 Sep 2 08:31 xen-backend.agent > > I just did the mkdir /etc/hotplug and copy the xen-backend.agent to it > or else domainU can''t be started and will show you error such as: > > Error: Device 0 (vif) could not be connected. Hotplug scripts not working. > Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working. > > Thanks. > > Kindest regards, > Giam Teck Choon > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teck Choon Giam
2007-Sep-25 18:27 UTC
Re: [Xen-devel] Report Xen-3.1.1-rc1 make install does not install /etc/hotplug
On 9/26/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> ''make install'' probably decided that your system uses udev rather than > hotplug. This will be because ''udevinfo -V'' on your system indicates a > version greater than or equal to 059.Hi Keir, Thanks for your information about udevinfo. Yes, you are right as this is the output shown in my test CentOS 5.0: # udevinfo -V udevinfo, version 095 and in CentOS 4.5 it is: # udevinfo -V udevinfo, version 039 So would this means that for any udevinfo version greater than 059, I have to manually create /etc/hotplug folder and copy xen-backend.agent into it manually for future releases for Xen i.e. version 3.1.1?> > -- KeirThanks Keir for your prompt reply :) Kindest regards, Giam Teck Choon> > On 25/9/07 19:09, "Teck Choon Giam" <giamteckchoon@gmail.com> wrote: > > > Hi, > > > > This is my testing in a fresh CentOS 5.0 system. I downloaded the > > xen-3.1.1-rc1 aka xen-3.1-testing.hg and do my normal make world and > > make install. > > > > # ls -al /etc/hotplug/xen-backend.agent > > ls: /etc/hotplug/xen-backend.agent: No such file or directory > > > > # ls -al /usr/src/xen-3.1.1-rc1-src/dist/install/etc/hotplug/ > > total 12 > > drwxr-xr-x 2 root root 4096 Sep 25 12:44 . > > drwxr-xr-x 7 root root 4096 Sep 25 12:44 .. > > -rwxr-xr-x 1 root root 513 Sep 2 08:31 xen-backend.agent > > > > I just did the mkdir /etc/hotplug and copy the xen-backend.agent to it > > or else domainU can''t be started and will show you error such as: > > > > Error: Device 0 (vif) could not be connected. Hotplug scripts not working. > > Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working. > > > > Thanks. > > > > Kindest regards, > > Giam Teck Choon > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Sep-25 21:16 UTC
Re: [Xen-devel] Report Xen-3.1.1-rc1 make install does not install /etc/hotplug
On 25/9/07 19:27, "Teck Choon Giam" <giamteckchoon@gmail.com> wrote:> Thanks for your information about udevinfo. Yes, you are right as > this is the output shown in my test CentOS 5.0: > # udevinfo -V > udevinfo, version 095 > > and in CentOS 4.5 it is: > # udevinfo -V > udevinfo, version 039 > > So would this means that for any udevinfo version greater than 059, I > have to manually create /etc/hotplug folder and copy xen-backend.agent > into it manually for future releases for Xen i.e. version 3.1.1?The question is really why your system doesn''t pick up the udev config files we install, and work properly with those. I wouldn''t really expect it to need the hotplug config file. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teck Choon Giam
2007-Sep-26 07:04 UTC
Re: [Xen-devel] Report Xen-3.1.1-rc1 make install does not install /etc/hotplug
On 9/26/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> On 25/9/07 19:27, "Teck Choon Giam" <giamteckchoon@gmail.com> wrote: > > > Thanks for your information about udevinfo. Yes, you are right as > > this is the output shown in my test CentOS 5.0: > > # udevinfo -V > > udevinfo, version 095 > > > > and in CentOS 4.5 it is: > > # udevinfo -V > > udevinfo, version 039 > > > > So would this means that for any udevinfo version greater than 059, I > > have to manually create /etc/hotplug folder and copy xen-backend.agent > > into it manually for future releases for Xen i.e. version 3.1.1? > > The question is really why your system doesn''t pick up the udev config files > we install, and work properly with those. I wouldn''t really expect it to > need the hotplug config file.Maybe this is something to do with this bug? http://bugs.centos.org/view.php?id=2141 It is uncommon to see error related to fd or cdrom especially if compare CentOS 4 and CentOS 5. In CentOS 4 using the exact same hardware and specs/configuration of the kernel I don''t see the following errors: # dmesg|grep -i error hdd: packet command error: status=0x51 { DriveReady SeekComplete Error } hdd: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } hdd: packet command error: status=0x51 { DriveReady SeekComplete Error } hdd: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } hdd: packet command error: status=0x51 { DriveReady SeekComplete Error } hdd: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } But in CentOS 5, the above errors are shown :/ Even doing yum update and updating kernels will see the above errors and even fd related error in one of my system... ... I will try to append different boot option such as pci=noacpi etc and/or disable fd and/or cdrom the next time to the data center to see whether xen-backend.rules in /etc/udev/rules.d/ works or not... ... # ls -al /etc/udev/rules.d/ total 100 drwxr-xr-x 2 root root 4096 Sep 26 05:28 . drwxr-xr-x 4 root root 4096 Sep 26 05:28 .. -rw-r--r-- 1 root root 515 Mar 15 2007 05-udev-early.rules -rw-r--r-- 1 root root 14344 Mar 15 2007 50-udev.rules -rw-r--r-- 1 root root 471 Mar 15 2007 51-hotplug.rules -rw-r--r-- 1 root root 143 Apr 11 2006 60-net.rules -rw-r--r-- 1 root root 1088 Jan 7 2007 60-pcmcia.rules -rw-r--r-- 1 root root 452 Mar 15 2007 60-raw.rules -rw-r--r-- 1 root root 82 Mar 15 2007 90-hal.rules -rw-r--r-- 1 root root 107 Mar 15 2007 95-pam-console.rules -rw-r--r-- 1 root root 2319 Mar 28 13:48 bluetooth.rules lrwxrwxrwx 1 root root 20 Sep 26 05:28 xen-backend.rules -> ../xen-backend.rules Thanks Keir for the tip ;) Kindest regards, Giam Teck Choon _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teck Choon Giam
2007-Oct-03 15:09 UTC
Re: [Xen-devel] Report Xen-3.1.1-rc1 make install does not install /etc/hotplug
> I will try to append different boot option such as pci=noacpi etc > and/or disable fd and/or cdrom the next time to the data center to see > whether > xen-backend.rules in /etc/udev/rules.d/ works or not... ...Hi Keir, Just FYI, I tested with boot option noacpi and udev can work with xen-backend.rules without xen hotplug configuration file. After that, I realized that the main cause of this is due to I never compile with CONFIG_INOTIFY... stupid me :p Thanks. Kindest regards, Giam Teck Choon _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel