<?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: Limiting file sizes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627440#M646098</link>
    <description>Mark,&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt; I simply need to prevent the files growing beyond a particular size. Once the filesystem fills, it prevents other user processes from running - hence the need to put a stop to these large files&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  We run into this problem and the way i contain it  is  by creating separate filesystem(s) for the directories where the applications write their log files (or related output files) with the largefiles option turned off.  That way, no file can be larger than 2Gb within the filesystem  and if the filesystem gets full due to too many files, it does not affect other user processes, since it is a local filesystem.&lt;BR /&gt;&lt;BR /&gt;eg: if appliction is writting to /prod/app/test1/log  -&amp;gt; make this a filesystem.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
    <pubDate>Fri, 07 Dec 2001 13:00:01 GMT</pubDate>
    <dc:creator>Roger Baptiste</dc:creator>
    <dc:date>2001-12-07T13:00:01Z</dc:date>
    <item>
      <title>Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627432#M646090</link>
      <description>Does anyone have any ideas regarding limiting the size of files within a VXFS file system? I want to be able to prevent files greater than a certain size being created, if possible.</description>
      <pubDate>Fri, 07 Dec 2001 11:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627432#M646090</guid>
      <dc:creator>Mark Jones_1</dc:creator>
      <dc:date>2001-12-07T11:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627433#M646091</link>
      <description>This isn't quite what you wanted but how about putting a quota on the file system.  It doesn't limit the size of any one file, but it does limit the amount of space a user has on the filesystem.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Fri, 07 Dec 2001 11:53:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627433#M646091</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-12-07T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627434#M646092</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;You can use ulimit -f &lt;SIZE in="" blocks=""&gt;.  Type ulimit -a to see your new settings.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Vince&lt;/SIZE&gt;</description>
      <pubDate>Fri, 07 Dec 2001 11:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627434#M646092</guid>
      <dc:creator>Vincent Farrugia</dc:creator>
      <dc:date>2001-12-07T11:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627435#M646093</link>
      <description>You can use "ulimit -Sf &lt;SIZE in="" 512="" byte="" blocks=""&gt;".  Eg to limit the size of files to 500k, run:&lt;BR /&gt;&lt;BR /&gt;$ ulimit -Sf 1024&lt;BR /&gt;$ cp /stand/vmunix .&lt;BR /&gt;cp: bad copy to ./vmunix: write: File too large&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;/SIZE&gt;</description>
      <pubDate>Fri, 07 Dec 2001 11:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627435#M646093</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-12-07T11:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627436#M646094</link>
      <description>More info:&lt;BR /&gt;&lt;BR /&gt;This will still create the file, however.  But it will reach that limit only.  So if you set it to 100 blocks, the file cannot grow more than that.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Vince</description>
      <pubDate>Fri, 07 Dec 2001 11:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627436#M646094</guid>
      <dc:creator>Vincent Farrugia</dc:creator>
      <dc:date>2001-12-07T11:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627437#M646095</link>
      <description>ulimit is fine, however I want to be able to make the change system-wide so that no files above a certain size can be created in a particular directory or filesystem. This also means that using disk quotas is out of the question.&lt;BR /&gt;Thanks,&lt;BR /&gt;Mark.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2001 12:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627437#M646095</guid>
      <dc:creator>Mark Jones_1</dc:creator>
      <dc:date>2001-12-07T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627438#M646096</link>
      <description>Although ulimit will work, it can cause you other headaches, like when a user process has to create a large file. Your best bet is to not allow users at the unix prompt, and restricting their access to file creating activities.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 07 Dec 2001 12:24:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627438#M646096</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-12-07T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627439#M646097</link>
      <description>Users do not have access to the unix prompt; but this problem is associated with application processes that they run which sometimes loop and create very large log files. I simply need to prevent the files growing beyond a particular size. Once the filesystem fills, it prevents other user processes from running - hence the need to put a stop to these large files.&lt;BR /&gt;Thanks,&lt;BR /&gt;Mark.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2001 12:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627439#M646097</guid>
      <dc:creator>Mark Jones_1</dc:creator>
      <dc:date>2001-12-07T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627440#M646098</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt; I simply need to prevent the files growing beyond a particular size. Once the filesystem fills, it prevents other user processes from running - hence the need to put a stop to these large files&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  We run into this problem and the way i contain it  is  by creating separate filesystem(s) for the directories where the applications write their log files (or related output files) with the largefiles option turned off.  That way, no file can be larger than 2Gb within the filesystem  and if the filesystem gets full due to too many files, it does not affect other user processes, since it is a local filesystem.&lt;BR /&gt;&lt;BR /&gt;eg: if appliction is writting to /prod/app/test1/log  -&amp;gt; make this a filesystem.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Fri, 07 Dec 2001 13:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627440#M646098</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-12-07T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627441#M646099</link>
      <description>Here's an idea that you may or may not be able to use, depending on the application and how it creates its log files:&lt;BR /&gt;&lt;BR /&gt;- Create a named pipe in place of the applications log file.  Hopefully the application will open this pipe as its log file and start writing messages to it.&lt;BR /&gt;&lt;BR /&gt;- Have a process (perl/shell/C) that continually reads from this named pipe and writes the log messages to another file.  You can then put logic into this script/program to control how large the log files can be, how they are rotated etc.&lt;BR /&gt;&lt;BR /&gt;I've seen this method used to great effect on a system I used to look after.  Be careful that the process reading from the pipe is stable, because if it dies it can cause your application to hang when the pipe fills up.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2001 13:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627441#M646099</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-12-07T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting file sizes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627442#M646100</link>
      <description>I think that setting the log file directory as a separate file system and switching off the largefiles option is probably the way I will go.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;Mark ;-)</description>
      <pubDate>Fri, 07 Dec 2001 15:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-file-sizes/m-p/2627442#M646100</guid>
      <dc:creator>Mark Jones_1</dc:creator>
      <dc:date>2001-12-07T15:07:39Z</dc:date>
    </item>
  </channel>
</rss>

