• No results found

When you install the ServerViewBase package, the configuration file global.conf is also installed in the directory

In document ServerView Operations Manager V7.02 (Page 83-88)

4 ServerView database

2. When you install the ServerViewBase package, the configuration file global.conf is also installed in the directory

/etc/fujitsu/ServerViewSuite/ServerView.

Open this file and enter the IP address of the remote database server at the following entry:

export COM_DB_SERVER="127.0.0.1"

e.g.:

export COM_DB_SERVER="111.22.33.77"

3. Install further required packages with the following command:

./install.sh

Unless you specify an option, all packages will be installed, see"Installed Operations Manager packages" on page 64. If you only want to install individual packages, you must specify the relevant option, see"Installation"

on page 53.

During installation of the ServerViewDB package, the ServerView database is generated on the remote database server.

4.8 ServerView database on a remote database server

4 ServerView database

4.8.2 Update installation

Before you begin an update installation you must stop all ServerView services on the central management station. Do this by entering the following command:

/usr/bin/sv_services stop Proceed as follows:

1. For an update installation of the ServerView database on the remote database server, enter the following command:

./install.sh --remotedbserver or

./install.sh --RDBS

2. Start the service with following command (on the central management station):

/usr/bin/sv_services start

For an update installation on the central management station, enter the following command:

./install.sh

The entire Operations Manager software is updated. For an update

installation of individual components, you must specify the relevant option, see"Installation" on page 53.

4.8.3 Uninstallation

For uninstallation you must first uninstall the Operations Manager software on the central management station and then the ServerView database on the remote database server.

Uninstallation is described in"Uninstalling the Operations Manager software" on page 68.

4.8.4 ServerView database backups

By default the ServerView database on the remote database server is backed up daily. The ServerView database is also backed up once a day on the central management station.

The backups of the ServerView database are kept in the directory /var/fujitsu/ServerViewSuite/ServerViewDB/backup.

4.8.5 Switching the database server

Switching from local database server to remote database server

Install the remote database server as described in the previous sections. On the central management station, execute the following command:

/opt/fujitsu/ServerViewSuite/ServerView/

scripts/change-DB.sh --remote <IP address of the remote server>

Switching from remote database server to local database server On the central management station, execute the following command:

/opt/fujitsu/ServerViewSuite/ServerView/

scripts/change-DB.sh --local

When you have switched the database server, you can uninstall the Operations Manager software on the former remote database server.

4.9 Error diagnostic

4.9.1 unixODBC Manager

The Operations Manager software and the database management system PostgreSQL can only be installed if the unixODBC Manager is installed (see also

"Requirements" on page 31).

4.9 Error diagnostic

4 ServerView database

4.9.2 Error during installation/uninstallation

Installation

The installation process is logged in log files. To receive debugging information, specify the option -v for install.sh.

If an error occurs during installation, the error will be displayed and all actions so far will be undone. The log files of the database management system

PostgreSQL are stored under:

l /opt/fujitsu/ServerViewSuite/Postgresql /pgsql/initlog

l /opt/fujitsu/ServerViewSuite/Postgresql /pgsql/data/serverlog

l /var/log/fujitsu/ServerViewSuite/ServerView/install.log

l /var/log/fujitsu/ServerViewSuite/ServerView/upgrade.log

l /var/log/fujitsu/ServerViewSuite/ServerViewDB/ServerView_

Debug/ServerViewError.log

l /var/log/fujitsu/ServerViewSuite/jboss/jboss.log If you can resolve the error using the log files

/opt/fujitsu/ServerViewSuite/Postgresql/pgsql/data/pg_log/*.log, you can then restart the installation.

If you have problems starting JBoss or accessing the Web server after installation, you may be able to diagnose them with the help of the file /var/log/fujitsu/ServerViewSuite/jboss/jboss.log.

If you cannot resolve the error, send the above-listed log files to the Service Center for diagnostics.

You can delete old files from the directory

/opt/fujitsu/ServerViewSuite/Postgresql/pgsql/data/pg_log if you do not need them for problem diagnostics.

Uninstallation

The uninstallation process is logged in the file

/var/log/fujitsu/ServerViewSuite/ServerView/uninstall.log.

4.9.3 Uninstalling the ServerView database

If the ServerView database is blocked by another program, it is not possible to uninstall the ServerView database and the database management program. To solve the problem, stop all external programs that have access to PostgreSQL, e.g. programs for PostgreSQL administration.

4.9.4 System is slowing down

If you notice that your system is slowing down, you can rebuild the indexes of the ServerView database. This is done using the REINDEX command, which is described in the PostgreSQL documentation which can be found in the following directories:

l /opt/fujitsu/ServerViewSuite/Postgresql/pgsql/share/doc

l /opt/fujitsu/ServerViewSuite/Postgresql/pgsql/share/man

4.9.5 Checking the status of PostgreSQL

In some cases it may be necessary to check the status of the database management system. Use the following command:

/etc/init.d/sv_postgresql status

4.9.6 Starting and stopping PostgreSQL

In some cases it may be necessary to stop or start the database management system manually or to restart a database management system that is already running.

Starting PostgreSQL

/etc/init.d/sv_postgresql start Stopping PostgreSQL

/etc/init.d/sv_postgresql stop

4.9 Error diagnostic

4 ServerView database

Startup problems under SLES 11 can be resolved as follows:

In document ServerView Operations Manager V7.02 (Page 83-88)