azure의 가상서버는 백업을 어찌받을까요

왕머슴   
   조회 533053   추천 0    

azure의 가상서버는 백업을 어찌받을까요


azure에 centos7깔고 겁나 세팅했는디

다른나라에깔았네요

우리나라쪽으로 옮기려 했더니. 


방법을 모르겠네요

어렵다. azure

짧은글 일수록 신중하게.
임정구 2016-12
우선 VHD를 목적지로 옮기셔야 합니다.
Azcopy라는 툴을 쓰시면 됩니다.(http://aka.ms/downloadazcopy)
https://azure.microsoft.com/en-us/documentation/articles/storage-use-azcopy/

옮겨진 VHD로 VM을 만드는 방식은 ASM (manage.windowsazure.com) , ARM (portal.azure.com)에 따라서달라집니다.

 ASM은 Azure Portal에서 VHD를 등록하시고 등록된 OS 디스크(Market place에 My Disk에 보이게 됩니다)로 VM을 만드시면 됩니다.
ARM의 경우는 Azure Powershell을 쓰셔야 합니다.

$rgname = "the resource group name of the new VM"
$loc = "the region of the resource group"
$vmsize = "<VM Size>”
$vmname = "specify the name for the new VM"
$vm = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
$vNet = Get-AzureRmVirtualNetwork -ResourceGroupName $rgname
$pip = New-AzureRmPublicIpAddress -ResourceGroupName $rgname -Location $loc -Name “specify a name for the public network” -AllocationMethod Dynamic
$newNic = New-AzureRmNetworkInterface -ResourceGroupName $rgname -subnetid $vNet.Subnets[0].id -Name “specify a name for the network interface” -location $loc -PublicIpAddressId $pip.Id
$nic = Get-AzureRmNetworkInterface -Name "the name of the network interface" -ResourceGroupName $rgname
$nicId = $nic.Id
$vm = Add-AzureRmVMNetworkInterface -VM $vm -Id $nicId
$osDiskName = "specify a name for the new OS disk"
$osDiskVhdUri = "the path of the VHD file that you just copied before"
$vm = Set-AzureRmVMOSDisk -VM $vm -VhdUri $osDiskVhdUri -name $osDiskName -CreateOption attach -Windows
New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vm

다른 설정부분 이름이 중요하지 않으시면 아래 Template를 쓰셔도 됩니다.
https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-specialized-vhd

그리고 참고로 Azure에서 아직 한국지역을 고르는 옵션이 없는 것 같습니다. 혹시 있으세요?
     
왕머슴 2016-12
어렵네요..

동아시아쪽 Azure에 Centos7.2를 설치 햇는데요.. 이 VM을 제 컴으로 다운 받으려면 어떻게 하나요?

가상 컴퓨터의 DISK 경로는 확인 했습니다.

azcopy명령어로 어떻게 해야 할가요?
          
임정구 2016-12
azcopy는 간단하게 source 위치와 Destination으로 구성됩니다.
azcopy를 설치 하신후 해당 폴더로 command 창에서

AzCopy /Source:<the VHD container path of the source storage account> /SourceKey:<The primary key of the storage account> /Dest:<the container path of the destination storage account>  /Pattern:<the vhd file name> 를 실행하시면 됩니다.

<the VHD container path of the source storage account> : 해당 VM 속성에서 확인하실 수 있습니다. "http://NAME.blob.core.windows.net/vhds/" 의 형식입니다.
<The primary key of the storage account> : Storage account 정보에서 확인하실 수 있습니다.
<the container path of the destination storage account> : 다운 받을 PC 경로 넣으시면 됩니다. "c:\vhd" 이런식으로 쓰시면 됩니다.
<the vhd file name> : vhd 파일 이름 쓰시면 됩니다.
               
왕머슴 2016-12
친절하신 설명 감사함니다

azure의 달인이신듯. 
해보겠습니다
민욱님 2017-01
위의 방법이 힘드시면 해당 Storage Account 에서 Blob 에서 컨테이너-vhd 들어가셔서 vhd 다운받기 하신 다음에 이동하실 Storage Account 에 업로드 하시면 됩니다. 근데 이렇게 옮긴 vhd 를 os 부팅용으로 사용하시려면 Azure Powershell 을 통해 수동 설정해주셔야 합니다.


제목Page 3/3
2014-05   5255359   정은준1
2015-12   1780280   백메가
2024-09   2676   YJMODx영재…
2024-09   3241   YJMODx영재…
2024-09   3039   YJMODx영재…
2024-10   1914   YJMODx영재…
2024-10   2137   YJMODx영재…
2024-10   2488   YJMODx영재…
2024-10   2449   YJMODx영재…
2024-10   1925   YJMODx영재…
2024-10   1953   YJMODx영재…
2024-10   1983   YJMODx영재…
2024-10   1852   YJMODx영재…
2024-10   1797   컴퓨터신시야
2024-10   1698   YJMODx영재…
2024-10   1719   YJMODx영재…
2024-10   1924   YJMODx영재…
2024-10   2230   YJMODx영재…
2024-11   2183   YJMODx영재…
2024-11   2209   YJMODx영재…
2024-11   2265   YJMODx영재…
2024-11   3887   컴퓨터신시야
2024-11   3037   YJMODx영재…
2024-11   2607   YJMODx영재…
2024-11   2646   YJMODx영재…
2024-11   3005   YJMODx영재…
2024-11   3160   YJMODx영재…
2024-12   2016   YJMODx영재…
2024-12   2154   YJMODx영재…
2024-12   2544   컴퓨터신시야
2024-12   3523   YJMODx영재…
2024-12   2694   YJMODx영재…
2024-12   2466   YJMODx영재…
01-06   2488   YJMODx영재…
01-06   2503   YJMODx영재…
01-07   2702   YJMODx영재…
01-17   2171   YJMODx영재…
01-17   4014   YJMODx영재…
01-17   4337   YJMODx영재…
01-24   3714   YJMODx영재…
01-24   3804   YJMODx영재…
01-24   4089   YJMODx영재…
02-07   4269   컴퓨터신시야
03-21   711   컴퓨터신시야
03-24   190   YJMODx영재…
03-24   213   YJMODx영재…
03-24   484   YJMODx영재…
03-24   831   YJMODx영재…
03-24   816   YJMODx영재…
03-24   767   YJMODx영재…
03-24   916   YJMODx영재…
03-24   997   YJMODx영재…
04-01   541   YJMODx영재…
11:15   78   YJMODx영재…