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

Pereida, Alejandro APereida at IID.com
Wed Oct 3 00:12:42 UTC 2018


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


More information about the dhcp-users mailing list