Migration of leases from one failover pair to another without outage

Holger Honert holger.honert at signal-iduna.org
Wed Feb 27 06:35:28 UTC 2008



> Step 1:
>
>  +---------+                           +---------+
>  | +-----+ |                           | +-----+ |
>  | |testa| | <-----------------------> | |testa| |
>  | +-----+ |                           | +-----+ |
>  +---------+                           +---------+
>  primary-a.test                        secondary-a.test
>
>                                        +---------+
>                                        |         |
>                                        |         |
>                                        |         |
>                                        +---------+
>                                        secondary-b.test
> To here:
> Step 2:
>
>  +---------+                           +---------+
>  | +-----+ |                           |         |
>  | |testa| | <---------\               |         |
>  | +-----+ |            \              |         |
>  +---------+             \             +---------+
>  primary-a.test           \            secondary-a.test
>                            \
>                             \          +---------+
>                              \         | +-----+ |
>                               \------> | |testa| |
>                                        | +-----+ |
>                                        +---------+
>                                        secondary-b.test
>
> Stage 1:
> In /etc/dhcpd.conf on primary-a.test:
>
> failover peer "testa" {
>         primary;
>         address primary-a.test;
>         port 520;
>         peer address secondary-a.test;
>         peer port 520;
>         max-response-delay 60;
>         max-unacked-updates 10;
>         mclt 3600;
>         split 128;
>         load balance max seconds 3;
> }
>
> In /etc/dhcpd.conf on secondary-a.test:
>
> failover peer "testa" {
>         primary;
>         address dhca1.test;
>         port 520;
>         peer address secondary-a.test;
>         peer port 520;
>         max-response-delay 60;
>         max-unacked-updates 10;
>         load balance max seconds 3;
> }
>
"peer address" should be primary-a.test!

> Stage 2:
> failover peer "testa" {
>         primary;
>         address dhca1.test;
>         port 520;
>         peer address secondary-b.test; # CHANGED => need restart.
>         peer port 520;
>         max-response-delay 60;
>         max-unacked-updates 10;
>         mclt 3600;
>         split 128;
>         load balance max seconds 3;
> }
>
> In /etc/dhcpd.conf on secondary-b.test:
>
> failover peer "testa" {
>         primary;
>         address dhca1.test;
>         port 520;
>         peer address secondary-b.test;
>         peer port 520;
>         max-response-delay 60;
>         max-unacked-updates 10;
>         load balance max seconds 3;
> }
>
> Or indeed, I'd love to hear any other suggestions for migrating leases
> from one failover pair to another without an outage.

My suggestion:

stop the secondary-a, transfer the leasefile to secondary-b, stop (or 
restart) primary-a and startup secondary-b at the same time.

keep in mind to tell dhcp-relays, i.e. routers or layer3-switches to use 
the new secondary-b server.

HTH

Regards

Holger



SIGNAL Krankenversicherung a. G.
Sitz: Dortmund, HR B 2405 AG Dortmund, Ust-IdNr. DE 124906350
IDUNA Vereinigte Lebensversicherung aG fur Handwerk, Handel und Gewerbe
Sitz: Hamburg, HR B 2740 AG Hamburg, Ust-IdNr. DE 118617622
SIGNAL Unfallversicherung a. G.
Sitz: Dortmund, HR B 2220, AG Dortmund, Ust-IdNr. DE 124906341
SIGNAL IDUNA Allgemeine Versicherung AG
Sitz: Dortmund, HR B 19108, AG Dortmund, Ust-IdNr. DE 118617622

Vorstande:
Reinhold Schulte (Vorsitzender), Dr. Karl-Josef Bierth, Michael Johnigk,
Ulrich Leitermann, Michael Petmecky, Dr. Klaus Sticker, Vorsitzender der
Aufsichtsrate: Gunter Kutz

SIGNAL IDUNA Gruppe Hauptverwaltungen, Internet: www.signal-iduna.de,
E-Mail: info at signal-iduna.de

44121 Dortmund, Hausanschrift: Joseph-Scherer-Str. 3, 44139 Dortmund,
Telefon: (02 31) 1 35-0, Telefax: (02 31) 1 35-46 38

20351 Hamburg, Hausanschrift: Neue Rabenstra?e 15-19, 20354 Hamburg,
Telefon: (0 40) 41 24-0, Telefax: (0 40) 41 24-29 58
-------------- next part --------------
A non-text attachment was scrubbed...
Name: holger_honert.vcf
Type: text/x-vcard
Size: 290 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20080227/94d19322/attachment.vcf>


More information about the dhcp-users mailing list