1846021 Members
3163 Online
110253 Solutions
New Discussion

Package Halt Fails

 
James Colby
Advisor

Package Halt Fails

All -

When I try to halt a mcsg package I get the following error:

exportfs error: /sapmnt/PRD: unable to remove entry from /etc/xtab.
ERROR: Function un_export_fs
ERROR: Failed to unexport /sapmnt/PRD

any ideas on how to clear this up?
6 REPLIES 6
Sanjay_6
Honored Contributor

Re: Package Halt Fails

Hi James,

Are you exporting this filesystem for NFS use. If so, in your shutdown script you can unexport the filesystem using,

exportfs -u /exported_filesystem_or_directory

Hope this helps.

Regds

S.K. Chan
Honored Contributor

Re: Package Halt Fails

Just to add, the reason you're getting this error is you probably have added the entry in /etc/exports while ServiceGuard is running.
James Colby
Advisor

Re: Package Halt Fails

Yes, I am exporting the file system for NFS use. I believe that my control script is trying to unexport that filesystem during the package halt and that is when the error is being generated. But maybe I'm wrong.
James Colby
Advisor

Re: Package Halt Fails

Actually I have already checked my /etc/exports file and that file sytstem is not in it. Thanks for the suggestion.
Sanjay_6
Honored Contributor

Re: Package Halt Fails

Hi James,

Since you want to export the filesystem for NFS use, do this, the exportfs (to export filesystem) command should be the last line in your startup script (or customer_defined_run_commands) and the exportfs (to unexport filesystem) should be the first line in your shutdown script (or customer_defined_halt_commands) in your package control script. There is a possibility that once you export the filesystem and try to unexport it, it may be in use, to kill all the proceeses using that filesystem, add a line "fuser -ck /mount_point" to your shutdown scripts before unexporting the filesystem.

Hope this helps.

Regds
James Colby
Advisor

Re: Package Halt Fails

Thanks everyone for your suggestions. I found the problem, I was trying to unexport the filesystem twice in my control script.