Author |
Message
|
chris boehnke |
Posted: Tue Jul 01, 2008 7:15 am Post subject: getting error while creating a QMgr on Unix server |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Hi Guys,
The QMgr was working fine until 2 days ago. The Unix team applied a OS patch without stopping the QMgr. The QMgr ended abnormally. I tried to recreate it by first deleting and creating.
I was able to delete it but while creating I am having issues.
$ crtmqm QM1
AMQ7019: An error occurred while creating or checking the directory structure for the queue manager.
Not sure what could be the issue and didn't find good info to troubleshoot this issue.
Any help would appreciate it.
Thanks. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Jul 01, 2008 8:01 pm Post subject: Re: getting error while creating a QMgr on Unix server |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
chris boehnke wrote: |
The Unix team applied a OS patch without stopping the QMgr. The QMgr ended abnormally. I tried to recreate it by first deleting and creating.
$ crtmqm QM1
AMQ7019: An error occurred while creating or checking the directory structure for the queue manager.
|
check the permission of the directories.
user authentication etc etc. seems to be permission issue _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Jul 01, 2008 8:41 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
also check out for available disk space....
and mq directories structure... _________________ Cheers |
|
Back to top |
|
 |
chris boehnke |
Posted: Wed Jul 02, 2008 5:09 am Post subject: Re: getting error while creating a QMgr on Unix server |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Gaya3 wrote: |
chris boehnke wrote: |
The Unix team applied a OS patch without stopping the QMgr. The QMgr ended abnormally. I tried to recreate it by first deleting and creating.
$ crtmqm QM1
AMQ7019: An error occurred while creating or checking the directory structure for the queue manager.
|
check the permission of the directories.
user authentication etc etc. seems to be permission issue |
This issue got resolved. It was a directory permissions issue. Somebody deleted the /var/mqm/errors directory and recreated with root id. The root id was not part of mqm group. So when I was trying to delete and recreate the QMgr, I was getting the error. I asked the Unix admin to change the owner of this directory from root to mqm and it works now.
thanks. |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Jul 02, 2008 5:15 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
its really strange...
how an OS patch could effect or accidently delete /var/mqm/errors directory.
incase if this happens on Production Servers, then life is going to be mess. though you are taking back ups also....
Please take care this type of concerns very seriously.... _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
chris boehnke |
Posted: Wed Jul 02, 2008 5:38 am Post subject: |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Gaya3 wrote: |
its really strange...
how an OS patch could effect or accidently delete /var/mqm/errors directory.
incase if this happens on Production Servers, then life is going to be mess. though you are taking back ups also....
Please take care this type of concerns very seriously.... |
You are right. If this happens in PROD, it would be really a mess. I usually take backups of QMgr and its objects by ./saveqmgr script. When I need to recreate those objects, I can do it in couple of seconds. I am wondering if there are any messages in the queues and if the above case happens, how to recover those messages and is there anyway to backup those messages as well?.
One more thing:
If the msgs are written to linear log, how can they be retrieved?. Do you think, they will automatically recover when the queue exists?.
any suggestions in this regard would help me.
Thanks. |
|
Back to top |
|
 |
|