如何增加 Azure CloudDrive 的大小?
我有一个现有的 Azure CloudDrive,我想扩大它。我能想到的最简单的方法是创建一个新驱动器并复制所有内容。无论如何,我看不到仅仅增加 vhd 的大小。有办法吗?
I have an existing Azure CloudDrive that I want to make bigger. The simplist way I can think of is to creating a new drive and copying everything over. I cannot see anyway to just increase the size of the vhd. Is there a way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
由于 Azure 驱动器本质上是一个页 blob,因此您可以调整它的大小。您会发现 Windows Azure 存储团队的这篇博客文章对此非常有用:http://blogs.msdn.com/b/windowsazurestorage/archive/2010/04/11 /using-windows-azure-page-blobs-and-how-to-efficiently-upload-and-download-page-blobs.aspx。请阅读标题为“高级功能 - 清除页面和更改页面 Blob 大小”的部分以获取示例代码。
Since an Azure drive is essentially a page blob, you can resize it. You'll find this blog post by Windows Azure Storage team useful regarding that: http://blogs.msdn.com/b/windowsazurestorage/archive/2010/04/11/using-windows-azure-page-blobs-and-how-to-efficiently-upload-and-download-page-blobs.aspx. Please read the section titled "Advanced Functionality – Clearing Pages and Changing Page Blob Size" for sample code.
是的,您可以,
我知道这个程序非常易于使用,您可以与您的 VHD 连接并创建新的,上传 VHD 并与 azure 连接,上传以下载 VHD 中的文件 http://azuredriveexplorer.codeplex.com/
yes you can,
please i know this program, is ver easy for use, you can connect with you VHD and create new, upload VHD and connect with azure, upload to download files intro VHD http://azuredriveexplorer.codeplex.com/
到目前为止我已经找到了这些方法:
VHD数据结构(最后512字节)。
理论上,这会在之后创建未分区的磁盘空间
当前分区。但是如果分区表也期望
磁盘末尾的元数据(GPT?或动态磁盘),
也应该修复。
我知道 仅 一个工具
可以进行就地修改。不幸的是这个工具是
只不过是一个周末的黑客活动(在撰写本文时)
因此它是脆弱的。 (请参阅作者的免责声明。)但是速度要快。
如果此工具得到显着改进,请通知我(或编辑这篇文章)。
如果您不需要保留 NTFS 功能,例如
结点、软/硬链接等。
由一个小分区和大量未分区(保留)空间组成。
Windows磁盘管理器会看到VHD中未分区的空间,并且可以扩展
随时对其进行分区——就地操作。微妙的一点是
未分区的区域,只要未分区,就不会计费,因为
没有写到。 (请注意,格式化或碎片整理确实分配
区域并导致计费。)
不过,它将计入您的 Azure 订阅配额 (100TB)。
本地VHD,将分区扩展到未分区的空间,卸载,
上传。
这会保留所有内容,甚至适用于操作系统分区,但非常
由于涉及下载/上传和软件安装,速度较慢。
下载/上传很多。 此处提供了分步说明。
不幸的是,所有这些技术都需要卸载驱动器相当长的时间,即不能以高可用性的方式执行。
I have found these methods so far:
VHD data structure (the last 512 bytes).
Theoretically this creates unpartitioned disk space after the
current partition. But if the partition table also expects
metadata at the end of the disk (GPT? or Dynamic disks), that
should be fixed as well.
I'm aware of only one tool
that can do this in-place modification. Unfortunately this tool is
not much more than a one-weekend hack (at the time of this writing)
and thus it is fragile. (See the disclaimer of the author.) But fast.
Please notify me (or edit this post) if this tool gets improved significantly.
This may be enough if you don't need to preserve NTFS features like
junctions, soft/hard links etc.
comprised of a small partition and lots of unpartitioned (reserved) space.
Windows Disk Manager will see the unpartitioned space in the VHD, and can expand the
partition to it whenever you want -- an in-place operation. The subtle point is
that the unpartitioned area, as long as unparitioned, won't be billed, because
isn't written to. (Note that either formatting or defragmenting does allocate
the area and causes billing.)
However it'll count against the quota of your Azure Subscription (100TB).
VHD locally, extend the partition to the unpartitioned space, unmount,
upload.
This preserves everything, even works for an OS partition, but is very
slow due to the download/upload and software installations involved.
downloading/uploading a lot. Step-by-step instructions are available here.
Unfortunately all these techniques require unmounting the drive for quite a lot of time, i.e. cannot be performed in high-available manner.