12.3. 명령줄을 사용하여 복제본 데모
데모할 수 있습니다:
- 소비자에 대한 공급업체 또는 허브
- 소비자로의 허브
이 섹션에서는 dc=example,dc=com 접미사의 복제본을 평가하는 방법을 설명합니다.
사전 요구 사항
- Directory Server 인스턴스는 복제 토폴로지의 멤버입니다.
- demote의 사본은 공급 업체 또는 허브입니다.
절차
예를 들어 소비자에게 복제본을 시연하기 때문에 더 이상 필요하지 않은 복제 계약이 있는 경우 복제 계약을 제거하십시오.
복제본에 복제 계약을 나열합니다.
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt list --suffix "dc=example,dc=com"dn: cn=example-agreement,cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config cn: example-agreement ...cn속성에는 다음 단계에서 필요한 복제 계약 이름이 포함되어 있습니다.복제본에서 복제 계약을 제거합니다.
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt delete --suffix "dc=example,dc=com" example-agreement
인스턴스를 demote합니다.
#
dsconf -D "cn=Directory Manager" ldap://server.example.com replication demote --suffix "dc=example,dc=com" --newrole "hub_or_consumer"구성할 역할에 따라
--newrole매개변수를hub또는consumer로 설정합니다.- 복제본을 허브로 구성하고 토폴로지의 다른 호스트에 업데이트를 보내야 하는 경우 복제 계약을 생성합니다.