Author |
Message
|
crocque |
Posted: Tue Mar 27, 2012 6:13 am Post subject: Move queue manager files to another drive |
|
|
Newbie
Joined: 27 Mar 2012 Posts: 5
|
Hi.
This is my first post here.
I searched the forum but didn't find an answer to my question.
Is it possible to move queue manager files (qmgrs and log dirs) from a drive to another drive (from c: to d: for example).
Thank you. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 27, 2012 6:22 am Post subject: Re: Move queue manager files to another drive |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
crocque wrote: |
Is it possible to move queue manager files (qmgrs and log dirs) from a drive to another drive (from c: to d: for example). |
Yes. Save the definition of the queue manager with it's files on c:, delete that queue manager, create a new queue managaer with the same name with files pointing to d: and recreate the objects from the saved definition. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
crocque |
Posted: Tue Mar 27, 2012 6:38 am Post subject: crtmqm syntax 7.0.1.3 |
|
|
Newbie
Joined: 27 Mar 2012 Posts: 5
|
Thank you Vitor.
We run Websphere MQ 7.0.1.3.
For a new queue manager, is it ok to run :
crtmqm .... -ld LogPath -md DataPath
to specify those paths? |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 27, 2012 6:40 am Post subject: Re: crtmqm syntax 7.0.1.3 |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
crocque wrote: |
Thank you Vitor.
We run Websphere MQ 7.0.1.3.
For a new queue manager, is it ok to run :
crtmqm .... -ld LogPath -md DataPath
to specify those paths? |
You may create the new qmgr with any options you wish. _________________ 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 |
|
 |
Vitor |
Posted: Tue Mar 27, 2012 6:45 am Post subject: Re: crtmqm syntax 7.0.1.3 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
crocque wrote: |
For a new queue manager, is it ok to run :
crtmqm .... -ld LogPath -md DataPath
to specify those paths? |
Does the 7.0.1.3 InfoCenter describe those options for the crtmqm command? If it does (and I believe it does) why would it not be ok to specify them?
I don't understand your question. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
crocque |
Posted: Tue Mar 27, 2012 6:51 am Post subject: |
|
|
Newbie
Joined: 27 Mar 2012 Posts: 5
|
Vitor, I checked in infocenter and you're right. Those options are supported so I'll try them.
The question was to check if somebody here had tried those options and share their experience.
Thank you. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 27, 2012 6:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
crocque wrote: |
Vitor, I checked in infocenter and you're right. Those options are supported so I'll try them.
The question was to check if somebody here had tried those options and share their experience.
Thank you. |
Maybe, instead of wasting your own time wondering if something works, and then wasting your own time wondering if other people have tried it, and wasting your own time waiting for other people to 'share their experience', you should try it.
Then you will not waste your time. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 27, 2012 6:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
crocque wrote: |
The question was to check if somebody here had tried those options and share their experience. |
IMHO most of us have created queue managers using those options with the logs in a specified, non-default location. This is because it's best practice to have logs and queues in different physical locations.
Our experience is that the files are created in the paths specified. If they were not, a PMR would be a good idea as the software is not performing as documented.
If the queue manager experiences problems because the paths have been selected poorly and/or defined incorrectly, that's on you. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
crocque |
Posted: Tue Mar 27, 2012 8:35 am Post subject: |
|
|
Newbie
Joined: 27 Mar 2012 Posts: 5
|
Thank you Vitor.
I tested it but I have some AMQ6239: Permission denied attempting to access filesystem location. I will work on this and thank you for your help.
mqjeff, I'm new as a MQSeries admin and I came here to have a quick answer from experts that can help me to avoid some error in production. Sorry, if I wasted your time. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 27, 2012 8:43 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
crocque wrote: |
Thank you Vitor.
I'm new as a MQSeries admin and I came here to have a quick answer from experts that can help me to avoid some error in production. Sorry, if I wasted your time. |
You are not wasting our time.
One of the problems with text-based communication is that we can only know what you tell us. When next you post, you might want to start the post with 'i'm under a short deadline, and I need ...' _________________ 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 |
|
 |
exerk |
Posted: Tue Mar 27, 2012 8:51 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
crocque wrote: |
AMQ6239: Permission denied attempting to access filesystem location. |
You need to set the relevant permissions to the file systems before defining the queue manager. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
crocque |
Posted: Tue Mar 27, 2012 9:02 am Post subject: |
|
|
Newbie
Joined: 27 Mar 2012 Posts: 5
|
exerk wrote: |
You need to set the relevant permissions to the file systems before defining the queue manager. |
That's right. I also had to create the full path structure to log and qmgrs.
First. I created D:\IBM\WebSphere MQ and the qmgrs path as D:\IBM\WebSphere MQ\qmgrs, but it was not sufficient to run crtmqm successfully.
Once I created the full path structure and set the relevant permissions as you suggested, it worked perfectly.
Thank you. |
|
Back to top |
|
 |
JasonE |
Posted: Wed Mar 28, 2012 12:32 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
FYI On windows only, you could have used the hamvmqm command to move the qmgr logs and data from one place to another. Whilst documented for MSCS support, it does exactly what you were after.
In terms of permissions, if you make a directory for the logs, mqm needs to have full control over it otherwise it would be rejected as a destination directory (for both crtmqm and hamvmqm I think (from memory)) |
|
Back to top |
|
 |
|