简体   繁体   English

如何将 SSD NVMe 存储与 AWS 中的根目录合并

[英]How to merge the SSD NVMe storages with the root in AWS

There is an instance on AWS. AWS 上有一个实例。 Below is a screenshot showing that /dev/root is 7.6 GB with the usage of 100% but the NVMe shows 116 GB available.下面的屏幕截图显示/dev/root为 7.6 GB,使用率为 100%,但 NVMe 显示 116 GB 可用。

在此处输入图像描述

My question: is there any way that filesystem /dev/nvme1n1 merged with /dev/root so the amount of root space is extended?我的问题:文件系统/dev/nvme1n1/dev/root合并有什么方法可以扩展root空间的数量? If not, any suggestions to work around this?如果没有,有什么建议可以解决这个问题?

More info: the instance comes with 1 x 125 NVMe SSD by default so it doesn't make sense to me to buy additional storage for the root (/).更多信息:该实例默认配备 1 x 125 NVMe SSD,因此我没有必要为根 (/) 购买额外的存储空间。

Thank you in advance!先感谢您!

It makes no sense because /dev/nvme1n1 is Instance Storage volume and its content will not survive stop of the EC2 instance (unlike your 8GB root EBS volume which is durable).这是没有意义的,因为 /dev/nvme1n1 是实例存储卷,其内容将无法在 EC2 实例停止后继续存在(与持久的 8GB 根 EBS 卷不同)。

Perhaps the easiest option for you is to resize the root EBS volume and then resize the filesystem (elastic EBS volumes allow live resize).也许对您来说最简单的选择是调整根 EBS 卷的大小,然后调整文件系统的大小(弹性 EBS 卷允许实时调整大小)。

If you still want to combine root EBS and Instance Storage volumes, you probably may achieve that via LVM, but IMO that's a bad idea from durability and performance POV.如果您仍想组合根 EBS 和实例存储卷,您可能可以通过 LVM 实现,但从持久性和性能 POV 来看,IMO 是个坏主意。

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

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