Listing Available Ephemeral Storage Devices Parent topic

Listing the available ephemeral storage:

Procedure

  • Query the device node name from API, which can be assigned when launch instance or ec2 API (ephemeral0 / ephemeral1 / ephemeral2 / ephemeral3)
    Connect to your running instance, and then use this query on a running instance to get its block device mapping: http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral[0-3]
    The response includes the names of the block devices for the instance. For example: ephemeral0 --> /dev/sdb
  • Use command ls to make sure the device node name exist
    Connect to your running instance, and then issue any of the following commands:
    ls /dev/xvdb
    
    ls /dev/sdb
    
    Note
    Note
    Agents running Red Hat Enterprise Linux 6.3 will have their device node name altered. For example, you have assigned and queried ephemeral0 as /dev/sdm. This makes the real device node inside the instance to be /dev/xvdq.