1830898 Members
3019 Online
110017 Solutions
New Discussion

exportfs error: !?!

 
Aravind_3
Frequent Advisor

exportfs error: !?!

Why is that am getting this error in a script ?

1 exportfs error: /data: Invalid argument
2 exportfs error: /platform: Invalid argument
3 exportfs error: /home: Invalid argument
4 exportfs error: /meas: Invalid argument
5 exportfs error: /permdir: Invalid argument

_______________________________________________

Thanks
Aravind
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: exportfs error: !?!

if youre going to put a directory as an option to the exportfs command you need the -u or -v options. See the manpage for exportfs for the correct format to use.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Robin Wakefield
Honored Contributor

Re: exportfs error: !?!

Hi,

How are you calling it in your script?

What's in the /etc/exports file?

rgds, Robin
Animesh Chakraborty
Honored Contributor

Re: exportfs error: !?!

Hi Aravind,
Your /etc/exports file may not be in correct format.
Can you post the file?
Did you take a backup?
Aravind_3
Frequent Advisor

Re: exportfs error: !?!

Here's the /etc/exports file:

We are using the following two options in the script:
EXPORTFS='/usr/sbin/exportfs -a'
UNEXPORT='/usr/sbin/exportfs -ua'

______________________________________________
/data -anon=65534,access=:nclass3:deepa1:deepa2
/platform -anon=65534,access=:nclass3:deepa1:deepa2
/home -anon=65534,access=:nclass3:deepa1:deepa2
/meas -anon=65534,access=:nclass3:deepa1:deepa2
/permdir -anon=65534,access=:nclass3:deepa1:deepa2
/omcdata1 -anon=65534,access=:nclass3:deepa1:deepa2
/omcdata2 -anon=65534,access=:nclass3:deepa1:deepa2
/cdocs -anon=65534,access=:nclass3:deepa1:deepa2
/wizards -anon=65534,access=:nclass3:deepa1:deepa2
/cpp -anon=65534,access=:nclass3:deepa1:deepa2
_______________________________________________
Christian Gebhardt
Honored Contributor

Re: exportfs error: !?!

Hi

your file /etc/exports seems to be ok.

What's the output if you only type "exportfs -a" in a shell ?

Chris
Steve Labar
Valued Contributor

Re: exportfs error: !?!

Try removing the leading ':' from your access list. Then do an exportfs -a and watch for errors.

Good Luck.

Steve