- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command hangs
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
03-28-2006 02:31 AM
03-28-2006 02:31 AM
I have a small but nagging problem. I am using the HPUX command “devnm” within a shell script to identify the device file where a particular file system resides. This is very handy when you try to identify de devices in a long list of file systems, extracting this data using commands such as bdf in a pipe is not always successful due to some of the naming convention. Now that you know the background info here is the problem. When I run the command with the /usr parameter or any other parameter it hangs. Any attempt to kill the process shown by “ps” fails, even the good old kill -9 (kill –s KILL ) fails to kill the process. The process is not reported as a zombie so it looks like is still running. Nothing much has changed in the system, there have been no patches or fixes installed since or prior to the problem starting. The file systems are in SAN storage and can be accessed by the applications without problems. What could be causing the “devnm” command to hang? any ideas? Thank you for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 02:43 AM
03-28-2006 02:43 AM
Re: Command hangs
If you can't kill the process with '-9' then the process is in kernel code, probably waiting on an I/O.
Perhaps you would post your script or a decomposition of it that fails too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 02:46 AM
03-28-2006 02:46 AM
Re: Command hangs
JRF said what I'd have said.
If kill -9 can't kill it, the Parent process ID is probably 1.
You can't kill process 1 because the whole system would go down.
Therefore you either wait for the I/O to complete, if thats the issue or reboot your system.
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
03-28-2006 02:46 AM
03-28-2006 02:46 AM
Re: Command hangs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 03:03 AM
03-28-2006 03:03 AM
Re: Command hangs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 11:59 AM
03-28-2006 11:59 AM
Re: Command hangs
I have figured that the devnm process in in kernel mode with a high priority... nice to know you agree BUT my problem persist.... What can be causing the command to hang? Waiting for i/o ? but it had done that always and now it fails?... I will check the patch suggested and install it, see what happens. Thank you so much for your help, if you have any other idea I'll be happy to hear them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 02:27 PM
03-28-2006 02:27 PM
SolutionYou can try running the command under "tusc" to see where it hangs,
tusc can be downloaded from,
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.8/
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 07:08 PM
03-28-2006 07:08 PM
Re: Command hangs
I have suffered the same kind of problems when I had a disk about to fail, application was running fine, but any kind of i/o request like ioscan was failing. It was also failing when I did a recursive ls down the directory tree.
May not be the same, but worth bearing in mind.
Cheers,
JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 08:40 PM
03-28-2006 08:40 PM
Re: Command hangs
If only inside the script, perhaps there's a problem with how devnm is being called. Add a line 'set -x' at the beginning of the script to log the calls it is actually making and see if you can see anything obviously wrong or odd.
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2006 12:44 PM
03-29-2006 12:44 PM
Re: Command hangs
First of all thank you so much for your help; all your replies have been most useful. I originally had the problem with devnm from the script as well as the command line, with any parameter (i.e. /usr , /home, etc). Nothing really had change in the server no patches or kernel changes, only a license upgrade for DP5.1, the problem seams to have come from no were. After following your advices I tracked the problem to a totally unrelated scenario. An auxiliary file system was held open (busy) by a separate process that will not exit, like the the â devnmâ was running at PRIO=127 and could not be killed. So the only way to â umountâ the file system was a reboot. After the reboot both the mount/umount as well as devnm command are al working fine and my script runs smoothly once again, Thanks folks for your help.
Roboz
PS.
Arunvijai: Thanks for the tip on such a good toolâ ¦ works great
JASH: yesâ ¦. I have done some diagnostic and exercising of some devices via stm. you right better to be sure than sorry
STEVEN,CLAY,KENT: good hints and additional information.
POINTS ALL AROUNDâ ¦ thanks.