【发布时间】:2015-02-16 10:05:32
【问题描述】:
我确定问题的出现是因为我对 Ec2+EBS 配置的误解,所以答案可能很简单。
我在 Amazon WS 上创建了具有 30GB EBS 存储的 RedHat ec2 实例。但是lsblk 告诉我,总共 30 个中只有 6GB 可供我使用:
xvda 202:0 0 30G 0 disk
└─xvda1 202:1 0 6G 0 part /
如何将所有剩余存储空间挂载到我的实例?
[UPDATE] 命令输出:
mount:
/dev/xvda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sudo fdisk -l /dev/xvda:
WARNING: GPT (GUID Partition Table) detected on '/dev/xvda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/xvda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/xvda1 1 1306 10485759+ ee GPT
resize2fs /dev/xvda1:
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 1572864 blocks long. Nothing to do!
【问题讨论】:
标签: amazon-web-services linux-device-driver redhat amazon-ebs