- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Kill a process with PPID 1
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
09-24-2005 09:31 PM
09-24-2005 09:31 PM
What is the method to kill a process whose PPID is 1.
I was unmounting a cdrom while the process got hung. I tried to kill the process with kill -9
I have faced this problem 3-4 times during vgchange process where the PPID has gone to 1 and we were forced to do a server reboot.
Is there a method other than server reboot to kill a user initiated process whose PPID has gone to 1
Thanks in advance
CS
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2005 09:39 PM
09-24-2005 09:39 PM
Re: Kill a process with PPID 1
kill -9 doesn't work because if the parent gets killed all the children become orphans.
Prior to the PID 1 problem, you might have success with any kill other than kill -9
IF the PPID is 1, don't use kill -9 it will create the situation you currently have.
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
09-25-2005 02:53 AM
09-25-2005 02:53 AM
Re: Kill a process with PPID 1
That said, you could try stopping it...
Try kill -18
It may eventually die....
You may have to rebooot :(
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 04:27 AM
09-25-2005 04:27 AM
Re: Kill a process with PPID 1
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 06:03 AM
09-25-2005 06:03 AM
SolutionSo the process is likely not running at all (consuming CPU cycles) but just waiting on I/O that will never finish.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 02:59 PM
09-25-2005 02:59 PM
Re: Kill a process with PPID 1
The command which I issued was a pfs_umount and it went to a hung state forever. The server was not into production (installation stage) and I was able to do a reboot.
I was able to do a pfs_mount and pfs_umount after the reboot without any problem. I wonder what went wrong first time.
Thanks to all for giving their valuable suggestions.
Regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 12:44 AM
09-26-2005 12:44 AM
Re: Kill a process with PPID 1
Install the Rock-Ridge extension patches instead and never worry about these problems. For HP-UX 11.00 you will need forget all about PFS and install PHKL_26448 (now superceded by PHKL_28060), PHCO_26449, and PHKL_26450 to have HP-UX recognize those file systems automatically on mount! For HP-UX 11.11 (11i) you need PHCO_25841, PHKL_26269, and PHKL_25760 (now superceded by PHKL_28025).
Installation of patches requires a reboot.
swinstall -x autoreboot=true -x autoselect_patches=TRUE -x patch_match_target=TRUE -x patch_filter=*
.* -s mydepotserver:/var/software/hp/rockridge @`hostname`
To mount a Rockridge CD (instead of using pfs_mount):
mount -F cdfs -o ro,rr,noauto /dev/cdrom /cdrom
To unmount:
umount /cdrom
To share out the cd over NFS:
exportfs -i -o ro,anon=0 /cdrom
On remote:
mount -F nfs sha1:/cdrom /zmnt
Note: client server does NOT need to have Rock Ridge patches installed to access the cdrom remotely.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 01:02 AM
09-26-2005 01:02 AM
Re: Kill a process with PPID 1
Never use PFS if you are running 11.00 or higher (get the latest RockRidge patches). If you are running 10.20, you have no choice, but realize that PFS may eventually force you to reboot your machine again. Once PFS hangs, logins, bdf, all sorts of filesystem commands may also hang.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 12:34 AM
09-28-2005 12:34 AM
Re: Kill a process with PPID 1
Thanks for giving a valuable input as pfs mount cannot be used in 11.x . I cannot give u any point as the thread is closed. But I am really thankful to u since u replied eventhough the thread was closed.
Warm regards
CS