为什么 AWS 实例不显示外部附加的正确存储?
我已将 650GB 的外部 EBS 卷附加到根卷为 250GB 的 ubuntu 实例。 650GB 附加到 /xvdg-volume
但如果我检查 df -h 命令,它不会显示整个卷。你可以在下图中看到: /xvdg-volume is only 350GB
有人说为什么吗我的情况发生这种情况吗?
I have attached an external EBS volume of 650GB to my ubuntu instance with a root volume of 250GB.
650GB is attached to /xvdg-volume
But if I check the df -h command it is not displaying the entire volume. You can see that in the following image: /xvdg-volume is only 350GB
Does anyone say why this is happening in my case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
卷扩展后,EC2实例和系统都需要调整以适应新的大小。
为此,请使用
resize2fs
方法调整已更改分区的大小。在您的情况下,情况将是这样的:
在 AWS 端增加卷后,您还可以通过简单地重新启动实例来扩展分区和文件系统大小。当操作系统恢复时,它会自行修改所有内容。
有关更多信息,请查看此处:如何调整 AWS 上的 EBS 卷大小
After the volume has been extended, the EC2 instance and the system both need to be adjusted to adapt to the new size.
To do this use the
resize2fs
method to resize the changed partition.In your case will be something like this:
You can also extend the partition and file system size after you have already grown the volume on the AWS side by simply rebooting your instance. When the operating system comes back up, it will modify everything itself.
For more information check here: How to Resize EBS Volumes on AWS