Re: Migrate DB

1998-07-08 09:57:12
Subject: Re: Migrate DB
From: James_Shanks AT TIVOLI DOT COM
To: nv-l AT lists.tivoli DOT com
Date: Wed, 8 Jul 1998 09:57:12 -0400
Alain Menzies wrote:

>Hi all,

>I've got 2 NetViews 4.1.2. Is it possible to copy the dbs from one to
another ? and >the security configuration ? If yes, could anyone tell me
what directories have to be >copied ?


>Alain Menezes                                   Email: a.menezes AT cger DOT be
>ASLK-CGER Services GIE                          Tel.:  +32 2 228.55.74
>Rue Foss?-aux-Loups, 48                               Fax.:  +32 2
>1000  Brussels

Migrating databases from one NetView to another is not officially
supported, but that just means you cannot complain to Support if it doesn't
work.  Many users do it all the time. I was expecting them to respond , but
as they haven't, I will.

The key to it is the script /usr/OV/service/reset_ci which must be run
since each database is customized to the machine on which it resides.
reset_ci will replace the other NetView's information with that of the
current NetView.

So follow the backup procedure below and ftp the backup or tar file to the
target machine, or use tape.  Then stop all the daemons on the target
machine and restore the data there into /usr/OV/databases/openview.  Then
restart just the first few daemons (ovstart ovtopmd  should do it).  Then
do /usr/OV/service/reset_ci  .  When that completes successfully, you
should be able to ovstart again (it will bring up the rest of the daemons)
and then start the GUIs.

Good luck, remember this is not officially supported

James Shanks
Tivoli (NetView for UNIX) L3 Support
---------------------- Forwarded by James Shanks/Tivoli Systems on 07/08/98
09:48 AM ---------------------------

James Shanks
07/08/98 09:43 AM

From: James Shanks/Tivoli Systems @ Tivoli Systems
Subject:  Re: Backing up Netview 4.1 AIX Databases  (Document link not

Since many users do this already, I was expecting someone else to tell you
their procedures, but I can tell you that this is easily accomplised.  What
you must do is stop at least netmon and snmpCollect, and then backup the
entire /usr/OV/databases/openview  directory.  All of it.  The object
database, topology database, and map datbase are all tied together and
should not be dealt with separately.

There are several ways to backup /usr/OV/databases/openview.  You can use
the AIX backup and restore commands. You can also use tar, but as these are
sparse file systems, restoring with tar will cause them to use more space
than they did originally.  To avoid this you can use pax to restore them.

For example, you could do this

 cd /usr/OV/databases/openview
 tar -cvf <filename> *                        this tars up everything into
your file

 pax -vf <filename>     (same as tar -tvf <filename>)   you can use pax or
tar to see the contents of your file

 pax -rp e -f <filename>  (like tar -xvf <filename>)         restore with
pax and don't forget the 'e' option to restore the permissions.

When you restore all the daemons should be down.

James Shanks
Tivoli (NetView for UNIX) L3 Support

JMutrux AT GENAM DOT COM on 07/02/98 04:22:49 PM

Please respond to NV-L AT UCSBVM.UCSB DOT EDU

cc:    (bcc: James Shanks)
Subject:  Backing up Netview 4.1 AIX Databases

I'd like to be able to rediscover our network using a new seedfile,
basically starting from scratch.  However, I would like to be able to go
back to my current situation if necessary.  How do I backup and restore the
Netview databases necessary to do this.  I'd like to do this on the hard
drive rather than tape if possible.

John M.

<Prev in Thread] Current Thread [Next in Thread>