3장. 여러 Satellite
ISS (Inter-satellite synchronization)를 통해 Satellites 간의 컨텐츠를 조정할 수 있습니다. 이 기능은 조직의 필요에 따라 여러가지 다른 방법으로 사용할 수 있습니다. 다음 부분에서는 사용 사례와 조직에 적합한 ISS 설정 방법에 대해 설명합니다.
ISS 요건
ISS를 사용하기 위해 필요한 조건은 다음과 같습니다:
- 두 개 이상의 RHN Satellite 서버
- 최소 한 개의 채널이 배치된 최소 하나의 RHN Satellite
- 보안 연결을 위해 각 슬레이브 RHN Satellite는 마스터 RHN Satellite SSL 인증서가 필요함
3.1. ISS (Inter-Satellite Synchronization) 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
절차 3.1. 마스터 서버 설정
마스터 서버는 다른 Satellite에 동기화되는 파일을 결정하기 위해 사용됩니다.
- ISS (Inter - Satellite Synchronization) 기능을 활성화합니다.
/etc/rhn/rhn.conf
파일을 열고 다음 행을 추가하거나 수정합니다:disable_iss=0
disable_iss=0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow /etc/rhn/rhn.conf
파일에서allowed_iss_slaves=
행을 찾습니다. 기본값으로 슬레이브 Satellite는 동기화를 위해 지정됩니다. 각 슬레이브 Satellite 서버의 호스트 이름을 콤마로 구분하여 입력합니다:allowed_iss_slaves=slave1.satellite.example.org,slave2.satellite.example.org
allowed_iss_slaves=slave1.satellite.example.org,slave2.satellite.example.org
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 설정 파일을 저장하고
httpd
서비스를 다시 시작합니다:service httpd restart
service httpd restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
절차 3.2. 슬레이브 서버 설정
슬레이브 Satellite 서버는 마스터 서버에 컨텐츠가 동기화되는 시스템입니다.
- 컨텐츠를 슬레이브 서버에 안전하게 전송하기 위해 마스터 서버에서
ORG-SSL
인증서가 필요합니다. 이 인증서는 HTTP를 통해 모든 Satellite의/pub/
디렉토리에서 다운로드할 수 있습니다. 파일 이름은RHN-ORG-TRUSTED-SSL-CERT
이지만, 이름을 변경하여/usr/share/rhn/
디렉토리와 같은 슬레이브의 로컬 파일 시스템의 아무곳에 배치할 수 있습니다. - 다음 명령을 사용하여 마스터 서버에서 동기화할 수 있는 채널 목록을 확인합니다. 이는 공식적인 Red Hat 채널과 사용 가능한 사용자 정의 채널이 나타납니다:
satellite-sync --iss-parent=master.satellite.example.com --ca-cert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --list-channels
satellite-sync --iss-parent=master.satellite.example.com --ca-cert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --list-channels
Copy to Clipboard Copied! Toggle word wrap Toggle overflow master.satellite.example.com을 마스터 서버의 호스트 이름으로 바꿉니다.
절차 3.3. ISS (Inter-Satellite Synchronization) 실행
마스터 서버와 슬레이브 서버가 설정되면 이 사이에서 동기화를 실행할 수 있습니다.
- 슬레이브 서버에서 원하는 텍스트 편집기로
/etc/rhn/rhn.conf
파일을 열고 마스터 서버의 호스트 이름과 SSL 인증서 파일 경로 정보를 추가합니다:iss_parent = master.satellite.example.com iss_ca_chain = /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
iss_parent = master.satellite.example.com iss_ca_chain = /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Copy to Clipboard Copied! Toggle word wrap Toggle overflow satellite-sync
명령을 실행하여 동기화를 시작합니다:satellite-sync -c your-channel
satellite-sync -c your-channel
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 참고
satellite-sync
명령으로 제공되는 명령행 옵션은/etc/rhn/rhn.conf
파일에 있는 사용자 정의 설정을 덮어쓰게 됩니다.