Re: [Kea-users] Migrating from older kea to HA pair

2025-11-01 Thread Darren Ankney
Hello,

> Can I dump the leases and just import them into the new sql database and 
> disable the old?  Is it that simple?

Yes it is that simple, see here:
https://kea.readthedocs.io/en/kea-2.6.4/man/kea-admin.8.html
specifically the parameters "lease-dump" and "lease-upload". You will
want to stop Kea on the old server, dump, then upload on the new
server, then start Kea on the HA pair.  Please note that each HA will
need its own database to connect to. If they share a database, then
you will need to turn off lease syncing in the HA hook settings.

>
> Was worried about how HA would react and if there were any mappings in the 
> new HA pair for which server was responsible for each lease.

There are two modes of operation for HA.  These are load-balancing and
hot-standby.  I recommend hot-standby as it is far simpler.
load-balancing mode requires that you manually split the pools using a
special client class (see here:
https://kea.readthedocs.io/en/kea-2.6.4/arm/hooks.html#load-balancing-configuration).

Thank you,
Darren Ankney
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
[email protected]


[Kea-users] Migrating from older kea to HA pair

2025-10-27 Thread Brandon Belew
Good morning,

Just curious if anyone has a guide handy for migrating from a single older KEA 
dhcp server to a new HA pair.  There are several thousand leases and I would 
prefer to copy the lease table over first instead of them all getting new 
leases if possible.

My pair have their own MySQL backend for leases

Can I dump the leases and just import them into the new sql database and 
disable the old?  Is it that simple?

Was worried about how HA would react and if there were any mappings in the new 
HA pair for which server was responsible for each lease.

Any information would be appreciated!

Thanks!

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

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
[email protected]