Operating System - HP-UX
1832207 Members
2994 Online
110040 Solutions
New Discussion

Shutdown hanging - AutoFS

 
Pyers Symon
Advisor

Shutdown hanging - AutoFS

We are experiencing problems during shutdown of our 11i systems. We use the automounter (autofs) to access home and application directories which are on NetApps filers. It seems that if remote directories are busy during shutdown (due to logins still being extant or other issues) then they are not being unmounted when NFS stops (I tweaked the /usr/sbin/killall script in order to provide diagnostics) and the system hangs inordinately (20mins+) during the "Killing user processes" (/sbin/rc0.d/K800killall) stage before it moves on to Unmounting Local File Systems.

Both the autofs_proc and the nfskd processes are present at this stage and are not killed by K800killall.

Any ideas as to how to cure this major problem?
(Also posted on sys adm forum)
2 REPLIES 2
Peter Godron
Honored Contributor

Re: Shutdown hanging - AutoFS

Pyers,
having home directories NFS mounted always causes problems down the line. You probably have to establish what the offending processes are, that are keeping the NFS mount up and kill them first.
What happens if you try and stop the NFS daemon first?

Otherwise, please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=229455
Dave Olker
Neighborhood Moderator

Re: Shutdown hanging - AutoFS

Hi Pyers,

11.23 offers the option of doing a forcible unmount, even if the filesystem is in use, to work around this problem. However on 11.11 you're best bet would to use fuser to find and terminate any processes accessing these mount points before the unmount will complete successfully. You might want to try adding some fuser logic to the shutdown scripts to forcibly terminate any processes touching these mount points.

As for the autofs_proc and nfskd processes, there is no way to terminate those processes. However, they would not be holding any resouces on any NFS mounted filesystems. In other words, there is no way to terminate them but there is no need to terminate them. Your problem is not the nfskd and autofs_proc processes - the problem is some other process holding resources busy on the filesystems you're trying to unmount. If you can identify them and terminate them then the unmount should complete successfully.

Regards,

Dave



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo