From 9ff63170adb1728dcac9907257576e414cdcc24e Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 24 Mar 2016 09:27:15 -0400 Subject: [PATCH] add a tip for dhcp lease file growth in large cluster --- .../advanced/hierarchy/configure_dhcp.rst | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/source/advanced/hierarchy/configure_dhcp.rst b/docs/source/advanced/hierarchy/configure_dhcp.rst index 38317c2bb..c4ace12f5 100644 --- a/docs/source/advanced/hierarchy/configure_dhcp.rst +++ b/docs/source/advanced/hierarchy/configure_dhcp.rst @@ -6,5 +6,25 @@ Add the relevant networks into the DHCP configuration, refer to: :ref:`Setup-dhc Add the defined nodes into the DHCP configuration, refer to: `XCAT_pLinux_Clusters/#configure-dhcp `_ +In the large cluster, the size of dhcp lease file "/var/lib/dhcpd/dhcpd.leases" on the DHCP server will grow over time, when it increases to around 100MB, the DHCP server will take a long time to respond the DHCP requests from the clients, which will cause the DHCP timeout in the client's side: :: + + ... + Mar 2 01:59:10 c656ems2 dhcpd: DHCPDISCOVER from 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPOFFER on 9.114.39.101 to 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPREQUEST for 9.114.39.101 (9.114.39.157) from 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPACK on 9.114.39.101 to 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPDECLINE of 9.114.39.101 from 00:0a:f7:73:7d:d0 via eth0: not found + Mar 2 01:59:10 c656ems2 dhcpd: DHCPDISCOVER from 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPOFFER on 9.114.39.101 to 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPREQUEST for 9.114.39.101 (9.114.39.157) from 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPACK on 9.114.39.101 to 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPDECLINE of 9.114.39.101 from 00:0a:f7:73:7d:d0 via eth0: not found + Mar 2 01:59:10 c656ems2 dhcpd: DHCPDISCOVER from 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPOFFER on 9.114.39.101 to 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPREQUEST for 9.114.39.101 (9.114.39.157) from 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPACK on 9.114.39.101 to 00:0a:f7:73:7d:d0 via eth0 + Mar 2 01:59:10 c656ems2 dhcpd: DHCPDECLINE of 9.114.39.101 from 00:0a:f7:73:7d:d0 via eth0: not found + ... +The solution is simply to restart the dhcpd service or run ``makedhcp -n``.