Author |
Message
|
Anant.v |
Posted: Wed Dec 24, 2014 8:44 am Post subject: Change "trace" and "errors" path in MQv8 |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Dec 24, 2014 8:52 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Dec 24, 2014 11:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why not choose a non-default data directory for the queue manager itself? |
|
Back to top |
|
 |
Anant.v |
Posted: Wed Dec 24, 2014 9:51 pm Post subject: |
|
|
 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 |
|
 |
JosephGramig |
Posted: Mon Dec 29, 2014 8:08 am Post subject: |
|
|
 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 |
|
 |
vsathyan |
Posted: Mon Dec 29, 2014 8:13 am Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Mon Dec 29, 2014 8:29 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Dec 29, 2014 8:31 am Post subject: |
|
|
 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 |
|
 |
JosephGramig |
Posted: Mon Dec 29, 2014 8:36 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
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
|
|
Back to top |
|
 |
Anant.v |
Posted: Mon Dec 29, 2014 9:04 am Post subject: |
|
|
 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 |
|
 |
|