-->

SSD drives not accessible in EC2 ubuntu Instances

2019-03-21 03:17发布

问题:

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