<?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: Kill a process with PPID 1 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928820#M409640</link>
    <description>Just a followup to Geoff's post: PFS is NOT recommended at all. The hang you saw is very typical for PFS and the most common scenario is to start the two PFS processes in the wrong order. PFS is a true hack: in order to provide the needed functionality without writing a driver, Young Minds, Inc (the authors of PFS) wrote user code that reads the raw CDROM, performs the CD filesystem translations and then exports the results with rpc calls as an NFS filesystem.&lt;BR /&gt; &lt;BR /&gt;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.</description>
    <pubDate>Mon, 26 Sep 2005 08:02:52 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-09-26T08:02:52Z</dc:date>
    <item>
      <title>Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928813#M409633</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;What is the method to kill a process whose PPID is 1.  &lt;BR /&gt;&lt;BR /&gt;I was unmounting a cdrom while the process got hung. I tried to kill the process with kill -9 &lt;PID&gt; but it was not getting killed.  All the options were tried but the process was still running.  Finally I killed the shell , then the process has gone to PID 1. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Is there a method other than server reboot to kill a user initiated process whose PPID has gone to 1&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;CS&lt;/PID&gt;</description>
      <pubDate>Sun, 25 Sep 2005 04:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928813#M409633</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-09-25T04:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928814#M409634</link>
      <description>Once a process is PID 1 it can not be killed. The OS starts off with PID 1 and this process can not be allowed to die.&lt;BR /&gt;&lt;BR /&gt;kill -9 doesn't work because if the parent gets killed all the children become orphans.&lt;BR /&gt;&lt;BR /&gt;Prior to the PID 1 problem, you might have success with any kill other than kill -9&lt;BR /&gt;&lt;BR /&gt;IF the PPID is 1, don't use kill -9 it will create the situation you currently have.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 25 Sep 2005 04:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928814#M409634</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-25T04:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928815#M409635</link>
      <description>As Steven said - you can't kill it...&lt;BR /&gt;&lt;BR /&gt;That said, you could try stopping it...&lt;BR /&gt;&lt;BR /&gt;Try kill -18 &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;It may eventually die....&lt;BR /&gt;&lt;BR /&gt;You may have to rebooot  :(&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;/PID&gt;</description>
      <pubDate>Sun, 25 Sep 2005 09:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928815#M409635</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-25T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928816#M409636</link>
      <description>You can't kill a process with PPID 1(init process, which is the father of all other processes in OS). The process will become orphan and Init will be its PPID. Only way is rebooting server to get rid. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Sun, 25 Sep 2005 11:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928816#M409636</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-25T11:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928817#M409637</link>
      <description>I think the problem is more basic than PPID 1. kill -9 (from root) sets the SIGKILL flag in the process table but nothing happens if the process is waitning on I/O. You can't make any process disappear from the process table until it starts running, and it won't run if the kernel has not returned control to the program. I/O is notorious for hanging processes. Most drivers have timeouts, but a few, especially NFS and depending on patches, CDROMs, keep waiting forever. The same is true with broken disk devices that don't handshake properly. I have personally seen a bronken disk hangup all networking queries (netstat, nslookup, lanscan) and the processes could not be killed. Once the disk was physically removed, evrything started working again.&lt;BR /&gt; &lt;BR /&gt;So the process is likely not running at all (consuming CPU cycles) but just waiting on I/O that will never finish.</description>
      <pubDate>Sun, 25 Sep 2005 13:03:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928817#M409637</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-25T13:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928818#M409638</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;I was able to do a pfs_mount and pfs_umount after the reboot without any problem.  I wonder what went wrong first time.  &lt;BR /&gt;&lt;BR /&gt;Thanks to all for giving their valuable suggestions.  &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;CS</description>
      <pubDate>Sun, 25 Sep 2005 21:59:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928818#M409638</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-09-25T21:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928819#M409639</link>
      <description>Instead of pfs_mount - install the Rockridge Extentions:&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;Installation of patches requires a reboot.&lt;BR /&gt;&lt;BR /&gt;swinstall -x autoreboot=true -x autoselect_patches=TRUE -x patch_match_target=TRUE -x patch_filter=*&lt;BR /&gt;.* -s mydepotserver:/var/software/hp/rockridge @`hostname`&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;To mount a Rockridge CD (instead of using pfs_mount):&lt;BR /&gt;&lt;BR /&gt;mount -F cdfs -o ro,rr,noauto /dev/cdrom /cdrom&lt;BR /&gt;&lt;BR /&gt;To unmount:&lt;BR /&gt;&lt;BR /&gt;umount /cdrom&lt;BR /&gt;&lt;BR /&gt;To share out the cd over NFS:&lt;BR /&gt;&lt;BR /&gt;exportfs -i -o ro,anon=0 /cdrom&lt;BR /&gt;&lt;BR /&gt;On remote:&lt;BR /&gt;&lt;BR /&gt;mount -F nfs sha1:/cdrom /zmnt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: client server does NOT need to have Rock Ridge patches installed to access the cdrom remotely. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 07:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928819#M409639</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-26T07:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928820#M409640</link>
      <description>Just a followup to Geoff's post: PFS is NOT recommended at all. The hang you saw is very typical for PFS and the most common scenario is to start the two PFS processes in the wrong order. PFS is a true hack: in order to provide the needed functionality without writing a driver, Young Minds, Inc (the authors of PFS) wrote user code that reads the raw CDROM, performs the CD filesystem translations and then exports the results with rpc calls as an NFS filesystem.&lt;BR /&gt; &lt;BR /&gt;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.</description>
      <pubDate>Mon, 26 Sep 2005 08:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928820#M409640</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-26T08:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kill a process with PPID 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928821#M409641</link>
      <description>Hi Bill and Geoff&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Warm regards&lt;BR /&gt;CS</description>
      <pubDate>Wed, 28 Sep 2005 07:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-a-process-with-ppid-1/m-p/4928821#M409641</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-09-28T07:34:58Z</dc:date>
    </item>
  </channel>
</rss>

