Rahul Kumar
Rahul Kumar

Reputation: 161

How to know ephemeral space is mounted or not

I know that there is some ephemeral space is attached to the instance based on instance type. and we need to mount this space at launch time. I want to know is this space is mount or not. Is there any way to get this information?

Upvotes: 1

Views: 118

Answers (1)

Julio Faerman
Julio Faerman

Reputation: 13501

You can check your Block Device Mapping, from the web console, CLI or instance metadata. Note that you can specify instance store (a.k.a. ephemeral) volumes for an instance only when you launch it.

As simple way to check if a specific instance has instance store volumes available is consulting the instance metadata service from within the instance itself. Just point a browser or curl to http://169.254.169.254/latest/meta-data/block-device-mapping/. You'll see 'ephemeralX' for the ephemeral volumes and 'ami' for the images root device mapping.

Upvotes: 1

Related Questions