Digital Marketing

Identifying the EBS device on EC2

Amazon Linux creates a symbolic link from the device name in the block device mapping 

For example, /dev/sdf, to the NVMe device name.

$ ll /dev/sdf
lrwxrwxrwx 1 root root 7 May 18 21:08 /dev/sdf -> nvme1n1

With Amazon Linux AMI 2017.09.01 or later (including Amazon Linux 2), you can run the ebsnvme-id command as follows to map the NVMe device name to a volume ID and device name:

[ec2-user ~]$ sudo /sbin/ebsnvme-id /dev/nvme1n1
Volume ID: vol-01324f611e2463981


Popular posts from this blog

Make online money from the Internet