Project

On-Premise Infra를 AWS로 Migration(MGN)

가로선 2022. 7. 31. 18:38

 

   목차   

 

1. MGN(Application Migration Service)

 - 진행 과정

 - WEB Server Migration

 - MAIL Server Migration


 

   MGN   

 

   진행 과정   

 - Replication Settings Template 작성

 - Source Server에 Agent 설치

 - EC2 Launch Template 수정

 - Testing(Ready for testing → Test in progress)

 - Mark as "Ready for cutover" (Test in progress → Ready for cutover)

 - cutover instance 생성(Ready for cutover → Cutover in progress)

 - Finalize cutover

 

   WEB Server Migration   

 - Migration 전 IAM 사용자가 필요(AdministratorAccess 권한)

 

Replication Template 수정

 

Source Servers에서 Add servers 클릭

 

생성한 IAM Access Key, Secrect Access Key를 넣는다

    - 자동으로 4, 5번에 설정한 IAM 사용자로 바뀌게 된다

    - 4, 5번 Command를 통해 Replication Agent를 설치하게 된다

 

4번 command를 통해 설치 파일을 받아오게 된다

 

5번 command를 통해 AWS Replication Agent를 설치하게 된다

    - WEB-2에도 동일하게 진행

 

Source Server에 추가된 WEB-1, WEB-2 확인

    - Ready for testing이 되기 까지 최소 15분이상 소요된다

 

Launch Template 수정

 

인스턴스 유형 설정 가능

 

키페어 및 네트워크 설정

    - 인스턴스 생성과 똑같다!

        - 즉, Migration 될 인스턴스의 유형 및 설정 등을 미리 설정하는 것

 

생성한 템플릿을 기본 버전으로 설정한다

 

템플릿 버전을 생성한 템플릿에 맞게 설정

 

다음 단계인 test instance 생성 진행

    - Test in progress 상태 확인

        - Test instance는 Migration 전 테스트용으로 생성되는 인스턴스

 

다음 단계인 ready for cutover 진행

    - Ready for cutover 상태 확인

        - cutover : 테스트가 아닌 진짜로 Migration 되어 생성되는 인스턴스

 

다음 단계인 cutover instance 생성 진행

    - Launch 상태 확인

 

Migration 완료 확인

 

마지막으로 Finalize cutover를 시켜주어 완료시킨다

 

   테스트   

 

테스트를 위해 대상 그룹에 Cutover 인스턴스 추가

 

로드 밸런서 생성

 

대상 그룹 연결

 

로드 밸런서 생성 확인 및 DNS 확인

 

해당 DNS로 접속하여 웹페이지 확인

    - On-Premise 환경에서 구성한대로 문제없이 구현되어있는 것을 확인

 

   MAIL Server Migration   

 - 설치 링크

    https://aws-application-migration-service-<리전>.s3.<리전>.

    amazonaws.com/latest/windows/AwsReplicationWindowsInstaller.exe

 

MailServer에서 설치 진행

 

미리 생성했던 Access Key, Secret Access Key 사용 및 복사할 디스크 파티션 지정

 

MGN의 Source Server에 생성 확인

    - WEB Server와 동일하게 Migration을 진행하면 된다

 

생성 확인

    - 테스트는 스크린샷을 못찍었네요! ㅜ