WHEREIS

옮기고 싶은 대상이 있는 서버에서, 아래와 같이 커맨드를 이용하여 xen center 에서 migration 하듯 

서버를 옮길 수 있다.

서버 대수가 많을 경우, xencenter 에서 목록찾기가 불편하여 cli 를 사용하면 괜찮을 듯 하다

 

 

# xe vm-migrate remote-master=192.168.231.39 \

remote-username=root remote-password=1234 \

uuid=1754b632-3ff1-1abd-6b7b-d580bd2c1d47 live=true \

vif:124fb3e5-21d3-afae-f822-3ee15321f29b=298fa867-73b9-511b-6842-6fc63aaea3f7 


-------- 아래는 명령어 입력 후 출력되는 문구 --------------

Performing a Storage XenMotion migration. Your VM's VDIs will be migrated with the VM. 
Selecting remote pool's default SR for migrating VDIs 
Will migrate to remote host: 2.WEB/WAS> 192-168-231-39, 48C, 128G, 2.1T, DL360G10 - OK, using remote network: Pool-wide network associated with eth0. Here is the VDI mapping: 
VDI af727a67-b305-4b0f-b448-53bc6583d971 -> SR 0c494fb3-1a17-c455-ad0a-79ceb9f9b5c5

 

remote-master - 목적지가 되는 서버 IP

remote-username - 목적지 서버 계정

remote-password - 목적지 서버 패스워드

uuid - 옮기려는 vm 의 uuid

   -> xe vm-list  쳤을 때 확인 가능

live - 온라인 migration

vif:<local-vif-uuid>=<remote-network-uuid>

   -> local-vif-uuid 는 "xe vif-list params=all" 쳤을 때, 옮기려는 가상 머신의 vif uuid 

   -> remote-network-uuid "xe net xe network-list params=all" 쳤을 때, 매니지먼트 인터페이스의 uuid

이 글을 공유합시다

facebook twitter kakaoTalk kakaostory naver band
loading