- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Limiting file sizes
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
12-07-2001 03:42 AM
12-07-2001 03:42 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 03:53 AM
12-07-2001 03:53 AM
Re: Limiting file sizes
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 03:54 AM
12-07-2001 03:54 AM
Re: Limiting file sizes
You can use ulimit -f
HTH,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 03:57 AM
12-07-2001 03:57 AM
Re: Limiting file sizes
$ ulimit -Sf 1024
$ cp /stand/vmunix .
cp: bad copy to ./vmunix: write: File too large
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 03:58 AM
12-07-2001 03:58 AM
Re: Limiting file sizes
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.
HTH,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 04:23 AM
12-07-2001 04:23 AM
Re: Limiting file sizes
Thanks,
Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 04:24 AM
12-07-2001 04:24 AM
Re: Limiting file sizes
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 04:53 AM
12-07-2001 04:53 AM
Re: Limiting file sizes
Thanks,
Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 05:00 AM
12-07-2001 05:00 AM
Solution<< 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>>
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.
eg: if appliction is writting to /prod/app/test1/log -> make this a filesystem.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 05:03 AM
12-07-2001 05:03 AM
Re: Limiting file sizes
- 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.
- 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.
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.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:07 AM
12-07-2001 07:07 AM
Re: Limiting file sizes
Many thanks
Mark ;-)