- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Elastic Block Storage
Basic volume operations
Viewing the mapping between volume IDs and device names
Basic volume operations
Viewing the mapping between volume IDs and device names
Viewing the mapping between volume IDs and device names
ECS allows you to view the mapping between volume IDs and device names. This makes it easier to check basic information, such as capacity, in real time when extending a volume. This topic explains how to do so.
Constraints and limitations
This feature is available for ESSD volumes. This feature is not available for PTSSD volumes and local disks.
Viewing the mapping in the console
- In the left navigation pane, select "Instances & Images > Instances".
- In the top menu bar, select the project and region where the instance resides.
- On the "Instances" page, click the instance you want to manage.
tip
Alternatively, click the
icon in the "Monitoring" column of the instance on the "Instances" page. - On the instance details page, click the "Monitoring" tab.
- Click the "Operating system monitoring" tab.
- In the "Disk" section, hover over a device name to see its associated volume ID.
tip
In the "Disk" section, click the volume ID. This will take you to the volume details page where you can view the volume's information.
Viewing the mapping using commands
- Run this command to get information about the device.
- You will see output similar to the following:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
├─vda1 253:1 0 200M 0 part /boot/efi
└─vda2 253:2 0 39.8G 0 part /
└─vdb1 253:17 0 9.8G 0 part
- Obtain the device name from the output.
- Run this command to obtain the serial number of the device.
udevadm info --query=all --name=<device name> | grep SERIAL
udevadm info --query=all --name=vdb1 | grep SERIAL
- You will see output similar to the following:
E: ID_SERIAL=3vosmnm2p43x35co****
- Run this command to get the mapping between device serial numbers and volume IDs.
curl 100.96.0.96/latest/serial_number
- You will see output similar to the following:
[{"serial_number":"3vod4yzzkd5a711he****","volume_id":"vol-3vod4yzzkd5a711h****"},{"serial_number":"3vosmnm2p43x35co****","volume_id":"vol-3vosmnm2p43x35co****"}]root@iv-yczcswenswcva4fm****:~#
Last updated: 2026.04.29 14:25:49