ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » QMGR backup process

Post new topic  Reply to topic Goto page 1, 2  Next
 QMGR backup process « View previous topic :: View next topic » 
Author Message
anilegate
PostPosted: Wed Nov 05, 2014 8:33 pm    Post subject: QMGR backup process Reply with quote

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
View user's profile Send private message
rcp_mq
PostPosted: Wed Nov 05, 2014 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
MQsysprog
PostPosted: Wed Nov 05, 2014 11:10 pm    Post subject: Reply with quote

Centurion

Joined: 24 Feb 2014
Posts: 116

Hello ,

I would suggest a good read of this redbook :

http://www.redbooks.ibm.com/abstracts/sg245222.html?Open

It is a bit old, but the concepts and principles of backup and recovery are described well.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Nov 05, 2014 11:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Wed Nov 05, 2014 11:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
anilegate
PostPosted: Thu Nov 06, 2014 2:17 am    Post subject: /var/mqm backup Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Thu Nov 06, 2014 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
anilegate
PostPosted: Thu Nov 06, 2014 4:11 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 06, 2014 4:32 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Thu Nov 06, 2014 4:44 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Nov 06, 2014 6:02 am    Post subject: Re: QMGR backup process Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Nov 06, 2014 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Thu Nov 06, 2014 6:59 am    Post subject: Re: QMGR backup process Reply with quote

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
View user's profile Send private message
rammer
PostPosted: Thu Nov 06, 2014 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Nov 06, 2014 9:16 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

rammer wrote:
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..


Details here:
http://www.mqseries.net/phpBB2/viewtopic.php?t=65712&postdays=0&postorder=asc&start=0
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » QMGR backup process
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.