DHCP 4.2.0 does nothing
Ray Phillips
r.phillips at uq.edu.au
Thu Jul 22 08:46:05 UTC 2010
Late yesterday afternoon I installed DHCP 4.2.0 on our failover pair
which are running NetBSD/i386 5.0.2.
There were no difficulties during installation...
% /usr/bin/time sh -c 'CFLAGS="-static" ./configure --sysconfdir=/etc
--disable-dhcpv6 > configure.log 2>&1'
32.24 real 17.07 user 11.43 sys
% /usr/bin/time sh -c 'make > make.log 2>&1'
672.91 real 528.69 user 93.26 sys
%
% su
Password:
# /usr/bin/time sh -c 'make install > make-install.log 2>&1'
7.84 real 3.02 user 4.18 sys
#
except that, annoyingly, GNU make is now required. I remember that
it was also required for 4.0.0a1 but Shane modified it so BSD make
was sufficient. Is it possibile to do away with the necessity for
using GNU make in future releases too, please?
After installation I killed the 4.1.1-P1 daemons, started the 4.2.0
ones and checked /var/log/dhcpd (this is from the primary, which was
started second):
Jul 21 17:01:26 dhcp1 dhcpd: peer foo: disconnected
Jul 21 17:01:26 dhcp1 dhcpd: failover peer foo: I move from normal to
communications-interrupted
Jul 21 17:01:38 dhcp1 dhcpd: Internet Systems Consortium DHCP Server 4.2.0
Jul 21 17:01:38 dhcp1 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Jul 21 17:01:38 dhcp1 dhcpd: All rights reserved.
Jul 21 17:01:38 dhcp1 dhcpd: For info, please visit
https://www.isc.org/software/dhcp/
Jul 21 17:01:38 dhcp1 dhcpd: Wrote 0 class decls to leases file.
Jul 21 17:01:38 dhcp1 dhcpd: Wrote 0 deleted host decls to leases file.
Jul 21 17:01:38 dhcp1 dhcpd: Wrote 0 new dynamic host decls to leases file.
Jul 21 17:01:38 dhcp1 dhcpd: Wrote 632 leases to leases file.
Jul 21 17:01:38 dhcp1 dhcpd: failover peer foo: I move from
communications-interrupted to startup
That looked OK so I went home. Later I checked how the primary was
going -- fortunately because the only line that had been added to the
log file in the eight intervening hours was:
Jul 21 17:01:53 egalite dhcpd: failover peer foo: I move from startup
to communications-interrupted
top showed the dhcpd daemon was using a lot of cpu cycles:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
13007 root 27 0 7980K 1168K RUN 0:59 94.88% 90.62% dhcpd
27535 root 85 0 2844K 1184K wait 0:01 2.78% 2.64% less
24876 ray 85 0 8668K 2792K select 0:00 0.15% 0.15% sshd
9248 root 85 0 28M 26M kqueue 487:08 0.00% 0.00% named
0 root 96 0 0K 22M rfwcond 214:12 0.00% 0.00% [system]
114 root 85 0 2932K 1020K kqueue 125:39 0.00% 0.00% syslogd
The machine is only a 400 MHz PII but that's abnormal. Usually top
shows dhcpd is way down the list of processess and using 0% CPU.
The situation was the same on the secondary. I checked
/etc/dhcpd.conf and /var/db/dhcpd.leases using `dhcpd -t' and `dhcpd
-T' and restarted the daemons but since there was no change, went
back to using 4.1.1-P1.
I didn't make any changes to the configuration file between stopping
4.1.1-P1 and starting 4.2.0, assuming none were required. I wonder
if I'm guilty of missing an obvious instruction or warning in the
release notes?
I've just noticed that the 4.x daemons don't print 'Listening' on or
'Sending on' information when they start like this:
Aug 26 15:49:43 proxy0 dhcpd: Listening on BPF/ex0/00:c0:4f:cf:f1:8e/jkmrc
Aug 26 15:49:43 proxy0 dhcpd: Sending on BPF/ex0/00:c0:4f:cf:f1:8e/jkmrc
Aug 26 15:49:43 proxy0 dhcpd: Sending on Socket/fallback/fallback-net
as the 3.x versions did. Why is that?
Ray
More information about the dhcp-users
mailing list