On an EC2 instance, I have a few partitions that look like these:
/dev/nvme1n1 15G 48M 15G 1% /data/mongo2
/dev/nvme2n1 15G 4.7G 11G 32% /data/docker
/dev/nvme3n1 15G 3.4G 12G 23% /data/mongo
And then the corresponding EBS volumes, one of which looks like this:
I'm trying to figure out which mounts map to which EBS volumes. It used to be the case that the "Attachment information" matched or was similar to the device, but it no longer seems to be the case with nve.
Is there any way to match these besides keeping track myself of the mounts? thanks
There are a few different methods depending on what OS you're using.
Which will provide output like this:
For Linux kernels 4.2 and later you can do the following:
First, install
nvme-cli
. It is the NVMe command line package. Next you can run a command similar to this:The links below provide additional details.
References
NVME EBS Volumes
How to Find EBS Volume ID for NVME Volume