How To Identify If Underlying Disk is HDD or SSD?
Problem
How to identify if the underlying disk on the system is HDD or SSD?
Environment
- Platform9 Managed OpenStack - All Versions
- Platform9 Managed Kubernetes - All Versions
- CentOS
- Ubuntu
Procedure
- Use the
lsblkcommand to identify the type of disk attached to the server. In ROTA column the output '1' indicates the type of disk is HDD, for the SSD the value will be '0'.
# lsblk -o NAME,ROTANAME ROTAsda 0├─sda1 0├─sda2 0│ └─md126 0└─sda3 0 └─md125 0sdb 0├─sdb1 0├─sdb2 0│ └─md126 0└─sdb3 0 └─md125 0sdc 1└─360000000000000000e00000000010001 1sdd 1sde 1- It can be also identified using the file rotational file in sys filesystem as below to confirm if the disk is hdd or ssd.
# cat /sys/block/<sda/vda>/queue/rotationalAdditional Information
On a KVM guest virtual machine, the drive letter would be vda. The result will vary depend on the bus type selected during the virtual machine creation
Was this page helpful?