- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to operate large mail.log ? the file is g...
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
Discussions
Discussions
Forums
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
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
тАО05-30-2019 01:46 AM - edited тАО05-30-2019 02:13 AM
тАО05-30-2019 01:46 AM - edited тАО05-30-2019 02:13 AM
How to operate large mail.log ? the file is getting BIG
HI everyone,
I have using HP-UX b11 U ia64 I got log " mail.log" in /var/adm/syslog to large for 2GB
I need to clear a log inorder to not effect disk space & system.
Everyone, have method for do the following
Thank you very much for help.
V.T
- Tags:
- large mail.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2019 05:36 AM
тАО05-30-2019 05:36 AM
Re: How to operate large mail.log ? the file is getting BIG
First, make sure you have the mail log on a backup
You can also make a copy and have it save to another temporary location and then backup from that location:
For example:
cp -p /var/adm/syslog/mail.log /file_system_that_has_enough_space
To clear the log after making sure you have it on a backup or have made a temporary copy do this:
cat /dev/null > /var/adm/syslog/mail.log
That will empty out the log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2019 03:33 PM
тАО05-30-2019 03:33 PM
Re: How to operate large mail.log ? the file is getting BIG
A large mail.log file usually indicates something is wrong.
Have you read any of the messages? Are the messages coming in every day?
If so, I would fix the problem(s) first, then copy the old mail.log file to an archive location.
Then use compress or gzip t compress the old file. It will be reduced to about 1/10 original size.
Bill Hassell, sysadmin