On Nov 28, 2011, at 1:07 PM, Ingres Forums wrote:
>
> Hi,
>
> We're performing a disaster recovery test and need to recover a
> checkpoint from our production server over to our DR box. The issue I
> believe I'm having is that the two servers do not have the same INGRES
> data locations configured. I think we have the same number of them,
> but they're not the same folder paths.
>
> How can I make this happen?
Andre's suggestion of making a second installation identical to production
is a good one. Or, along the same lines, you could unload the existing
database on the DR box, reinstall Ingres so that it looks identical to the
production installation, and then reload the DR database.
The other options that occur to me at the moment are less good:
You could create symbolic links to match the production installation
paths, pointing to the corresponding DR-installation paths. I can't
offhand think why this wouldn't work, but it would certainly confuse
your sysadmins and future DBA's.
You could grab a copy of the Ingres source and use the structure
definitions found in $ING_SRC/back/dmf/hdr/dm0c.h to write
a little C program that alters the paths in the db-config file(s).
It wouldn't have to be C, I guess. You would have to find and
alter all of the copies of the config file. Marty is apparently
doing something like this, since he's posted recently on the
subject. I actually did something like this in a past life for an
automated DR / warm-backup system, and it can be done,
but it's tricky to get right. I suspect it would be a lot less work to
simply redo your DR ingres installation to match production.
Karl