[Freeipa-devel] [PATCH] 1031 run cleanallruv task

Rob Crittenden rcritten at redhat.com
Tue Jul 3 14:41:00 UTC 2012


Deleting a replica can leave a replication vector (RUV) on the other 
servers. This can confuse things if the replica is re-added, and it also 
causes the server to calculate changes against a server that may no 
longer exist.

389-ds-base provides a new task that self-propogates itself to all 
available replicas to clean this RUV data.

This patch will create this task at deletion time to hopefully clean 
things up.

It isn't perfect. If any replica is down or unavailable at the time the 
cleanruv task fires, and then comes back up, the old RUV data may be 
re-propogated around.

To make things easier in this case I've added two new commands to 
ipa-replica-manage. The first lists the replication ids of all the 
servers we have a RUV for. Using this you can call clean_ruv with the 
replication id of a server that no longer exists to try the cleanallruv 
step again.

This is quite dangerous though. If you run cleanruv against a replica id 
that does exist it can cause a loss of data. I believe I've put in 
enough scary warnings about this.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-1031-cleanruv.patch
Type: text/x-diff
Size: 9600 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120703/7d8e7614/attachment.bin>


More information about the Freeipa-devel mailing list