I have EC2 instance with EBS volume attached, so that describe-instances command prints:
"DeviceName": "/dev/sdf","Ebs": { "Status": "attached","DeleteOnTermination": false,"VolumeId": "vol-04bfa2fab8e57a3dc","AttachTime": "2016-09-26T09:39:08.000Z" }
As per documentation:
Depending on the block device driver of the kernel, the device might be attached with a different name than what you specify
In my case actual name of this volume is /dev/xvdf
.
Is it possible from within an instance to know which name was specified for a volume in Amazon console?
Or vice versa - to know which actual name will be used by linux for a volume outside an instance?