Gentoo Archives: gentoo-user

From: Christopher Kern <ChristopherKern@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] NTP: ntp-client doesn't start
Date: Tue, 07 Nov 2006 10:15:59
Message-Id: 455058C1.7010808@hawaiiantel.net
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hope this helps...
5
6
7 When investigating this myself, I found that I needed to set up a link
8 to the service in /etc/init.d with this command as the root user:
9
10 "cd /etc/runlevels/default && ln -s /etc/init.d/ntp-client ." (no
11 quotes, of course)
12
13 This works fine at boot, as the service start is indicated in the boot
14 display, and the time is indeed set to the correct time once executed
15 at boot time. I also found that one can alter the timeout for this
16 service by changing the NTPCLIENT_TIMEOUT variable in
17 /etc/conf.d/ntp-client file so that it is whatever you'd like it to
18 be. The default setting was 30 seconds, but I thought a shorter time
19 would have been better, especially at boot time.
20
21 Contents of /etc/conf.d/ntp-client:
22
23 # /etc/conf.d/ntp-client
24
25 # Command to run to set the clock initially
26 # Most people should just leave this line alone ...
27 # however, if you know what you're doing, and you
28 # want to use ntpd to set the clock, change this to 'ntpd'
29 NTPCLIENT_CMD="ntpdate"
30
31 # Options to pass to the above command
32 # This default setting should work fine but you should
33 # change the default 'pool.ntp.org' to something closer
34 # to your machine. See http://www.pool.ntp.org/ or
35 # try running `netselect -s 3 pool.ntp.org`.
36 NTPCLIENT_OPTS=" -b -u pool.ntp.org"
37
38 # How long to wait (in seconds) before giving up.
39 # Useful for when you boot and DNS/internet isn't
40 # really available but you have your net interface
41 # come up with say a static IP.
42 NTPCLIENT_TIMEOUT=16
43
44 ~ There is an ntp.conf file in /etc which sets up the server pool,
45 driftfile, and restrictions. There is the adjtime file in /etc which
46 appears to define the system clock setting, and is the last line of
47 said file. Mine is set to "UTC" which is the Greenwich Mean Time
48 (GMT). There is a clock file in /etc/conf.d that also has a variable
49 for the system clock, "CLOCK=". In this file, my setting is "UTC"
50 again, like so: "CLOCK=UTC". I do not know what'll happen if the CLOCK
51 variable in /etc/conf.d/clock and the last line of /etc/adjtime isn't
52 the same. Lastly, this /etc/conf.d/clock file also seems, at shutdown,
53 to set the hardware clock to the then current system time when the
54 "CLOCK_SYSTOHC" variable is set to "yes" like so:
55
56 Contents of /etc/conf.d/clock:
57
58 # /etc/conf.d/clock
59
60 # Set CLOCK to "UTC" if your system clock is set to UTC (also known as
61 # Greenwich Mean Time). If your clock is set to the local time, then
62 # set CLOCK to "local". Note that if you dual boot with Windows, then
63 # you should set it to "local".
64
65 CLOCK="UTC"
66
67 # If you wish to pass any other arguments to hwclock during bootup,
68 # you may do so here.
69
70 CLOCK_OPTS=""
71
72 # If you want to set the Hardware Clock to the current System Time
73 # during shutdown, then say "yes" here.
74
75 CLOCK_SYSTOHC="yes"
76
77
78 ### ALPHA SPECIFIC OPTIONS ###
79
80 # If your alpha uses the SRM console, set this to "yes".
81 SRM="no"
82
83 # If your alpha uses the ARC console, set this to "yes".
84 ARC="no"
85
86 ~ To wrap it up, I could not understand why the service appears to
87 be set up to run just once at boot up. I originally modified the
88 ntp-client file in /etc/init.d to write its output to a
89 /var/log/net.log file to see if it was invoked any time after the
90 initial run, but found nothing in the logs to reflect it after a
91 couple of days. I often have some of my machines up for days on end,
92 and after a few days, the clock can become off by some time. If I left
93 it for long, I'd get compile warnings, and sometimes errors, whenever
94 I was updating software. A sample of one such error on a Gentoo
95 machine might be like so:
96
97 make[1]: warning: Clock skew detected. Your build may be incomplete.
98 make[1]: Warning: File
99 `/usr/src/linux-2.6.17-gentoo-r8/arch/i386/mach-es7000/Makefile' has
100 modification time 1802 s in the future.
101
102 Here I discovered that my clock has skewed minutes into the past and
103 the makefile is with a modify time 32 minutes in the future. To
104 rectify this, I set up a cron job to execute the ntp-client once a
105 day. I also modified a line in the /etc/init.d/ntp-client file. The
106 cron job is this:
107
108 0 0 * * * /etc/init.d/ntp-client stop >/dev/null 2>&1 ; sleep 2;
109 /etc/init.d/ntp-client start >/dev/null/ 2>&1
110
111 ~ And this line was put into the crontab using the "crontab -e"
112 command. My /etc/init.d/ntp-client file has the following line:
113
114 ${NTPCLIENT_CMD} ${NTPCLIENT_OPTS} >/dev/null &
115
116 ~ I modified it to look like so:
117
118 ${NTPCLIENT_CMD} ${NTPCLIENT_OPTS} >> /var/log/net.log 2>&1 &
119
120 ~ Now whenever the cronjob runs, I get this in the /var/log/net.log
121 file:
122
123 # tail -f /var/log/net.log
124 ~ 1 Nov 00:00:11 ntpdate[10858]: step time server 195.234.188.3 offset
125 1.033035 sec
126 ~ 2 Nov 00:00:18 ntpdate[11481]: step time server 195.234.188.3 offset
127 1.014752 sec
128 ~ 3 Nov 00:00:16 ntpdate[28307]: step time server 66.98.194.91 offset
129 2.158018 sec
130 ~ 4 Nov 00:00:18 ntpdate[30128]: step time server 69.26.178.19 offset
131 1.018677 sec
132 ~ 5 Nov 00:00:12 ntpdate[30753]: step time server 66.98.194.91 offset
133 - -0.007693 sec
134 ~ 6 Nov 00:00:19 ntpdate[30880]: step time server 66.98.194.91 offset
135 2.001347 sec
136
137 ~ BTW, I'm running Gentoo on an 10-year-old machine. It is with a
138 Micronics W6LI dual Pentium Pro Mainboard. The CPUs are at 200MHz, and
139 the machine includes 256MB EDO (w/parity) RAM (DIMMS), and 3 18GB SCSI
140 disks. The machine is rock steady with Gentoo 2006.1. I've run this
141 machine dual booting between FreeBSD 6.0 and Debian stable. The
142 FreeBSD and Debian stable OSs would run for a while and then crash
143 with no opportunity to find out exactly why. Though I tried to
144 discover this over a great period of time, I really haven't figured it
145 out. Still, I have my suspicions. The Gentoo seems to just go and go.
146 No problems whatsoever, so far --- well, since the install was
147 complete, anyways. I've installed it just a couple of weeks ago. It
148 literally took days to install, and it crashed before completion. But
149 there was enough there to fix things. Here are a few of the logs, in
150 case anyone's interested:
151
152 # dmesg
153 Linux version 2.6.17-gentoo-r8 (root@psycho) (gcc version 4.1.1
154 (Gentoo 4.1.1)) #1 SMP Sun Nov 5 08:38:19 GMT 2006
155 BIOS-provided physical RAM map:
156 ~ BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
157 ~ BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
158 ~ BIOS-e820: 00000000000f9ec1 - 0000000000100000 (reserved)
159 ~ BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
160 ~ BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
161 ~ BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
162 ~ BIOS-e820: 00000000ffff9ec1 - 0000000100000000 (reserved)
163 0MB HIGHMEM available.
164 256MB LOWMEM available.
165 found SMP MP-table at 000f9a20
166 On node 0 totalpages: 65536
167 ~ DMA zone: 4096 pages, LIFO batch:0
168 ~ Normal zone: 61440 pages, LIFO batch:15
169 DMI not present or invalid.
170 ACPI: Unable to locate RSDP
171 Intel MultiProcessor Specification v1.4
172 ~ Virtual Wire compatibility mode.
173 OEM ID: INTEL Product ID: 440FX APIC at: 0xFEE00000
174 Processor #1 6:1 APIC version 17
175 Processor #0 6:1 APIC version 17
176 I/O APIC #2 Version 17 at 0xFEC00000.
177 Enabling APIC mode: Flat. Using 1 I/O APICs
178 Processors: 2
179 Allocating PCI resources starting at 20000000 (gap: 10000000:eec00000)
180 Built 1 zonelists
181 Kernel command line: init=/linuxrc ramdisk=8192 idebus=33 nomce
182 nopcmcia noagp nosata nohotplug nodhcp nodmraid nofstab panic=8
183 root=/dev/ram0 real_root=/dev/sdc3
184 ide_setup: idebus=33
185 mapped APIC to ffffd000 (fee00000)
186 mapped IOAPIC to ffffc000 (fec00000)
187 Initializing CPU#0
188 CPU 0 irqstacks, hard=c0517000 soft=c050f000
189 PID hash table entries: 2048 (order: 11, 8192 bytes)
190 Detected 199.316 MHz processor.
191 Using tsc for high-res timesource
192 Speakup v-2.00 CVS: Mon May 1 09:46:33 EDT 2006 : initialized
193 Console: colour VGA+ 80x25
194 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
195 Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
196 Memory: 252676k/262144k available (2766k kernel code, 8848k reserved,
197 1106k data, 236k init, 0k highmem)
198 Checking if this processor honours the WP bit even in supervisor
199 mode... Ok.
200 Calibrating delay using timer specific routine.. 399.54 BogoMIPS
201 (lpj=1997724)
202 Mount-cache hash table entries: 512
203 CPU: After generic identify, caps: 0000fbff 00000000 00000000 00000000
204 00000000 00000000 00000000
205 CPU: After vendor identify, caps: 0000fbff 00000000 00000000 00000000
206 00000000 00000000 00000000
207 CPU: L1 I cache: 8K, L1 D cache: 8K
208 CPU: L2 cache: 512K
209 CPU: After all inits, caps: 0000f3ff 00000000 00000000 00000040
210 00000000 00000000 00000000
211 Checking 'hlt' instruction... OK.
212 Freeing SMP alternatives: 20k freed
213 CPU0: Intel Pentium Pro stepping 09
214 Booting processor 1/0 eip 2000
215 CPU 1 irqstacks, hard=c0518000 soft=c0510000
216 Initializing CPU#1
217 Calibrating delay using timer specific routine.. 398.66 BogoMIPS
218 (lpj=1993307)
219 CPU: After generic identify, caps: 0000fbff 00000000 00000000 00000000
220 00000000 00000000 00000000
221 CPU: After vendor identify, caps: 0000fbff 00000000 00000000 00000000
222 00000000 00000000 00000000
223 CPU: L1 I cache: 8K, L1 D cache: 8K
224 CPU: L2 cache: 512K
225 CPU: After all inits, caps: 0000f3ff 00000000 00000000 00000040
226 00000000 00000000 00000000
227 CPU1: Intel Pentium Pro stepping 09
228 Total of 2 processors activated (798.20 BogoMIPS).
229 ExtINT not setup in hardware but reported by MP table
230 ENABLING IO-APIC IRQs
231 ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=0 pin2=0
232 checking TSC synchronization across 2 CPUs: passed.
233 Brought up 2 CPUs
234 migration_cost=8379
235 checking if image is initramfs... it is
236 Freeing initrd memory: 2047k freed
237 NET: Registered protocol family 16
238 EISA bus registered
239 PCI: PCI BIOS revision 2.10 entry at 0xfd9d6, last bus=1
240 Setting up standard PCI resources
241 ACPI: Subsystem revision 20060127
242 ACPI: Interpreter disabled.
243 Linux Plug and Play Support v0.97 (c) Adam Belay
244 pnp: PnP ACPI: disabled
245 SCSI subsystem initialized
246 usbcore: registered new driver usbfs
247 usbcore: registered new driver hub
248 PCI: Probing PCI hardware
249 PCI: Probing PCI hardware (bus 00)
250 Boot video device is 0000:01:01.0
251 PCI->APIC IRQ transform: 0000:00:0f.0[A] -> IRQ 19
252 PCI->APIC IRQ transform: 0000:00:0f.1[B] -> IRQ 16
253 PCI->APIC IRQ transform: 0000:00:0f.2[C] -> IRQ 17
254 PCI->APIC IRQ transform: 0000:00:0f.3[A] -> IRQ 19
255 PCI->APIC IRQ transform: 0000:00:10.0[A] -> IRQ 18
256 PCI->APIC IRQ transform: 0000:00:12.0[A] -> IRQ 16
257 PCI: Bridge: 0000:00:11.0
258 ~ IO window: disabled.
259 ~ MEM window: f0c00000-f0cfffff
260 ~ PREFETCH window: e8000000-efffffff
261 NET: Registered protocol family 2
262 IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
263 TCP established hash table entries: 8192 (order: 4, 65536 bytes)
264 TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
265 TCP: Hash tables configured (established 8192 bind 4096)
266 TCP reno registered
267 audit: initializing netlink socket (disabled)
268 audit(1162762388.870:1): initialized
269 squashfs: version 3.0 (2006/03/15) Phillip Lougher
270 JFS: nTxBlock = 1992, nTxLock = 15936
271 SGI XFS with ACLs, security attributes, realtime, large block numbers,
272 no debug enabled
273 SGI XFS Quota Management subsystem
274 Initializing Cryptographic API
275 io scheduler noop registered
276 io scheduler anticipatory registered (default)
277 io scheduler deadline registered
278 io scheduler cfq registered
279 Limiting direct PCI/PCI transfers.
280 Activating ISA DMA hang workarounds.
281 initialized device: /dev/synth, node ( MAJOR 10, MINOR 25 )
282 isapnp: Scanning for PnP cards...
283 pnp: SB audio device quirk - increasing port range
284 isapnp: Card 'Creative ViBRA16CL PnP'
285 isapnp: 1 Plug & Play card detected total
286 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
287 PNP: No PS/2 controller found. Probing ports directly.
288 serio: i8042 AUX port at 0x60,0x64 irq 12
289 serio: i8042 KBD port at 0x60,0x64 irq 1
290 mice: PS/2 mouse device common for all mice
291 RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
292 loop: loaded (max 8 devices)
293 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
294 ide: Assuming 33MHz system bus speed for PIO modes
295 PIIX3: IDE controller at PCI slot 0000:00:07.1
296 PIIX3: chipset revision 0
297 PIIX3: not 100% native mode: will probe irqs later
298 ~ ide0: BM-DMA at 0xfbf0-0xfbf7, BIOS settings: hda:pio, hdb:pio
299 ~ ide1: BM-DMA at 0xfbf8-0xfbff, BIOS settings: hdc:pio, hdd:pio
300 Probing IDE interface ide0...
301 input: AT Translated Set 2 keyboard as /class/input/input0
302 input: ImExPS/2 Generic Explorer Mouse as /class/input/input1
303 Probing IDE interface ide1...
304 hdc: SAMSUNG DVD-ROM SD-816B, ATAPI CD/DVD-ROM drive
305 ide1 at 0x170-0x177,0x376 on irq 15
306 Probing IDE interface ide0...
307 hdb: LITE-ON DVDRW SHW-160P6S, ATAPI CD/DVD-ROM drive
308 ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
309 Probing IDE interface ide2...
310 Probing IDE interface ide3...
311 Probing IDE interface ide4...
312 Probing IDE interface ide5...
313 hdb: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(66)
314 Uniform CD-ROM driver Revision: 3.20
315 hdc: ATAPI 48X DVD-ROM drive, 512kB Cache, (U)DMA
316 scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
317 ~ <Adaptec 2940 Ultra SCSI adapter>
318 ~ aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
319
320 ~ Vendor: SEAGATE Model: SX118273LC Rev: 6367
321 ~ Type: Direct-Access ANSI SCSI revision: 02
322 scsi0:A:0:0: Tagged Queuing enabled. Depth 32
323 ~ target0:0:0: Beginning Domain Validation
324 ~ target0:0:0: wide asynchronous
325 ~ target0:0:0: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
326 ~ target0:0:0: Domain Validation skipping write tests
327 ~ target0:0:0: Ending Domain Validation
328 ~ Vendor: SEAGATE Model: SX118273LC Rev: 6678
329 ~ Type: Direct-Access ANSI SCSI revision: 02
330 scsi0:A:1:0: Tagged Queuing enabled. Depth 32
331 ~ target0:0:1: Beginning Domain Validation
332 ~ target0:0:1: wide asynchronous
333 ~ target0:0:1: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
334 ~ target0:0:1: Domain Validation skipping write tests
335 ~ target0:0:1: Ending Domain Validation
336 ~ Vendor: SEAGATE Model: SX118273LC Rev: 6679
337 ~ Type: Direct-Access ANSI SCSI revision: 02
338 scsi0:A:2:0: Tagged Queuing enabled. Depth 32
339 ~ target0:0:2: Beginning Domain Validation
340 ~ target0:0:2: wide asynchronous
341 ~ target0:0:2: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
342 ~ target0:0:2: Domain Validation skipping write tests
343 ~ target0:0:2: Ending Domain Validation
344 SCSI device sda: 35566480 512-byte hdwr sectors (18210 MB)
345 sda: Write Protect is off
346 sda: Mode Sense: cb 00 10 08
347 SCSI device sda: drive cache: write through w/ FUA
348 SCSI device sda: 35566480 512-byte hdwr sectors (18210 MB)
349 sda: Write Protect is off
350 sda: Mode Sense: cb 00 10 08
351 SCSI device sda: drive cache: write through w/ FUA
352 ~ sda: sda1 sda2
353 sd 0:0:0:0: Attached scsi disk sda
354 SCSI device sdb: 35566480 512-byte hdwr sectors (18210 MB)
355 sdb: Write Protect is off
356 sdb: Mode Sense: cb 00 10 08
357 SCSI device sdb: drive cache: write through w/ FUA
358 SCSI device sdb: 35566480 512-byte hdwr sectors (18210 MB)
359 sdb: Write Protect is off
360 sdb: Mode Sense: cb 00 10 08
361 SCSI device sdb: drive cache: write through w/ FUA
362 ~ sdb: sdb1
363 ~ sdb1: <bsd: sdb5 sdb6 sdb7 sdb8 sdb9 >
364 sd 0:0:1:0: Attached scsi disk sdb
365 SCSI device sdc: 35566480 512-byte hdwr sectors (18210 MB)
366 sdc: Write Protect is off
367 sdc: Mode Sense: cb 00 10 08
368 SCSI device sdc: drive cache: write through w/ FUA
369 SCSI device sdc: 35566480 512-byte hdwr sectors (18210 MB)
370 sdc: Write Protect is off
371 sdc: Mode Sense: cb 00 10 08
372 SCSI device sdc: drive cache: write through w/ FUA
373 ~ sdc: sdc1 sdc2 sdc3
374 sd 0:0:2:0: Attached scsi disk sdc
375 PCI: Enabling device 0000:00:0f.2 (0014 -> 0016)
376 PCI: VIA IRQ fixup for 0000:00:0f.2, from 11 to 1
377 ehci_hcd 0000:00:0f.2: EHCI Host Controller
378 ehci_hcd 0000:00:0f.2: new USB bus registered, assigned bus number 1
379 ehci_hcd 0000:00:0f.2: irq 17, io mem 0xf0dffc00
380 ehci_hcd 0000:00:0f.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
381 usb usb1: configuration #1 chosen from 1 choice
382 hub 1-0:1.0: USB hub found
383 hub 1-0:1.0: 4 ports detected
384 ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
385 USB Universal Host Controller Interface driver v3.0
386 PCI: Enabling device 0000:00:0f.0 (0014 -> 0015)
387 PCI: VIA IRQ fixup for 0000:00:0f.0, from 10 to 3
388 uhci_hcd 0000:00:0f.0: UHCI Host Controller
389 uhci_hcd 0000:00:0f.0: new USB bus registered, assigned bus number 2
390 uhci_hcd 0000:00:0f.0: irq 19, io base 0x0000ecc0
391 usb usb2: configuration #1 chosen from 1 choice
392 hub 2-0:1.0: USB hub found
393 hub 2-0:1.0: 2 ports detected
394 PCI: Enabling device 0000:00:0f.1 (0014 -> 0015)
395 PCI: VIA IRQ fixup for 0000:00:0f.1, from 9 to 0
396 uhci_hcd 0000:00:0f.1: UHCI Host Controller
397 uhci_hcd 0000:00:0f.1: new USB bus registered, assigned bus number 3
398 uhci_hcd 0000:00:0f.1: irq 16, io base 0x0000eca0
399 usb usb3: configuration #1 chosen from 1 choice
400 hub 3-0:1.0: USB hub found
401 hub 3-0:1.0: 2 ports detected
402 md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
403 md: bitmap version 4.39
404 EISA: Probing bus 0 at eisa.0
405 EISA: Detected 0 cards.
406 Advanced Linux Sound Architecture Driver Version 1.0.11rc4 (Wed Mar 22
407 10:27:24 2006 UTC).
408 pnp: Device 00:01.00 activated.
409 ALSA device list:
410 ~ #0: Sound Blaster 16 at 0x220, irq 5, dma 1&5
411 TCP bic registered
412 NET: Registered protocol family 1
413 NET: Registered protocol family 17
414 Starting balanced_irq
415 Using IPI Shortcut mode
416 Freeing unused kernel memory: 236k freed
417 usbcore: registered new driver hiddev
418 usbcore: registered new driver usbhid
419 drivers/usb/input/hid-core.c: v2.6:USB HID core driver
420 Initializing USB Mass Storage driver...
421 usbcore: registered new driver usb-storage
422 USB Mass Storage support registered.
423 sl811: driver sl811-hcd, 19 May 2005
424 ieee1394: Initialized config rom entry `ip1394'
425 PCI: Enabling device 0000:00:0f.3 (0014 -> 0017)
426 PCI: VIA IRQ fixup for 0000:00:0f.3, from 10 to 3
427 ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[19]
428 MMIO=[f0dff000-f0dff7ff] Max Packet=[2] IR/IT contexts=[4/8]
429 ohci1394: fw-host0: Serial EEPROM has suspicious values, attempting to
430 setting max_packet_size to 512 bytes
431 ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1)
432 ieee1394: sbp2: Try serialize_io=0 for better performance
433 ieee1394: Host added: ID:BUS[0-00:1023] GUID[001106000000b377]
434 UDF-fs: No VRS found
435 XFS mounting filesystem sdc3
436 Ending clean XFS mount for filesystem: sdc3
437 Adding 265032k swap on /dev/sda1. Priority:1 extents:1 across:265032k
438 Adding 506036k swap on /dev/sdc2. Priority:2 extents:1 across:506036k
439 Real Time Clock Driver v1.12ac
440 8139too Fast Ethernet driver 0.9.27
441 PCI: Enabling device 0000:00:10.0 (0004 -> 0007)
442 eth0: RealTek RTL8139 at 0xd0a08800, 00:04:e2:11:21:45, IRQ 18
443 eth0: Identified 8139 chip type 'RTL-8139C'
444 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
445 savagefb: mapped io at d0b00000
446 savagefb: probed videoram: 4096k
447 savagefb: Detected current MCLK value of 120511 kHz
448 savagefb: mapped framebuffer at d0c00000, pbase == e8000000
449 savagefb v0.4.0_2.6: 3968kB VRAM, using 800x600, 37.878kHz, 60Hz
450 Console: switching to colour frame buffer device 100x37
451 fb: S3 Savage4 frame buffer device
452 kjournald starting. Commit interval 5 seconds
453 EXT3 FS on sda2, internal journal
454 EXT3-fs: mounted filesystem with ordered data mode.
455
456
457 # cat /proc/interrupts
458 ~ CPU0 CPU1
459 ~ 0: 4642229 4629208 IO-APIC-edge timer
460 ~ 1: 6447 7043 IO-APIC-edge i8042
461 ~ 2: 0 0 XT-PIC cascade
462 ~ 5: 0 0 IO-APIC-edge SoundBlaster
463 ~ 8: 2 0 IO-APIC-edge rtc
464 ~ 12: 14269 15147 IO-APIC-edge i8042
465 ~ 15: 22 3 IO-APIC-edge ide1
466 ~ 16: 141425 142631 IO-APIC-level aic7xxx, uhci_hcd:usb3
467 ~ 17: 0 0 IO-APIC-level ehci_hcd:usb1
468 ~ 18: 87892 1 IO-APIC-level eth0
469 ~ 19: 2 0 IO-APIC-level uhci_hcd:usb2, ohci1394
470 NMI: 0 0
471 LOC: 9271910 9271909
472 ERR: 0
473 MIS: 0
474
475 # lspci
476 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma]
477 (rev 02)
478 00:07.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton
479 II] (rev 01)
480 00:07.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE
481 [Natoma/Triton II]
482 00:0f.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
483 Controller (rev 61)
484 00:0f.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
485 Controller (rev 61)
486 00:0f.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
487 00:0f.3 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
488 Controller (rev 46)
489 00:10.0 Ethernet controller: Accton Technology Corporation SMC2-1211TX
490 (rev 10)
491 00:11.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge
492 (non-transparent mode) (rev 12)
493 00:12.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
494 01:01.0 VGA compatible controller: S3 Inc. Savage 4 (rev 03)
495
496 # lsusb
497 Bus 003 Device 001: ID 0000:0000
498 Bus 002 Device 001: ID 0000:0000
499 Bus 001 Device 001: ID 0000:0000
500
501 # ifconfig
502 eth0 Link encap:Ethernet HWaddr ##:##:##:##:##:##
503 ~ inet addr:192.168.1.20 Bcast:192.168.1.31
504 Mask:255.255.255.224
505 ~ UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
506 ~ RX packets:55893 errors:0 dropped:0 overruns:0 frame:0
507 ~ TX packets:33735 errors:0 dropped:0 overruns:0 carrier:0
508 ~ collisions:0 txqueuelen:1000
509 ~ RX bytes:68567997 (65.3 Mb) TX bytes:4945109 (4.7 Mb)
510 ~ Interrupt:18 Base address:0x8800
511
512 lo Link encap:Local Loopback
513 ~ inet addr:127.0.0.1 Mask:255.0.0.0
514 ~ UP LOOPBACK RUNNING MTU:16436 Metric:1
515 ~ RX packets:0 errors:0 dropped:0 overruns:0 frame:0
516 ~ TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
517 ~ collisions:0 txqueuelen:0
518 ~ RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
519
520 # lsmod
521 Module Size Used by
522 savagefb 18436 1
523 8139too 18304 0
524 mii 3008 1 8139too
525 rtc 8660 0
526 nfs 79276 0
527 lockd 41416 1 nfs
528 sunrpc 100540 2 nfs,lockd
529 sbp2 15848 0
530 ohci1394 25456 0
531 ieee1394 55416 2 sbp2,ohci1394
532 sl811_hcd 8960 0
533 usb_storage 55456 0
534 usbhid 31488 0
535
536 ~ Here is an output of the "top" command showing current executions.
537 The machine was recently rebooted after a recompilation of the kernel
538 to r8, and a subsequent reboot to check it out. Currently the machine
539 is in the process of installing/compiling KDE. It's been doing so for
540 nearly the entire uptime.
541
542 # top -bcn 1
543 top - 23:46:56 up 1 day, 2:13, 6 users, load average: 1.22, 1.16, 1.11
544 Tasks: 74 total, 2 running, 72 sleeping, 0 stopped, 0 zombie
545 Cpu(s): 36.3% us, 16.9% sy, 0.0% ni, 46.6% id, 0.2% wa, 0.0% hi,
546 0.0% si
547 Mem: 255212k total, 203404k used, 51808k free, 60k buffers
548 Swap: 771068k total, 236k used, 770832k free, 112140k cached
549
550 ~ PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
551 32617 root 25 0 54460 44m 5592 R 98 18.0 0:12.77
552 /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -quiet -I. -I. -I
553 10310 root 17 0 2152 1144 852 S 9 0.4 64:03.34 top
554 32637 root 15 0 2148 1016 760 R 6 0.4 0:00.09 top -bcn 1
555 ~ 1 root 16 0 1520 540 468 S 0 0.2 0:04.76 init [3]
556 ~ 2 root RT 0 0 0 0 S 0 0.0 0:11.62
557 [migration/0]
558 ~ 3 root 34 19 0 0 0 S 0 0.0 0:00.20
559 [ksoftirqd/0]
560 ~ 4 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/0]
561 ~ 5 root RT 0 0 0 0 S 0 0.0 0:14.01
562 [migration/1]
563 ~ 6 root 34 19 0 0 0 S 0 0.0 0:00.14
564 [ksoftirqd/1]
565 ~ 7 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/1]
566 ~ 8 root 10 -5 0 0 0 S 0 0.0 0:01.29 [events/0]
567 ~ 9 root 10 -5 0 0 0 S 0 0.0 0:00.95 [events/1]
568 ~ 10 root 10 -5 0 0 0 S 0 0.0 0:00.03 [khelper]
569 ~ 11 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kthread]
570 ~ 14 root 10 -5 0 0 0 S 0 0.0 0:00.05 [kblockd/0]
571 ~ 15 root 10 -5 0 0 0 S 0 0.0 0:00.14 [kblockd/1]
572 ~ 16 root 10 -5 0 0 0 S 0 0.0 0:00.03 [kseriod]
573 ~ 19 root 10 -5 0 0 0 S 0 0.0 0:00.00 [khubd]
574 ~ 88 root 15 0 0 0 0 S 0 0.0 0:06.63 [pdflush]
575 ~ 89 root 15 0 0 0 0 S 0 0.0 0:31.10 [pdflush]
576 ~ 90 root 15 0 0 0 0 S 0 0.0 0:04.00 [kswapd0]
577 ~ 91 root 11 -5 0 0 0 S 0 0.0 0:00.00 [aio/0]
578 ~ 92 root 11 -5 0 0 0 S 0 0.0 0:00.00 [aio/1]
579 ~ 93 root 11 -5 0 0 0 S 0 0.0 0:00.00 [jfsIO]
580 ~ 94 root 11 -5 0 0 0 S 0 0.0 0:00.00 [jfsCommit]
581 ~ 95 root 11 -5 0 0 0 S 0 0.0 0:00.00 [jfsCommit]
582 ~ 96 root 11 -5 0 0 0 S 0 0.0 0:00.00 [jfsSync]
583 ~ 97 root 10 -5 0 0 0 S 0 0.0 0:05.61 [xfslogd/0]
584 ~ 98 root 10 -5 0 0 0 S 0 0.0 0:06.10 [xfslogd/1]
585 ~ 99 root 10 -5 0 0 0 S 0 0.0 0:01.05 [xfsdatad/0]
586 ~ 100 root 10 -5 0 0 0 S 0 0.0 0:00.85 [xfsdatad/1]
587 ~ 194 root 11 -5 0 0 0 S 0 0.0 0:00.00 [kpsmoused]
588 ~ 259 root 11 -5 0 0 0 S 0 0.0 0:00.00 [scsi_eh_0]
589 ~ 347 root 15 0 0 0 0 S 0 0.0 0:00.00 [kirqd]
590 ~ 1249 root 15 0 0 0 0 S 0 0.0 0:00.01 [khpsbpkt]
591 ~ 1314 root 15 0 0 0 0 S 0 0.0 0:00.00
592 [knodemgrd_0]
593 ~ 1636 root 10 -5 0 0 0 S 0 0.0 0:00.45 [xfsbufd]
594 ~ 1637 root 10 -5 0 0 0 S 0 0.0 0:02.22 [xfssyncd]
595 ~ 2762 root 11 -4 1740 556 356 S 0 0.2 0:02.77
596 /sbin/udevd --daemon
597 ~ 9844 root 15 0 1752 560 392 S 0 0.2 0:00.55
598 /usr/sbin/syslog-ng
599 ~ 9917 root 16 0 1504 376 308 S 0 0.1 0:01.55
600 /sbin/irqbalance
601 10131 root 16 0 4168 1064 752 S 0 0.4 0:00.01
602 /usr/sbin/sshd
603 10203 root 16 0 1764 676 548 S 0 0.3 0:00.61
604 /usr/sbin/cron
605 10280 root 16 0 2332 1144 888 S 0 0.4 0:00.08 /bin/login --
606 10281 root 16 0 2332 1144 888 S 0 0.4 0:00.08 /bin/login --
607 10282 root 16 0 2332 1144 888 S 0 0.4 0:00.05 /bin/login --
608 10283 root 16 0 2332 1152 892 S 0 0.5 0:00.07 /bin/login --
609 10284 root 16 0 2328 1140 888 S 0 0.4 0:00.06 /bin/login --
610 10285 root 17 0 1552 616 532 S 0 0.2 0:00.02
611 /sbin/agetty 38400 tty6 linux
612 10296 root 15 0 2612 1572 1248 S 0 0.6 0:00.12 -bash
613 10307 root 16 0 2608 1540 1228 S 0 0.6 0:00.06 -bash
614 10311 root 15 0 2612 1564 1248 S 0 0.6 0:00.09 -bash
615 10321 root 16 0 12660 10m 2368 S 0 4.1 6:02.72
616 /usr/bin/python -O /usr/bin/emerge kde
617 30464 root 19 0 2416 1096 920 S 0 0.4 1:02.03 /bin/bash
618 ./monitorIrqBalance.bash
619 30670 root 16 0 2744 1592 1260 S 0 0.6 0:01.18 -bash
620 ~ 9870 root 15 0 2608 1572 1252 S 0 0.6 0:00.73 -bash
621 ~ 6066 root 16 0 1564 452 348 S 0 0.2 0:00.03
622 [kdepim-3.5.2-r2] sandbox /usr/lib/portage/bin/ebuild.sh compile
623 ~ 6067 root 19 0 5232 3628 1020 S 0 1.4 0:03.80 /bin/bash
624 /usr/lib/portage/bin/ebuild.sh compile
625 15292 root 21 0 2580 1340 672 S 0 0.5 0:00.13 make
626 15294 root 24 0 2584 1376 692 S 0 0.5 0:00.10 make
627 all-recursive
628 15295 root 16 0 2968 1472 952 S 0 0.6 0:00.10 /bin/sh
629 - -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \? case
630 ~ 703 root 15 0 7120 2272 1796 S 0 0.9 0:04.55 sshd:
631 root@pts/0
632 ~ 715 root 15 0 2736 1588 1260 S 0 0.6 0:01.02 -bash
633 15337 root 15 0 1528 456 380 S 0 0.2 0:00.03 tail -f
634 /var/log/emerge.log
635 18675 root 16 0 2968 940 420 S 0 0.4 0:00.01 /bin/sh
636 - -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \? case
637 18676 root 21 0 2712 1564 692 S 0 0.6 0:00.21 make all
638 18677 root 23 0 2972 1472 952 S 0 0.6 0:00.03 /bin/sh
639 - -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \? case
640 18683 root 23 0 2972 940 420 S 0 0.4 0:00.00 /bin/sh
641 - -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \? case
642 18684 root 18 0 3092 1920 692 S 0 0.8 0:01.36 make all-am
643 19746 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kjournald]
644 32414 root 25 0 3756 2208 1000 S 0 0.9 0:00.85 /bin/sh
645 ../libtool --silent --tag=CXX --mode=compile i686-pc-linux
646 32616 root 25 0 2180 944 500 S 0 0.4 0:00.04
647 /usr/i686-pc-linux-gnu/gcc-bin/4.1.1/i686-pc-linux-gnu-g++ -DHAVE_
648 32618 root 25 0 3216 1356 736 S 0 0.5 0:00.03
649 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu
650 32636 root 19 0 1500 392 336 S 0 0.2 0:00.00 sleep 4
651
652
653
654
655
656 On Monday 06 November 2006 19:52, reader@×××××××.com wrote:
657
658 |> John Blinka <jblinka@××××××.com> writes:
659 |
660 |>>> I have a very old Dell P150ST laptop that I try to maintain
661 |>>> Gentoo on. Every time I boot it, it complains "ERROR: cannot
662 |>>> start ntp-client as net.eth0 could not be started".
663 |
664 |>
665 |> One way that will probably work is to start ntp-client from
666 |> /etc/conf.d/local-start
667 |>
668 |> local-start is the very last thing called during a bootup so if
669 |> timing is the problem this would be a way to skirt around it.
670 |>
671 |> Just put whatever commands start ntp-client in
672 |> /etc/conf.d/local-start and see if it works.
673
674
675 Actually I have this in /etc/conf.d/net:
676
677 postup() {
678 ~ [...]
679
680 ~ /etc/init.d/ntp-client start >> /var/log/net.log
681 ~ return 0
682 }
683
684 postdown() {
685 ~ [...]
686
687 ~ /etc/init.d/ntp-client stop >> /var/log/net.log
688 ~ return 0
689 }
690
691 - --
692 Bo Andresen
693 -----BEGIN PGP SIGNATURE-----
694 Version: GnuPG v1.4.1 (GNU/Linux)
695 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
696
697 iD8DBQFFUFi9fWQlBE75UIgRAljDAJ4uOuMMej54p/VSny5Ka02/XJsf5gCfUzLh
698 5d9hQnmhtRZ6f+WpMpIRxHs=
699 =vd+h
700 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] NTP: ntp-client doesn't start PaulNM <gentoo@×××××××××.com>