gpt4 book ai didi

azure - 如何增加 Azure 云服务经典中的磁盘存储

转载 作者:行者123 更新时间:2023-12-02 23:57:49 26 4
gpt4 key购买 nike

在一个旧项目中,我们仍然使用云服务(经典),我想增加本地磁盘F的大小。现在磁盘大小为 2 GB,我没有找到任何方法来增加它。

我在 ServiceDefinition.csdef 文件或 ServiceConfig.cscfg 文件中没有找到相应的设置。

这可能吗? enter image description here

{

最佳答案

编辑:我意识到您正在谈论 approot 驱动器(E/F 驱动器)而不是临时磁盘

approot 驱动器(E/F 驱动器)是固定的,无法修改。有关此驱动器的更多信息和限制,请参阅 https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-configuration-and-management-faq#why-does-the-drive-on-my-cloud-service-vm-show-very-little-free-disk-space- .

The %approot% drive size is calculated as <size of .cspkg + maxjournal size + a margin of free space>, or 1.5 GB, whichever islarger. The size of your VM has no bearing on this calculation. (TheVM size only affects the size of the temporary C: drive.) 

It is unsupported to write to the %approot% drive. If you are writingto the Azure VM, you must do so in a temporary LocalStorage resource(or other option, such as Blob storage, Azure Files, etc.). So theamount of free space on the %approot% folder is not meaningful. If youare not sure if your application is writing to the %approot% drive,you can always let your service run for a few days and then comparethe "before" and "after" sizes. 

Azure will not write anything to the %approot% drive. Once the VHD iscreated from your .cspkg and mounted into the Azure VM, the only thingthat might write to this drive is your application.

关于临时磁盘大小的原始答案:

云服务 VM 中的本地磁盘大小由您在 .csdef 文件中定义的 VM 大小控制:

<WorkerRole name="Worker1" vmsize="Standard_D2">
...
</WorkerRole>

有关不同尺寸选项,请参阅 https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-sizes-specs

关于azure - 如何增加 Azure 云服务经典中的磁盘存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69209278/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com