부트스트랩 리포지토리

부트스트랩 리포지토리에는 부트스트랩 중에 클라이언트를 등록하기 위한 필수 패키지가 포함되어 있습니다. 제품이 동기화되면 부트스트랩 리포지토리가 자동으로 생성되고 SUSE Multi-Linux Manager 서버에서 다시 생성됩니다.

1. 부트스트랩 리포지토리 생성 준비

동기화를 위해 제품을 선택하면 모든 필수 채널이 완전히 미러링되자마자 부트스트랩 리포지토리가 자동으로 생성됩니다.

Procedure: Checking synchronization progress from the Web UI
  1. In the SUSE Multi-Linux Manager Web UI, navigate to Admin  Setup Wizard and select the Products tab. This dialog displays a completion bar for each product when they are being synchronized.

  2. Alternatively, you can navigate to Software  Manage  Channels, then click the channel associated to the repository. Navigate to the Repositories tab, then click Sync and check Sync Status.

Procedure: Checking synchronization progress from the command prompt
  1. 테일링 하기 전 사용 가능한 로그를 나열하려면 컨테이너 호스트에서 다음 명령을 실행합니다.

    mgrctl exec ls /var/log/rhn/reposync/
  2. SUSE Multi-Linux Manager 컨테이너 호스트의 명령 프롬프트에서 루트 권한으로 채널 로그 파일의 동기화를 확인합니다.

    mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log
  3. 각 하위 채널은 동기화 진행 중에 자체 로그를 생성합니다. 동기화가 완료되었는지 확인하려면 모든 기본 및 하위 채널 로그 파일을 확인해야 합니다.

2. 자동 모드를 위한 옵션

자동 부트스트랩 리포지토리가 생성되는 방식을 변경할 수 있습니다. 이 섹션에서는 다양한 설정에 대해 자세히 설명합니다.

플러시 모드

By default, existing repositories are updated only with the latest packages. You can configure it to always start with an empty repository instead. To enable this behavior, add or edit this value in /etc/rhn/rhn.conf:

server.susemanager.bootstrap_repo_flush = 1
자동 모드

By default, automated regeneration of the bootstrap repositories is enabled. To disable it, add or edit this value in /etc/rhn/rhn.conf:

server.susemanager.auto_generate_bootstrap_repo = 0

2.1. 부트스트랩 데이터 파일 구성

The tool uses a data file with information about which packages are required for each distribution. The data file is stored at /usr/share/susemanager/mgr_bootstrap_data.py. SUSE updates this file regularly. If you want to makes changes to this file, do not edit it directly. Instead, create a copy in persistent directory and edit your copy:

cp /usr/share/susemanager/mgr_bootstrap_data.py /srv/susemanager/my_data.py

When you have made your changes, configure SUSE Multi-Linux Manager to use the new file. Add or edit this value in /etc/rhn/rhn.conf:

server.susemanager.bootstrap_repo_datamodule = my_data

다음 업데이트에서 SUSE의 새 데이터는 새 데이터 파일이 아닌 원본 데이터 파일을 덮어씁니다. SUSE에서 제공하는 변경 사항으로 새 파일을 최신 상태로 유지해야 합니다.

3. 부트스트랩 리포지토리를 수동으로 생성

기본적으로 부트스트랩 리포지토리는 매일 다시 생성됩니다. 명령 프롬프트에서 부트스트랩 리포지토리를 수동으로 생성할 수 있습니다.

절차: SUSE Linux Enterprise용 부트스트랩 리포지토리 생성
  1. SUSE Multi-Linux Manager 서버의 명령 프롬프트에서 루트 권한으로 다음과 같이 부트스트랩 리포지토리를 생성하는 데 사용 가능한 배포를 나열합니다.

    mgr-create-bootstrap-repo -l
  2. 다음과 같이 적절한 리포지토리 이름을 제품 레이블로 사용해 부트스트랩 리포지토리를 생성합니다.

    mgr-create-bootstrap-repo -c SLE-version-x86_64
  3. 또는 사용 가능한 배포 목록에서 배포 이름 옆에 표시된 번호를 사용합니다.

The client repository is located in /srv/www/htdocs/pub/repositories/.

제품을 두 개 이상 미러링한 경우(예: SLES, SAP용 SLES) 또는 사용자 지정 채널을 사용하는 경우 부트스트랩 리포지토리를 생성할 때 사용할 상위 채널을 지정해야 합니다. 이는 모든 상황에서 필수가 아닙니다. 예를 들어, 일부 SLES 15 버전에는 공통 코드 기반이 있으므로, 상위 채널을 지정할 필요가 없습니다. 환경에서 필요한 경우에만 이 절차를 사용하십시오.

선택 사항 절차: 부트스트랩 리포지토리에 상위 채널 지정
  1. 사용 가능한 상위 채널을 확인합니다.

    mgr-create-bootstrap-repo -c SLE-15-x86_64
    여러 개의 상위 채널용 옵션을 찾았습니다.
    --with-parent-channel <label>옵션을 사용하고 다음 중 하나를 선택하십시오.
    - sle-product-sles15-pool-x86_64
    - sle-product-sles_sap15-pool-x86_64
    - sle-product-sled15-pool-x86_64
  2. 다음과 같이 적절한 상위 채널을 지정합니다.

    mgr-create-bootstrap-repo -c SLE-15-x86_64 --with-parent-channel sle-product-sled15-pool-x86_64

3.1. 아키텍처가 여러 개인 리포지토리

If you are creating bootstrap repositories that include multiple different architectures, you need to be careful that all architectures are updated correctly. For example, the x86-64 and IBM Z architectures for SLE use the same bootstrap repository URL at /srv/www/htdocs/pub/repositories/sle/15/2/bootstrap/.

When the flush option is enabled, and you attempt to generate the bootstrap repository for multiple architectures, only one architecture is generated. To avoid this, use the --no-flush option at the command prompt when creating additional architectures. For example:

mgr-create-bootstrap-repo -c SLE-15-SP2-x86_64
mgr-create-bootstrap-repo --no-flush -c SLE-15-SP2-s390x

4. 부트스트랩 및 사용자 지정 채널

If you are using custom channels, you can use the --with-custom-channels option with the mgr-create-bootstrap-repo command. In this case, you also need to specify the parent channel to use.

사용자 지정 채널을 사용 중인 경우 부트스트랩 리포지토리 자동 생성에 실패할 수 있습니다. 이러한 경우에는 리포지토리를 수동으로 생성해야 합니다.

사용자 지정 채널에 대한 자세한 내용은 사용자 정의 채널에서 참조하십시오.