Author |
Message
|
anilegate |
Posted: Wed Nov 05, 2014 8:33 pm Post subject: QMGR backup process |
|
|
 Newbie
Joined: 07 Aug 2013 Posts: 6 Location: United Kingdom
|
Dear All,
I am new to MQ.
My manager asked me to take (QMGR) backup of /var/mqm.
what does that mean exactly?
Should I copy entire folder(/var/mqm) and move it to another share drive?
or
Shall I create a tar file and then move ?
or
Shall I use any third party tool.
Regards
Anil |
|
Back to top |
|
 |
rcp_mq |
Posted: Wed Nov 05, 2014 10:15 pm Post subject: |
|
|
 Centurion
Joined: 13 Dec 2011 Posts: 133
|
I will just say what's done in a queue manager backup
Back up definitions. Use saveqmr (ms03) support pac for that. Google it!
I never do the step below during a backup only process:
Back up directories: errors, log, Qmgrs, exits and the journal file in the /var/mqm directory.
I hope you did not wait for this answer! |
|
Back to top |
|
 |
MQsysprog |
Posted: Wed Nov 05, 2014 11:10 pm Post subject: |
|
|
Centurion
Joined: 24 Feb 2014 Posts: 116
|
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Nov 05, 2014 11:17 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
rcp_mq wrote: |
I will just say what's done in a queue manager backup
Back up definitions. Use saveqmr (ms03) support pac for that. Google it!
|
And on later versions of MQ there is the
dmpmqcfg
command which does very much the same job as saveqmgr
BUT, BUT, BUT
There are some known problems with it missing some authourity definitions so follow it up with something like the following
Code: |
amqoamd -m QMGR -t qmgr -s > QMGR_oadefs.bat
amqoamd -m QMGR -t chl -s >> QMGR_oadefs.bat
amqoamd -m QMGR -t q -s >> QMGR_oadefs.bat
|
_________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
exerk |
Posted: Wed Nov 05, 2014 11:20 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
smdavies99 wrote: |
BUT, BUT, BUT
There are some known problems with it missing some authourity definitions so follow it up with something like the following
Code: |
amqoamd -m QMGR -t qmgr -s > QMGR_oadefs.bat
amqoamd -m QMGR -t chl -s >> QMGR_oadefs.bat
amqoamd -m QMGR -t q -s >> QMGR_oadefs.bat
|
|
Which also has some known problems... _________________ 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 |
|
 |
anilegate |
Posted: Thu Nov 06, 2014 2:17 am Post subject: /var/mqm backup |
|
|
 Newbie
Joined: 07 Aug 2013 Posts: 6 Location: United Kingdom
|
Dear all thank you very much.
I forget to mention. I have already taken backu of Queue manager objects and authorizations using MS03 package. That has been successfully completed.
but he is asking to take backup of /var/mqm directory.
I am bit of confused now.
regards
Anil |
|
Back to top |
|
 |
zpat |
Posted: Thu Nov 06, 2014 2:32 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
He is probably assuming the queue manager data/log files are under that directory. This is not necessarily the case.
But if you must save it - use tar to do it. Then you can zip the tar file. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
anilegate |
Posted: Thu Nov 06, 2014 4:11 am Post subject: |
|
|
 Newbie
Joined: 07 Aug 2013 Posts: 6 Location: United Kingdom
|
That sounds very good zpat.
Thank you very very much to all of you .  |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Nov 06, 2014 4:32 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
A successful backup plan implies that you have a restore plan, and that you have successfully tested the restore. _________________ 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: Thu Nov 06, 2014 4:44 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
bruce2359 wrote: |
A successful backup plan implies that you have a restore plan, and that you have successfully tested the restore. |
And that the business unit allows for that test... _________________ 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 |
|
 |
PeterPotkay |
Posted: Thu Nov 06, 2014 6:02 am Post subject: Re: QMGR backup process |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
anilegate wrote: |
My manager asked me to take (QMGR) backup of /var/mqm.
what does that mean exactly?
|
Only one person knows exactly what that means, your manager.
You will need to stop the queue manager if you want to take backups of its files using a typical file backup solution (i.e. tar up the dir and store a copy elsewhere)
If the servers are virtual, backups can occur below the hypervisor level while the server and MQ continues to run and the backups will be viable.
As others have stated, backups are really nothing more than untested restores. Maybe ask your manager how he sees a backup of /var/mqm being used. It will help determine what exactly you need to do. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Nov 06, 2014 6:04 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
smdavies99 wrote: |
rcp_mq wrote: |
I will just say what's done in a queue manager backup
Back up definitions. Use saveqmr (ms03) support pac for that. Google it!
|
And on later versions of MQ there is the
dmpmqcfg
command which does very much the same job as saveqmgr
BUT, BUT, BUT
There are some known problems with it missing some authourity definitions.... |
That mess was fixed in FixPack 7.5.0.4. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
exerk |
Posted: Thu Nov 06, 2014 6:59 am Post subject: Re: QMGR backup process |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
PeterPotkay wrote: |
...You will need to stop the queue manager if you want to take backups of its files using a typical file backup solution (i.e. tar up the dir and store a copy elsewhere)... |
And of course that back up is valid for only that moment in time when it was taken - subsequent message traffic, even if it's only one message, immediately invalidates the back up.
EDIT: On the assumption that application queues are not empty  _________________ 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 |
|
 |
rammer |
Posted: Thu Nov 06, 2014 8:50 am Post subject: |
|
|
Partisan
Joined: 02 May 2002 Posts: 359 Location: England
|
PeterPotkay wrote: |
That mess was fixed in FixPack 7.5.0.4. |
Sorry to hijack the original question, and I can do a quick search when Im home on this. What was the issue with the earlier versions in 7.5? Thanks
And now back to the original issue for poster.. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Nov 06, 2014 9:16 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
|