Author |
Message
|
chhetri_sanjay |
Posted: Fri Feb 08, 2013 11:52 am Post subject: Linear LOG |
|
|
Novice
Joined: 17 Jan 2013 Posts: 23
|
I am new to LINEAR LOGGING, I am running MQ 7.1 on LINUX 5.8. I have primary log file 5 and secondary 3 with log page size of 16394. I verified restart recovery of queue manager in LINEAR LOGGING but i have question for taking backup of log file for media recovery purpose.
I have following log file in /var/mqm/qmgr/log/active/
S0000000.LOG S0000001.LOG S0000002.LOG
S0000003.LOG S0000004.LOG
when i run "DIS QMSTATUS ALL" on queuemanger. i found
CURRLOG(S0000000.LOG) ,
RECLOG(S0000000.LOG) ,
MEDIALOG(S0000000.LOG)
A) which log file i am taking back up for media recovery ?
B) how would i know which is active log or which one is inactive log ?
C) How i can verify "rcdmqimg" moves the media log sequence number
forwards ? I run this command but still i have same log sequence.
Thank you in advance. _________________ ----------------------------------------
Let's do someting new
----------------------------------------
Last edited by chhetri_sanjay on Fri Feb 08, 2013 12:37 pm; edited 1 time in total |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Feb 08, 2013 12:25 pm Post subject: Re: Linear LOG |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
chhetri_sanjay wrote: |
I am new ...
when i run "DIS QMSTATUS ALL" on queuemanger. i found
CURRLOG(S0000000.LOG) ,
RECLOG(S0000000.LOG) ,
MEDIALOG(S0000000.LOG)
A) which log file i am taking back up for media recovery ?
B) how would i know which is active log or which one is inactive log ?
B) How i can verify "rcdmqimg" moves the media log sequence number
forwards ? I run this command but still i have same log sequence.
Thank you in advance. |
Please, oh please, do a bit of research on Google. Search for WMQ+CURRLOG. Search for RECLOG. Search for MEDIALOG.
Your qmgr is brand new, and you have few or no messages logged - or not enough logged to extend beyond the very first log segment S0000000.LOG. _________________ 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 |
|
 |
Vitor |
Posted: Fri Feb 08, 2013 12:29 pm Post subject: Re: Linear LOG |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chhetri_sanjay wrote: |
A) which log file i am taking back up for media recovery ? |
- the one reported by the queue manager
- you don't take that log anywhere. You leave it in place
chhetri_sanjay wrote: |
B) how would i know which is active log or which one is inactive log ? |
Because the queue manager reports that. See above.
chhetri_sanjay wrote: |
B) How i can verify "rcdmqimg" moves the media log sequence number
forwards ? I run this command but still i have same log sequence.
|
As you were told here linear logging has nothing to do with sequence. You clearly have not followed the advice to actually read the InfoCenter, or not only would you realise that you'd know the answers to your other questions.
But given you think the alphabet goes A, B, B I can see why you might have missed out on that. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
chhetri_sanjay |
Posted: Fri Feb 08, 2013 12:51 pm Post subject: |
|
|
Novice
Joined: 17 Jan 2013 Posts: 23
|
Thank you for reply. _________________ ----------------------------------------
Let's do someting new
---------------------------------------- |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Feb 08, 2013 1:08 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Research the DIS QMSTATUS ALL command to discover the meaning of the command output. _________________ 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 |
|
 |
chhetri_sanjay |
Posted: Fri Feb 08, 2013 1:16 pm Post subject: |
|
|
Novice
Joined: 17 Jan 2013 Posts: 23
|
bruce2359 wrote: |
Research the DIS QMSTATUS ALL command to discover the meaning of the command output. |
i am sorry i can't make you understand, i am familiar with the restart log file, media recovery log file and current log file. My question was about archiving log file for recovery.
i been throgh infocenter i could not understand so i am asking sothat i can get help to understand things. I am not MQ expert. I am still learning.  _________________ ----------------------------------------
Let's do someting new
---------------------------------------- |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Feb 08, 2013 1:25 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
First, there is only one log. There is NOT a separate log used for media recovery, and another for restart.
DIS QMSTATUS ALL output tells you which log file (file name) is currently in use (to write log records), which log file is needed for restart, and which log file is required for media recovery.
Older log files are no longer required, and may be archived or deleted.
So, as an example: S000060.LOG is current, S000055.LOG has log entries for a very long Unit of Work (required for restart), and S0000056.LOG has media images.
You may archive (write to tape) or delete S000054.LOG, and any older than that. _________________ 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 |
|
 |
Vitor |
Posted: Fri Feb 08, 2013 2:11 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chhetri_sanjay wrote: |
i am familiar with the restart log file, media recovery log file and current log file. My question was about archiving log file for recovery. |
These 2 sentances contradict each other. How can you be familar with logging and asking about archiving logs?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
chhetri_sanjay |
Posted: Fri Feb 08, 2013 2:14 pm Post subject: |
|
|
Novice
Joined: 17 Jan 2013 Posts: 23
|
Awesome, nice explanation....
i guess linear log does not reuse the log file unlike circular, if i defined Number of primary log file is 5.
How things works,
The log file number will not exceed more than 5 or NOT ?
Log file S0000006.LOG, S0000007.LOG, S0000008.LOG .............. will be created ?
Thank you. _________________ ----------------------------------------
Let's do someting new
---------------------------------------- |
|
Back to top |
|
 |
chhetri_sanjay |
Posted: Fri Feb 08, 2013 2:24 pm Post subject: |
|
|
Novice
Joined: 17 Jan 2013 Posts: 23
|
Vitor wrote: |
chhetri_sanjay wrote: |
i am familiar with the restart log file, media recovery log file and current log file. My question was about archiving log file for recovery. |
These 2 sentances contradict each other. How can you be familar with logging and asking about archiving logs?  |
MQ GURU, i am familiar with term some what. I am not familiar with process/steps. I am doing first time. i already mentioned i am new on MQ and i am learning.
Thank you for your reply. _________________ ----------------------------------------
Let's do someting new
---------------------------------------- |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Feb 08, 2013 2:46 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
chhetri_sanjay wrote: |
Awesome, nice explanation....
i guess linear log does not reuse the log file unlike circular, if i defined Number of primary log file is 5.
How things works,
The log file number will not exceed more than 5 or NOT ?
Log file S0000006.LOG, S0000007.LOG, S0000008.LOG .............. will be created ?
Thank you. |
Log sequence numbers increment by 1 for each new log segment.
How logs work is well documented. Search google or the InfoCenter for 'what are logs used for?'
The differences between circular and linear logs are well documented, too. _________________ 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 |
|
 |
bruce2359 |
Posted: Fri Feb 08, 2013 3:37 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
|
Back to top |
|
 |
Vitor |
Posted: Sat Feb 09, 2013 9:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chhetri_sanjay wrote: |
I am not familiar with process/steps. |
Or it seems, what the InfoCenter has to say on a number of topics.
chhetri_sanjay wrote: |
i already mentioned i am new on MQ and i am learning. |
I already mentioned this is the wrong place to try and get training. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Feb 09, 2013 9:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chhetri_sanjay wrote: |
i guess linear log does not reuse the log file unlike circular |
How can you say you're "familiar" with WMQ logging, and then say "I guess"? This is the key difference between the 2 log types.
chhetri_sanjay wrote: |
How things works |
How the InfoCenter explains it works. There's one thing to be new and learning, there's another thing to be asking questions that the InfoCenter answers and to be making statements the InfoCenter contradicts. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Feb 09, 2013 10:13 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Familiar vs. understand:
I am familiar with skydiving, and with juggling sharp knives, but I have no experience with either. _________________ 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 |
|
 |
|