Re: Ontape -r
Posted in 1998
Neil Truby wrote:
>
> Thu Peter Danh wrote:
> >
> > Hi.
> >
> > With Informix 7.13.UC4, Solaris 2.5.1, are you required to
> > have the same dbspaces prior to doing an ontape -r.
> > In other words, if you did an oninit -iy, which wipes
> > all of the dbspaces and establishes rootdbs, and then ontape -r, it should
> > restore the dbspaces and the data on the tape. The Universal Server manual
> > says that if you have to do cold restore, you need to verify that you have
> > the same dbspaces, otherwise if you added a dbspace or deleted dbspace after
> > doing a level 0 backup, the tape and the dbspaces would be out of sync.
> >
> > From experience, I've been able to restore after doing an oninit -iy and
> > doing ontape -r. If what I'm doing is wrong, then how do can I explain
> > that I've been to restore successfully.
> >
> > Thanks.
> > Pete.
>
> You need to have the same chunks, not dbspaces, available. Therefore,
> no matter that you splat your dbspaces with an oninit -i (in fact, you
> just splat the rootdbs - the others are untouched), you can do a restore
> from a previous archive that will write the dbspace data back into your
> chunks.
Actually you do not need the oninit -i at all. Just have the same
disks (or links) available where each is AT LEAST as large as the
corresponding file on the source system, create the ONCONFIG file and
restore. Voila! Instant database. In the ONCONFIG file only the
disk parameters (ie ROOTFILE, PHYSFILE,...) need to be the same as the
source. Shared memory parameters may differ including the servername
and server number.
Art S. Kagel