Operating System - HP-UX
1851993 Members
3109 Online
104063 Solutions
New Discussion

auto.direct mount checks.

 
SOLVED
Go to solution
Vasikaran Venkatesan
Frequent Advisor

auto.direct mount checks.

AutoFS - problem identifying:
In few of the Superdome, when the system boots up, the auto.direct maps are mapped into the memory - but not actually mounted. But after few hours someone finds that when they try to access the autoFS file system, it fails to automount.

To avoid the late detection of this problem, i am trying to find a way, to make sure that the auto.direct FS is mounting and accessible just after system boot. Is there a script available for making sure of this ?

Thanks a lot.
3 REPLIES 3
Massimo Bianchi
Honored Contributor
Solution

Re: auto.direct mount checks.

Hi,
i have not a script but a good practice that i saw in some of my customer.


Let's assume that /remote/mount1 is one of the mount points.

On the real FS, i create a file called

.do_not_remove_me


With a cron script i check, say every 15 minutes, for the existance of /remote/mount1/.do_not_remove_me

If it does not exists, we send a warning mail.

What you must inspect is why the autofs in not mounting them.
SYNOPSIS
automountd[-Tv] [-D name=value]

Options
-T Trace. Expand each RPC call and display it to
/var/adm/automount.log.

-v Verbose. Log status messages to /var/adm/syslog/syslog.log.


Try adding some tracing, it may help..... it would be a fix, rather than a patch :)

Massimo


Vasikaran Venkatesan
Frequent Advisor

Re: auto.direct mount checks.

Massimo Bianchi:
Thanks for the answer - i may want to do this at a regular frequency.
Massimo Bianchi
Honored Contributor

Re: auto.direct mount checks.

Then i suggest to schedule it as a crontab job.
Mine was.

Massimo