是否安装了 EBS 卷?在哪里?

Is the EBS volume mounted ? and where?

在我的 EC2 instance 中,附加到 100GB 的卷 EBS,我 运行 这个命令:

[ec2-user ~]$ lsblk

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvda    202:0    0  100G  0 disk
└─xvda1 202:1    0    8G  0 part /

这是文件 /etc/fstab:

UUID=ue9a1ccd-a7dd-77f8-8be8-08573456abctkv       /   ext4    defaults       1       1

我想明白:为什么只有8GB的卷有挂载点? 另外,在根 '/' 上挂载一个卷是否意味着根的所有内容都存储在 EBS 卷上?

I want to understand: why only the volume of 8GB has a mount point ?

因为默认情况下附加卷不是 formatted/mounted。 AWS 不知道您是想要 ext4 还是 NTFS 或其他东西,也不知道您想要哪个挂载点。

Also, is the fact of mounting a volume on root '/', means that all the content of root is being stored on EBS volume?

是,如果您有 EBS 支持的实例(不同于所谓的实例支持的实例)并且如果您没有其他卷 mounted(不要与 'attached')

p.s。据我所知,您最初创建了 8GB 卷,然后通过 AWS 控制台将其大小调整为 100GB。请注意,您调整了 EBS 卷的大小 (xvda) 但没有调整分区的大小 (xvda1)。出于同样的原因,AWS 不会自动调整它的大小:它不知道您将如何使用额外的 space.