Operating System - HP-UX
1855754 Members
4856 Online
104103 Solutions
New Discussion

Re: hanfs.sh doesn't export

 
SOLVED
Go to solution
cl_5
Frequent Advisor

hanfs.sh doesn't export

Hi forumers!

Today I've added a new VG to a running nfs package. So the package contains to filessystems for export now.
The package starts without any error, but it doesn't export neither the old nor the new filesystems. Only if I do an
# exportfs -i [filesystem]
it will be exported. But If I shutdown the package the entries in /etc/xtab won't be removed. So It seems to be the filesystems are still exported, because there will be displayed by showmount -e, while the package is not running.
Any ideas!

Thank in advance
cl
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor
Solution

Re: hanfs.sh doesn't export

Hi,

Do you see any errors in your package log file?. Make sure the control script you are using is in fact hanfs script. TO get more information, put a 'set -x' at the beginning of the control script and run the package again. You should get the debug information into the log file and you can go from there.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ashwani Kashyap
Honored Contributor

Re: hanfs.sh doesn't export

Ensure that the comtrol script you are using is actually an HA nfs script .

Open up your control script and look at the functions "export_fs" and un_export_fs" to see actually whats been done .

Also check the control script log files to see if they are exported/unexported or there are any errors .
cl_5
Frequent Advisor

Re: hanfs.sh doesn't export

Hi!
Thanks for answering quickly!

It seems that the control script don't use the hanfs.sh. But why?

I've only added following lines to the control script:

VG[1]="/dev/vgonline"
LV[1]="/dev/vgonline/lvol1 ... "

And the hanfs.sh script I added

XFS[1]="-o access=cmsunix /ONLINE_CAS"

Maybe I'm blind but didn't see the mistake

cl_5
Frequent Advisor

Re: hanfs.sh doesn't export

It's very painfully!
I'm a fool!

The solution was
# chmod +x hanfs.sh

I'm sorry for that. I'll give you some points for peacemaking.

regards
cl