Thursday, May 15, 2008

Solaris mounting and sharing cdrom

restart volmgt daemon
# pkill vold && /usr/sbin/vold &

check which is the cdrom drive
% iostat -En

c1t0d0 Soft Errors: 149 Hard Errors: 0 Transport Errors: 0
Vendor: MATSHITA Product: CDRW/DVD UJDA740 Revision: 1.00 Serial No:
Size: 0.56GB <555350016>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 149 Predictive Failure Analysis: 0

mount the cdrom manually if vold fails to mount it
mount -F hsfs -o ro /dev/dsk/c1t0d0s2 /cdrom

nfs shares cdrom drive
edit /etc/dfs/dfstab, put in below line or just run it
share -F nfs -o ro /cdrom

run dfshares to see if cdrom is shared
if not run /etc/init.d/nfs.server stopstart

on remote mahine run
mount servername:/cdrom /mnt

if want to umount /mnt run this first
fuser -cu /mnt , to see pid using the /mnt
fuser -ck /mnt , will kill all processes holding the cdrom