Author |
Message
|
muthum_2000 |
Posted: Mon Sep 20, 2010 7:51 am Post subject: @SYSTEM directory under /var/mqm/qmgrs |
|
|
 Voyager
Joined: 10 Jul 2006 Posts: 85
|
Guys
Need your help here.
One of my Unix SA has mistakenly deleted everything under @SYSTEM directory under /var/mqm/qmgrs.
Actually it should have the following;
drwxrwxrwx 2 mqm mqm 512 May 10 2005 ssem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 msem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 isem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 esem
-rw------- 1 mqm mqm 3 May 10 2005 amqcap.inf
drwxrwxrwx 2 mqm mqm 512 Jan 30 2006 errors
drwxrwxrwx 2 mqm mqm 512 Sep 8 2007 shmem
-rw-rw-r-- 1 root mqm 0 Sep 8 2007 nodelock
Now the crtmqm command will not work for sure.
Is there any way to get back the contents of @SYSTEM directory or only option is to re-install MQ.
Please advise. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 20, 2010 7:54 am Post subject: Re: @SYSTEM directory under /var/mqm/qmgrs |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
muthum_2000 wrote: |
Guys
Need your help here.
One of my Unix SA has mistakenly deleted everything under @SYSTEM directory under /var/mqm/qmgrs.
Actually it should have the following;
drwxrwxrwx 2 mqm mqm 512 May 10 2005 ssem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 msem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 isem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 esem
-rw------- 1 mqm mqm 3 May 10 2005 amqcap.inf
drwxrwxrwx 2 mqm mqm 512 Jan 30 2006 errors
drwxrwxrwx 2 mqm mqm 512 Sep 8 2007 shmem
-rw-rw-r-- 1 root mqm 0 Sep 8 2007 nodelock
Now the crtmqm command will not work for sure.
Is there any way to get back the contents of @SYSTEM directory or only option is to re-install MQ.
Please advise. |
I don't think that the content is that relevant as this is used for shared memory... so the content would no longer be accurate.
What you do probably need, is to recreate the directories...
A touch for nodelock might be enough...
The most important file you have there might well be amqcap.inf.
If you cannot get it from a backup you might have no choice but to uninstall and reinstall the software.
Try it out and let us know.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
muthum_2000 |
Posted: Mon Sep 20, 2010 8:31 am Post subject: Re: @SYSTEM directory under /var/mqm/qmgrs |
|
|
 Voyager
Joined: 10 Jul 2006 Posts: 85
|
fjb_saper wrote: |
muthum_2000 wrote: |
Guys
Need your help here.
One of my Unix SA has mistakenly deleted everything under @SYSTEM directory under /var/mqm/qmgrs.
Actually it should have the following;
drwxrwxrwx 2 mqm mqm 512 May 10 2005 ssem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 msem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 isem
drwxrwxrwx 2 mqm mqm 512 May 10 2005 esem
-rw------- 1 mqm mqm 3 May 10 2005 amqcap.inf
drwxrwxrwx 2 mqm mqm 512 Jan 30 2006 errors
drwxrwxrwx 2 mqm mqm 512 Sep 8 2007 shmem
-rw-rw-r-- 1 root mqm 0 Sep 8 2007 nodelock
Now the crtmqm command will not work for sure.
Is there any way to get back the contents of @SYSTEM directory or only option is to re-install MQ.
Please advise. |
I don't think that the content is that relevant as this is used for shared memory... so the content would no longer be accurate.
What you do probably need, is to recreate the directories...
A touch for nodelock might be enough...
The most important file you have there might well be amqcap.inf.
If you cannot get it from a backup you might have no choice but to uninstall and reinstall the software.
Try it out and let us know.  |
Thanks for the advise.
I just spoke with my SA and thank god, he has taken the backup before removing it. He has just restored it and everything looks good now.
Cheers! |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Sep 20, 2010 3:33 pm Post subject: Re: @SYSTEM directory under /var/mqm/qmgrs |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
muthum_2000 wrote: |
Thanks for the advise.
I just spoke with my SA and thank god, he has taken the backup before removing it. He has just restored it and everything looks good now.
Cheers! |
I suggest you have another quiet chat with the SA and inform them to never delete any MQ files or directories without consult the MQ admin. This is particularly true for the MQ recovery logs. I have seen SA delete some of the circular log files (more than once!) to save space because apparently they were not being used. A queue manager is unable to restart if any logs are missing, and it will have a heart attack next time it cycles around to use the older logs. Even restoring a backup of circular logs may not be sufficient to enable a queue manager to work again. _________________ Glenn |
|
Back to top |
|
 |
muthum_2000 |
Posted: Mon Sep 20, 2010 7:14 pm Post subject: Re: @SYSTEM directory under /var/mqm/qmgrs |
|
|
 Voyager
Joined: 10 Jul 2006 Posts: 85
|
gbaddeley wrote: |
muthum_2000 wrote: |
Thanks for the advise.
I just spoke with my SA and thank god, he has taken the backup before removing it. He has just restored it and everything looks good now.
Cheers! |
I suggest you have another quiet chat with the SA and inform them to never delete any MQ files or directories without consult the MQ admin. This is particularly true for the MQ recovery logs. I have seen SA delete some of the circular log files (more than once!) to save space because apparently they were not being used. A queue manager is unable to restart if any logs are missing, and it will have a heart attack next time it cycles around to use the older logs. Even restoring a backup of circular logs may not be sufficient to enable a queue manager to work again. |
Yes. You are true Glenn. SA sometimes do this without our knowledge. I have now clearly informed him about MQ filesystems and binaries location.Seems like this SA is new to enviornment.
Never mind. Thanks for the suggestion. |
|
Back to top |
|
 |
|