- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Some log files
Operating System - HP-UX
1752805
Members
5555
Online
108789
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
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
тАО12-23-2008 08:04 AM
тАО12-23-2008 08:04 AM
Some log files
I have a question about some log files: The reason I am asking this is my root / is getting full 98%, I wanna retrieve some space by deleting log files and other files that are no more needed:
The first log files are under /etc/opt/resmon/log:
-rw-r--r-- 1 root root 387944 Dec 19 04:03 api.log
-rw-r--r-- 1 root root 500260 Feb 15 2008 api.log.old
-rw-r--r-- 1 root root 401210 Mar 17 2008 client.log
-rw-r--r-- 1 root root 500325 Feb 4 2007 client.log.old
-rw-r--r-- 1 root sys 47530 Mar 17 2008 emsagent.log
-rw-r--r-- 1 root root 254419 Dec 19 04:04 registrar.log
-rw-r--r-- 1 root root 500274 Mar 17 2008 registrar.log.old
-rw-r--r-- 1 root root 719920 Dec 20 16:05 reslog.html
-rw-r--r-- 1 root root 1000257 Nov 8 2007 reslog.old.html
How important are these log files, Can I just copy them to some other location and then retrieve some space by deleting them?
The first log files are under /etc/opt/resmon/log:
-rw-r--r-- 1 root root 387944 Dec 19 04:03 api.log
-rw-r--r-- 1 root root 500260 Feb 15 2008 api.log.old
-rw-r--r-- 1 root root 401210 Mar 17 2008 client.log
-rw-r--r-- 1 root root 500325 Feb 4 2007 client.log.old
-rw-r--r-- 1 root sys 47530 Mar 17 2008 emsagent.log
-rw-r--r-- 1 root root 254419 Dec 19 04:04 registrar.log
-rw-r--r-- 1 root root 500274 Mar 17 2008 registrar.log.old
-rw-r--r-- 1 root root 719920 Dec 20 16:05 reslog.html
-rw-r--r-- 1 root root 1000257 Nov 8 2007 reslog.old.html
How important are these log files, Can I just copy them to some other location and then retrieve some space by deleting them?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 08:08 AM
тАО12-23-2008 08:08 AM
Re: Some log files
All of these are used by EMS. If you move the current ones, then you may effect EMS operations.
I would start by (re)moving any of the files with "old" in the name.
Another thing to check if '/' is filling up is your /dev directory.
The should not be any "regular" files in /dev, they should all be device files. A common mistake is to mistype a tape device and create a large file in /dev/rmt.
This will find any regular files in /dev:
# cd /dev
# find . -type f -exec ls -l {} \;
Any files that the command returns can probably be deleted.
I would start by (re)moving any of the files with "old" in the name.
Another thing to check if '/' is filling up is your /dev directory.
The should not be any "regular" files in /dev, they should all be device files. A common mistake is to mistype a tape device and create a large file in /dev/rmt.
This will find any regular files in /dev:
# cd /dev
# find . -type f -exec ls -l {} \;
Any files that the command returns can probably be deleted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 03:26 PM
тАО12-23-2008 03:26 PM
Re: Some log files
Hello,
The EMS log files in /etc/opt/resmon/log are limited to 500 KB in size and are then moved to.old. The previous *.old gets lost.
The limit of 500 KB per logfile can be removed by creating the file /etc/opt/resmon/unlimited_log.
Be careful with creating the unlimited_log. Growing EMS log files can easily fill up root file system.
It is even part of my Operations Acceptance Testing for HP-UX as I had one customer
who made that mistake on a large scale :)
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
You can move or recycle the old files
on a regular basis:
for myfile in `ls /etc/opt/resmon/log/*.old`
do
> $myfile
done
This specific issue was one of the items
highligthed in my internal presentation at
HP Unix Profession Virtual Conference
in December 2008 where I spoke about automated log file management in AIX,
Linux, Solaris, and HP-UX.
Cheers,
VK2COT
The EMS log files in /etc/opt/resmon/log are limited to 500 KB in size and are then moved to
The limit of 500 KB per logfile can be removed by creating the file /etc/opt/resmon/unlimited_log.
Be careful with creating the unlimited_log. Growing EMS log files can easily fill up root file system.
It is even part of my Operations Acceptance Testing for HP-UX as I had one customer
who made that mistake on a large scale :)
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
You can move or recycle the old files
on a regular basis:
for myfile in `ls /etc/opt/resmon/log/*.old`
do
> $myfile
done
This specific issue was one of the items
highligthed in my internal presentation at
HP Unix Profession Virtual Conference
in December 2008 where I spoke about automated log file management in AIX,
Linux, Solaris, and HP-UX.
Cheers,
VK2COT
VK2COT - Dusan Baljevic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 08:40 PM
тАО12-23-2008 08:40 PM
Re: Some log files
Hi,
The max file size is 977kb which is not a big file better you search some other huge files in / directory.
#find / -size +15000 -print #(more then 15MB)
check any open file is there with
lsof
To know how to use lsof check the below link
http://sial.org/howto/debug/unix/lsof/
Suraj
The max file size is 977kb which is not a big file better you search some other huge files in / directory.
#find / -size +15000 -print #(more then 15MB)
check any open file is there with
lsof
To know how to use lsof check the below link
http://sial.org/howto/debug/unix/lsof/
Suraj
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