- Oracle VM Server for SPARC 3.6 Administration Guide
- Using Virtual Disks
- Virtual Disk Back End
- How to Export a Physical Disk Slice as a Virtual Disk
How to Export a Physical Disk Slice as a Virtual Disk
- Export a slice of a physical disk as a virtual disk.
For example, to export slice 0 of the physical disk
c1t57d0
as a virtual disk, you must export the device that corresponds to that slice (c1t57d0s0
) as follows.primary# ldm add-vdsdev /dev/dsk/c1t57d0s0 c1t57d0s0@primary-vds0
You do not need to specify the
slice
option because a slice is always exported as a single-slice disk. - Assign the disk to a guest domain.
For example, assign the disk (
pslice
) to guest domainldg1
.primary# ldm add-vdisk pslice c1t57d0s0@primary-vds0 ldg1
- After the guest domain is started and running the Oracle Solaris OS, you can list the disk (
c0d13
, for example) and see that the disk is accessible.ldg1# ls -1 /dev/dsk/c0d13s* /dev/dsk/c0d13s0 /dev/dsk/c0d13s1 /dev/dsk/c0d13s2 /dev/dsk/c0d13s3 /dev/dsk/c0d13s4 /dev/dsk/c0d13s5 /dev/dsk/c0d13s6 /dev/dsk/c0d13s7
Although there are eight devices, because the disk is a single-slice disk, only the first slice (
s0
) is usable.