SSD drives not accessible in EC2 ubuntu Instances

落花浮王杯 提交于 2019-12-20 14:46:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!