1837157 Members
2759 Online
110112 Solutions
New Discussion

Re: export cdrom to

 
nash11
Frequent Advisor

export cdrom to

I have two server and only one cdrom in one of the server , if I want to share the cdrom to let another server to mount it , could advise how to do it ? thx.
9 REPLIES 9
Mel Burslan
Honored Contributor

Re: export cdrom to

on the server with cdrom, first mount the cdrom

mkdir /cdrom
mount /dev/dsk/cXdXtX

then

edit file /etc/exports and place a line like this :

/cdrom -access=server1:server2

server1 or server2 are the servers without cdrom drives. It can be more than one or two. Just separate them by column signs.

save and exit
run command

exportfs -a

then go to the server without cdrom drive

mkdir /cdrom
mount servercd:/cdrom /cdrom

here servercd is the name of the server which contains the cdrom drive

hope it helps
________________________________
UNIX because I majored in cryptology...
nash11
Frequent Advisor

Re: export cdrom to

thx reply,

I tried your method , I still have question .

here is my step :
Assume server A has cdrom , the cdrom path is /dev/cdrom , then add "/dev/cdrom -access=serverB" to /etc/exports and run "exportfs -a" , then in serverB , run "mount serverA:/mnt/cdrom /tmp" , is that right ? I tried it , but still mount it , does cdrom is unable to export to another server ? thx.
someone_4
Honored Contributor

Re: export cdrom to

If you are trying to mount a cdrom with a depot file do this:

mount /dev/dsk/c1t2d3 /cdrom
swreg -l depot /cdrom

Then run swinstall and use a network depot to the server that it is mounted on.

- Richard
nash11
Frequent Advisor

Re: export cdrom to

thx reply ,

I may be share the cdrom with other unix-like distro , the swreg and depot seems only work on hp-unix server ... thx
Mel Burslan
Honored Contributor

Re: export cdrom to

/dev/cdrom is a device file and to the best of my knowledge, you can not export special files like device files. You need to first mount the device locally and then you can export the locally mounted file as I described in my earlier post.

I am not sure what you are trying to do with this cdrom export but the instructions given applies basically to HPUX or any modern version of unix. If your purpose is something else, you had better explain it to get better responses.
________________________________
UNIX because I majored in cryptology...
rariasn
Honored Contributor

Re: export cdrom to

Hi nash11,

In local server1:

# mount -r /dev/dsk/cxtydz /cdrom

cxtydz --> DVD/CD device.

# bdf /cdrom

In local /etc/exports
/cdrom -anon=65534,ro,root=server2

# export /cdrom

In server2:

# mount -F nfs host:/cdrom /cdrom

When you finish,

In server2:

# unmount /cdrom

In server1:

exportfs -u /cdrom
umount /cdrom

rgs,

ran
nash11
Frequent Advisor

Re: export cdrom to

thx mel,

I am doing what you are talking, "mount the cdrom locally" , but when I mount it, it pop the error , it seems the cdrom is unable to mount as a path , could advise what is wrong ? thx


mount /dev/cdrom /tmp/cdrom
mount: /dev/cdrom is not a block device
RAC_1
Honored Contributor

Re: export cdrom to

mount "device_file_of_cdrom" /cdrom
ioscan -fnCdisk -> to know device path of cdrom.
There is no substitute to HARDWORK
Andrew Rutter
Honored Contributor

Re: export cdrom to

hi nash,

you seem to be mounting the cdrom incorrectly first.

mount /dev/cdrom /tmp/cdrom is incorrect

you need to use the special device files o correctly mount the cdrom drive

get the device files from ioscan first

#ioscan -funC disk

will be c0t2d0 or something similar

then mkdir /cdrom if you havent already

then
#mount /dev/dsk/c0t2d0 /cdrom

this will mount the cdrom drive, providing there is a disk in it.

then carry on with exportingas already stated previously

ANdy