数据磁盘可用性 [英] Data Disk Availaibility

查看:82
本文介绍了数据磁盘可用性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Azure中运行的虚拟机,其中已附加了2个数据磁盘.  如果我长时间关闭虚拟机,数据磁盘是否仍然可用?当我重新启动虚拟机时.

I have a virtual machine running in Azure where I have attached 2x data disks.  If I shutdown the virtual machine for a long period of time, will the data disks still be available? when I restart the virtual machine.

我不打算删除VM,只是关机.

I don't plan to delete the VM, just shutdown. 

推荐答案



停止VM
您可以从虚拟机内部停止虚拟机,也可以使用Azure CLI命令(例如azure vm stop)停止虚拟机.这将停止来宾操作系统,但保留计算资源.您将继续按小时收取虚拟机计算资源的费用.

取消分配虚拟机
您可以通过单击停止"来使用Azure门户取消分配VM,该操作实际上会停止并取消分配VM.您还可以使用Azure CLI命令取消分配VM,例如azure vm deallocate.取消分配将停止VM并释放所有计算资源 因此您不再需要为VM计算资源付费.但是,将保留所有永久性磁盘,例如操作系统磁盘和附加的数据磁盘.可以从Azure门户重新启动VM.取消分配虚拟机时,临时/临时数据 本地SSD丢失,无法恢复.

Hi,

Stop a VM
You can stop a VM from inside of the virtual machine or using an Azure CLI command, such as azure vm stop. This stops the guest operating system, but keeps the compute resources. You will continue to be charged for the VM compute resources by the hour.

Deallocate a VM
You can deallocate a VM using the Azure portal by clicking Stop which actually stops and deallocates the VM. You can also deallocate a VM using an Azure CLI command, such as azure vm deallocate. Deallocating will stop the VM and release all the compute resources so you are no longer charged for the VM compute resources. However, all persistent disks remain, such as the operating system disk and the attached data disks. The VM can be restarted from the Azure portal. When you deallocate a VM, the data on the temporary/ephemeral local SSD is lost and cannot be recovered.

重点:

如果还删除了用于操作系统和数据磁盘的存储帐户(在删除整个资源组时发生),则永久磁盘也会随之删除.如果仅删除VM本身,则磁盘将保留在存储中 并可以附加到在同一区域中创建的另一个VM.

If the storage account that was used for the operating system and data disks is also deleted, which happens when the whole resource group is deleted, the persistent disks are deleted with it. If you delete only the VM itself, the disks remain in storage and can be attached to another VM that is created in the same region.


这篇关于数据磁盘可用性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆