ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Change "trace" and "errors" path in MQv8

Post new topic  Reply to topic
 Change "trace" and "errors" path in MQv8 « View previous topic :: View next topic » 
Author Message
Anant.v
PostPosted: Wed Dec 24, 2014 8:44 am    Post subject: Change "trace" and "errors" path in MQv8 Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 40
Location: Malaysia

Hello All,

I am configuring MQv8.0 on RHEL system. After installing MQ server, I want the "trace" and "errors(FDC files)" to be generated at some specific paths. I dont want them to end up into "/var/mqm/trace" and "/var/mqm/errors" (the default location).

I have created the below mount points on my system:

/var/mqm/env

/var/mqm/env/errors
/var/mqm/env/trace
/var/mqm/env/qmgrs
/var/mqm/env/log

Can anyone assist me on how to put the "logs" and "trace" files into the above mount points other than creating symbolic links ?

Thanks for all the support !
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 24, 2014 8:52 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Why not a symbolic link?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Dec 24, 2014 11:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why not choose a non-default data directory for the queue manager itself?
Back to top
View user's profile Send private message
Anant.v
PostPosted: Wed Dec 24, 2014 9:51 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 40
Location: Malaysia

Hi jeff,

Do you mean by editing default prefix in mqs.ini ?

If so, how can I differentiate that whether the trace will get created as a directory under "/var/mqm/env" or will go to the mount point "/var/mqm/env/trace" ?
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Mon Dec 29, 2014 8:08 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Anant.v,

The crtmqm command takes -md /some/path and -ld /some/path to create the Qmgr on /some/path.

That will result in errors going to /some/path/<QmgrName>/errors so might not be exactly what you were looking for...

It is a very good idea to always use the -md -ld switches as you can easily implement the Qmgr as HA or MI in the future.

The paths should be different like: -md /Qmgr/data -ld /Qmgr/log

Trace data will always go to the /Qmgr/data/<QmgrName>/trace directory, so before you trace mount another file system here (so you don't use all the Qmgr's file space).
Back to top
View user's profile Send private message AIM Address
vsathyan
PostPosted: Mon Dec 29, 2014 8:13 am    Post subject: Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

Anant,

If you are talking about MQ FDCs (/var/mqm/errors), you can create soft links like Bruce mentioned.

What Jeff stated is about using the different mount points while creating the queue manager itself, say crtmqm -md /data and -ld /log, so that when you start the qmgr trace, it will be created inside /data/<QMGRNAME>/trace directory.

Thanks.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Dec 29, 2014 8:29 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

JosephGramig wrote:

Trace data will always go to the /Qmgr/data/<QmgrName>/trace directory, so before you trace mount another file system here (so you don't use all the Qmgr's file space).


http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.tro.doc/q039610_.htm
Quote:
Trace files are created in the directory /var/mqm/trace.

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Dec 29, 2014 8:31 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Anant.v,


http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.pla.doc/q005840_.htm

Quote:
You can modify the location of a queue manager log and data directories of an existing queue manager by editing the DataPath and LogPath attributes in the qm.ini file when the queue manager is stopped.

The path to the errors directory, like the paths to all the other directories in /var/mqm , is not modifiable. However the directories can be mounted on different file systems, or symbolically linked to different directories.

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Mon Dec 29, 2014 8:36 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

PeterPotkay wrote:
JosephGramig wrote:

Trace data will always go to the /Qmgr/data/<QmgrName>/trace directory, so before you trace mount another file system here (so you don't use all the Qmgr's file space).


http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.tro.doc/q039610_.htm
Quote:
Trace files are created in the directory /var/mqm/trace.


Yes, just had a brain fart. So, all installs need file systems for:
  • /where/ever/you/install/the/product
  • /var/mqm
  • And for each Qmgr not on the default path
    • /Qmgr/data
    • /Qmgr/log
Back to top
View user's profile Send private message AIM Address
Anant.v
PostPosted: Mon Dec 29, 2014 9:04 am    Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2014
Posts: 40
Location: Malaysia

Thanks all for your suggestions. I'll go through the links provided. But as I said, soft link was something i already had in mind.

Thanks once again to everyone in suggesting possible ways !!

Have a great new year ahead!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Change "trace" and "errors" path in MQv8
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.