Author |
Message
|
Inisah |
Posted: Tue Oct 14, 2014 7:07 am Post subject: /var/mqsi/common/log getting full |
|
|
Apprentice
Joined: 21 Mar 2014 Posts: 44
|
Hi All,
We had an issue in which the files in /var/mqsi/common/log kept on increasing and filesystems got full. We found that trace was enabled for a flow. So we disabled the trace . Now I would like to know if it is ok to delete the files under /var/mqsi/common/log ? Will it corrupt broker files in any way?
please help |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Oct 14, 2014 7:29 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
If there are large files related to a trace on a flow you can shrink them by:-
1) enable usertrace for the flow using the -r option on the changetrace command.
2) a second or so later, disable the usertrace.
That should shrink the files.
Personally, I wouldn't delete any files in that directory. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 14, 2014 7:31 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can also adjust/help prevent the same problem re-occuring by using the -c flag on mqsichangetrace to limit the number of trace entries it pulls. |
|
Back to top |
|
 |
Inisah |
Posted: Tue Oct 14, 2014 9:14 am Post subject: |
|
|
Apprentice
Joined: 21 Mar 2014 Posts: 44
|
Thanks for the inputs. What about the files that already got created? Can we delete them? Is it ok to do that? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 14, 2014 9:29 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Inisah wrote: |
Thanks for the inputs. What about the files that already got created? Can we delete them? Is it ok to do that? |
Probably not.
The statement from smdavies99 to use the -r option will *reduce the size* of the files. |
|
Back to top |
|
 |
McueMart |
Posted: Wed Oct 15, 2014 2:00 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
I have ruthlessly deleted the log files out of /var/mqsi/common/log before when people have left on user trace and created humongous log files.
I haven't observed any adverse affects but YMMV.
You could always cat /dev/null > [huge log] to empty the file without actually deleting it. |
|
Back to top |
|
 |
|