How to add disk slice as a virtual disk to ldom
I have a problem of adding a virtual disk to logical domain.
I cannot use disk slice(s) to make them as virtual disk devices.
Here is an example:
When I do "ldm add-vdiskserverdevice /dev/rdsk/c1t1d0s2 vdisk2@primary-vds0" and "ldm add-vdisk vdisk2 vdisk2@primary-vds0 ldom1" I've got
error messages:
Apr 8 11:47:35 t2000 vds: [ID 416625 kern.info] vd_setup_vd(): ldi_get_size() failed for /dev/rdsk/c1t1d0s2
Apr 8 11:47:35 t2000 vds: [ID 556514 kern.info] vds_add_vd(): Failed to add vdisk ID 1
I tried to use /dev/dsk/c1t1d0s2 with the same result.
But I can use regular files (made with mkfile) instead of devices.
Looks like vds thinks about c1t1d0s2 as a regular file, not a device.
P.S. I'm using Solaris Nevada snv_61 on primary domain.
Did not try the same with Solaris 10 U3.

