1834020 Members
3221 Online
110063 Solutions
New Discussion

Re: exportfs problem

 
SOLVED
Go to solution
Belinda Dermody
Super Advisor

exportfs problem

I need to export one of my directories to a development box
ex: /usr/ud/HARRIS
This has a lot of sub directories
but on another test box I only want to export a subdirectory to it
ex: /usr/ud/HARRIS/misc_file
But when I run exportfs -a I get the following error
exportfs error: /usr/ud/HARRIS1: parent-directory (/usr/ud) already exported
exportfs error: /usr/ud/HARRIS: sub-directory (/usr/ud/HARRIS/misc_file) already
exported

And I can not mount the /usr/ud/HARRIS/misc_file on the test system.

Running HP-UX 11i
2 REPLIES 2
RAC_1
Honored Contributor
Solution

Re: exportfs problem

you can try with two entries and with -access option.
It will look as follows.
/dir_to_export/1 -access=host1
/dir_to_export/2 -access=host2

This should work.

Anil
There is no substitute to HARDWORK
Chris Xu
Trusted Contributor

Re: exportfs problem

Looks /usr/ud is exported. No need to export sub-directories under that. Clean up any exports under /usr/ud in /etc/exports.

You can just mount like this
mount server:/usr/ud/HARRIS/misc_file /what-ever-mount-point.

Chris