Добавить EBS в Ubuntu EC2 Instance
У меня проблема с подключением тома EBS к моему экземпляру Ubuntu EC2.
Вот что я сделал:
From the Amazon AWS Console, I created a EBS 150GB volume and attached it to an Ubuntu 11.10 EC2 instance. Under the EBS volume properties, "Attachment" shows: "[my Ubuntu instance id]:/dev/sdf (attached)"
Tried mounting the drive on the Ubuntu box, and it told me "mount: /dev/sdf is not a block device"
sudo mount /dev/sdf /vol
So I checked with fdisk and tried to mount from the new location and it told me it wasn't the right file system.
sudo fdisk -l
sudo mount -v -t ext4 /dev/xvdf /vol
the error:
mount: wrong fs type, bad option, bad superblock on /dev/xvdf, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
"dmesg | tail" told me it gave the following error:
EXT4-fs (sda1): VFS: Can't find ext4 filesystem
Я также попытался поместить конфигурации в файл / etc / fstab, как указано вhttp://www.webmastersessions.com/how-to-attach-ebs-volume-to-amazon-ec2-instance, но все же дал такую же не правильную ошибку файловой системы.
Вопросы:
Q1: На основании пункта 1 (выше), почему том был сопоставлен с «dev / sdf»; когда он действительно сопоставлен с / dev / xvdf?
Q2: Что еще мне нужно сделать, чтобы загрузить том EBS? Я думал, что я просто обо всем позабочусь, когда прикреплю это к экземпляру.