dbTalk Databases Forums  

Copying ingres checkpoints to another server

comp.databases.ingres comp.databases.ingres


Discuss Copying ingres checkpoints to another server in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ingres Forums
 
Posts: n/a

Default Copying ingres checkpoints to another server - 05-18-2010 , 10:13 AM






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. From posts on this site I
have seen this can be done, indeed people are moving onto an incremental
method. Just to start with, however, I wonder if someone could go
through the steps for copying checkpoints and related files to another
server, and/or advise me of any documenation on this subject issued by
ingres.


--
douglas_h
------------------------------------------------------------------------
douglas_h's Profile: http://community.ingres.com/forum/me...p?userid=44547
View this thread: http://community.ingres.com/forum/sh...ad.php?t=12064

Reply With Quote
  #2  
Old   
Karl Schendel
 
Posts: n/a

Default Re: [Info-Ingres] Copying ingres checkpoints to another server - 05-18-2010 , 11:36 AM






On May 18, 2010, at 11:13 AM, Ingres Forums wrote:

Quote:
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

Reply With Quote
  #3  
Old   
Ingres Forums
 
Posts: n/a

Default Re: Copying ingres checkpoints to another server - 05-18-2010 , 12:50 PM



Karl, that's incredibly helpful and will enable me to proceed with
testing on a small database. We are running ingres 2006 version II
9.1.1 (int.lnx/103) NPTL on Red Hat Enterprise Linux AS release 4
(Nahant Update 8). Both machines are identical, also in terms of their
ingres installations. We are not running journalised currently. I need
to think about that. Users, etc on iidbdb should be identical. I think
I should be able to make some progress. As you say, if there is anything
else to consider perhaps someone else will chime in. Thanks again.


--
douglas_h
------------------------------------------------------------------------
douglas_h's Profile: http://community.ingres.com/forum/me...p?userid=44547
View this thread: http://community.ingres.com/forum/sh...ad.php?t=12064

Reply With Quote
  #4  
Old   
Michael Dyer
 
Posts: n/a

Default Re: [Info-Ingres] Copying ingres checkpoints to another server - 05-19-2010 , 01:00 AM



Douglas,
Do you have a support contract or a POC agreement?
If so, then please log an issue with ServiceDesk.
Michael
(Ingres Technical Support)

-----Original Message-----
From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of
Ingres Forums
Sent: 18 May 2010 18:50
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: Re: [Info-Ingres] Copying ingres checkpoints to another server


Karl, that's incredibly helpful and will enable me to proceed with
testing on a small database. We are running ingres 2006 version II
9.1.1 (int.lnx/103) NPTL on Red Hat Enterprise Linux AS release 4
(Nahant Update 8). Both machines are identical, also in terms of their
ingres installations. We are not running journalised currently. I need
to think about that. Users, etc on iidbdb should be identical. I think
I should be able to make some progress. As you say, if there is anything
else to consider perhaps someone else will chime in. Thanks again.


--
douglas_h
------------------------------------------------------------------------
douglas_h's Profile:
http://community.ingres.com/forum/me...p?userid=44547
View this thread:
http://community.ingres.com/forum/sh...ad.php?t=12064

_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

Reply With Quote
  #5  
Old   
Ingres Forums
 
Posts: n/a

Default Re: Copying ingres checkpoints to another server - 05-19-2010 , 04:31 AM



Michael, thanks, we have 3rd party ingres support but they will charge
to set up this DR facility. As it appears to be widely used within the
industry I thought and hoped I could find the information I need to set
up the DR mechanism for my organisation myself, making some financial
savings. I'm also generally researching this topic. If I have any
problems with the implementation it would have to be passed to our 3rd
party ingres support.


--
douglas_h
------------------------------------------------------------------------
douglas_h's Profile: http://community.ingres.com/forum/me...p?userid=44547
View this thread: http://community.ingres.com/forum/sh...ad.php?t=12064

Reply With Quote
  #6  
Old   
Jean-Pierre Zuate, La Fage Conseil
 
Posts: n/a

Default Re: [Info-Ingres] Copying ingres checkpoints to another server - 05-19-2010 , 10:27 AM



Hi (Karl and others),

"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-pierre.zuate (AT) lafageconseil (DOT) fr
http://lafageconseil.fr/


2010/5/18 Karl Schendel <schendel (AT) kbcomputer (DOT) com>

Quote:
On May 18, 2010, at 11:13 AM, Ingres Forums wrote:


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


_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.