9장. 복제본의 역할 변경
복제 토폴로지에서는 복제본의 역할을 변경할 수 있습니다. 예를 들어 하드웨어 중단으로 인해 공급자를 사용할 수 없는 경우 공급자에게 소비자를 승격할 수 있습니다. 다른 방법으로, 예를 들어 낮은 하드웨어 리소스를 가진 공급 업체를 소비자에게 데모하고 나중에 새 하드웨어를 가진 다른 공급 업체를 추가할 수 있습니다.
9.1. 명령줄을 사용하여 복제본 승격 링크 복사링크가 클립보드에 복사되었습니다!
승격할 수 있습니다.
- 허브 또는 공급자의 소비자
 - 공급자의 허브
 
				이 섹션에서는 dc=example,dc=com 접미사의 복제본을 승격하는 방법을 설명합니다.
			
사전 요구 사항
- Directory Server 인스턴스는 복제 토폴로지의 멤버입니다.
 - 승격할 복제본은 소비자 또는 허브입니다.
 
프로세스
승격할 복제본이 복제 계약이 있는 허브이고 허브가 승격 후 다른 호스트에 더 이상 데이터를 전송하지 않아야 하는 경우 복제 계약을 제거하십시오.
허브의 복제 계약을 나열합니다.
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 promote --suffix "dc=example,dc=com" --newrole "supplier" --replica-id 2
# dsconf <instance_name> replication promote --suffix "dc=example,dc=com" --newrole "supplier" --replica-id 2Copy to Clipboard Copied! Toggle word wrap Toggle overflow 중요복제본 ID는 토폴로지의 모든 공급 업체의 접미사에 대해
1에서65534사이의 고유한 정수 값이어야 합니다.소비자를 허브로 승격하는 경우 다음을 입력합니다.
dsconf <instance_name> replication promote --suffix "dc=example,dc=com" --newrole "hub"
# dsconf <instance_name> replication promote --suffix "dc=example,dc=com" --newrole "hub"Copy to Clipboard Copied! Toggle word wrap Toggle overflow 
- 새 역할의 복제본에서 업데이트를 토폴로지의 다른 호스트에 보내야 하는 경우 복제 계약을 생성합니다.