Getting Peer hold all free leases
Simon
dhcp1 at thehobsons.co.uk
Tue Aug 17 13:26:30 UTC 2021
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
More information about the dhcp-users
mailing list