简体   繁体   English

在Azure虚拟机中增加临时磁盘大小

[英]Increase the temporary disk size in azure vm

I have a test service fabric deployed to a single node VM. 我已经将测试服务结构部署到单节点VM。 It is all working, but the temporary disk drive is only 20GB is size and keeps running out. 一切正常,但是临时磁盘驱动器只有20GB的大小,并且不断用完。 I'm only using an A2_V2 Standard instance to keep tests down while we are testing things out. 我仅使用A2_V2 Standard实例在测试过程中停止测试。

Service Fabric is using the temporary disk for storage. Service Fabric正在使用临时磁盘进行存储。

Is there a way to increase the size of the temporary disk? 有没有办法增加临时磁盘的大小?

Azure temporary disk size depends on your VM size. Azure临时磁盘大小取决于您的VM大小。 If you want to change its size, you need to resize your VM. 如果要更改其大小,则需要调整VM的大小。 However, the temporary disk will lost data if you resize the VM. 但是,如果调整VM的大小,则临时磁盘将丢失数据。 Because The temporary disk is not persisted. 因为临时磁盘没有保留。

Temporary Disk 临时磁盘

The temporary storage drive, labeled as the D: drive is not persisted and is not saved in the Windows Azure Blob storage. 标记为D:的临时存储驱动器不会持久保存,也不会保存在Windows Azure Blob存储中。 It is used primarily for the page file and its performance is not guaranteed to be predictable. 它主要用于页面文件,并且不能保证其性能可预测。 Management tasks such as a change to the virtual machine size, resets the D: drive. 诸如更改虚拟机大小之类的管理任务将重置D:驱动器。 In addition, Windows Azure erases the data on the temporary storage drive when a virtual machine fails over. 此外,当虚拟机进行故障转移时,Windows Azure会擦除临时存储驱动器上的数据。 The D: drive is not recommended for storing any user or system database files, including tempdb. 不建议使用D:驱动器来存储任何用户或系统数据库文件,包括tempdb。

So, I don't suggest you use the temporary disk as the storage for the Service Fabric. 因此,我不建议您使用临时磁盘作为Service Fabric的存储。 You can add data disk to your VM . 您可以将数据磁盘添加到VM

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

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