<?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: a log file has a so big size ! even large then the filesystem! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418074#M354041</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could you try to kill the process which is using the file if it is not impact anything?&lt;BR /&gt;&lt;BR /&gt;#fuser -ku quwue_10.err</description>
    <pubDate>Tue, 12 May 2009 09:57:16 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2009-05-12T09:57:16Z</dc:date>
    <item>
      <title>a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418063#M354030</link>
      <description>Hi All &lt;BR /&gt;bdf show:&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on &lt;BR /&gt;/dev/vgfile/lvmsg  20480000 4309873 15159596   22% /msg &lt;BR /&gt;and in the directory ll show:&lt;BR /&gt;total 6905078 &lt;BR /&gt;-rw-r--r--   1 msg        users      131288693050 May 12 09:15 queue_10.err &lt;BR /&gt;&lt;BR /&gt;Now ,I've known the file is a sparse file for du -sk show the true size about 4G+,and xd show large of "0" from head of the file.&lt;BR /&gt;&lt;BR /&gt;What I want to know is:&lt;BR /&gt;1.How can i reduce the file,or make the ll's show as nomal&lt;BR /&gt;2.The admin have clear the file by #&amp;gt;quwue_10.err. Is this a right way?</description>
      <pubDate>Tue, 12 May 2009 08:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418063#M354030</guid>
      <dc:creator>timber</dc:creator>
      <dc:date>2009-05-12T08:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418064#M354031</link>
      <description>Hi Timber,&lt;BR /&gt;&lt;BR /&gt;If you do not need the to keep a copy of the data, you can zeroing the file;&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /full_path_to_file/queue_10.err &lt;BR /&gt;or&lt;BR /&gt;# cp /dev/null /full_path_to_file/queue_10.err&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 12 May 2009 08:29:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418064#M354031</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2009-05-12T08:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418065#M354032</link>
      <description>hi, &lt;BR /&gt;&lt;BR /&gt;#&amp;gt;quwue_10.err. Is this a right way? &lt;BR /&gt;&lt;BR /&gt;this will balnk whole file and remain same attribute, if you feel this file doesnt require can do this, yes this is correct way, thanks,</description>
      <pubDate>Tue, 12 May 2009 08:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418065#M354032</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-12T08:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418066#M354033</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use this as well.&lt;BR /&gt;&lt;BR /&gt;#cat /dev/null &amp;gt; /path of the the file</description>
      <pubDate>Tue, 12 May 2009 08:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418066#M354033</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-12T08:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418067#M354034</link>
      <description>Additional:&lt;BR /&gt;My doubt:the admin use &amp;gt; clear a 5G file but when app reopen the file ,the size increase begin from 5G!So a 5G true size file maybe show us 10G by ls -l.and so on&lt;BR /&gt;the file will bigger and bigger....&lt;BR /&gt;Is this possble?</description>
      <pubDate>Tue, 12 May 2009 08:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418067#M354034</guid>
      <dc:creator>timber</dc:creator>
      <dc:date>2009-05-12T08:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418068#M354035</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The correct way of trimming any type of log file is &lt;BR /&gt;# &amp;gt; filename&lt;BR /&gt;It will trim your file to 0 (zero) bytes.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 12 May 2009 08:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418068#M354035</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-12T08:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418069#M354036</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;no because when the file will be reopen the size will be zero.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Tue, 12 May 2009 08:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418069#M354036</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-05-12T08:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418070#M354037</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In that case terminate the process which uses the space using lsof then restart the process.&lt;BR /&gt;&lt;BR /&gt;The space will be released  by the process only after it terminates.</description>
      <pubDate>Tue, 12 May 2009 08:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418070#M354037</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-12T08:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418071#M354038</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;use the trimming by "&amp;gt; filename" only if it contains plain text. Doing this to a binary file (for example /var/adm/wtmp) can corrupt the file so that it will no more be readable by the process that uses it.&lt;BR /&gt;&lt;BR /&gt;J.</description>
      <pubDate>Tue, 12 May 2009 09:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418071#M354038</guid>
      <dc:creator>Jozef_Novak</dc:creator>
      <dc:date>2009-05-12T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418072#M354039</link>
      <description>Unfortunately,after i user "msg" account do the &amp;gt;file clear,but size of file still shown 130G+</description>
      <pubDate>Tue, 12 May 2009 09:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418072#M354039</guid>
      <dc:creator>timber</dc:creator>
      <dc:date>2009-05-12T09:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418073#M354040</link>
      <description>HI,&lt;BR /&gt;can you please post bdf output,&lt;BR /&gt;&lt;BR /&gt;what is output for file quwue_10.err</description>
      <pubDate>Tue, 12 May 2009 09:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418073#M354040</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-12T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418074#M354041</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could you try to kill the process which is using the file if it is not impact anything?&lt;BR /&gt;&lt;BR /&gt;#fuser -ku quwue_10.err</description>
      <pubDate>Tue, 12 May 2009 09:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418074#M354041</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-12T09:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418075#M354042</link>
      <description>&amp;gt;1. How can I reduce the file, or make the ll show as normal&lt;BR /&gt;&lt;BR /&gt;Why?  The sparse file is working fine.&lt;BR /&gt;Note: doing xd on the file will expand it.</description>
      <pubDate>Tue, 12 May 2009 15:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418075#M354042</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-12T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: a log file has a so big size ! even large then the filesystem!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418076#M354043</link>
      <description>If a program writes into a log file, it should always perform a "fseek(file, 0, SEEK_END);" or a similar operation before each write, as the administrator may have truncated the log file between the writes. Closing the file after each write and re-opening it only when needed would work too. &lt;BR /&gt;&lt;BR /&gt;If the program does not do this operation and the sysadmin truncates the log file, it will result in exactly what you've experienced.&lt;BR /&gt;&lt;BR /&gt;A file with 131 GB of zero bytes at the beginning is inconvenient to process: some text manipulation tools may give up because the file is just too big to handle.&lt;BR /&gt;&lt;BR /&gt;Some programs include a way of signaling them to indicate that its log files have been truncated. See the documentation of your program: if your program has this feature, use it immediately after truncating the file (unless the documentation suggests a different procedure).&lt;BR /&gt;&lt;BR /&gt;If there is no way to tell the program that the file has been cleared, the only way to fix this is:&lt;BR /&gt;1.) Stop the program that writes into the file.&lt;BR /&gt;2.) Clear the file (just as before, using # &amp;gt; queue_10.err or similar)&lt;BR /&gt;3.) Restart the program. &lt;BR /&gt;&lt;BR /&gt;When the program opens the file after the restart, it will read the new size of the file. After that the file should again work normally, without a long string of zero bytes in the beginning.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 12 May 2009 17:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-log-file-has-a-so-big-size-even-large-then-the-filesystem/m-p/4418076#M354043</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-12T17:11:07Z</dc:date>
    </item>
  </channel>
</rss>

