问题
In the following EC2 instance types which have SSD drives
- r3.2xlarge
- r3.4xlarge
- i2.xlarge
When I login through SSH, I am unable to see the SSD drives. I was trying "df -h".
I have tried
- reboot, but that did not help.
- tried to terminate and create a new instance that also does not help. Suggesting that its not one-off issue.
回答1:
I found one solution by trying the steps suggested for adding EBS volumes to Ubuntu instnaces
Below are my steps:
- sudo mkfs.ext4 /dev/xvdb
- sudo mkdir -m 000 /mnt # isnt required if /mnt exists.
- echo "/dev/xvdb /mnt auto noatime 0 0" | sudo tee -a /etc/fstab
- sudo mount /mnt
来源:https://stackoverflow.com/questions/23092436/ssd-drives-not-accessible-in-ec2-ubuntu-instances