Optimizing The Server Database - Novell ZENWORKS LINUX MANAGEMENT 7.3 IR2 - ADMINISTRATION GUIDE 02-12-2010 Administration Manual

Table of Contents

Advertisement

Because all ZENworks Servers access the Data Store, you need to stop these services on all
ZENworks Servers on your system. You must also ensure that any external connections to the
database are terminated.
2 Make sure you are logged in as root to a ZENworks Server.
3 On the ZENworks Primary Server, enter the following at the command prompt:
zlm_dbrestore.sh -F path_to_the_backup_file
To restore a database from a Secondary Server, enter the following at the command prompt:
zlm_dbrestore.sh -F path_to_the_backup_file -H primary_server_host_name
If you have taken a database backup from the Secondary Server, you can restore the database
from the Secondary Server only if its PostgreSQL database version is same as that on the
Primary Server.
Make sure that the -F option includes the backup file's complete path. For example:
zlm_dbrestore.sh -F /var/opt/novell/zenworks/backup/db/2005-08-23/
23:30:00-zenworks-backup.tar.gz
4 If prompted, enter
5 If prompted, enter
6 When prompted to supply a password to drop the database, enter the password configured in
etc/opt/novell/zenworks/hibernate.cfg.xml
PostgreSQL database.
7 When prompted to supply a password to create the new database, enter the password
configured in
authenticating the PostgreSQL database.
The log information about the restore operation is saved in the file
zenworks/dbrestore.log
8 After the restore is complete, you need to ensure that the Data Store is synchronized with the
Object Store. For instructions, see
Store," on page
9 On all ZENworks Servers, start the ZENworks Server (novell-zenserver) and the ZENworks
Loader (novell-zenloader) by using the following commands:
/etc/init.d/novell-zenserver start
/etc/init.d/novell-zenloader start

9.2.5 Optimizing the Server Database

To improve the server database performance, use the
novell/zenworks/bin
Server using a local PostgreSQL database, the installation program creates a script that runs on a
daily basis.
The
zlm-pg-vacuum
database performance. You must log in as
optimal performance, run the following vacuum scripts:
zlm-pg-vacuum or zlm-pg-vacuum --busy-tables: Depending on the database activity, run
the script daily to weekly. Run the script once a week on a lightly loaded server and once a day
on a heavily loaded server.
90
Novell ZENworks 7.3 Linux Management Administration Guide
to stop the ZENworks Server (novell-zenserver).
Y
to stop the ZENworks Loader (novell-zenloader).
Y
/etc/opt/novell/zenworks/hibernate.cfg.xml
.
Section 9.4, "Synchronizing the Object Store and Data
98.
directory on the ZENworks Server. When you install a ZENworks Primary
script runs the
vacuumdb
root
that is used for authenticating the
/var/opt/novell/log/
script, found in the
zlm-pg-vacuum
command, which has a significant impact on
before running the
zlm-pg-vacuum
that is used for
/opt/
script. For the
/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.3 ir2

Table of Contents