调整C:微软Azure虚拟服务器上\\驱动器[解决] [英] Resize C:\ drive on Microsoft Azure Virtual Server [solved]

查看:96
本文介绍了调整C:微软Azure虚拟服务器上\\驱动器[解决]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们对微软的Azure虚拟服务器,需要它的C:\\驱动器大小。虽然新的虚拟机可以使用120GB驱动器创建,老虚拟机都只有30GB创造了C盘,甚至从清洗下载和不必要的文件的驱动器后,虚拟机上运行的空间非常低。

We have a Virtual Server on Microsoft Azure which needs its C:\ Drive resized. While new VMs can be created with 120GB drives, old VMs were created with only 30GB for the C drive, and even after cleaning the drive from downloads and unnecessary files, the VM is running very low on space.

总之,我们这个虚拟机的C盘调整为120GB。

In short, we to resize the C drive of this VM to 120GB.

我已经找到<一个href=\"http://social.technet.microsoft.com/Forums/windowsazure/en-US/217d7055-7e97-4881-906e-b6fe5193bcde/changing-the-page-blob-size-in-azure-cloud-using-rest-api-is-making-vhd-as-invalid?forum=windowsazuredata\"相对=nofollow>这个帖子但感觉太复杂(也许已经过时?)我们来实现。

I have found this post but it feels far too complex (and maybe outdated?) for us to implement.

是不是有什么简单的方法来做到这一点?

Isn't there any easier method to do it?

编辑:
不知道我是否应该创建我自己的答案或编辑自己的帖子......但是很多的麻烦后,这里是一个可行的解决方案(在列表中为我工作)

Not sure if i should create my own answer or edit my post... But after much troubles, here is a working solution (at list worked for me)


  1. 关闭VM(天青与PowerShell的,如果你需要使用保留IP -StayProvisioned)

  2. 使用云存储工作室(对不起,我不能发布2链接还没有......太年轻StackOverflow上,但谷歌是你的朋友)来复制VHD文件(如名称将保持不变,则需要将它们复制到另一个容器)

  3. 重新命名新VHD

  4. 使用<一个href=\"http://blog.maartenballiauw.be/post/2013/01/07/Tales-from-the-trenches-resizing-a-Windows-Azure-virtual-disk-the-smooth-way.aspx\"相对=nofollow>唯一已知的方式做调整大小(你可以再往后的​​快解决末,它甚至是由MSDN论坛微软员工mentionned ...)

  5. 创建一个新的磁盘wusing新创建的VHD

  6. 使用此调整磁盘创建一个新的虚拟机

  7. RDP到新的虚拟机

  8. 使用管理控制台访问的驱动器。那么你就可以扩展分区(你应该看到你的C盘的一些未分配空间)

  9. 这是它(!)

  1. shut down your VM (with Azure powershell if you need to keep the IP using -StayProvisioned)
  2. Use Cloud Storage Studio (sorry i can't post 2 links yet... too young on StackOverflow, but google is your friend) to duplicate the VHDs (as the name will stay the same, you need to copy them to another container)
  3. rename the new VHD
  4. use the only known way to do the resize (you can go down to the end of the post for the "fast solution", it is even mentionned by Microsoft staff on MSDN forums...)
  5. Create a new disk wusing the newly created VHD
  6. create a new VM using this resized disk
  7. RDP to the new VM
  8. Use the management console to access the drives. you can then "extend" the partition (you should see some unallocated space for your C drive)
  9. that's it (!)

也仅此而已,但它花了我不少的汗水得到它的权利。不过我现在有我的初始服务器2份,均与100GB的驱动器C

well that's it but it took me quite some sweat to get it right... However I now have 2 copies of my initial server, both with 100GB C drive

当然,所有学分去马腾Balliauw因为他是谁创造的核心部分之一...

Of course, all credits go to Maarten Balliauw as he is the one who created the core piece...

我如何回答我自己的问题,或建议,请让我知道的任何意见。谢谢

Any comments on how i answered my own question, or advises please let me know. thanks

推荐答案

您已经找到最可能的方式来调整大小的磁盘。

You have already find most of the possible ways to resize a disk.

还有一个选择,我会测试(没试过到目前为止艰难的,但应该去罚款)是以下步骤:

One more option, which I would test (never tried so far tough, but should go fine) is the following procedure:


  1. 关闭虚拟机(以确保磁盘是一致的)

  2. 的VHD BLOB复制到一个新的BLOB的备份情况。

  3. 启动VM

  4. 运行SYS $操作系统页上$给出的pP是Windows(SYS让$ P $的pP关闭VM准备好时)

  5. 关闭虚拟机的情况下,SYS preP也不关闭它

  6. 基于虚拟机创建映像(当您创建映像的虚拟机将被删除)

  7. 转到创建新的虚拟机 - >从画廊 - >找到你的图像 - >选择合适的虚拟内存大小

  8. 新的VM应与新硬盘的大小。

如果这不起作用,那么只有另外两个选项可用于你。

If this doesn't work, then only the two other options are available for you.

这篇关于调整C:微软Azure虚拟服务器上\\驱动器[解决]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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