<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Login Hangs - Need a real solution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883699#M401014</link>
    <description>Ooops, that should be a ypwich -m to list the automounter maps.</description>
    <pubDate>Wed, 02 Feb 2005 17:13:46 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-02-02T17:13:46Z</dc:date>
    <item>
      <title>Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883682#M400997</link>
      <description>Hello all,&lt;BR /&gt;I have been doing some masive research on these forums about console and terminal login hangs when user home directories are nfs mounted.  It has become apparent that this is a well-known, but not well documented problem.  Everyone and their brother seems to have a "workaround" whereas you point the HISTFILE to a local directory and BOOM!.. problem fixed.  Well, no.. problem worked-around.  I have seen numerous references where people thought there were patches for the issue, but nobody seems to know or be able to find what those patches are.  I have hunted and hunted through the patch database myself, and I can't seem to find it either.&lt;BR /&gt;&lt;BR /&gt;If anyone has a clue as to an actual solution to this issue is, I'd love to hear it.  My machines are running 11i, and the issue arises each time after I apply a series patches that are required for another bit of software.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 02 Feb 2005 10:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883682#M400997</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T10:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883683#M400998</link>
      <description>By the by... the HISTFILE thing won't even work in my case.  The users in question don't even have reference to this in their profiles (sh shell).</description>
      <pubDate>Wed, 02 Feb 2005 10:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883683#M400998</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T10:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883684#M400999</link>
      <description>Hi Dustin,&lt;BR /&gt;Willing to help but dont quite understand your issue, cant you explain a bit more?&lt;BR /&gt;Is it get logged that take enormous time or screen (or terminal emulation) that seem to freeze or?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 02 Feb 2005 11:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883684#M400999</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-02-02T11:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883685#M401000</link>
      <description>After applying some patches (needed to run other software), users get a "hung" or "deadlocked" blank window with a blinking cursor when attempting to bring up a terminal window in CDE.  Or, as root, when su - user, profile script runs but hangs at the end and gives only a blinking cursor.  In either case, ^C will eventually give a command prompt.</description>
      <pubDate>Wed, 02 Feb 2005 11:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883685#M401000</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T11:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883686#M401001</link>
      <description>Applying patches should not trigger this problem.&lt;BR /&gt;&lt;BR /&gt;Perhaps try a soft mount on the nfs /etc/fstab instead of a hard mount.&lt;BR /&gt;&lt;BR /&gt;We have a bit of code in /etc/profile to direct HISTFILE where we want (which should not be an NFS mount).&lt;BR /&gt;&lt;BR /&gt;HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTFILE&lt;BR /&gt;&lt;BR /&gt;That insures the HISTFILE is set properly. You can also limit its size the the HISTSIZE variable.&lt;BR /&gt;&lt;BR /&gt;If patches are triggering this issue, check space on the /var filesystem.&lt;BR /&gt;&lt;BR /&gt;Consider committing patches that are superseded:&lt;BR /&gt;&lt;BR /&gt;cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;commits(removes files) patches superseded once or more.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 02 Feb 2005 11:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883686#M401001</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-02T11:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883687#M401002</link>
      <description>Steven:&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you mean by a soft mount vs. a hard mount.&lt;BR /&gt;&lt;BR /&gt;There is no HISTFILE reference whatsoever in either /etc/profile or the user's .profile.&lt;BR /&gt;&lt;BR /&gt;/var filesystem is at 25% usage.&lt;BR /&gt;&lt;BR /&gt;Did the cleanup.&lt;BR /&gt;&lt;BR /&gt;Problem persists...&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;-Dustin</description>
      <pubDate>Wed, 02 Feb 2005 12:03:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883687#M401002</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T12:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883688#M401003</link>
      <description>Are you in NFS?&lt;BR /&gt;&lt;BR /&gt;my advice would be to start very simple. create a new user with a default .profile form /etc/skel.&lt;BR /&gt;And try its connection without fancy applications, can you type all commands without having to wait?&lt;BR /&gt;Do you have gpm installed?&lt;BR /&gt;In that case try your X emulation by launching gpm&amp;amp;&lt;BR /&gt;&lt;BR /&gt;Is that still OK?&lt;BR /&gt;Then its must be something to do with that specific application that requires your patching, how does it work?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 02 Feb 2005 12:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883688#M401003</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-02-02T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883689#M401004</link>
      <description>Dustin, can you post a typical .profile from a user that experiences the problem? Also you might want to run nfsstat to see if you have any NFS problems.</description>
      <pubDate>Wed, 02 Feb 2005 12:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883689#M401004</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-02T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883690#M401005</link>
      <description>Victor:&lt;BR /&gt;&lt;BR /&gt;Created a new user and tested.  Problem persists with new user.&lt;BR /&gt;&lt;BR /&gt;GPM is on the NFS server, but not on the workstation in question.</description>
      <pubDate>Wed, 02 Feb 2005 12:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883690#M401005</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883691#M401006</link>
      <description>Login hangs - need real data.&lt;BR /&gt;&lt;BR /&gt;We need to isolate your problem. Is it strictly an NFS issue or is it network? Automounter in use or explicit mounts? If automounting are the maps managed by NIS/NIS+?&lt;BR /&gt;&lt;BR /&gt;To determine if the network itself might be the culprit, I would ftp about a 10MB file in both directions and see if the transfer speed is about as expected? Surprisingly, a mismatched duplex setting will almost work and might not even be obvious in a telnet session, for example.&lt;BR /&gt;&lt;BR /&gt;The hard/soft mount is simply an nfs mount option; man mount_nfs for details.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Feb 2005 12:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883691#M401006</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-02T12:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883692#M401007</link>
      <description>Stephen:&lt;BR /&gt;&lt;BR /&gt;This is the complete .profile for one of the problem users:&lt;BR /&gt;&lt;BR /&gt;#       This is the default standard profile provided to a user.&lt;BR /&gt;#       They are expected to edit it to meet their own needs.&lt;BR /&gt;&lt;BR /&gt;MAIL=/usr/mail/${LOGNAME:?}&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;And this is the complete .profile for the new test user created:&lt;BR /&gt;&lt;BR /&gt;# @(#)B.11.11_LR&lt;BR /&gt;&lt;BR /&gt;# Default user .profile file (/usr/bin/sh initialization).&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;        if [ "$TERM" = "" ]&lt;BR /&gt;        then&lt;BR /&gt;                eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;        else&lt;BR /&gt;                eval ` tset -s -Q `&lt;BR /&gt;        fi&lt;BR /&gt;        stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;        stty hupcl ixon ixoff&lt;BR /&gt;        tabs&lt;BR /&gt;&lt;BR /&gt;# Set up the search paths:&lt;BR /&gt;        PATH=$PATH:.&lt;BR /&gt;&lt;BR /&gt;# Set up the shell environment:&lt;BR /&gt;        set -u&lt;BR /&gt;        trap "echo 'logout'" 0&lt;BR /&gt;&lt;BR /&gt;# Set up the shell variables:&lt;BR /&gt;        EDITOR=vi&lt;BR /&gt;        export EDITOR&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;This is the only thing of concern from the nfsstat output:&lt;BR /&gt;&lt;BR /&gt;Connectionless oriented:&lt;BR /&gt;calls                   badcalls                retrans&lt;BR /&gt;5121                    1171                    35&lt;BR /&gt;badxids                 timeouts                waits&lt;BR /&gt;1036                    683                     0&lt;BR /&gt;newcreds                badverfs                timers&lt;BR /&gt;0                       0                       0&lt;BR /&gt;toobig                  nomem                   cantsend&lt;BR /&gt;0                       0                       0&lt;BR /&gt;bufulocks&lt;BR /&gt;0</description>
      <pubDate>Wed, 02 Feb 2005 12:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883692#M401007</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T12:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883693#M401008</link>
      <description>Clay:&lt;BR /&gt;&lt;BR /&gt;I can pretty much rule out the network issue.  This same issue has happened on multiple client machines, always after applying the same set of patches.&lt;BR /&gt;&lt;BR /&gt;Found something interesting.  A previous system admin has apparently setup the mounts as BOTH nfs and automount.  IE - I have an entry for the same mounts in both /etc/fstab and in /etc/auto.direct.  Could this be causing my problem?</description>
      <pubDate>Wed, 02 Feb 2005 12:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883693#M401008</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883694#M401009</link>
      <description>Dustin,&lt;BR /&gt;With new user AND without launching anything?&lt;BR /&gt;I mean basic connection then just pure unix commands? (very important for understanding!)&lt;BR /&gt;&lt;BR /&gt;What part is on NFS What is local?&lt;BR /&gt;&lt;BR /&gt;Are both boxes on same network?&lt;BR /&gt;I there speed connection mismatch between the box and the switch its connected to?&lt;BR /&gt;&lt;BR /&gt;If you are using NFS how is /etc/nsswitch.conf configured?&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 02 Feb 2005 12:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883694#M401009</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-02-02T12:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883695#M401010</link>
      <description>Victor:&lt;BR /&gt;&lt;BR /&gt;Created a new user (.profile is posted above).  Logged onto the problem machine via rlogin as root.  Did su - testuser.  The copyright information is displayed, but no prompt is given afterward unless ^C is used.&lt;BR /&gt;&lt;BR /&gt;The user's home directory is mounted NFS.  I'm not sure what other information you are seeking about "What is on NFS?"&lt;BR /&gt;&lt;BR /&gt;Same network.  Haven't tested the network connection issues (see note to Clay above).&lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch.conf file below:&lt;BR /&gt;&lt;BR /&gt;passwd:       files nis&lt;BR /&gt;group:        files nis&lt;BR /&gt;hosts:        files nis dns [NOTFOUND=return]&lt;BR /&gt;networks:     files nis dns [NOTFOUND=return]&lt;BR /&gt;protocols:    nis [NOTFOUND=return] files&lt;BR /&gt;rpc:          nis [NOTFOUND=return] files&lt;BR /&gt;publickey:    nis [NOTFOUND=return] files&lt;BR /&gt;netgroup:     nis [NOTFOUND=return] files&lt;BR /&gt;automount:    files nis&lt;BR /&gt;aliases:      files nis&lt;BR /&gt;services:     files nis</description>
      <pubDate>Wed, 02 Feb 2005 13:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883695#M401010</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-02T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883696#M401011</link>
      <description>Whats in your /etc/profile?&lt;BR /&gt;I believe it may come from there&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 02 Feb 2005 13:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883696#M401011</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-02-02T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883697#M401012</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My latest solution for this problem is to build a link:&lt;BR /&gt;ln -s /tmp/$LOGNAME.hst ~/.sh_history&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 02 Feb 2005 15:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883697#M401012</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-02-02T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883698#M401013</link>
      <description>Now that I see NIS is in play, all of your problems can be explained as NIS related. Do a ypwhich -x and see if the response is rapid. Do this on a bad client. Man ypwhich for details. A ypcat auto_master would probably be usefulk as well. I also note that hostnames are resolved via NIS so a slow response there could be hurting you as well. Do a ypcat hosts. Man ypcat for details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Feb 2005 17:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883698#M401013</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-02T17:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883699#M401014</link>
      <description>Ooops, that should be a ypwich -m to list the automounter maps.</description>
      <pubDate>Wed, 02 Feb 2005 17:13:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883699#M401014</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-02T17:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883700#M401015</link>
      <description>Do an 'nfsstat -z' to zero the statistics. Then try and log in to a 'bad' user, then re-run nfsstat to see more accurate figures (they are cumulative). At least you'll see whether you've got a problem with your NFS (and probably your NIS).</description>
      <pubDate>Thu, 03 Feb 2005 06:50:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883700#M401015</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-03T06:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Login Hangs - Need a real solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883701#M401016</link>
      <description>Thanks for all of your help... but I finally got the information I needed from a call-in to a support rep.&lt;BR /&gt;&lt;BR /&gt;There is an issue with the sh and ksh shells that can cause this login hang problem.  The fix is as below:&lt;BR /&gt;&lt;BR /&gt;On the NFS server -&lt;BR /&gt;kill the rpc.statd service&lt;BR /&gt;kill the rpc.lockd service&lt;BR /&gt;&lt;BR /&gt;rm -r /var/statmon/sm&lt;BR /&gt;rm -r /var/statmon/sm.bak&lt;BR /&gt;&lt;BR /&gt;(restart rpc.statd and rpc.lockd)&lt;BR /&gt;/usr/sbin/rpc.statd&lt;BR /&gt;/usr/sbin/rpc.lockd&lt;BR /&gt;&lt;BR /&gt;On the client - &lt;BR /&gt;Try the login again.  It may hang for up to a minute the first try after performing the fix on the server, but all subsequent logins should go fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, look to this patch to actually (hopefully) resolve the issue:&lt;BR /&gt;PHNE_30661</description>
      <pubDate>Mon, 07 Feb 2005 17:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-hangs-need-a-real-solution/m-p/4883701#M401016</guid>
      <dc:creator>Dustin Black</dc:creator>
      <dc:date>2005-02-07T17:44:14Z</dc:date>
    </item>
  </channel>
</rss>

