<?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: Problem with open files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789708#M943363</link>
    <description>If you where killing off log files, then try sending a HUP&lt;BR /&gt;signal to the daemon that had the file open.  This should&lt;BR /&gt;cause it to close and reopen its log files.  For /var/adm&lt;BR /&gt;this is likely the syslog &lt;BR /&gt;daemon.  &lt;BR /&gt;&lt;BR /&gt;To find the PID&lt;BR /&gt;  ps -ef | grep sys&lt;BR /&gt;&lt;BR /&gt;To kill the daemon&lt;BR /&gt;  kill -HUP _pid_&lt;BR /&gt;&lt;BR /&gt;Consider installing logrotate&lt;BR /&gt;to rotate logs on a reasonable&lt;BR /&gt;frequency.  It can be set to compress old log files.</description>
    <pubDate>Wed, 21 Aug 2002 12:15:29 GMT</pubDate>
    <dc:creator>Bill Thorsteinson</dc:creator>
    <dc:date>2002-08-21T12:15:29Z</dc:date>
    <item>
      <title>Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789699#M943354</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;During the systen checkup (N class HP 11). I deleted some files to reduce the file system size but that didn't worked. I belive one of those files remained open even after deleating.&lt;BR /&gt;&lt;BR /&gt;How can I find the process associated to that open file. Or which files are currently in open status(but not visible).</description>
      <pubDate>Tue, 20 Aug 2002 10:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789699#M943354</guid>
      <dc:creator>Manoj Misra</dc:creator>
      <dc:date>2002-08-20T10:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789700#M943355</link>
      <description>Generally rather than deleting a file you should trunkate it with '&amp;gt; file2trunkate'. This will "keep the file but set it to zero".&lt;BR /&gt;The best way out of it now is to reboot.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Tue, 20 Aug 2002 11:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789700#M943355</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-08-20T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789701#M943356</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;An open file can be deleted but the space that it occupied will *not* be returned until all processes using the file finish. &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2002 11:06:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789701#M943356</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-08-20T11:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789702#M943357</link>
      <description>Is there any way to findout what all the files are open.&lt;BR /&gt;Or which processes are using those files.???&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Manoj</description>
      <pubDate>Tue, 20 Aug 2002 11:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789702#M943357</guid>
      <dc:creator>Manoj Misra</dc:creator>
      <dc:date>2002-08-20T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789703#M943358</link>
      <description>&lt;BR /&gt;Yes,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 20 Aug 2002 11:29:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789703#M943358</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-20T11:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789704#M943359</link>
      <description>If you have Glance+ you can try to find them process by process.&lt;BR /&gt;First on the global screen, look for suspicious processes. High CPU, High I/O, etc.&lt;BR /&gt;Then select "s" option and enter the PID.&lt;BR /&gt;Then select the "F" option to see it's open files.&lt;BR /&gt;&lt;BR /&gt;Rich</description>
      <pubDate>Tue, 20 Aug 2002 11:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789704#M943359</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-08-20T11:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789705#M943360</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Cd to dir &lt;BR /&gt;&lt;BR /&gt;fuser -u *&lt;BR /&gt;&lt;BR /&gt;list list all&lt;BR /&gt;&lt;BR /&gt;fuser -u &lt;FILENAME&gt;&lt;BR /&gt;will do the named file&lt;BR /&gt;&lt;BR /&gt;fuser -k &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;Will kill the connection.&lt;BR /&gt;&lt;BR /&gt;See man fuser&lt;BR /&gt;&lt;BR /&gt;Ps must be root to run fuser&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;/FILENAME&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 20 Aug 2002 11:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789705#M943360</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-08-20T11:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789706#M943361</link>
      <description>fuser filename will list the pid associated with open files.&lt;BR /&gt;&lt;BR /&gt;fuser */* works to see which files are open 2 levels down.&lt;BR /&gt;&lt;BR /&gt;The result will be the filename with the pid, once you get pid you can ps -ef it.</description>
      <pubDate>Tue, 20 Aug 2002 12:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789706#M943361</guid>
      <dc:creator>Judy Traynor</dc:creator>
      <dc:date>2002-08-20T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789707#M943362</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I missed the file not being visable.&lt;BR /&gt;&lt;BR /&gt;cd to the dir immediatly under where the files were/are&lt;BR /&gt;&lt;BR /&gt;then fuser -u &lt;DIRNAME&gt;&lt;BR /&gt;&lt;BR /&gt;This will return PIDs - do a ps -ef and trace each one until you find it.&lt;BR /&gt;&lt;BR /&gt;If the dir should not be in use then an fuser -k can be used - BUT be 100% sure.&lt;BR /&gt;&lt;BR /&gt;Paula&lt;/DIRNAME&gt;</description>
      <pubDate>Tue, 20 Aug 2002 12:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789707#M943362</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-08-20T12:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789708#M943363</link>
      <description>If you where killing off log files, then try sending a HUP&lt;BR /&gt;signal to the daemon that had the file open.  This should&lt;BR /&gt;cause it to close and reopen its log files.  For /var/adm&lt;BR /&gt;this is likely the syslog &lt;BR /&gt;daemon.  &lt;BR /&gt;&lt;BR /&gt;To find the PID&lt;BR /&gt;  ps -ef | grep sys&lt;BR /&gt;&lt;BR /&gt;To kill the daemon&lt;BR /&gt;  kill -HUP _pid_&lt;BR /&gt;&lt;BR /&gt;Consider installing logrotate&lt;BR /&gt;to rotate logs on a reasonable&lt;BR /&gt;frequency.  It can be set to compress old log files.</description>
      <pubDate>Wed, 21 Aug 2002 12:15:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789708#M943363</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-08-21T12:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789709#M943364</link>
      <description>If the file was successfully deleted, then you have no choice but to reboot.  Kernel trace will not show the open files partent, but only the open file itself.  lsof may be able to find it for you, but since lsof uses kernel tracing Im not sure if it will find it.&lt;BR /&gt;&lt;BR /&gt;Like someone else mentioned, use a file zeroing technique in the future to avoid these problems.&lt;BR /&gt;&lt;BR /&gt;I.E.&lt;BR /&gt;cat /dev/null &amp;gt;filename&lt;BR /&gt;#use with caution!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 21 Aug 2002 13:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789709#M943364</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-08-21T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789710#M943365</link>
      <description>Hi Manoj,&lt;BR /&gt;&lt;BR /&gt;For finding the openfiles in a system download a utility "lsof". This utility will lists you no of open files.&lt;BR /&gt;&lt;BR /&gt;lsof: List open files.&lt;BR /&gt;&lt;BR /&gt;I have this utility mail me and send you utility through mail.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Anand &lt;BR /&gt;</description>
      <pubDate>Thu, 22 Aug 2002 02:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-open-files/m-p/2789710#M943365</guid>
      <dc:creator>Anand Hotchandani</dc:creator>
      <dc:date>2002-08-22T02:00:15Z</dc:date>
    </item>
  </channel>
</rss>

