I am preparing for a certification and have a locally installed CentOS7 (VirtualBox) and another instance in a cloud-based service.
On the local system I have a /dev/sda
and on the cloud-based i have a /dev/vda
.
Now I am wondering what this difference exactly means? Is there a standard (documentation?) for the naming of this devices, and what the different names stand for?
Edit:
I think this document is very useful to understand the naming: https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
8 block SCSI disk devices (0-15)
0 = /dev/sda First SCSI disk whole disk
16 = /dev/sdb Second SCSI disk whole disk
32 = /dev/sdc Third SCSI disk whole disk
...
240 = /dev/sdp Sixteenth SCSI disk whole disk
But I could not find some information about /dev/vda.
Full Virtualization vs. Paravirtualization
/dev/sda is the first detected disk of IDE/SATA/SCSI type. In this case, emulated(full virtualized) by the hypervisor.
/dev/vda is the first detected paravirtualizated disk driver. It is faster than emulated sdX devices if both are referred to the same disk, because there are less overhead in its operation compared to an emulated drive.
References:
From http://www.ibm.com/developerworks/library/l-virtio/:
From http://www.carfax.org.uk/docs/qemu-virtio: