简体   繁体   English

Fedora EC2映像磁盘空间不足

[英]Fedora EC2 images running out of disk space

I am using the official Fedora EC2 cloud AMI for some development work. 我正在使用官方的Fedora EC2云AMI进行一些开发工作。 By default, the root device on these these machines is only 2GB, regardless of which instance type I use. 默认情况下,无论我使用哪种实例类型,这些机器上的根设备只有2GB。 After installing some stuff, it always runs out of space and yum starts to complain. 安装一些东西后,它总是空间不足,yum开始抱怨。

[fedora@ip-10-75-10-113 ~]$ df -ah
Filesystem      Size  Used Avail Use% Mounted on
rootfs          2,0G  1,6G  382M  81% /
proc               0     0     0    - /proc
sysfs              0     0     0    - /sys
devtmpfs        1,9G     0  1,9G   0% /dev
securityfs         0     0     0    - /sys/kernel/security
selinuxfs          0     0     0    - /sys/fs/selinux
tmpfs           1,9G     0  1,9G   0% /dev/shm
devpts             0     0     0    - /dev/pts
tmpfs           1,9G  172K  1,9G   1% /run
tmpfs           1,9G     0  1,9G   0% /sys/fs/cgroup

I don't have this problem with other EC2 images, such as CentOS or Ubuntu. 其他EC2映像(例如CentOS或Ubuntu)没有此问题。 Is there any way I can start the AMI with a single, unpartitioned disk? 有什么方法可以用单个未分区的磁盘启动AMI? Or am I somehow using it in the wrong way? 还是我以某种错误的方式使用它?

When you create the instance, just give yourself a larger EBS volume. 创建实例时,只需给自己一个更大的EBS量即可。 I think the default is 5GB (could be very wrong). 我认为默认值为5GB(可能非常错误)。 Just increase it. 只是增加它。 You can always create an AMI from your current instance and launch based on the AMI with a larger EBS volume if you don't want to duplicate any work you've already done. 如果您不想重复已经完成的任何工作,则始终可以从当前实例创建AMI,并基于具有更大EBS量的AMI启动AMI。

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

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