我停止了我的实例,相应地更改了类型并启动了它.但是,我能找到的所有存储空间都是15G的tempfs和一个8G的驱动器.
$fdisk -l Disk /dev/xvda1: 8589 MB,8589934592 bytes 255 heads,63 sectors/track,1044 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
如何为此实例类型访问2 x 80GB SSD?
解决方法
这是从AWS docs:
@H_404_14@Instances that use Amazon EBS for the root device do not,by default,
have instance store available at boot time. Also,you can’t attach
instance store volumes after you’ve launched an instance. Therefore,
if you want your Amazon EBS-backed instance to use instance store
volumes,you must specify them using a block device mapping when you
create your AMI or launch your instance. Examples of block device
mapping entries are: /dev/sdb=ephemeral0 and /dev/sdc=ephemeral1. For
more information about block device mapping,see Block Device Mapping
与@LinuxDevOps一样,您必须创建现有实例的快照,然后创建一个附加SSD卷的新快照.登录到新实例后,您可以像@ceejayoz一样提到.
列出您的设备:
fdisk -l
在设备上创建文件系统.例如ext4
mkfs.ext4 /dev/xvdb mkfs.ext4 /dev/xvdc
安装设备:
mkdir -p /mnt/xvdb; mkdir -p /mnt/xvdc mount /dev/xvdb /mnt/xvdb mount /dev/xvdc /mnt/xvdc
供参考:list of device names according to instance types
SF和SO中还有其他类似的答案.例如:Where’s my ephemeral storage for EC2 Instance