Sharing DVD Drive in LDoms Environment

I have T5220 server with DVD drive. I have installed few logical domains in the server and wonder how they can share the DVD drive. I have not seen any mention of that in Sun documentation.

read the section on vdc (virtual disk client) from here http://opensolaris.org/os/project/dfw-osug/files/Savit-LDoms-20070521-hs.pdf

insert cd

cdrw -l

ldm add-vdsdev options=ro /dev/dsk/c*t*d*s2 cdrom@primary-vds0

ldm add-vdisk cdrom cdrom@primary-vds0 xxxx

Thanks incredible for the document and thanks taran for the procedure. In the document it says that "A future release will provide virtualized access to DVD/CD-ROM in service domains"; but I guess the procedure provided by taran is for LDoms 1.1; please confirm.

When inserting a DVD, I am getting an error repeatedly says "/usr/sbin/vold[3031]: vol_init: already a daemon running" and then "svc.startd[7]: system/filesystem/volfs:default failed repeatedly: transitioned to maintenance (see 'svcs -xv' for details)"! Not sure if this is related to LDoms or not.

yes for LDOM 1.1

reject dvd

check volfs online
`svcs volfs`

if volfs online then

vi /etc/vold.conf

comment out the line starting with the
following words

use cdrom drive....

svcadm refresh volfs
svcadm restart volfs

insert dvd

cdrw -l

ldm add-vdsdev options=ro /dev/dsk/c*t*d*s2 cdrom@primary-vds0

ldm add-vdisk cdrom cdrom@primary-vds0 xxxx

Thanks taran! I do not have the lines that start with "svcadm" but commented the one that starts with "use cdrom drive", and have not seen the error after that. Can you elaborate on why this resolves the issue? I do not seem to find related information on Sun doc.

One more question about the last two commands for LDoms, does that mean that cannot share the same drive with more than one guest domain? If I want to use the same drive for different guest domains, I have to remove it from a domain (using ldm remove-vdisk cdrom cdrom@primary-vds0 xxxx) and add it to another (ldm add-vdisk cdrom cdrom@primary-vds0 yyyy)?

man vold.conf
http://docs.sun.com/app/docs/doc/816-5166/vold-1m?l=en&a=view&q=vold

commands not line in the file

svcadm refresh volfs
svcadm restart volfs

-----------------

ldm add-vdsdev options=ro /dev/dsk/c*t*d*s2 cdrom@primary-vds0

ldm add-vdisk cdrom cdrom@primary-vds0 xxxx
ldm add-vdisk cdrom cdrom@primary-vds0 xxxx2
ldm add-vdisk cdrom cdrom@primary-vds0 xxxx3

Found this related Bug ID 6752267 in Sun
http://sunsolve.sun.com/search/document.do?assetkey=1-1-6752267-1