简体   繁体   English

AWS EC2计算机没有足够的磁盘空间

[英]Aws EC2 machine don't have enough disk space

When I create ec2 machine I choose disk size 30GB and another is 40Gb, but when I remote into this machine disk size only 16GB. 当我创建ec2机器时,我选择的磁盘大小为30GB,另一个为40Gb,但是当我远程访问该机器时,磁盘大小仅为16GB。 Does anyone how to increase this 有谁怎么增加这个

Size in AWS: AWS中的大小: 在此处输入图片说明

Size when I remote into it and check by command: df -h --total 远程访问并通过命令检查时的大小: df -h --total 在此处输入图片说明

Thank all! 谢谢大家!

Here is an article that describes just that: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html 这是一篇仅描述该文章的文章: https : //docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

You need to mount the EBS volumes that are not mounted. 您需要安装未安装的EBS卷。 Based on the screenshot you provided, it looks like your root volume is 8GiB and you added 2 additional EBS volumes of 30GiB and 40GiB. 根据您提供的屏幕快照,您的根卷看起来像是8GiB,并且添加了两个额外的EBS卷:30GiB和40GiB。

Use lsblk to determine if your volumes are mounted or not. 使用lsblk确定是否已安装卷。 Most probably they are not mounted. 它们很可能没有安装。 Follow the instructions in the article and you will be good. 按照文章中的说明进行操作,您会很好。

From the Amazon EC2 console -> choose the volume listed for Block devices -> Choose the EBS ID -> Modify Volume -> choose Volume Type -> enter the Size -> choose Modify -> Save 在Amazon EC2控制台中->选择为块设备列出的卷->选择EBS ID->修改卷->选择卷类型->输入大小->选择修改->保存

The expanded volume is immediately available for the OS. 扩展的卷可立即用于操作系统。

Note: Windows root volumes can be extended up to 2 TB. 注意:Windows根卷最多可以扩展到2 TB。

RDP into the instance -> launch the Disk Management (diskmgmt.msc) -> Action -> Refresh -> context (right-click) menu -> choose Extend Volume -> Next -> Finish. RDP进入实例->启动磁盘管理(diskmgmt.msc)->操作->刷新->上下文(右键单击)菜单->选择扩展卷->下一步->完成。

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

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