Operating System - HP-UX
1825162 Members
3046 Online
109679 Solutions
New Discussion юеВ

Temporarily disable the automounter

 
A.K.
Frequent Advisor

Temporarily disable the automounter

Hello all,
I have directory on EMC celerra mounted with aoutmounter on few HPUX 11 servers
Due to maintenance on the celera I need to disable the aoutmounter on my servers
I thought I should do:
#kill -SIGTERM [automounter process id]
Once the maintenance job is done restart the automounter daemon using the /sbin/init.d/nfs.client daemon
#/sbin/init.d/nfs.client stop
#/sbin/init.d/nfs.client start

Is there a better way without using SAM or reboot the servers?

Thanks,

5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Temporarily disable the automounter

A.K.

Given the luxury of being able to reboot, I would edit /etc/rc.config.d/nfsconf and set "AUTOMOUNT=0". Then when you reboot, you'll come up with no automounter. If you try to kill it while running, you're going to end up with stale mounts and other annoyances.

When you're all done, change "AUTOMOUNT=1" and reboot again. It's the cleanest, safest way.


Pete


Pete
A.K.
Frequent Advisor

Re: Temporarily disable the automounter

Pete,
I don???t have the luxury of the reboot option since its production servers
In addition there are approximately 10 servers and you can imagine how stressful it is to reboot one by one 10 servers ,did I mention production already ???.:c)

Best regards,

A.K.
Pete Randall
Outstanding Contributor

Re: Temporarily disable the automounter

A.K.,

Well, if you can't reboot, your only real choice is to try to clean up all the automounted directories and then kill off the automounter. I've never had very good luck in such a scenario, though. I'm sure you'll end up with stale NFS mounts and possibly hung processes. It's a question of whether these problems will become critical for you or not.


Pete


Pete
Caesar_3
Esteemed Contributor

Re: Temporarily disable the automounter

Hello!

What you need to do is to stop users use
the mount point and in the end kill all the
processes that use this mount point
use the fuser -uk
Try to umount the mount point and hope that
umount will succede.

Caesar
Brian Hackley
Honored Contributor

Re: Temporarily disable the automounter

Hi,

Just be certain that if you are using "autofs" that there are known issues with umounting NFS filesystems managed by autofs. So be very careful about this.

Also you know if using the "legacy" automounter not to kill -9 your automount process, that you may as well just reboot the box.

If fuser -ck /mount doesn't clear the nfs mount points, us lsof and see if that finds a user process using the nfs mounts...

IMHO if you need to do maint for very long on the EMC Celera aslo and can't kill automount or reboot it, bring on a "fake" NFS Server on another box, using the EMC IP address exporting the same filesystems so that the NFS clients. When the EMC is ready to come online, take down the "fake" NFS Server.
(see why my nickname is "hack" ?)

Hope that helps,

Brian Hackley
Ask me about telecommuting!