Unix Technical Forum

How to fix indexes on secondary (HDR)? or do you need to?

This is a discussion on How to fix indexes on secondary (HDR)? or do you need to? within the Informix forums, part of the Database Server Software category; --> Last week, we had some issues with our secondary server and IBM technical support suggests us to run 'oncheck ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 01:07 PM
Vivien Kobayashi
 
Posts: n/a
Default How to fix indexes on secondary (HDR)? or do you need to?

Last week, we had some issues with our secondary server and IBM
technical support suggests us to run 'oncheck -cI' on the secondary.
The results shows we need to drop and recreate on a lot of indexes.
Because secondary is read-only, we were told we had to drop and
recreate the indexes on primary. Of course he failed to mention, once
you dropped the indexes, it's almost impossible to recreate the indexes
unless you can get exclusive lock on the table. For a busy server, this
means downtime and that is out of question especially when primary's
indexes are clean. So we went with the second route: did a full restore
on secondary.

But oncheck still comes back with exact same result, suggest to drop
and recreate all the indexes. We were puzzled. I opened another case to
get a second opinion. This time, I was told to make secondary standard
and fix indexes as standard (onmode -d standard) . And of course it did
not work because one can only make secondary into standard if DR is
off. The secondary is fine and the DR is on so we are stuck. The case
was escalated and the following is the answer coming from advanced
support,

"The indexes coming back as being corrupt is normal. The secondary of
an HDR pair is always being updated so it is always in an inconsistent
state. As a result, the indexes will always look corrupt to an oncheck
and the chunks usually appear to be in a PI status.

Oncheck does not know how to interpret this behavior, so it shows them
as being corrupted. Unfortunately, this is not documented so it
confuses users."

In other words, you don't really need to fix it. The indexes will look
corrupted to oncheck....
Anyone has similar experience? would you care to share?

-Vivien Kobayashi

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com