I am using RHEL on Azure. I have found that, with any new Azure VM launched, I see two disks attached. One is root disk on which, RHEL OS is installed. And other is local SSD attached, but its a temporary disks. Some part of this temporary disk is utilized for swap area.
If I am using LVM type volume manager, how can I detect the second disk is the temporary disk? If I want to implement disk management utility in C programming language, how can I detect this temporary disk? Is there any disk property which we can use to detect the locally attached disk?