--
douglas_h
------------------------------------------------------------------------
douglas_h's Profile: http://community.ingres.com/forum/member.php?userid=44547
View this thread: http://community.ingres.com/forum/showthread.php?t=12064
_______________________________________________
Info-Ingres mailing list
Info-...@kettleriverconsulting.com
http://ext-cando.kettleriverconsulting.com/mailman/listinfo/info-ingres
>
> I would like to set up DR for our Live ingres installation. We have
> two identical servers, with identical ingres installations, only
> different databases on each. I believe this can be accomplished by
> copying checkpoint and related files from one server to another, into
> identically named locations, which we have. ...
What Ingres version, and what platform? The Ingres version does
not make a huge difference but it would be nice to know.
If you run "infodb databasename" on the database(s) of interest,
you'll see the checkpoint and dump locations listed. You need
*at least* those two. You'll probably want the journal location as
well.
An outline of the general procedure would be:
- create a database on the backup machine with the same name
and owner as the primary. Extend that database to all the same
data and work locations as the primary database. (infodb will
list any extra data and work locations.) If you want to be extra
slick, after creating the database, sql -u'$ingres' +U iidbdb on
the backup and fix the database's db_id in the iidatabase
catalog to match what's on the primary. (This has no effect
in running the database, but keeps ipm a lot happier!)
- copy the checkpoint and dump areas from primary to backup.
Delete the contents of the data area(a) on the backup side
(being careful to make sure you are doing this on the right
machine!!!) Copy the aaaaaaaa.cnf file in the root data
area (infodb again) to the backup. (This is not strictly necessary
but makes some Ingres versions happier, and is good
superstition anyway.)
- rollforwarddb +c -j databasename on the backup
If you want to throw journals into the mix, copy the journal
area and use a +c +j rollforward. There are additional
things you can do, such as issuing a DM1305+DM1314
trace point on the primary to force an archiver cycle, so that the
journals are as up to date as possible. (WIth the most
recent Ingres versions, you can use the incremental
journaling features, which I am unfortunately not all
that familiar with.)
Another thing to keep in mind is that you will probably need
the same Ingres users on the primary as on the backup,
with the same installation privileges, roles, etc. In other
words all of the iidbdb stuff.
I have one of those "I'm forgetting something" feelings, but
if so, surely someone else will chime in to fill the gaps.
Karl
"I'm forgetting something", perhap's :
1/ Both databases must have the same location name and area (due to
aaaaaaaa.cnf content)
2/ If you want to replay journal files and dump stuff, logging systems must
be tuned on the same values
I've one of this on a production machine (Ingres 2.6 on HP) and sometime, on
the destination machine, the archiver process (dmfacp) fail because it try
to create a journal file that already exists (because it was created on the
source machine), even if the destination machine is doing nothing in term of
transaction (timer somewhere to generate journal files ?).
The workaround is to tune the acpexit to restart dmfacp after cleanning
journal location on the destination machine.
Hope this help,
--
Jean-Pierre Zuate
La Fage Conseil
+33(0)6 11 40 11 09
jean-pie...@lafageconseil.fr
http://lafageconseil.fr/
2010/5/18 Karl Schendel <sche...@kbcomputer.com>