Getting Peer hold all free leases

perl-list perl-list at network1.net
Tue Aug 17 13:50:00 UTC 2021


Be sure and do the secondary server.  The primary will allocate leases while the secondary is in recover state.  The reverse is not true, in my experience.  Never clear the leases file from the primary if you can avoid it.

----- Original Message -----
> From: "Simon" <dhcp1 at thehobsons.co.uk>
> To: "Users of ISC DHCP" <dhcp-users at lists.isc.org>
> Sent: Tuesday, August 17, 2021 9:26:30 AM
> Subject: Re: Getting Peer hold all free leases

> Kraishak Mahtha <kraishak.edu at gmail.com> wrote:

> > On the primary log it shows as : total 50 free 0 backup 0
>> Aug 17 17:15:48 dhcp1 dhcpd[12130]: peer peer-host: Got POOLREQ, answering
> > negatively! Peer may be out of leases or database inconsistent.

> > but in the failover log it shows as
>> Aug 17 17:14:48 dhcp2 dhcpd[1902]: balancing pool bf05b0 192.168.56.0/24 total
> > 50 free 50 backup 0 lts -25 max-own (+/-)5 (requesting peer rebalance!)
>> Aug 17 17:14:48 dhcp2 dhcpd[1902]: balanced pool bf05b0 192.168.56.0/24 total 50
> > free 50 backup 0 lts -25 max-misbal 8
> > pool response: 0 leases

>> because of some reason the pool is not getting balanced between the primary and
> > failover

> Caveat that I’ve not used failover myself …

> Might also be worth having a look at the two leases files and check that they
> look normal. Does the secondary have any leases recorded as belonging to the
> primary ?

> After that, I would suggest :
> shut down one server (A)
> put the other (B) into partner-down state
> restart (B) to clear anything that might be "messed up" in memory/internal state
> move the leases file of the shut down server (A) and create a new empty one
> start up the server (A)

> The server with the cleared out leases file should then pull a copy fo the
> leases file from it’s partner and they should go into sync. I’d suggest that
> you clear the secondary on the basis that it appears to be saying it has no
> current leases while the primary appears to think that it has no free leases.

> If things appear to sort themselves out, how many leases appear to be in use ?
> If there’s nothing free then you will need to expand the pool.

> Simon

> _______________________________________________
> ISC funds the development of this software with paid support subscriptions.
> Contact us at https://www.isc.org/contact/ for more information.

> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users


More information about the dhcp-users mailing list