4.3에서 5.1로 프록시 마이그레이션
1. 요구 사항 및 고려 사항
To migrate a SUSE Manager 4.3 Proxy to SUSE Multi-Linux Manager 5.1, you require a new machine with SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 and mgrpxy installed.
SUSE Manager 4.3에서 5.1(으)로의 인플레이스 마이그레이션을 수행하려면 선택한 호스트 운영 체제가 SL Micro 6.1이든 SUSE Linux Enterprise Server 15 SP7이든 호스트 운영 체제를 다시 설치해야 합니다.
SUSE Manager 4.3에서 5.1(으)로 마이그레이션하기 전에, 기존 클라이언트(기존 프록시 포함)를 모두 Salt로 마이그레이션해야 합니다. 기존 SUSE Multi-Linux Manager 4.3 클라이언트를 Salt 클라이언트로 마이그레이션하는 방법에 대한 자세한 내용은 https://documentation.suse.com/suma/4.3/en/suse-manager/client-configuration/contact-methods-migrate-traditional.html에서 확인할 수 있습니다.
기존 연락 프로토콜은 SUSE Multi-Linux Manager 5.0 이상에서 더 이상 지원되지 않습니다.
SUSE Manager 4.3 프록시를 SUSE Multi-Linux Manager 5.1(으)로 마이그레이션하기 전에, 먼저 SUSE Manager 4.3 서버를 마이그레이션해야 합니다. 자세한 내용은 컨테이너화된 환경으로 SUSE Multi-Linux Manager 서버 마이그레이션에서 확인할 수 있습니다.
2. 소개
SUSE Multi-Linux Manager 5.1에서 프록시는 다음 2가지 방법으로 배포할 수 있습니다.
-
Podman에서 실행 중인 컨테이너화
-
k3s에서 컨테이너화된 실행
In SUSE Multi-Linux Manager 5.1, RPM based support was removed, and only the containerized version running with podman or k3s is supported. The management of the containerized proxy running with Podman is done using the mgrpxy tool.
3. 기존 SUSE Multi-Linux Manager Proxy 데이터 백업
SUSE Multi-Linux Manager for Retail 5.1.2에는 두 종류의 SUSE Multi-Linux Manager Proxy 변형 버전에 대한 자동화된 백업 마이그레이션 절차가 포함되어 있습니다. 이 절차는 필요한 모든 데이터를 수집하여 SUSE Multi-Linux Manager 서버에 업로드합니다. SUSE Multi-Linux Manager Retail Branch Server의 경우 이 도구는 Saltboot 관련 엔터티도 생성 및 마이그레이션합니다. 해당 내용은 Migrating from SUSE Multi-Linux Manager Retail Branch Server 4.3에서 확인할 수 있습니다.
SUSE Multi-Linux Manager Proxy 4.3 마이그레이션은 다음의 여러 방법으로 시작할 수 있습니다.
-
API 호출
Replace
$proxyidby a server id of the branch proxy, or multiple server ids separated by a comma.mgrctl api login mgrctl api post proxy/backupConfiguration '{\"sids\":[$proxyid]}' -
Salt 호출
Replace
$proxyin command below by branch proxy minion id or-L proxyminionid1,proxyminionid2,…when addressing multiple branch proxies.salt $proxy proxy.backup
|
특히 사용자 정의 수정 사항이 있는 경우 프록시도 수동으로 백업하는 것이 좋습니다. |
|
SUSE Multi-Linux Manager Proxy은(는) 이전과 같이 백업 단계 이후에도 계속 작동하지만, 잠재적인 불일치를 방지하기 위해 백업 단계가 수행된 후 가능한 한 빨리 서버 호스트를 마이그레이션하십시오. |
4. 새 SUSE Multi-Linux Manager Proxy을(를) 배포합니다.
You can either upgrade the existing host to SUSE Linux Enterprise Server 15 SP7 using AutoYaST, or perform a fresh installation of SL Micro 6.1.
4.1. Upgrade to SUSE Linux Enterprise Server 15 SP7 using AutoYaST
Create and use AutoYAST profiles to migrate or reinstall the proxy host.
4.1.1. SUSE Linux Enterprise Server 15 SP7을 기반으로 자동 설치 배포 준비
-
SUSE Linux Enterprise Server 15 SP7 설치 ISO를 서버 호스트에 다운로드하거나 가져옵니다.
-
Use
mgradm distribution copy $path_to_the_isoto copy installation files to the container -
자동 설치 배포 등록에 대해서는 자동 설치 가능한 배포판에서 확인할 수 있습니다.
4.1.2. 자동 설치 프로파일 준비
자세한 내용은 자동 설치 프로파일에서 확인할 수 있습니다.
이전에 생성한 배포를 기반으로 자동 설치 프로파일을 생성합니다. 프로파일로는 https://github.com/SUSE/manager-build-profiles/blob/master/AutoYaST/SUSE-Multi-Linux-Manager/SUSE%20Multi-Linux%20Manager%20Proxy/MLM_Proxy-51-SLES-Install.xml에서 제공하는 프로파일을 사용합니다.
- Once profile is created, switch to Variables tab and fill in required variables:
+
org='organization_id' distrotree='autoinstallation_distribution_label_from_previous_step' channel_prefix='clm_channel_prefix' 또는 SCC 채널의 경우 비워둠 registration_key='activation_key_for_post_upgrade'
-
In tab
Autoinstallation Fileyou can see complete rendered profile for additional inspection
4.1.3. 프록시 자동 설치 프로비저닝
이전 단계에서 생성한 프로파일을 사용하여 기존 SUSE Multi-Linux Manager 프록시 4.3에서 자동 설치를 예약하십시오.
-
Use Web UI interface
Provisioningtab at theSystemview of migrating branch server -
Or use API call
system/provisionSystemto schedule the migration. For example execute following snippet from the SUSE Multi-Linux Manager host:mgrctl api login mgrctl api post system/provisionSystem '{\"sid\":$proxyid,\"profileName\":\"$profileName\"}'
4.2. Reinstall with SL Micro 6.1
SL Micro 6.1 requires a fresh installation on the host.
|
Perform the backup of the existing 4.3 Proxy before proceeding with the host reinstallation. For more information see 기존 SUSE Multi-Linux Manager Proxy 데이터 백업. |
4.3. SL Micro 6.1 호스트 준비
4.3.1. Download the installation media
https://www.suse.com/download/sle-micro/에서 SL Micro 6.1 설치 미디어를 찾아 적절한 미디어 파일을 다운로드합니다.
Prepare a DVD or USB flash drive with the downloaded
.isoimage for installation.
4.3.2. SL Micro 6.1 설치
머신(가상 또는 물리) 준비에 대한 자세한 내용은 SL Micro 배포 가이드에서 확인할 수 있습니다.
Insert the DVD or USB flash drive (USB disk or key) containing the installation image for SLE Micro 6.1.
시스템을 부팅하거나 재부팅합니다.
Use the arrow keys to select
Installation.Adjust Keyboard and language.
Click the
checkboxto accept the license agreement.Click
Nextto continue.Skip the registration. The SL Micro 6.1 entitlement is included within the SUSE Multi-Linux Manager entitlement, so it does not require a separate registration code.
다음을 클릭하여 계속합니다.
On the
NTP Configurationpage click Next.On the
Authentication for the Systempage enter a password for the root user. Click Next.On the
Installation Settingspage click Install.
이를 통해 SL Micro 6.1 및 SUSE Multi-Linux Manager 5.1의 확장으로 설치가 완료됩니다.
4.3.3. 시스템 업데이트
root로 로그인합니다.
transactional-update 실행:
transactional-update재부팅합니다.
|
SL Micro는 기본적으로 자동으로 업데이트되도록 설계되어 있으며, 업데이트를 적용한 이후에는 재부팅됩니다. 그러나 SUSE Multi-Linux Manager 환경에서 이는 올바른 동작이 아닙니다. SUSE Multi-Linux Manager은(는) 서버에서 자동 업데이트를 방지하기 위해 부트스트랩 프로세스 중에 트랜잭션 업데이트 타이머를 비활성화합니다. SL Micro 기본 동작을 사용하려면 다음 명령을 실행하여 타이머를 활성화합니다.
|
4.3.4. Register and deploy the proxy
Once the host is prepared, register the new SL Micro 6.1 system to the SUSE Multi-Linux Manager Server as a client. It is recommended to use the same minion ID as the original 4.3 Proxy. For more information, see 클라이언트 등록.
On the SUSE Multi-Linux Manager Server, generate the proxy configuration for the new proxy server. For more information, see installation-and-upgrade:container-deployment/mlm/proxy-deployment-mlm.adoc#generate-proxy-config.
Transfer the configuration to the SL Micro 6.1 host and install the proxy:
mgrpxy install podman config.tar.gzStart the proxy:
mgrpxy startOnce the proxy is operational, the SUSE Multi-Linux Manager Server will automatically deploy the backed up configuration during the next
Hardware Refreshstep.
|
You need to accept the Salt key manualy to allow autoinstallation to continue. |
5. 프록시 기능 확인
After migration is finished and salt is started first time, backed up proxy configuration is automatically deployed during Hardware refresh step.
모든 온보딩 단계를 완료한 후, 필수 프록시 기능을 확인하십시오.
6. TFTP 파일 동기화
컨테이너화된 프록시는 tftpsync 메커니즘을 사용하여 tftproot 파일을 전송하지 않습니다. 대신 이러한 파일들은 필요에 따라 투명하게 다운로드되고 캐시됩니다.
To prevent false positive errors during cobbler sync run, migrated 4.3 proxies need to be removed from tftpsync mechanism.
이전 설정에서 TFTP 파일을 수신하도록 4.3 프록시를 구성한 경우, 다음 구성 옵션 중 하나가 필요합니다.
|
컨테이너 내부의 셸로 이동하려면 컨테이너 호스트에서 실행합니다. mgrctl term |
In the SUSE Multi-Linux Manager 5.1 server container, run configure-tftpsync.sh with the list of remaining 4.3 proxies as arguments. If no 4.3 proxies remain, run configure-tftpsync.sh with no arguments.
In the SUSE Multi-Linux Manager 5.1 server container, manually remove the relevant proxy from the proxies setting in the /etc/cobbler/settings.yaml file. If there are no 4.3 proxies remaining, then manually remove the proxies list completely.