Hey guys, I have a problem on a domU "partdns01" which is actually acting as ntp/bind/dhcp server. When i boot the domU the dhcpd deamon can''t start because of a too great time mismatch between him ans his failover peer. For info, the dom0 name is "xendns01" xendns01 ~ # hwclock Tue Jun 12 14:22:46 2012 -0.000373 seconds xendns01 ~ # ntpq -pn remote refid st t when poll reach delay offset jitter =============================================================================*193.134.216.149 193.134.216.1 5 u 564 1024 377 0.428 -0.180 0.092 +193.134.216.148 193.134.216.1 5 u 366 1024 377 0.395 0.557 0.095 xendns01 ~ # date Tue Jun 12 14:22:50 CEST 2012 xendns01 ~ # xm create partdns01 -c Using config file "/etc/xen/partdns01". Started domain partdns01 (id=130) Linux version 2.6.20-xen-r6 (root@xendns01) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #15 SMP Mon Dec 8 15:36:37 CET 2008 Command line: root=/dev/sda1 ro BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000010800000 (usable) end_pfn_map = 67584 Zone PFN ranges: DMA 0 -> 67584 DMA32 67584 -> 67584 Normal 67584 -> 67584 early_node_map[1] active PFN ranges 0: 0 -> 67584 No mptable found. PERCPU: Allocating 24832 bytes of per cpu data Built 1 zonelists. Total pages: 64700 Kernel command line: root=/dev/sda1 ro Initializing CPU#0 PID hash table entries: 1024 (order: 10, 8192 bytes) Xen reported: 1596.082 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Software IO TLB disabled Memory: 249824k/270336k available (3734k kernel code, 12012k reserved, 1844k data, 224k init) Calibrating delay using timer specific routine.. 3195.28 BogoMIPS (lpj=6390577) Mount-cache hash table entries: 256 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 SMP alternatives: switching to UP code Freeing SMP alternatives: 32k freed Brought up 1 CPUs NET: Registered protocol family 16 Brought up 1 CPUs PCI: Fatal: No config space access function found PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. xen_mem: Initialising balloon driver. SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: System does not support PCI PCI: System does not support PCI NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 131072 bytes) TCP bind hash table entries: 4096 (order: 4, 65536 bytes) TCP: Hash tables configured (established 8192 bind 4096) TCP reno registered Installing knfsd (copyright (C) 1996 okir@monad.swb.de). io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) rtc: IRQ 8 is not free. Linux agpgart interface v0.101 (c) Dave Jones Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15 (usb?) Failed to obtain physical IRQ 6 floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Intel(R) PRO/1000 Network Driver - version 7.3.15-k2 Copyright (c) 1999-2006 Intel Corporation. e100: Intel(R) PRO/100 Network Driver, 3.5.17-k2-NAPI e100: Copyright(c) 1999-2006 Intel Corporation forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.59. tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> netconsole: not configured, aborting Xen virtual console successfully installed as tty1 Event-channel device installed. netfront: Initialising virtual ethernet driver. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx netfront: device eth0 has copying receive path. netfront: device eth1 has copying receive path. xen-vbd: registered block device major 8 blkfront: sda1: barriers enabled blkfront: sda2: barriers enabled megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006) megaraid: 2.20.4.9 (Release Date: Sun Jul 16 12:27:22 EST 2006) megasas: 00.00.03.05 Mon Oct 02 11:21:32 PDT 2006 register_blkdev: cannot get major 8 for sd Fusion MPT base driver 3.04.03 Copyright (c) 1999-2007 LSI Logic Corporation Fusion MPT SPI Host driver 3.04.03 Fusion MPT SAS Host driver 3.04.03 ieee1394: raw1394: /dev/raw1394 device initialized USB Universal Host Controller Interface driver v3.0 usbcore: registered new interface driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver i8042.c: No controller found. mice: PS/2 mouse device common for all mice device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com Intel 810 + AC97 Audio, version 1.01, 15:35:23 Dec 8 2008 xenoprofile_init: ret 0, events 2, xenoprof_is_primary 0 IPv4 over IPv4 tunneling driver TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> XENBUS: Device with no driver: device/console/0 ReiserFS: sda1: found reiserfs format "3.6" with standard journal ReiserFS: sda1: using ordered data mode ReiserFS: sda1: journal params: device sda1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: sda1: checking transaction log (sda1) ReiserFS: sda1: Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. Freeing unused kernel memory: 224k freed INIT: version 2.87 booting Gentoo Linux; http://www.gentoo.org/ Copyright 1999-2009 Gentoo Foundation; Distributed under the GPLv2 Press I to enter interactive boot mode * Mounting proc at /proc ... [ ok ] * Mounting sysfs at /sys ... [ ok ] * Mounting /dev ... [ ok ] * Starting udevd ... [ ok ] * Populating /dev with existing devices through uevents ... [ ok ] * Waiting for uevents to be processed ... [ ok ] * Mounting devpts at /dev/pts ... [ ok ] * Checking root filesystem ...Reiserfs super block in block 16 on 0x801 of format 3.6 with standard journal Blocks (total/free): 1572864/863352 by 4096 bytes Filesystem is clean Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished [ ok ] * Remounting root filesystem read/write ... [ ok ] * Checking all filesystems ... [ ok ] * Mounting local filesystems ... [ ok ] * Mounting USB device filesystem (usbfs) ... [ ok ] * Activating (possible) swap ... [ ok ] * Setting system clock using the hardware clock [xen] ... [ ok ] * Configuring kernel parameters ... [ ok ] * Cleaning /var/lock, /var/run ... [ ok ] * Wiping /tmp directory ... [ ok ] * Device initiated services: net.eth0 net.eth1 * Setting hostname to partdns01 ... [ ok ] * Loading key mappings ... [ ok ] * Setting user font ... [ ok ] * Starting lo * Bringing up lo * 127.0.0.1/8 [ ok ] * Adding routes * 127.0.0.0/8 ... [ ok ] * Starting eth0 * Bringing up eth0 * 10.194.1.25 [ ok ] * Adding routes * 10.194.0.0/16 via 10.194.1.1 ... [ ok ] * Starting eth1 * Bringing up eth1 * 193.247.203.25 [ ok ] * Adding routes * 0.0.0.0/0 via 193.247.203.20 ... [ ok ] * 193.247.203.0/24 via 193.247.203.17 ... [ ok ] * Initializing random number generator ... [ ok ] INIT: Entering runlevel: 3 * Starting syslog-ng ... [ ok ] * Starting chrooted named ... [ ok ] * Starting sshd ... [ ok ] * Starting DenyHosts daemon ... [ ok ] * Starting ntpd ... [ ok ] * Starting dhcpd ... [ !! ] * Mounting network filesystems ... [ ok ] * Starting snmpd ... [ ok ] * Starting portmap ... [ ok ] * Starting Atempo Time Navigator ...Starting Time Navigator (tina)... [ ok ] * Starting Webmin ...Pre-loaded WebminCore [ ok ] * Starting local ... [ ok ] This is partdns01.heig-vd.ch (Linux x86_64 2.6.20-xen-r6) 16:03:44 partdns01 ~ # tail -50 /var/log/messages |egrep -i "ntpd|dhcpd" Jun 12 15:53:58 partdns01 ntpd[4304]: ntpd 4.2.6p3@1.2290-o Mon Jul 4 07:43:19 UTC 2011 (1) Jun 12 15:53:58 partdns01 ntpd[4305]: proto: precision = 2.000 usec Jun 12 15:53:58 partdns01 ntpd[4305]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 1 lo 127.0.0.1 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 2 eth0 10.194.1.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 3 eth1 193.247.203.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: peers refreshed Jun 12 15:53:58 partdns01 ntpd[4305]: Listening on routing socket on fd #20 for interface updates Jun 12 15:53:59 partdns01 dhcpd: Wrote 722 leases to leases file. Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: No subnet declaration for eth1 (193.247.203.25). Jun 12 15:53:59 partdns01 dhcpd: ** Ignoring requests on eth1. If this is not what Jun 12 15:53:59 partdns01 dhcpd: you want, please write a subnet declaration Jun 12 15:53:59 partdns01 dhcpd: in your dhcpd.conf file for the network segment Jun 12 15:53:59 partdns01 dhcpd: to which interface eth1 is attached. ** Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: failover peer dhcp-failover: I move from normal to startup Jun 12 15:53:59 partdns01 dhcpd: Failover CONNECT to dhcp-failover rejected: Connection rejected, time mismatch too great. Jun 12 15:53:59 partdns01 kernel: dhcpd[4370]: segfault at 0000000000000000 rip 00000000004188ba rsp 00007fffdbfdad80 error 4 partdns01 ~ # ntpq -pn remote refid st t when poll reach delay offset jitter =============================================================================*193.134.216.1 130.59.36.150 4 u 29 64 7 1.113 -6.626 29.822 193.247.203.26 193.134.216.1 5 u 20 64 17 1.079 78.625 2.349 Once ntp is synchronized, i can manually start de dhcpd deamon. partdns01 ~ # /etc/init.d/dhcpd start * Starting dhcpd ... [ ok ] partdns01 ~ # tail -100 /var/log/messages |egrep -i "ntpd|dhcpd" Jun 12 15:53:58 partdns01 ntpd[4304]: ntpd 4.2.6p3@1.2290-o Mon Jul 4 07:43:19 UTC 2011 (1) Jun 12 15:53:58 partdns01 ntpd[4305]: proto: precision = 2.000 usec Jun 12 15:53:58 partdns01 ntpd[4305]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 1 lo 127.0.0.1 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 2 eth0 10.194.1.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 3 eth1 193.247.203.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: peers refreshed Jun 12 15:53:58 partdns01 ntpd[4305]: Listening on routing socket on fd #20 for interface updates Jun 12 15:53:59 partdns01 dhcpd: Wrote 722 leases to leases file. Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: No subnet declaration for eth1 (193.247.203.25). Jun 12 15:53:59 partdns01 dhcpd: ** Ignoring requests on eth1. If this is not what Jun 12 15:53:59 partdns01 dhcpd: you want, please write a subnet declaration Jun 12 15:53:59 partdns01 dhcpd: in your dhcpd.conf file for the network segment Jun 12 15:53:59 partdns01 dhcpd: to which interface eth1 is attached. ** Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: failover peer dhcp-failover: I move from normal to startup Jun 12 15:53:59 partdns01 dhcpd: Failover CONNECT to dhcp-failover rejected: Connection rejected, time mismatch too great. Jun 12 15:53:59 partdns01 kernel: dhcpd[4370]: segfault at 0000000000000000 rip 00000000004188ba rsp 00007fffdbfdad80 error 4 Jun 12 16:09:59 partdns01 dhcpd: Wrote 722 leases to leases file. Jun 12 16:09:59 partdns01 dhcpd: Jun 12 16:09:59 partdns01 dhcpd: No subnet declaration for eth1 (xxx.xxx.xxx.xxx). Jun 12 16:09:59 partdns01 dhcpd: ** Ignoring requests on eth1. If this is not what Jun 12 16:09:59 partdns01 dhcpd: you want, please write a subnet declaration Jun 12 16:09:59 partdns01 dhcpd: in your dhcpd.conf file for the network segment Jun 12 16:09:59 partdns01 dhcpd: to which interface eth1 is attached. ** Jun 12 16:09:59 partdns01 dhcpd: Jun 12 16:09:59 partdns01 dhcpd: failover peer dhcp-failover: I move from normal to startup Jun 12 16:09:59 partdns01 dhcpd: failover peer dhcp-failover: peer moves from normal to communications-interrupted Jun 12 16:09:59 partdns01 dhcpd: failover peer dhcp-failover: I move from startup to normal Jun 12 16:09:59 partdns01 dhcpd: balanced pool 6a86a0 10.194.1.0/24 total 32 free 16 backup 16 lts 0 max-misbal 5 Jun 12 16:09:59 partdns01 dhcpd: Sending updates to dhcp-failover. Jun 12 16:10:00 partdns01 dhcpd: failover peer dhcp-failover: peer moves from communications-interrupted to normal Jun 12 16:10:00 partdns01 dhcpd: bind update on 10.194.6.55 from dhcp-failover rejected: 10.194.6.55: invalid state transition: active to expired Jun 12 16:10:05 partdns01 dhcpd: DHCPREQUEST for 10.194.6.32 from 00:24:e8:33:21:b4 (toatoa) via eth0 Jun 12 16:10:05 partdns01 dhcpd: DHCPACK on 10.194.6.32 to 00:24:e8:33:21:b4 (toatoa) via eth0 I already did that trick but without any luck : partdns01 ~ # tail -1 /etc/sysctl.conf xen.independent_wallclock=1 partdns01 ~ # cat /proc/sys/xen/independent_wallclock 1 Same result with the follwing workaround : partdns01 ~ # head -13 /etc/init.d/dhcpd #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init,v 1.5 2007/04/02 12:34:01 uberlord Exp $ DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/dhcpd.conf} depend() { need net need ntpd sleep 60 use logger dns } Any clues ? Best Regards, Ludovic _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
UP !! Please guys it''s very important for us ! Thank you in advance. Ludovic De : xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] De la part de Maret Ludovic Envoyé : mardi 12 juin 2012 16:48 À : xen-users@lists.xen.org Objet : [Xen-users] about 10 min time between dom0 anb domU Hey guys, I have a problem on a domU "partdns01" which is actually acting as ntp/bind/dhcp server. When i boot the domU the dhcpd deamon can''t start because of a too great time mismatch between him ans his failover peer. For info, the dom0 name is "xendns01" xendns01 ~ # hwclock Tue Jun 12 14:22:46 2012 -0.000373 seconds xendns01 ~ # ntpq -pn remote refid st t when poll reach delay offset jitter =============================================================================*193.134.216.149 193.134.216.1 5 u 564 1024 377 0.428 -0.180 0.092 +193.134.216.148 193.134.216.1 5 u 366 1024 377 0.395 0.557 0.095 xendns01 ~ # date Tue Jun 12 14:22:50 CEST 2012 xendns01 ~ # xm create partdns01 -c Using config file "/etc/xen/partdns01". Started domain partdns01 (id=130) Linux version 2.6.20-xen-r6 (root@xendns01) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #15 SMP Mon Dec 8 15:36:37 CET 2008 Command line: root=/dev/sda1 ro BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000010800000 (usable) end_pfn_map = 67584 Zone PFN ranges: DMA 0 -> 67584 DMA32 67584 -> 67584 Normal 67584 -> 67584 early_node_map[1] active PFN ranges 0: 0 -> 67584 No mptable found. PERCPU: Allocating 24832 bytes of per cpu data Built 1 zonelists. Total pages: 64700 Kernel command line: root=/dev/sda1 ro Initializing CPU#0 PID hash table entries: 1024 (order: 10, 8192 bytes) Xen reported: 1596.082 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Software IO TLB disabled Memory: 249824k/270336k available (3734k kernel code, 12012k reserved, 1844k data, 224k init) Calibrating delay using timer specific routine.. 3195.28 BogoMIPS (lpj=6390577) Mount-cache hash table entries: 256 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 SMP alternatives: switching to UP code Freeing SMP alternatives: 32k freed Brought up 1 CPUs NET: Registered protocol family 16 Brought up 1 CPUs PCI: Fatal: No config space access function found PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. xen_mem: Initialising balloon driver. SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: System does not support PCI PCI: System does not support PCI NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 131072 bytes) TCP bind hash table entries: 4096 (order: 4, 65536 bytes) TCP: Hash tables configured (established 8192 bind 4096) TCP reno registered Installing knfsd (copyright (C) 1996 okir@monad.swb.de<mailto:okir@monad.swb.de>). io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) rtc: IRQ 8 is not free. Linux agpgart interface v0.101 (c) Dave Jones Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15 (usb?) Failed to obtain physical IRQ 6 floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Intel(R) PRO/1000 Network Driver - version 7.3.15-k2 Copyright (c) 1999-2006 Intel Corporation. e100: Intel(R) PRO/100 Network Driver, 3.5.17-k2-NAPI e100: Copyright(c) 1999-2006 Intel Corporation forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.59. tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com<mailto:maxk@qualcomm.com>> netconsole: not configured, aborting Xen virtual console successfully installed as tty1 Event-channel device installed. netfront: Initialising virtual ethernet driver. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx netfront: device eth0 has copying receive path. netfront: device eth1 has copying receive path. xen-vbd: registered block device major 8 blkfront: sda1: barriers enabled blkfront: sda2: barriers enabled megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006) megaraid: 2.20.4.9 (Release Date: Sun Jul 16 12:27:22 EST 2006) megasas: 00.00.03.05 Mon Oct 02 11:21:32 PDT 2006 register_blkdev: cannot get major 8 for sd Fusion MPT base driver 3.04.03 Copyright (c) 1999-2007 LSI Logic Corporation Fusion MPT SPI Host driver 3.04.03 Fusion MPT SAS Host driver 3.04.03 ieee1394: raw1394: /dev/raw1394 device initialized USB Universal Host Controller Interface driver v3.0 usbcore: registered new interface driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver i8042.c: No controller found. mice: PS/2 mouse device common for all mice device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com<mailto:dm-devel@redhat.com> Intel 810 + AC97 Audio, version 1.01, 15:35:23 Dec 8 2008 xenoprofile_init: ret 0, events 2, xenoprof_is_primary 0 IPv4 over IPv4 tunneling driver TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com<mailto:greearb@candelatech.com>> All bugs added by David S. Miller <davem@redhat.com<mailto:davem@redhat.com>> XENBUS: Device with no driver: device/console/0 ReiserFS: sda1: found reiserfs format "3.6" with standard journal ReiserFS: sda1: using ordered data mode ReiserFS: sda1: journal params: device sda1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: sda1: checking transaction log (sda1) ReiserFS: sda1: Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. Freeing unused kernel memory: 224k freed INIT: version 2.87 booting Gentoo Linux; http://www.gentoo.org/ Copyright 1999-2009 Gentoo Foundation; Distributed under the GPLv2 Press I to enter interactive boot mode * Mounting proc at /proc ... [ ok ] * Mounting sysfs at /sys ... [ ok ] * Mounting /dev ... [ ok ] * Starting udevd ... [ ok ] * Populating /dev with existing devices through uevents ... [ ok ] * Waiting for uevents to be processed ... [ ok ] * Mounting devpts at /dev/pts ... [ ok ] * Checking root filesystem ...Reiserfs super block in block 16 on 0x801 of format 3.6 with standard journal Blocks (total/free): 1572864/863352 by 4096 bytes Filesystem is clean Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished [ ok ] * Remounting root filesystem read/write ... [ ok ] * Checking all filesystems ... [ ok ] * Mounting local filesystems ... [ ok ] * Mounting USB device filesystem (usbfs) ... [ ok ] * Activating (possible) swap ... [ ok ] * Setting system clock using the hardware clock [xen] ... [ ok ] * Configuring kernel parameters ... [ ok ] * Cleaning /var/lock, /var/run ... [ ok ] * Wiping /tmp directory ... [ ok ] * Device initiated services: net.eth0 net.eth1 * Setting hostname to partdns01 ... [ ok ] * Loading key mappings ... [ ok ] * Setting user font ... [ ok ] * Starting lo * Bringing up lo * 127.0.0.1/8 [ ok ] * Adding routes * 127.0.0.0/8 ... [ ok ] * Starting eth0 * Bringing up eth0 * 10.194.1.25 [ ok ] * Adding routes * 10.194.0.0/16 via 10.194.1.1 ... [ ok ] * Starting eth1 * Bringing up eth1 * 193.247.203.25 [ ok ] * Adding routes * 0.0.0.0/0 via 193.247.203.20 ... [ ok ] * 193.247.203.0/24 via 193.247.203.17 ... [ ok ] * Initializing random number generator ... [ ok ] INIT: Entering runlevel: 3 * Starting syslog-ng ... [ ok ] * Starting chrooted named ... [ ok ] * Starting sshd ... [ ok ] * Starting DenyHosts daemon ... [ ok ] * Starting ntpd ... [ ok ] * Starting dhcpd ... [ !! ] * Mounting network filesystems ... [ ok ] * Starting snmpd ... [ ok ] * Starting portmap ... [ ok ] * Starting Atempo Time Navigator ...Starting Time Navigator (tina)... [ ok ] * Starting Webmin ...Pre-loaded WebminCore [ ok ] * Starting local ... [ ok ] This is partdns01.heig-vd.ch (Linux x86_64 2.6.20-xen-r6) 16:03:44 partdns01 ~ # tail -50 /var/log/messages |egrep -i "ntpd|dhcpd" Jun 12 15:53:58 partdns01 ntpd[4304]: ntpd 4.2.6p3@1.2290-o<mailto:4.2.6p3@1.2290-o> Mon Jul 4 07:43:19 UTC 2011 (1) Jun 12 15:53:58 partdns01 ntpd[4305]: proto: precision = 2.000 usec Jun 12 15:53:58 partdns01 ntpd[4305]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 1 lo 127.0.0.1 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 2 eth0 10.194.1.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 3 eth1 193.247.203.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: peers refreshed Jun 12 15:53:58 partdns01 ntpd[4305]: Listening on routing socket on fd #20 for interface updates Jun 12 15:53:59 partdns01 dhcpd: Wrote 722 leases to leases file. Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: No subnet declaration for eth1 (193.247.203.25). Jun 12 15:53:59 partdns01 dhcpd: ** Ignoring requests on eth1. If this is not what Jun 12 15:53:59 partdns01 dhcpd: you want, please write a subnet declaration Jun 12 15:53:59 partdns01 dhcpd: in your dhcpd.conf file for the network segment Jun 12 15:53:59 partdns01 dhcpd: to which interface eth1 is attached. ** Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: failover peer dhcp-failover: I move from normal to startup Jun 12 15:53:59 partdns01 dhcpd: Failover CONNECT to dhcp-failover rejected: Connection rejected, time mismatch too great. Jun 12 15:53:59 partdns01 kernel: dhcpd[4370]: segfault at 0000000000000000 rip 00000000004188ba rsp 00007fffdbfdad80 error 4 partdns01 ~ # ntpq -pn remote refid st t when poll reach delay offset jitter =============================================================================*193.134.216.1 130.59.36.150 4 u 29 64 7 1.113 -6.626 29.822 193.247.203.26 193.134.216.1 5 u 20 64 17 1.079 78.625 2.349 Once ntp is synchronized, i can manually start de dhcpd deamon. partdns01 ~ # /etc/init.d/dhcpd start * Starting dhcpd ... [ ok ] partdns01 ~ # tail -100 /var/log/messages |egrep -i "ntpd|dhcpd" Jun 12 15:53:58 partdns01 ntpd[4304]: ntpd 4.2.6p3@1.2290-o<mailto:4.2.6p3@1.2290-o> Mon Jul 4 07:43:19 UTC 2011 (1) Jun 12 15:53:58 partdns01 ntpd[4305]: proto: precision = 2.000 usec Jun 12 15:53:58 partdns01 ntpd[4305]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 1 lo 127.0.0.1 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 2 eth0 10.194.1.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: Listen normally on 3 eth1 193.247.203.25 UDP 123 Jun 12 15:53:58 partdns01 ntpd[4305]: peers refreshed Jun 12 15:53:58 partdns01 ntpd[4305]: Listening on routing socket on fd #20 for interface updates Jun 12 15:53:59 partdns01 dhcpd: Wrote 722 leases to leases file. Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: No subnet declaration for eth1 (193.247.203.25). Jun 12 15:53:59 partdns01 dhcpd: ** Ignoring requests on eth1. If this is not what Jun 12 15:53:59 partdns01 dhcpd: you want, please write a subnet declaration Jun 12 15:53:59 partdns01 dhcpd: in your dhcpd.conf file for the network segment Jun 12 15:53:59 partdns01 dhcpd: to which interface eth1 is attached. ** Jun 12 15:53:59 partdns01 dhcpd: Jun 12 15:53:59 partdns01 dhcpd: failover peer dhcp-failover: I move from normal to startup Jun 12 15:53:59 partdns01 dhcpd: Failover CONNECT to dhcp-failover rejected: Connection rejected, time mismatch too great. Jun 12 15:53:59 partdns01 kernel: dhcpd[4370]: segfault at 0000000000000000 rip 00000000004188ba rsp 00007fffdbfdad80 error 4 Jun 12 16:09:59 partdns01 dhcpd: Wrote 722 leases to leases file. Jun 12 16:09:59 partdns01 dhcpd: Jun 12 16:09:59 partdns01 dhcpd: No subnet declaration for eth1 (xxx.xxx.xxx.xxx). Jun 12 16:09:59 partdns01 dhcpd: ** Ignoring requests on eth1. If this is not what Jun 12 16:09:59 partdns01 dhcpd: you want, please write a subnet declaration Jun 12 16:09:59 partdns01 dhcpd: in your dhcpd.conf file for the network segment Jun 12 16:09:59 partdns01 dhcpd: to which interface eth1 is attached. ** Jun 12 16:09:59 partdns01 dhcpd: Jun 12 16:09:59 partdns01 dhcpd: failover peer dhcp-failover: I move from normal to startup Jun 12 16:09:59 partdns01 dhcpd: failover peer dhcp-failover: peer moves from normal to communications-interrupted Jun 12 16:09:59 partdns01 dhcpd: failover peer dhcp-failover: I move from startup to normal Jun 12 16:09:59 partdns01 dhcpd: balanced pool 6a86a0 10.194.1.0/24 total 32 free 16 backup 16 lts 0 max-misbal 5 Jun 12 16:09:59 partdns01 dhcpd: Sending updates to dhcp-failover. Jun 12 16:10:00 partdns01 dhcpd: failover peer dhcp-failover: peer moves from communications-interrupted to normal Jun 12 16:10:00 partdns01 dhcpd: bind update on 10.194.6.55 from dhcp-failover rejected: 10.194.6.55: invalid state transition: active to expired Jun 12 16:10:05 partdns01 dhcpd: DHCPREQUEST for 10.194.6.32 from 00:24:e8:33:21:b4 (toatoa) via eth0 Jun 12 16:10:05 partdns01 dhcpd: DHCPACK on 10.194.6.32 to 00:24:e8:33:21:b4 (toatoa) via eth0 I already did that trick but without any luck : partdns01 ~ # tail -1 /etc/sysctl.conf xen.independent_wallclock=1 partdns01 ~ # cat /proc/sys/xen/independent_wallclock 1 Same result with the follwing workaround : partdns01 ~ # head -13 /etc/init.d/dhcpd #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init,v 1.5 2007/04/02 12:34:01 uberlord Exp $ DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/dhcpd.conf} depend() { need net need ntpd sleep 60 use logger dns } Any clues ? Best Regards, Ludovic _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, Jun 14, 2012 at 4:19 PM, Maret Ludovic <Ludovic.Maret@heig-vd.ch> wrote:> UP !!> Please guys it’s very important for us !No, it''s not. If it WERE important, you would''ve make sure that you either: - have an in-house expert capable of handling problems, OR - have a support contract to whatever company you trust to help you with problems. Since (from your post) you seem to have neither, then it''s not important to you. That being said, kernel 2.6.20 is old. Ask whoever maintained it if they''re still providing bugfixes, cause it might be kernel-related. In general, if /proc/sys/xen/independent_wallclock is 1, you can adjust domU clock manually. e.g. with "ntpdate -v pool.ntp.org". Make sure ntpd is stopped first before running ntpdate. If you HAVE done that, and you still have problems anyway (e.g. dhcpd still refused to start), then the problem might be else where. For example, you need to examine what caused the segfaults. -- Fajar