If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Questions with Archival logging for HADR Setup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-09, 16:19
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Arrow Questions with Archival logging for HADR Setup

As only primary database does archival logging -

1) How should I setup archival logging(LOGARCHMETH1 and LOGARCHMETH2 for Primary and Standby databases in HADR setup ?

2) Should I only use one NFS mount(separate NFS mounts for LOGARCHAMETH1&2) for archival logging which is created on Primary database server and mounted onto standby database server ?

3) Please suggest me any other better options for the HADR setup.


Thanks
Pandit
Reply With Quote
  #2 (permalink)  
Old 06-29-09, 17:02
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
1. Archive logging does not occur on the standby database (when in HADR standby mode). But you should define LOGARCHMETH1 and LOGARCHMETH2 (if you use log mirror) in case you have to do a takeover and switch roles sot the standby becomes the primary HADR database. You can run a cron job to clean out the log path on the standby (only when in standby mode) to move the active logs to the archive path that are older than x number of days, and then delete them from archive path when x + n days old (or when archive path is getting full).

2. For maximum availability, the HADR pirmary and standby servers should not share any disk mounts for DB2 instance, database path, tablespaces, or logs. You might want to have an NFS mount for a work area for misc files that could be shared between the servers.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-29-09, 17:14
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Thanks a lot Marcus-

But an IBM article on HADR says the following:

Shared log archive device between HADR primary and standby databases is preferred. The standbydatabase does not archive log files. If the archive device is not shared, after a few role switches, some files will be on one device and some on the other. Another advantage of shared device is that the standby can retrieve log files directly from the archive device during local catchup state, relieving the primary from reading the files and sending them over the network to the standby.

So, Iam real confused how to setup LOGARCHMETH1 and LOGARCHMETH2 on primary and standby.
Reply With Quote
  #4 (permalink)  
Old 06-29-09, 17:25
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Could you provide a link to the IBM article? Not everyone at IBM has the same opinion on things (I worked for IBM for 10 years).

There may be advantages to using a shared device for archive logs, but it would reduce the amount of redundancy, and therefore provide less disaster recovery capability. Maybe you could share the files used for LOGARCHMETH2 since those are redundant with LOGARCHMETH1 archived logs.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 06-30-09, 10:34
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Hi -

Here is the link for the IBM article.

IBM developerWorks: Wikis - IBM Database Wiki - HADR_tune.

Under the sub heading "Log Archive Device" the statements I quoted are mentioned.
Reply With Quote
  #6 (permalink)  
Old 06-30-09, 16:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
That site is a wiki, which means any member can contribute and edit articles. I don' know if Zhuge is actually an IBM employee, although she is probably fairly knowledgeable. Based on a google search, she may an academic, or maybe she is an IBM employee in a research lab near San Jose (note that the DB2 LUW lab is in Toronto).

But I would bet that (like many people who are IBM employees) that she is not a "real" DBA and has not experienced the kinds of failures that HADR protects against in a production environment. It may be good idea to put the archive mirrors on a shared disk, but at least the primary archive logs should be independent to make sure they are not overly dependent on network file systems that might be unavailable in a real disaster.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On