- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Login Hangs - Need a real solution
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 02:07 AM
02-02-2005 02:07 AM
Login Hangs - Need a real solution
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.
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.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 02:09 AM
02-02-2005 02:09 AM
Re: Login Hangs - Need a real solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 03:31 AM
02-02-2005 03:31 AM
Re: Login Hangs - Need a real solution
Willing to help but dont quite understand your issue, cant you explain a bit more?
Is it get logged that take enormous time or screen (or terminal emulation) that seem to freeze or?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 03:43 AM
02-02-2005 03:43 AM
Re: Login Hangs - Need a real solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 03:51 AM
02-02-2005 03:51 AM
Re: Login Hangs - Need a real solution
Perhaps try a soft mount on the nfs /etc/fstab instead of a hard mount.
We have a bit of code in /etc/profile to direct HISTFILE where we want (which should not be an NFS mount).
HISTFILE=$HOME/.sh_history
export HISTFILE
That insures the HISTFILE is set properly. You can also limit its size the the HISTSIZE variable.
If patches are triggering this issue, check space on the /var filesystem.
Consider committing patches that are superseded:
cleanup -c 1
commits(removes files) patches superseded once or more.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:03 AM
02-02-2005 04:03 AM
Re: Login Hangs - Need a real solution
I'm not sure what you mean by a soft mount vs. a hard mount.
There is no HISTFILE reference whatsoever in either /etc/profile or the user's .profile.
/var filesystem is at 25% usage.
Did the cleanup.
Problem persists...
Thanks!
-Dustin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:20 AM
02-02-2005 04:20 AM
Re: Login Hangs - Need a real solution
my advice would be to start very simple. create a new user with a default .profile form /etc/skel.
And try its connection without fancy applications, can you type all commands without having to wait?
Do you have gpm installed?
In that case try your X emulation by launching gpm&
Is that still OK?
Then its must be something to do with that specific application that requires your patching, how does it work?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:25 AM
02-02-2005 04:25 AM
Re: Login Hangs - Need a real solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:36 AM
02-02-2005 04:36 AM
Re: Login Hangs - Need a real solution
Created a new user and tested. Problem persists with new user.
GPM is on the NFS server, but not on the workstation in question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:38 AM
02-02-2005 04:38 AM
Re: Login Hangs - Need a real solution
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+?
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.
The hard/soft mount is simply an nfs mount option; man mount_nfs for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:40 AM
02-02-2005 04:40 AM
Re: Login Hangs - Need a real solution
This is the complete .profile for one of the problem users:
# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.
MAIL=/usr/mail/${LOGNAME:?}
-----
And this is the complete .profile for the new test user created:
# @(#)B.11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
-----
This is the only thing of concern from the nfsstat output:
Connectionless oriented:
calls badcalls retrans
5121 1171 35
badxids timeouts waits
1036 683 0
newcreds badverfs timers
0 0 0
toobig nomem cantsend
0 0 0
bufulocks
0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:53 AM
02-02-2005 04:53 AM
Re: Login Hangs - Need a real solution
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.
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:57 AM
02-02-2005 04:57 AM
Re: Login Hangs - Need a real solution
With new user AND without launching anything?
I mean basic connection then just pure unix commands? (very important for understanding!)
What part is on NFS What is local?
Are both boxes on same network?
I there speed connection mismatch between the box and the switch its connected to?
If you are using NFS how is /etc/nsswitch.conf configured?
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 05:03 AM
02-02-2005 05:03 AM
Re: Login Hangs - Need a real solution
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.
The user's home directory is mounted NFS. I'm not sure what other information you are seeking about "What is on NFS?"
Same network. Haven't tested the network connection issues (see note to Clay above).
/etc/nsswitch.conf file below:
passwd: files nis
group: files nis
hosts: files nis dns [NOTFOUND=return]
networks: files nis dns [NOTFOUND=return]
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: files nis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 05:45 AM
02-02-2005 05:45 AM
Re: Login Hangs - Need a real solution
I believe it may come from there
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 07:58 AM
02-02-2005 07:58 AM
Re: Login Hangs - Need a real solution
My latest solution for this problem is to build a link:
ln -s /tmp/$LOGNAME.hst ~/.sh_history
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 09:09 AM
02-02-2005 09:09 AM
Re: Login Hangs - Need a real solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 09:13 AM
02-02-2005 09:13 AM
Re: Login Hangs - Need a real solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 10:50 PM
02-02-2005 10:50 PM
Re: Login Hangs - Need a real solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 09:44 AM
02-07-2005 09:44 AM
Re: Login Hangs - Need a real solution
There is an issue with the sh and ksh shells that can cause this login hang problem. The fix is as below:
On the NFS server -
kill the rpc.statd service
kill the rpc.lockd service
rm -r /var/statmon/sm
rm -r /var/statmon/sm.bak
(restart rpc.statd and rpc.lockd)
/usr/sbin/rpc.statd
/usr/sbin/rpc.lockd
On the client -
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.
Also, look to this patch to actually (hopefully) resolve the issue:
PHNE_30661
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 09:47 AM
02-07-2005 09:47 AM