--On Wednesday, September 14, 2022 6:03 PM +0200 Uwe Sauter uwe.sauter.de@gmail.com wrote:
Dear list,
I need to add an index for a new attribute in an active-active replication scenario.
I know I need to run slapindex to create the index for existing entries after I changed the configuration file (yes, still on 2.4 with slapd.conf). But what is the correct procedure to update both servers? I'm a bit worried that the setup will become out-of-sync if I just update one server at a time. Would it be better to stop the service on both servers and re-index the databases at the same time before going online again?
Stop server 1 change slapd.conf slapindex -q -f /path/to/slapd.conf -b "your base" <attr name> start server 1
stop server 2 change slapd.conf slapindex -q -f /path/to/slapd.conf -b "your base" <attr name> start server 2
Neither server cares about the indexing in place on the other server. The main issue would be that queries that are expecting the index to exist will be slow until it is in place.
--Quanah