1826219 Members
3278 Online
109691 Solutions
New Discussion

Re: export path

 
juno2
Super Advisor

export path

I add the CD com path to the /etc/exports
/CDROM access=server1,root=server1
where /CDROM is the mount point of cdrom
then run
#exportfs -a
exportfs error: /CDROM: Read-only file system

how to export the CDROM path ? thx.
8 REPLIES 8
T G Manikandan
Honored Contributor

Re: export path

/CDROM -ro
/CDROM access=server1,root=server1 -ro

Include the -ro option(read only) in the exports file

Thanks

Robert-Jan Goossens
Honored Contributor

Re: export path

Hi,

Add the -o ro
optin to your comman ro=read only

Robert-Jan.
Yogeeraj_1
Honored Contributor

Re: export path

Hi,

Normally, we do the following:

Server A
- mount -r /dev/dsk/c2t1d0 /cdrom
- Add "/cdrom -ro" on /etc/exports file
- run "exportfs -av"

Server B
- mount serverA:/cdrom /cdrom

hope this helps!

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
mahmoud khalefa
Advisor

Re: export path

dear;
i'm also recomend to add -r when mount the cdrom and -ro in the /etc/exports file
regards
mahmoud khalefa
juno2
Super Advisor

Re: export path

my statement in /etc/exports of server2 is

/cd_rom -ro -anon=65534 ,access=server1,root=server1

then i run
# exportfs -a

then I mount it on server1
#mount server2:/cd_rom /tmp/cdrom
mount: access denied for server1:/cd_rom

How to fix it? thx
juno2
Super Advisor

Re: export path

I can mount the path on server1 , only the /cd_rom can't mount , can suggest what can i do? thx
juno2
Super Advisor

Re: export path

all other exported path at server2 can be mount, but only the cdrom path can't be mount , what is wrong with my setting ? thx
T G Manikandan
Honored Contributor

Re: export path

#mount -o -r server2:/cd_rom /tmp/cdrom

Even for mounting again u need to specify the read only option.


Thanks