Views:

Perform the following procedures during off-peak hours or schedule a downtime maintenance to reduce business impact on the customer's environment. Before recreating the IWSVA database, you must back up the current database first.

A. Back up the IWSVA database:
  1. Open IWSVA SSH console and login as root.
  2. Run "su - iscan" to change the current user to iScan.
  3. Run "mkdir /tmp/backup" to create the backup directory.
  4. Run the backup script using the following command:

    /usr/iwss/bin/db_backup.sh localhost 5432 sa iwss manual /tmp/backup all

    This script creates a database backup located on the /tmp/backup folder. Below is the format of the backup filename:

    backup.all.yyyy-mm-dd (e.g. backup.all.2010-07-31)

B. Recreate the database:

  1. Open the IWSVA SSH console and login as root.
  2. Run the following commands:
    1. /etc/iscan/S99ISdatabase stop
    2. rm -rf /var/iwss/postgres/pgdata/*
    3. /usr/iwss/installdb.sh
    4. /usr/iwss/rcIwss restart

The new database password for the SA and iScan users are generated and stored in the /etc/iscan/.pgpass file.