简体   繁体   English

如何在没有EBS的情况下增加ec2实例根文件系统?

[英]How to increase ec2 instance root file system without EBS?

How to increase disk space of an instance without using EBS ? 如何在不使用EBS的情况下增加实例的磁盘空间? Root file system size is only showing 10 GB. 根文件系统大小仅显示10 GB。 Is there a way to create a bigger file system without EBS ? 有没有办法在没有EBS的情况下创建更大的文件系统?

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             9.9G  3.3G  6.1G  35% /
tmpfs                 874M     0  874M   0% /lib/init/rw
udev                  874M   84K  874M   1% /dev
tmpfs                 874M     0  874M   0% /dev/shm
/dev/sdb              335G   12G  307G   4% /mnt

As you can see in the output, a much bigger partition is mounted at /mnt . 如您在输出中看到的, /mnt挂载了更大的分区。 You can move some of the things on the root filesystem there by either remounting it at the appropriate location or add symlinks. 您可以通过在适当位置重新挂载根文件系统上的某些内容或添加符号链接。 There is no other way to add more diskspace if you don't want to resort to EBS or a network filesystem. 如果不想使用EBS或网络文件系统,则没有其他方法可以添加更多磁盘空间。

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

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