简体   繁体   English

天蓝色虚拟机上的数据磁盘

[英]data disks on azure virtual machines

So I just started with azure. 所以我刚开始用azure。 I have provisioned a virtual machine. 我已经配置了虚拟机。 Everything is set up and working and I can log on. 一切都已设置和工作,我可以登录。 My question involves data disks. 我的问题涉及数据磁盘。 They really aren't explained on the azure website, nor when I asked a question in their support forum. 他们真的没有在天蓝网站上解释,也没有在我们的支持论坛上提出问题。 Specifically, what is their actual purpose? 具体来说,他们的实际目的是什么? Am I SUPPOSED to add a data disk to my virtual machine, to put any of my user data on? 我是否支持将数据磁盘添加到我的虚拟机,以便将我的任何用户数据放入? (ie am I supposed to leave the C: drive pristine with only the operating system? plus I know I have to leave the "temp" D: alone) Or is this optional, and I can just go ahead and utilize free space on the C: drive, such as for example putting my deployed demo websites in C: inetpub folder, etc. (I am only using the vm to put small technology demos on it with relatively small amounts of data). (即我应该离开C:驱动器原始只有操作系统?加上我知道我必须离开“临时”D:单独)或者这是可选的,我可以继续利用上面的空闲空间C:驱动器,例如将我部署的演示网站放在C:inetpub文件夹等中(我只使用vm将相关少量数据的小型技术演示放在其上)。 And if I DO add a data disk to my vm, does that cost more money? 如果我要将数据磁盘添加到我的虚拟机,这会花费更多的钱吗? If so, how much? 如果是这样,多少钱? I couldn't figure THAT out on the azure website either (the specific pricing impact of adding a data disk to the vm). 我无法在azure网站上找到这一点(将数据磁盘添加到vm的具体定价影响)。 Those questions are enough to start with... 这些问题足以从......开始

Trying to answer your questions: 试着回答你的问题:

  1. Data disks are optional to use but highly recommended if you have any form of custom data you would like to keep in the event you deprovision the VM (see next point). 数据磁盘是可选的,但如果您在取消配置VM时要保留任何形式的自定义数据,则强烈建议使用这些数据磁盘(请参阅下一点)。
  2. If you use C:\\ drive you will make it hard to transport the data to a new virtual machine in the event that you wish to change instance size or region. 如果您使用C:\\驱动器,则在您希望更改实例大小或区域时,将难以将数据传输到新虚拟机。
  3. Don't use D:\\ for any persistent data. 不要将D:\\用于任何持久数据。 D:\\ gets erased between VM reboots. D:\\在VM重新启动之间被删除。
  4. Adding data disks costs nothing on the VM but it will cost you in terms of blob storage for the VHD as well as transactions to read / write to the VHD. 添加数据磁盘不需要在VM上花费任何成本,但是就VHD的blob存储以及读取/写入VHD的事务而言,它将花费您。 The exact cost is based on size of the VHD and how heavily it is used. 确切的成本取决于VHD的大小和使用量。

HTH. HTH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM