ZENworks Object Store and Data Store Maintenance
89
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
The hostname in the
.pgpass
file is used by the
zlm_dbbackup.sh
script to automate the
PostgreSQL database backup. Before you begin the backup, make sure the hostname is correct. On
the ZENworks Linux Management Primary Server, ensure that the hostname in the
/root/.pgpass
file in the
zlm_dbbackup.sh
script is
localhost
. If the hostname is not
localhost
, edit the
.pgpass
file to change the hostname to
localhost
.
1
Make sure you are logged in as root to a ZENworks Server.
2
On the ZENworks Primary Server with the local data store, enter the following at the command
prompt:
zlm_dbbackup.sh
To take a database backup from the ZENworks Secondary Server, enter the following at the
command prompt:
zlm_dbbackup.sh -H
primary_server_hostname or
Primary_Server_IPaddress
NOTE:
Database backup operation is supported from a Secondary Server only if its PostgreSQL
database version is same or higher than that on the Primary Server. For example, you cannot run the
backup utility from a SLES 9 Secondary Server if the Primary Server is a SLES 10 server. This is
because the SLES 9 server's pg_dump utility, which is used by the backup utility, is incompatible
with the PostgreSQL database version running on the Primary Server. You have to run the backup
utility on the Primary Server.
A directory with the current date is created at
/var/opt/novell/zenworks/backup/db
. The
backup file, named
timestamp
-zenworks-backup.tar.gz
, is saved in this directory. For
example, if the backup is taken on August 23, 2005 at 11:30 p.m., the following directory and file
are created:
/var/opt/novell/zenworks/backup/db/2005-08-23/23:30:00-zenworks-backup.tar.gz
Log information about the backup operation is saved in the
/var/opt/novell/log/zenworks/
dbbackup.log
file.
The utility does not require any user interaction. If desired, you can schedule the database backup
operation as a cron job.
9.2.4 Restoring the ZENworks Data Store
This section applies only if you are using the PostgreSQL database for your Data Store.
If necessary, you can restore the ZENworks Data Store from a backup you created. You use
zlm_dbrestore.sh
, located in
/opt/novell/zenworks/sbin
, to restore the Data Store from a
backup.
The restore operation drops the existing database and creates a new one.
To restore the ZENworks Data Store:
1
On all ZENworks Servers, stop the ZENworks Server (novell-zenserver) and the ZENworks
Loader (novell-zenloader) services by using the following commands:
/etc/init.d/novell-zenserver stop
/etc/init.d/novell-zenloader stop
Содержание ZENWORKS LINUX MANAGEMENT 7.3 IR2
Страница 4: ...4 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 22: ...22 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 34: ...34 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 40: ...40 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 44: ...44 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 68: ...68 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 84: ...84 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 100: ...100 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 102: ...102 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 105: ...Registering Devices 105 novdocx en 7 January 2010 key yum_service...
Страница 106: ...106 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 124: ...124 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 132: ...132 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 182: ...182 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 206: ...206 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 208: ...208 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 216: ...216 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 264: ...264 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 270: ...270 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 290: ...290 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 320: ...320 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 324: ...324 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 352: ...352 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 406: ...406 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 478: ...478 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 480: ...480 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 482: ...482 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 494: ...494 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 508: ...508 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 520: ...520 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 524: ...524 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 530: ...530 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 532: ...532 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 544: ...544 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 546: ...546 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 600: ...600 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 606: ...606 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 646: ...646 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 662: ...662 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 666: ...666 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 672: ...672 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 678: ...678 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Страница 684: ...684 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...