[Date Prev][Date Next] [Chronological] [Thread] [Top]

slaptools update for replica promotion / demotion




I've just committed slaptools (mostly slapadd) changes to support the replica promotion / demotion.
Quick description of the options are :

-p       : promote

        If the ldif file contains syncConsumerSubentries, convert them to a single syncProviderSubentry.
        Its contextCSN attribute has the largest value of the syncreplCookie attributes of the
        syncConsumerSubentries. syncProviderSubentry in the ldif file is retained.

-p -w  : promote with syncProviderSubentry creation

        Recalculate contextCSN based on entryCSN of each entry. Existing syncConsumerSubentries and
        syncProviderSubentry are ignored and not added to the directory.

-r       : demote

        If the ldif file contains syncProviderSubentry, convert it to a syncConsumerSubentry having the
        default syncrepl id of 0. syncConsumerSubentries in the ldif file are retained.

-r -w   : demote with syncConsumerSubentry creation

        Recalculate syncreplCookie based on entryCSN of each entry. Existing syncConsumerSubentries and
        syncProviderSubentry are ignored and not added to the directory. The default syncrepl id of 0 will be
        used for the new syncConsumerSubentry.

-r -w -i %d[,%d]*

        Using the comma separated list followed by the -i flag, it is possible to create multiple
        syncConsumerSubentries having the syncrepl ids specified in the list. syncreplCookie values of these
        sycnConsumerSubentries will have the same value, either from the maximum entryCSN value or from
        the contextCSN value of the syncProviderSubentry.

If the slapadd is used incrementally, the existing syncProviderSubentry and syncConsumerSubentry will be
modified if the subsequent slapadd provide new values either by the corresponding subentries or by the
entryCSNs of each entry. In the case of syncConsumerSubentry, the same id value should be provided
to modify the existing syncConsumerSubentry. New syncrepl ids result in the creation of new
syncConsumerSubentries in addition to the existing ones.

- Jong

------------------------
Jong Hyuk Choi
IBM Thomas J. Watson Research Center - Enterprise Linux Group
P. O. Box 218, Yorktown Heights, NY 10598
email: jongchoi@us.ibm.com
(phone) 914-945-3979    (fax) 914-945-4425   TL: 862-3979