Author |
Message
|
pfarrel |
Posted: Thu Oct 06, 2005 5:39 am Post subject: Move QMGR logs on AIX |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
I want to move my Queue Manager logs on my AIX platform. Here is what I thought I would need to do:
1. Shut QMGR down.
2. Copy files from existing location /var/mqm/log/<QMGR>/ to my new location /mqlogs.
3. Edit /var/mqm/qmgrs/<QMGR>/qm.ini to reflect the new location.
4. Restart the queue manager.
Location /mqlogs would contain file amqhlctl.lfh and folder active, together with all the logs in this folder, copied from the old location.
Have I missed anything ? |
|
Back to top |
|
 |
hopsala |
Posted: Thu Oct 06, 2005 6:05 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
Yes. Don't do this.
there's a command called hamvmqm, use it. (search this forum, or the manual, to see how it works) |
|
Back to top |
|
 |
sebastianhirt |
Posted: Thu Oct 06, 2005 6:25 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
hopsala wrote: |
there's a command called hamvmqm, use it. (search this forum, or the manual, to see how it works) |
Maybe this question is a bit ignorant but why would you use hamvmqm if you don't implement HACMP?
pfarrel's steps don't look wrong to me. |
|
Back to top |
|
 |
hopsala |
Posted: Thu Oct 06, 2005 6:42 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
I agree, his steps seem right on. However, I always prefer using a built-in command rather than editing files...
A good question would be - does hamvmqm do anything except move the logs (this command is so poorly documented, no official answer) - I don't think it does, so why not use it?
You know what, I take it all back, he should probably do it his way, it's safest. Sorry  |
|
Back to top |
|
 |
pfarrel |
Posted: Thu Oct 06, 2005 6:42 am Post subject: |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
My platform is AIX ( UNIX ).
Will hamvmqm work on AIX ? It looks like a Windows type of command. |
|
Back to top |
|
 |
sebastianhirt |
Posted: Thu Oct 06, 2005 6:48 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
hopsala wrote: |
I agree, his steps seem right on. However, I always prefer using a built-in command rather than editing files...
|
Well I agree completely with you... Always prefer build in commands.
Quote: |
A good question would be - does hamvmqm do anything except move the logs (this command is so poorly documented, no official answer) - I don't think it does, so why not use it? |
Maybe one of our IBM friends can comment on what hamvmqm is doing?!  |
|
Back to top |
|
 |
wschutz |
Posted: Thu Oct 06, 2005 8:36 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
1. Shut QMGR down.
2. Copy files from existing location /var/mqm/log/<QMGR>/ to my new location /mqlogs.
3. Edit /var/mqm/qmgrs/<QMGR>/qm.ini to reflect the new location.
4. Restart the queue manager. |
I would add:
0. back everytinhg up (saveqmgr + amqoamd)
2a. give mqm ownership to /mqlogs.
afaik hamvmqm is a windows command, I don't see it on my linux or aix systems here .... _________________ -wayne |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Oct 06, 2005 8:38 am Post subject: Re: Move QMGR logs on AIX |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
pfarrel wrote: |
Have I missed anything ? |
Why move them? Just define /var/mqm/log as a filesystem. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
hopsala |
Posted: Thu Oct 06, 2005 9:07 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
pfarrel wrote: |
My platform is AIX ( UNIX ).
Will hamvmqm work on AIX ? It looks like a Windows type of command. |
Yes yes, it's a windows-only command... I already admitted error, what do you want me to do, bleed?  |
|
Back to top |
|
 |
|