Migration from ISC 4.4.1 to Red Hat dhcpd (ISC 4.1.1-P1)

Pereida, Alejandro APereida at IID.com
Wed Oct 3 16:22:45 UTC 2018


Thanks, will migrate to RHEL 7 then

-----Original Message-----
From: Pavel Zhukov <pzhukov at redhat.com> 
Sent: Wednesday, October 03, 2018 9:15 AM
To: Pereida, Alejandro <APereida at IID.com>
Cc: Users of ISC DHCP <dhcp-users at lists.isc.org>
Subject: Re: Migration from ISC 4.4.1 to Red Hat dhcpd (ISC 4.1.1-P1)


Hello,
Rewind state has been added in dhcp-4.2+ [1]. Looks like you're using RHEL6. You may want to update to RHEL7+ which ships dhcp-4.2.5 and includes support of rewind state.


"Pereida, Alejandro" <APereida at IID.com> writes:

> How can a dhcp server that has been working with ISC 4.4.1 be migrated to ISC 4.1.1-P1 (Red Hat supported  version) without losing entries on the dhcpd.leases file?
>
> The dhcpd.conf file from the 4.4.1 version seems to run fine on
> 4.1.1-P1 but the dhcpd.leases file gets trimmed, the original 
> dhcpd.leases file under 4.4.1 has about 3400 active leases and once 
> the 4.1.1 is started it complains about "corrupt lease file" and trims 
> it to a point where the dhcpd.leases file now shows only 350 active 
> leases (almost 10 times less), here is the error we get once the
> 4.1.1-P1 server is started using a dhcpd.leases file that was produced 
> with 4.4.1:
>
>
> First time 4.1.1-P1 is executed:
> Oct  2 23:34:45 webdhcp2 dhcpd: Corrupt lease file - possible data loss!
> Oct  2 23:34:45 webdhcp2 dhcpd: Corrupt lease file - possible data loss!
> Oct  2 23:34:45 webdhcp2 dhcpd: Corrupt lease file - possible data loss!
> Oct  2 23:34:45 webdhcp2 dhcpd: Corrupt lease file - possible data loss!
> Oct  2 23:34:45 webdhcp2 dhcpd: Corrupt lease file - possible data loss!
> Oct  2 23:34:45 webdhcp2 dhcpd: /var/lib/dhcpd/dhcpd.leases line 3208: Unexpected configuration directive.
> Oct  2 23:34:45 webdhcp2 dhcpd:   rewind
> Oct  2 23:34:45 webdhcp2 dhcpd:    ^
> Oct  2 23:34:45 webdhcp2 dhcpd: /var/lib/dhcpd/dhcpd.leases line 3208: possibly corrupt lease file
> Oct  2 23:34:45 webdhcp2 dhcpd:   rewind binding state free;
> Oct  2 23:34:45 webdhcp2 dhcpd:                             ^
>
> Second time 4.1.1-P1 is executed:
> Oct  2 23:35:34 webdhcp2 dhcpd: Internet Systems Consortium DHCP 
> Server 4.1.1-P1 Oct  2 23:35:34 webdhcp2 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
> Oct  2 23:35:34 webdhcp2 dhcpd: All rights reserved.
> Oct  2 23:35:34 webdhcp2 dhcpd: For info, please visit 
> https://www.isc.org/software/dhcp/
> Oct  2 23:35:34 webdhcp2 dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
> Oct  2 23:35:34 webdhcp2 dhcpd: Not searching LDAP since ldap-server, 
> ldap-port and ldap-base-dn were not specified in the config file Oct  2 23:35:34 webdhcp2 dhcpd: Wrote 0 class decls to leases file.
> Oct  2 23:35:34 webdhcp2 dhcpd: Wrote 0 deleted host decls to leases file.
> Oct  2 23:35:34 webdhcp2 dhcpd: Wrote 0 new dynamic host decls to leases file.
> Oct  2 23:35:34 webdhcp2 dhcpd: Wrote 4634 leases to leases file.     =====================>>>>> The original file has over 7000 entries
> Oct  2 23:35:34 webdhcp2 dhcpd: Listening on LPF/eth7/fc:35:56:e0:00:8a/192.168.7.0/24
> Oct  2 23:35:34 webdhcp2 dhcpd: Sending on   LPF/eth7/fc:35:56:e0:00:8a/192.168.7.0/24
> Oct  2 23:35:34 webdhcp2 dhcpd: Sending on   Socket/fallback/fallback-net
>
> Thanks
>
> Alex P
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

[1] https://kb.isc.org/docs/aa-01099

--
PAVEL ZHUKOV
SOFTWARE ENGINEER, RHCE, RHCVA
Red Hat 
pzhukov at redhat.com    IM: IRC: landgraf

 


More information about the dhcp-users mailing list