如何在运行 Windows 的 EC2 中以编程方式调整 Amazon EBS 支持的卷的大小?

发布于 2024-09-07 19:25:56 字数 211 浏览 2 评论 0原文

看起来调整 Amazon EBS 卷大小的唯一方法是拍摄快照、卸载、创建更大的卷从快照中安装后者

现在我的程序正在 Windows EC2 实例上运行,并发现磁盘空间不足。程序如何调整根分区所在的EBS卷的大小?

Looks like the only way to resize an Amazon EBS volume is to take snapshot, dismount, create a larger volume from the snapshot, mount the latter.

Now my program is running on a Windows EC2 instance and sees that it's out of disk space. How can the program resize the EBS volume the root partition resides on?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随心而道 2024-09-14 19:25:56

使用命令“diskpart”。对于 Windows,请查看此处:使用 http://support.microsoft.com/kb/300415
以下是我对非根磁盘(基本非动态磁盘)执行的步骤。

拍摄快照后,卸载旧的 EBS 卷(例如 600GB)并创建一个更大的 EBS 卷(例如 1TB)并安装这个新的 EBS 卷- 您必须在命令提示符下让 Windows 了解大小调整(从 600GB 到 1TB)(以管理员身份运行)

diskpart.exe

选择磁盘=9

选择音量=Z

延长

[我的磁盘 9,卷标记为 Z,是从大小为 600GB 的 ec2 快照创建的大小为 1TB 的卷 - 我想将 600GB 调整为 1TB,因此可以按照上面的操作执行此操作的步骤。]

Use command "diskpart". For windows have a look here : Use http://support.microsoft.com/kb/300415
Following are the steps I followed for a non-root disk (basic not dynamic disk)

Once you have taken a snapshot, dismounted the old EBS volume (say 600GB) and created a larger EBS volume (say 1TB) and mounted this new EBS volume - you would have to let Windows know of the resizing (from 600GB to 1TB) so at command prompt (run as administrator)

diskpart.exe

select disk=9

select volume=Z

extend

[my disk 9,volume labelled Z, was a volume of size 1TB created from an ec2-snapshot of size 600GB - I wanted to resize 600GB to 1TB and so could follow the above steps to do this.]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文