Re: Getting Peer hold all free leases

perl-list <[email protected]>
Newsgroups gmane.network.dhcp.isc.dhcp-client
Message-ID <88512779.840613.1629208200215.JavaMail.zimbra__46835.2088400692$1629208228$gmane$org@network1.net>
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" <[email protected]>
> To: "Users of ISC DHCP" <[email protected]>
> Sent: Tuesday, August 17, 2021 9:26:30 AM
> Subject: Re: Getting Peer hold all free leases

> Kraishak Mahtha <[email protected]> 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
> [email protected]
> https://lists.isc.org/mailman/listinfo/dhcp-users
_______________________________________________
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
[email protected]
https://lists.isc.org/mailman/listinfo/dhcp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.