Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS - EBS Attached But Can't Find On Instance

I am pretty new to Amazon Web Services. I made my first EBS volume (through both the command line and the AWS web app) and attached it to a running instance at /dev/sdh as seen here. The web app shows me that it has been successfully attached to the instance. However, the folder /dev/sdh does not show up on the instance, nor does df -h reveal that it is there. What else do I need to do?

I am not sure if this helps, but the instance is an Ubuntu 11.04 Large.

like image 593
skaz Avatar asked Aug 08 '11 18:08

skaz


People also ask

How do I know if my EBS is attached to EC2?

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances. Select the instance. On the Storage tab, the Block devices section lists the volumes that are attached to the instance.

Where is an Amazon EBS volume tied to?

Features of Amazon EBS. You create an EBS volume in a specific Availability Zone, and then attach it to an instance in that same Availability Zone. To make a volume available outside of the Availability Zone, you can create a snapshot and restore that snapshot to a new volume anywhere in that Region.

Where can I find unattached EBS volumes?

01 Sign in to the AWS Management Console. 02 Navigate to Amazon EC2 console at https://console.aws.amazon.com/ec2/. 03 In the navigation panel, under Elastic Block Store, choose Volumes. 04 Select the Amazon EBS volume that you want to examine.

How do I add EBS volume to existing EC2 instance?

To attach an EBS volume to an instance using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Volumes. Select the volume to attach and choose Actions, Attach volume. You can attach only volumes that are in the Available state.

How can an EBS volume that is currently attached?

How can an EBS volume that is currently attached to an EC2 instance be migrated from one Availability Zone to another? A. Detach the volume and attach it to another EC2 instance in the other AZ.

Why is my server not showing managed instance?

To be a managed instance, instances must meet the following prerequisites: Have the AWS Systems Manager Agent (SSM Agent) installed and running. Have connectivity with Systems Manager endpoints using the SSM Agent. Have the correct AWS Identity and Access Management (IAM) role attached.

Can same EBS be attached to multiple instances?

Amazon EBS Multi-Attach enables you to attach a single Provisioned IOPS SSD ( io1 or io2 ) volume to multiple instances that are in the same Availability Zone. You can attach multiple Multi-Attach enabled volumes to an instance or set of instances.

Is EBS shared between instances?

There are few use cases where you may need a single file system attached to multiple nodes. For example, the following systems might need high-performance storage systems that can be accessed by multiple nodes concurrently.


2 Answers

Not sure if it will be the reason in your case, but we found a similar problem while integrating Fedora images in our infrastructure for BitNami Cloud Hosting.

Some kernels use /dev/xvd* instead of /dev/sd*. In your case, if you have attached the volume with device name /dev/sdh it would appear as /dev/xvdh in the machine.

I hope it helps.

like image 50
Carlos SM Avatar answered Oct 26 '22 11:10

Carlos SM


When you attach a new EBS volume to an EC2 instance, there is nothing present on the volume, not even filesystem. Hence if you do df -h, it won't show up.

You should use lsblk command to list all the attached disks.

You will have to format it to make it usable. Here is the useful link for that.

Also, @CarlosSM's answer is correct that sometimes the name of the volume is different than what is specified.

like image 26
Bhushan Avatar answered Oct 26 '22 09:10

Bhushan