- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: a log file has a so big size ! even large then...
Operating System - HP-UX
1753580
Members
6319
Online
108796
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-12-2009 02:55 AM
тАО05-12-2009 02:55 AM
Re: a log file has a so big size ! even large then the filesystem!
HI,
can you please post bdf output,
what is output for file quwue_10.err
can you please post bdf output,
what is output for file quwue_10.err
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 02:57 AM
тАО05-12-2009 02:57 AM
Re: a log file has a so big size ! even large then the filesystem!
Hi,
Could you try to kill the process which is using the file if it is not impact anything?
#fuser -ku quwue_10.err
Could you try to kill the process which is using the file if it is not impact anything?
#fuser -ku quwue_10.err
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 08:27 AM
тАО05-12-2009 08:27 AM
Re: a log file has a so big size ! even large then the filesystem!
>1. How can I reduce the file, or make the ll show as normal
Why? The sparse file is working fine.
Note: doing xd on the file will expand it.
Why? The sparse file is working fine.
Note: doing xd on the file will expand it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 10:11 AM
тАО05-12-2009 10:11 AM
Solution
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.
If the program does not do this operation and the sysadmin truncates the log file, it will result in exactly what you've experienced.
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.
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).
If there is no way to tell the program that the file has been cleared, the only way to fix this is:
1.) Stop the program that writes into the file.
2.) Clear the file (just as before, using # > queue_10.err or similar)
3.) Restart the program.
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.
MK
If the program does not do this operation and the sysadmin truncates the log file, it will result in exactly what you've experienced.
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.
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).
If there is no way to tell the program that the file has been cleared, the only way to fix this is:
1.) Stop the program that writes into the file.
2.) Clear the file (just as before, using # > queue_10.err or similar)
3.) Restart the program.
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.
MK
MK
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP