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.

[862 byte] By [logic2000a] at [2007-11-27 0:22:14]
# 1
I have not tried out the disk slice option for a while, so I'm not certain if it's a bug or something related to SVN_61. Asa?
unixconsolea at 2007-7-11 22:16:52 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...
# 2
Are you attempting to add a slice or the whole disk? Isn't /dev/dsk/cxtxdxs2, the whole drive?Message was edited by: WindyCityMessage was edited by: WindyCityMessage was edited by: WindyCity
WindyCitya at 2007-7-11 22:16:52 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...
# 3
Actually, I tried both and separate slice and whole disk.Also I tried dsk and rdsk. Neither worked for me.
logic2000a at 2007-7-11 22:16:52 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...
# 4

Currently my control domain has Sol 10 upd 3 with 118833-36 and of course LDOM patches.Here is the entry for the vdiskserverdevice supporting my root environment on one of my guest domains.

vdsdev: vol1device=/dev/dsk/c0t5006016B0060041Ed1s2

I was able to stage this guy via netboot install as well. This device comes up as c0d0, so we had to tweak our Jumpstart env a bit for handling this, but works well other than that.

bashusra at 2007-7-11 22:16:52 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...
# 5
You can use a whole disk, either local or SAN to do an install or add as an additional disk. It looks like the examples in the docs of using a disk slice(not slice 2) for adding storage does not work.
unixconsolea at 2007-7-11 22:16:52 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...