본 게시물은 개인적인 의견으로 작성되었으니 절대적인 정보가 아닐 수 있습니다. 참고만 하시고 궁금한 사항이 있으시면 연락주세요.

티스토리 뷰

 

Windows Azure SQL 가상머신에 On-Premise SQL Server의 데이터베이스를 배포하는 방법이다.

 

Part 1/2. 배포할 환경 구성 단계.

Part 2/2. SSMS에서 배포하는 단계.

 

Part 2/2. SSMS에서 배포하는 단계.

 

 

단계. Deploy 를 해보자.

Deploy는 데이터베이스 단위로만 가능하다.

추후 마이그레이션에 필요한 개체 이전도 빠짐없이 해줘야 구성이 완료된다.

그럼 시작하자.

 

온프레미스의 서버에서 SSMS를 접속하여 아래와 같이 Deploy Database To a Windows Azure VM(Windows Azure VM에 데이터베이스 배포) 메뉴를 클릭한다.

 

소개페이지

이 부분을 자세히 안 읽는 사람이 많을 것이다. 중요한 내용이 있으니 다른 Wizard 실행 시에도 필독하는 습관을 들이자.

요약을 하면

배포방법에는 2가지가 있다. 둘 중 한가지 방법으로 배포를 하면 된다.

1. Windows Azure 구독과 연결된 Microsoft 계정정보

2. Windows Azure 구독에 업로드된 관리 인증서

배포 요구사항

1. VM을 호스팅하는 클라우드 서비스의 DNS이름

2. Windows Azure VM에 대한 관리자 자격증명

3. SQL Server의 로컬 인스턴스에 대한 시스템 관리자 자격증명

 

원본설정.

다음을 클릭하면 원본서버의 연결 설정을 하는 부분이다.

 

여기서 연결을 클릭하여 로그인인증을 하자.

 

배포할 데이터베이스 선택 및 백업파일 임시 저장할 디렉토리를 선택한다.

 

Windows Azur 로그인

 

 

 

여기서는 관리인증서방식으로 인증을 할 예정이므로 [선택]을 클릭한다.

로컬에 존재하는 개인용 인증서를 선택할 수 있다. 생성한 SCSF Test 라는 인증서를 선택한다.

이미 Windows Azure에도 동일한 인증서가 존재하기에 해당 인증서끼리 확인을 하게 된다.

 

 

[구독]이란 공간에 관리된 인증서의 SUBSCRIPTION ID(구독ID)를 COPY한다.

 

배포설정(Deployment Settings)

Windows Azure 가상 검퓨터의 정보를 가져오는 작업을 하게 되며, 최초에는

[클라우드 서비스이름], [가상 컴퓨터 이름], [저장소 계정]을 입력해야 한다.

 

입력 후 [설정]메뉴를 클릭하여 Cloud Adapter port 설정 및 SQL인증을 처리한다.

 

 

로그인인증이 성공을 하면 대상 데이터베이스에서 인스턴스이름 및 데이터베이스 이름이 자동으로 매핑 된다.

 

요약

 

결과

 

세부정보를 클릭하면 해당 배포절차를 볼 수 있다.

엔지니어들은 이런 부분을 확인하는 습관을 드리자.

로그는 아래와 같다.

12 10 2015 09:11:09: Log opened. TraceLevel:Informational

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Migration machine name: WIN-VF651SG2V08.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Source SQL Server: WIN-VF651SG2V08\GHOST.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: SourceDatabase: Auto_DB.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: BackupLocation: C:\MSSQL.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Target SQL Server Instance: MSSQLSERVER.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Target Database Name: Auto_DB.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Publish Profile: Azure Pass.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Use Existing VM: True.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Cloud Service: TDSQLService.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Deployment Name: ghostdev01.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: VM Name: ghostdev01.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Image Name: .

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: VM Location: .

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: VM Size: Medium.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: New Storage Account: False.

12 10 2015 09:11:09 [Informational] Submit Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Storage Account: vmiscsidisk.

12 10 2015 09:11:15 [Informational] Task:8cdc3852-3b1b-4f78-9aea-85c3b6da3a55:Validation: Skipped: 100%: Successful: Validation Completed

12 10 2015 09:11:15 [Informational] Task:8cdc3852-3b1b-4f78-9aea-85c3b6da3a55:Validation: Skipped: 100%: Successful: Task processing completed.

12 10 2015 09:11:24 [Informational] Task:47d7a844-848c-4f78-b2fa-0549ff89edf0:Backup: Stopped: 0%: Successful: Backup task completed

12 10 2015 09:11:28 [Informational] Task:3a3a75b2-3195-4a90-b8cd-91e0a6af7f03:Provisioning: Stopped: 100%: Successful: Provisioning Completed.

12 10 2015 09:11:34 [Informational] Task:c25e6f9e-7326-48ed-92b2-00d07d3e25a8:Upload: Stopped: 100%: Successful: Upload Task Completed

12 10 2015 09:11:34 [Informational] Task:e4b25329-d2d1-4110-b172-f362e20b9c4f:Configuration: Stopped: 0%: Successful: Setup completed!

12 10 2015 09:11:40 [Informational] Task:e4b25329-d2d1-4110-b172-f362e20b9c4f:Configuration: Stopped: 0%: Successful: Task processing completed.

12 10 2015 09:12:10 [Informational] Task:91da21f5-083a-4d95-b9e2-31d92ea07f44:Restore: Stopped: 100%: Successful: Backup restore completed!

12 10 2015 09:12:10 [Informational] Job:690784e0-ca0b-4d1f-a7b7-d8749600aae1: Stopped: Backup restore completed!: Successful

12 10 2015 09:12:11 [Informational] Cleanup:690784e0-ca0b-4d1f-a7b7-d8749600aae1 Message:Cleaning deployment resources....

 

12 10 2015 09:12:11 [Informational] Cleanup:690784e0-ca0b-4d1f-a7b7-d8749600aae1 Message:Deleted Azure uploaded files.

12 10 2015 09:12:11 [Informational] Cleanup:690784e0-ca0b-4d1f-a7b7-d8749600aae1 Message:Deleted created backup files.

12 10 2015 09:12:11 [Informational] Cleanup:690784e0-ca0b-4d1f-a7b7-d8749600aae1 Message:Deleting created Windows Azure Virtual Machine skipped!.

12 10 2015 09:12:11 [Informational] Log Closed:690784e0-ca0b-4d1f-a7b7-d8749600aae1 Message:Job processing completed.

 

 

완료되었다.

 

Azure SQL VM에서 정상적으로 배포 상태를 확인해 보자. 복원하는 경로가 자동으로 생성이 된다.

F:\IaaSDeploymentRestore 이런 폴더가 생성이 되며, 왜 F 볼륨으로 자동 배포 되었는지 나중에 좀 더 확인해 보자.

그리고 해당 데이터베이스의 owner는 자동으로 로그인했던 계정으로 매핑이 된다.

일반적으로 백업/복원시에는 이 부분을 확인 및 변경하는 작업이 필요했었다.

 

여기까지 On-Premise SQL Server 의 데이터베이스를 Windows Auzre SQL Virtual Machine에 배포하는 방법을 알아봤다.

참 쉽다.

그러나, 대용량의 데이터베이스를 배포 시 소요시간을 측정을 한 후 수행을 권장한다.

댓글
최근에 올라온 글
최근에 달린 댓글
글 보관함
Total
Today
Yesterday