Introduction to Virtual Disks
A virtual disk contains two components: the virtual disk itself as it appears in a guest domain, and the virtual disk back end, which is where data is stored and where virtual I/O is sent. The virtual disk back end is exported from a service domain by the virtual disk server (vds
) driver. The vds
driver communicates with the virtual disk client (vdc
) driver in the guest domain through the hypervisor using a logical domain channel (LDC). Finally, a virtual disk appears as /dev/[r]dsk/cXdYsZ
devices in the guest domain.
Note:
You can refer to a disk either by using/dev/dsk
or /dev/rdsk
as part of the disk path name. Either reference produces the same result.
Caution:
Do not use thed0
device to represent the entire disk. This device represents the entire disk only when the disk has an EFI label and not a VTOC label. Using the d0
device results in the virtual disk being a single-slice disk, which might cause you to corrupt the disk label if you write the beginning of the disk.
Instead, use the s2
slice to virtualize the entire disk. The s2
slice is independent of the label.
The virtual disk back end can be physical or logical. Physical devices can include the following:
-
Physical disk or disk logical unit number (LUN)
-
Physical disk slice
Logical devices can be any of the following:
-
A file on a local file system, such as ZFS or UFS, or on a remote file system that is made available by means of NFS
-
A logical volume from a volume manager, such as ZFS, VxVM, or Solaris Volume Manager
-
Any disk pseudo device accessible from the service domain
Virtual Disks With Oracle VM Server for SPARC
![Shows how virtual disk elements, which include components in the guest and service domains, communicate through the logical domain channel. Shows how virtual disk elements, which include components in the guest and service domains, communicate through the logical domain channel.](img/l10n_vdisk.jpg)
To use the maximum number of virtual disks on the server, ensure that the segkpsize
kernel tunable has a value of at least 524288. Note that an insufficient segkpsize
value might result in a guest domain hanging during boot or during a dynamic addition of a virtual disk.