cancel
Showing results for 
Search instead for 
Did you mean: 

cleaning sfmdb log files

SOLVED
Go to solution
unicks
Advisor

cleaning sfmdb log files

The log files in /var/opt/sfmdb/pgsql/base are getting a bit too numerous and are starting to eat into the /var's space limits. Is there a way to clean the files out? Will a 'rm' work ok?

Thanks,

NJ
4 REPLIES
Ganesan R
Honored Contributor

Re: cleaning sfmdb log files

Hi,

Instead of remove, trim the log file like this

#> /var/opt/sfmdb/pgsql/base

or

#cat /dev/null > /var/opt/sfmdb/pgsql/base
Best wishes,

Ganesh.
Pete Randall
Outstanding Contributor
Solution

Re: cleaning sfmdb log files

http://docs.hp.com/en/diag/sfm/sfm_0606.htm

Under limitations, it states
"If the default log directory is deleted, log messages are not logged. A message is logged in syslog stating that the SFM log file could not be opened. Only a root user can remove this directory. HP recommends that users do not delete this default log directory."

I would interpret this to imply that log files can be deleted as long as the directory is not deleted.


Pete

Pete
unicks
Advisor

Re: cleaning sfmdb log files

My bad for not explaining that the log files are in directories under /var/opt/sfmdb/pgsql/base. So Ganesan, doing a ">" or "cat /dev/null" wouldn't have worked.

Pete, I read the doc you pointed to and I agree it sure sounds like it's oaky to remove the files just not the parent directory.

Thanks for your help folks.

NJ
unicks
Advisor

Re: cleaning sfmdb log files

Removing the the files in /var/opt/sfmdb/pgsql/base/.../... freed up space in /var.