You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Promote or demote a replica by using one of the commands:
$ dsconf promote-repl -h host -p port role suffix-DN |
$ dsconf demote-repl -h host -p port role suffix-DN |
where role is master, hub or consumer.