Optimizing The Server Database - Novell ZENWORKS LINUX MANAGEMENT 7.2 IR2 - ADMINISTRATION GUIDE 09-25-2008 Administration Manual

Table of Contents

Advertisement

7 When prompted to supply a password to create the new database, enter the password
configured in /etc/opt/novell/zenworks/hibernate.cfg.xml that is used for
authenticating the PostgreSQL database.
The log information about the restore operation is saved in the file /var/opt/novell/
log/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 zlm-pg-vacuum script, found in the /opt/
novell/zenworks/bin directory on the ZENworks Server. When you install a ZENworks
Primary Server using a local PostgreSQL database, the installation program creates a script that runs
on a daily basis.
The zlm-pg-vacuum script runs the vacuumdb command, which has a significant impact on
database performance. You must log in as root before running the zlm-pg-vacuum script. For
the 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.
zlm-pg-vacuum --full: Run the script during a period of less activity or during downtime for
the database server. Depending on the database activity, run the script weekly or bi-weekly. It
performs a full vacuum analyze and exclusively locks tables. It is recommended that you
manually run the zlm-pg-vacuum --full script once a month by performing the
following steps:
1.Stop all the ZENworks services by executing zlm-config --stop.
2. Execute zlm-pg-vacuum --full.
3. Start all the ZENworks services by executing zlm-config --start.
Additionally, you can fine-tune the following parameters depending on your memory requirements
and scale:
In the /etc/sysctl.conf file, configure kernel.shmmax.
In the postgresql.conf file, configure shared_buffer, sort_mem, vacuum_mem,
wal_buffers, and checkpoint_segments.
For more information on how to fine-tune the parameters, see the
/www.postgresql.org/docs/).
Following is a sample scenario that illustrates how you can fine-tune the database parameters. The
values indicated in this scenario are sample values; you must fine-tune it according to your
requirements. For more information on how to fine-tune the parameters, see the
documentation (http://www.postgresql.org/docs/)
88
Novell ZENworks 7.2 Linux Management Administration Guide
Section 9.4, "Synchronizing the Object Store and Data
94.
PostgreSQL documentation (http:/
PostgreSQL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.2ir2

Table of Contents