Skip to content

Instantly share code, notes, and snippets.

@pcn
Last active December 18, 2015 11:59
Show Gist options
  • Select an option

  • Save pcn/5779310 to your computer and use it in GitHub Desktop.

Select an option

Save pcn/5779310 to your computer and use it in GitHub Desktop.
The strange case of ohai showing the wrong number of ephemeral disks
ubuntu@ip-10-30-151-113:~$ ls -laF /dev | grep xvd
brw-rw---- 1 root disk 202, 1 Jun 14 02:55 xvda1
brw-rw---- 1 root disk 202, 16 Jun 14 02:55 xvdb
ubuntu@ip-10-30-151-113:~$ ohai | grep ephemeral
"block_device_mapping_ephemeral0": "sdb",
"block_device_mapping_ephemeral1": "sdc",
ubuntu@ip-10-30-151-113:~$ curl http://169.254.169.254/latest/meta-data/block-device-mapping/; echo
ami
ephemeral0
ephemeral1
root
ubuntu@ip-10-30-151-113:~$ curl http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral0 ; echo
sdb
ubuntu@ip-10-30-151-113:~$ curl http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral1 ; echo
sdc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment