9.3. 명령줄을 사용하여 복제본 삭제
데모할 수 있습니다.
- 소비자의 공급자 또는 허브
 - 소비자의 허브
 
				이 섹션에서는 dc=example,dc=com 접미사 복제본의 데모를 설명하는 방법을 설명합니다.
			
사전 요구 사항
- Directory Server 인스턴스는 복제 토폴로지의 멤버입니다.
 - 데모에 대한 복제본은 공급자 또는 허브입니다.
 
프로세스
demote에 대한 복제본에 더 이상 필요하지 않은 복제 계약이 있는 경우 예를 들어 복제본을 소비자에 위임했기 때문에 복제 계약을 제거합니다.
복제본의 복제 계약을 나열합니다.
dsconf <instance_name> repl-agmt list --suffix "dc=example,dc=com"
# dsconf <instance_name> 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 ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow cn속성에는 다음 단계에서 필요한 복제 계약 이름이 포함되어 있습니다.복제본에서 복제 계약을 제거합니다.
dsconf <instance_name> repl-agmt delete --suffix "dc=example,dc=com" example-agreement
# dsconf <instance_name> repl-agmt delete --suffix "dc=example,dc=com" example-agreementCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
인스턴스를 삭제합니다.
dsconf <instance_name> replication demote --suffix "dc=example,dc=com" --newrole "hub_or_consumer"
# dsconf <instance_name> replication demote --suffix "dc=example,dc=com" --newrole "hub_or_consumer"Copy to Clipboard Copied! Toggle word wrap Toggle overflow 구성할 역할에 따라
--newrole매개변수를hub또는consumer로 설정합니다.- 복제본을 허브로 구성하고 토폴로지의 다른 호스트에 업데이트를 보내야 하는 경우 복제 계약을 생성합니다.