NetBackup10 AdminGuide Informix
NetBackup10 AdminGuide Informix
NetBackup10 AdminGuide Informix
Administrator's Guide
Release 10.0
NetBackup™ for Informix Administrator's Guide
Last updated: 2022-02-23
Legal Notice
Copyright © 2022 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, and NetBackup are trademarks or registered trademarks of Veritas
Technologies LLC or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
http://www.veritas.com
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:
https://www.veritas.com/support
You can manage your Veritas account information at the following URL:
https://my.veritas.com
If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:
Japan [email protected]
Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:
https://sort.veritas.com/documents
Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:
You can also see documentation information or ask a question on the Veritas community site:
http://www.veritas.com/community/
https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents
Feature Description
Media and device All the devices supported by Media Manager are available to
management NetBackup for Informix.
Introduction to NetBackup for Informix 7
Features of NetBackup for Informix
Feature Description
Scheduling facilities NetBackup scheduling facilities on the master server can be used
to schedule automatic and unattended Informix backups.
This feature also lets you choose the times when these operations
can occur. For example, to prevent interference with normal daytime
operations, you can schedule your database backups to occur only
at night.
Multiplexed backups NetBackup for Informix lets you take advantage of NetBackup’s
and restores multiplexing capabilities. Multiplexing directs multiple data streams
to one backup device, thereby reducing the time necessary to
complete the operation.
Transparent Informix All backups and restores run simultaneously and transparently
and regular file system without any action from the NetBackup administrator.
backup and restore
The database administrator can run database backup and restore
operations
operations through NetBackup. An administrator or any other
authorized user can use NetBackup to run database backups and
restores.
Sharing the same It is possible to share the same devices and media that is used for
storage units that are other backups or to give Informix exclusive use of certain devices
used for other file and media. NetBackup for Informix can use Media Manager, disk,
backups and Media Server Deduplication Pool (MSDP) storage units.
Centralized and From the NetBackup master server, you can schedule database
networked backup backups or start them manually for any client. The Informix
operations databases can also reside on hosts that are different from the
devices on which NetBackup stores the backups.
Feature Description
Parallel backup and NetBackup for Informix supports the parallel backup and restore
restore operations capabilities of Informix. For example, this permits the user to run
more than one tape device at a time for a single Informix backup
or restore. This usage can reduce the time necessary to complete
the operation.
Term Meaning
Informix ON-Bar utility The Informix ON-Bar utility lets database administrators back up
and restore Informix databases on UNIX systems. However, this
utility does not directly manage storage devices and media. The
Informix ON-Bar utility must be integrated with a media management
system that can access devices and keep information about the
media used in Informix database backups. NetBackup for Informix
provides this media-management capability by integrating the utility
with NetBackup.
Term Meaning
onsmsync The onsmsync utility is an Informix version XPS 8.x, IDS 9.x, and
later feature that synchronizes the NetBackup catalog with the
Informix backup catalog. The onsmsync utility deletes images from
both Informix backup catalogs and NetBackup catalogs. For more
information, see your IBM Informix documentation.
Network (TCP/IP)
NetBackup software:
– NetBackup master server or media server
Introduction to NetBackup for Informix 10
About the Informix ON-bar utility and library
/usr/openv/netbackup/logs/infbsa
Step 1 Verify the installation prerequisites. See “Verifying the operating system and platform
compatibility” on page 13.
http://www.netbackup.com/compatibility
Step 2 Verify that master server has a valid See “About the license for NetBackup for Informix”
license for NetBackup for Informix and on page 14.
any NetBackup options or add-ons that
you want to use.
Step 3 Specify the Informix home path. See “Specifying the Informix home path” on page 14.
Step 4 Add a new database instance. See “Adding new Informix instances” on page 15.
1|1.1.0|Veritas-NetBackup|1
Step 2 Configure NetBackup for Informix See “About NetBackup for Informix
scripts. scripts” on page 27.
Step 4 Configure permissions for log files on See “About permissions for
UNIX systems NetBackup for Informix log files”
on page 33.
Step 5 Configure the Maximum jobs per See “Configuring the Maximum jobs
client. per client” on page 35.
8 When you have added all the schedules, clients, and backup selections you
need, click OK.
Attribute Description
Policy type Determines the types of clients that can be backed up with the policy. For Informix databases,
select the policy type Informix-ON-Bar.
Keyword phrase For NetBackup for Informix, the Keyword phrase entry is ignored. However, it can be set
using the environment variable INFXBSA_KEYWORD.
Property Description
Type of backup Specifies the type of backup that this schedule can control. The selection list shows only
the backup types that apply to the policy you want to configure.
Schedule type You can schedule an automatic backup in one of the following ways:
■ Frequency
Frequency specifies the period of time that can elapse until the next backup operation
begins on this schedule. For example, assume that the frequency is 7 days and a
successful backup occurs on Wednesday. The next full backup does not occur until the
following Wednesday. Typically, incremental backups have a shorter frequency than full
backups.
■ Calendar
The Calendar option lets you schedule the backup operations that are based on specific
dates, recurring week days, or recurring days of the month.
Configuring NetBackup for Informix 21
About configuring a backup policy for Informix
Property Description
Retention The retention period for an application backup schedule refers to the length of time that
NetBackup keeps backup images. The retention period for an automatic schedule controls
how long NetBackup keeps records of when scheduled backups occurred. For example, if
your database is backed up once every Sunday morning, you should select a retention
period of at least 2 weeks.
The type of schedule you select affects the retention period as follows:
■ Frequency-based scheduling
Set a retention period that is longer than the frequency setting for the schedule. For
example, if the frequency setting is set to one week, set the retention period to be more
than one week. The NetBackup scheduler compares the latest record of the automatic
backup schedule to the frequency of that automatic backup schedule. This comparison
is done to determine whether a backup is due. So if you set the retention period to expire
the record too early, the scheduled backup frequency is unpredictable. However, if you
set the retention period to be longer than necessary, the NetBackup catalog accumulates
unnecessary records.
■ Calendar-based scheduling
The retention period setting is not significant for calendar-based scheduling.
Multiple copies If you want to specify multiple copies of a backup for the policy, configure Multiple copies
on the application backup schedule. If using Snapshot Client, also specify Multiple copies
on the automatic schedule.
Automatic Full Backup An Automatic Full Backup copies all blocks into the backup set. It
skips only the data file blocks that have never been used. Note that
a full backup is not the same as a whole database backup; full is
an indicator that the backup is not incremental.
Note: (Optional) Specify the application backup schedule name in the bp.conf file
on the client.
See “Configuring an additional bp.conf file” on page 32.
Table 3-5 Example settings for a NetBackup for Informix application backup
schedule
Retention 2 weeks
00:08:00 - 22:00:00
Configuring NetBackup for Informix 23
About configuring a backup policy for Informix
Table 3-6 Example settings for NetBackup for Informix automatic backup
schedules
18:00:00 - 22:00:00
Note: If you installed NetBackup on more than one node in the Informix cluster,
you must perform additional configuration.
See “Reviewing the auto-discovered mappings in Host Management”
on page 33.
/usr/openv/netbackup/ext/db_ext/backup.sh
6 Click Add.
7 Choose one of the following:
■ To add another script, repeat step 5 and step 6.
■ If this client is the last script you want to add, click OK.
8 Click OK.
To browse for scripts to add to the backup selections list
1 Ensure that the script resides on the client.
See “Registering authorized locations used by a NetBackup database
script-based policy” on page 58.
2 In the Policy dialog box, click the Backup Selections tab.
To access the Policy dialog box, double-click the policy name in the policies
list in the NetBackup Administration Console.
3 Click New.
4 Click Browse.
5 Navigate to and select the script file, then click OK.
6 Choose one of the following:
■ To add another script, repeat step 4 and step 5.
■ If this client is the last script you want to add, click OK.
7 Click OK.
Configuring NetBackup for Informix 26
About configuring a backup policy for Informix
■ NetBackup installs sample scripts when you install the software; you can modify
these scripts for your own use. Write the scripts to a location outside of the
original installation location. This action ensures that future NetBackup upgrades
do not overwrite your site’s scripts.
See “About NetBackup for Informix scripts” on page 27.
3 Add a schedule.
Provide the following information.
Retention Set the time period that is needed to retain two full backups
of your database.
Start Window Set the time of day when you want backup operations to be
available to the user.
/usr/openv/netbackup/ext/db_ext/informix/scripts
Note: Always specify the correct script when you configure automatic backups or
when you start operations through NetBackup. NetBackup for Informix does not
generate an error if a restore script is used for a backup operation or a backup
script is used for a restore operation.
The NetBackup for Informix installation software includes the following example
scripts:
Configuring NetBackup for Informix 28
About NetBackup for Informix scripts
■ informix_dbspace_list
■ informix_logical_log_backup
■ informix_onbar_backup_of_dbspace1
■ informix_onbar_backup_of_rootdbs
■ informix_onbar_backup_of_rootdbs_and_dbspace1
■ informix_onbar_backup_using_file_list
■ informix_onbar_restore_dbspace1
■ informix_onbar_restore_rootdbs
■ infx_remove_expired_backup
vi informix_onbar_backup_of_rootdbs
Configuring NetBackup for Informix 29
About NetBackup for Informix scripts
#!/bin/sh
# Replace xxxxx below with the extention used for your onconfig file.
ONCONFIG=onconfig.xxxxx
# Replace informix_etc below with the name of the NetBackup server policy
# to be used to back up the $INFORMIXDIR/etc directory.
INFX_ETC_POLICY=informix_etc
export ONCONFIG
echo "exported ONCONFIG"
export INFORMIXDIR
echo "exported INFORMIXDIR"
export INFORMIXSERVER
echo "exported INFORMIXSERVER"
RETURN_STATUS=0
if [ "${INFXBSA_INCR}" = "1" ]
then
# NetBackup has started an incremental backup.
echo "$INFORMIXDIR/bin/onbar -b -L 1 rootdbs"
$INFORMIXDIR/bin/onbar -b -L 1 rootdbs
RETURN_STATUS=$?
else
fi
exit $RETURN_STATUS
The Informix user can set the following variables either in the script or manually
from the command line in the same environment from which onbar is issued:
/informix/bp.conf
After you create a bp.conf file in the Informix home directory, add the following
options to the file and replace the italicized text with the information that pertains
to the client:
BPBACKUP_POLICY=informix_policy
BPBACKUP_SCHED=informix_sched
SERVER=server_name
CLIENT_READ_TIMEOUT=1800
informix policy The name of the Informix-ON-Bar policy that was configured in the
backup policy.
NetBackup uses the bp.conf file in the Informix user’s home directory only for
backups and restores initiated by this Informix user.
■ If the backup policy includes the cluster name (or virtual name)
■ If the NetBackup client is installed on more than one node in the cluster
If the NetBackup Client is only installed on one node, then no mapping is
necessary.
client01.lab04.com client01
client01.lab04.com clustername
client01.lab04.com clustername.lab04.com
client02.lab04.com client02
client02.lab04.com clustername
client02.lab04.com clustername.lab04.com
4 When you finish approving the valid mappings for the hosts, click on the Hosts
tab at the bottom of the Hosts pane.
For hosts client01.lab04.com and client02.lab04.com, you see Mapped
Host Names/IP Addresses that are similar to the following:
5 If you need to add a mapping that NetBackup did not automatically discover,
you can add it manually.
Table 3-7 Example mapped host names for a Informix cluster environment
Cluster with two nodes Physical name of Node 1 Virtual name of Informix server
number_of_streams The number of backup streams between the database server and
NetBackup. Each separate stream starts a new backup job on the client.
number_of_policies The number of policies of any type that can back up this client at the
same time. This number can be greater than one. For example, a client
can be in two policies to back up two different databases. These backup
windows can overlap.
Note: Enter a large enough value for the Maximum jobs per client attribute to
meet the number of jobs that Informix runs. You may need to experiment with
different values at your site.
Level 0 backup (Full) An Informix level 0 backup is a full backup. It includes all the records
in the selected dbspaces and is the only type of backup that allows
a complete restore without performing any recovery steps.
Level 2 backup An Informix level 2 backup backs up the records that changed since
the last Level 1 Backup in the selected dbspaces. NetBackup does
not support this type of backup with an equivalent automatic
schedule. To perform level 2 backups write a script and by keep
track of the previous backup type with the ON-Bar script.
Logical-log backup An Informix logical-log backup backs up the filled logical logs. By
using the Informix ALARMPROGRAM configuration option, these
backups can be started on demand when the logical logs fill.
The sample scripts that NetBackup for Informix installs by default include
parameters to back up the $INFORMIXDIR/etc directory after each full or each
incremental backup.
■ Configure the Informix ALARMPROGRAM to start a logical-log backup as the logs
fill.
If you do not want to wait for log files to fill, you can set up a separate NetBackup
policy and then schedule a full logical-log backup to occur as often as necessary.
Have a good strategy for backing up logical-log files because they are needed
for database recovery.
onbar -l -s
cd $INFORMIXDIR/etc
/usr/openv/netbackup/bin/jbpSA &
5 Use onbar to logically restore the dbspaces that you physically restored.
For example:
onbar -r -l
or group and the permissions. For example, if the service user is svcname and its
group is srvgrp, the file can have permissions of 400. If the file owner is for a
different user and group, the file permissions must allow access to the service user.
For example, 777. Equivalent permission settings must be used in a Windows
environment.
To redirect an Informix restore to a different client
1 Create the following file on the master server:
/usr/openv/netbackup/db/altnames/client_name
For client_name, specify the name of the client that is allowed to perform the
redirected restore. Add the name of the NetBackup for Informix source client
to that file.
2 Back up the logical logs on the NetBackup for Informix source client.
A logical log contains records of all the database activity that occurs between
backups. These records contain all the database transactions that have taken
place after the last backup.
Log into the source client as Informix ownerId and issue the following command:
onbar -b -l
3 If the source client database server is down, salvage the logical logs.
This command backs up any logical logs that have not yet been backed up
and are not corrupted or destroyed.
Log into the source client as Informix ownerId and issue the following command:
onbar -l -s
4 Shut down the Informix database server on both the source client and the
destination client.
Issue one of the following commands:
■ For Informix Dynamic Server:
onmode -ky
5 On the NetBackup for Informix destination client, back up the files that reside
in the $INFORMIXDIR/etc directory to preserve the original configuration. The
following steps overwrite files in this directory.
6 Copy configuration and informational files in the $INFORMIXDIR/etc directory
from the NetBackup for Informix source client to the $INFORMIXDIR/etc directory
on the NetBackup for Informix destination client.
You can use ftp(1) to copy files from the source client to the destination client.
■ Copy the emergency or the backup boot files.
For the Informix Dynamic Server, the emergency boot file is
$INFORMIXDIR/etc/ixbar.servernum.
For the Extended Parallel Server, the backup boot file is
$INFORMIXDIR/etc/Bixbar_hostname.servernum.
For servernum, specify the value of the SERVERNUM configuration parameter
that is specified in the $INFORMIXDIR/etc/$ONCONFIG file.
■ Copy the connectivity information file, $INFORMIXDIR/etc/sqlhosts, which
specifies how the client application finds and connects to an Informix
database server .
■ Copy the database configuration file that the environment variable ONCONFIG
specifies. This file is located in the $INFORMIXDIR/etc directory.
■ Copy the files that the Informix database server creates and updates every
time a dbspace, blobspace, logical-log file, or chunk is added or deleted.
For Informix Dynamic Server, this file is
$INFORMIXDIR/etc/oncfg_servername.servernum
For Extended Parallel Server and for each coserver this file is
$INFORMIXDIR/etc/oncfg_servername.servernum.coserverid
The variables are as follows:
onbar -r -p
onbar -r -l
■ DBSERVERNAME is srcdb
Performing backups and restores of Informix 46
Example restore of an Informix database
■ DBSERVERNAME is destdb
export INFXBSA_SERVER=lion
■ sqlhosts
■ onconfig
■ oncfg_srcdb.6
■ You salvaged the logical logs on camel by using the following command:
onbar -l -s
/usr/openv/netbackup/db/altnames/giraffe
■ sqlhosts
Performing backups and restores of Informix 47
Example restore of an Informix database
■ onconfig
■ oncfg_destdb.0
export INFORMIXSERVER=srcdb
export INFXBSA_CLIENT=camel
For example:
export INFXBSA_SERVER=lion
This step is needed only if the first server that is specified in the bp.conf file
on giraffe is not lion.
8 Browse the file system backups from camel and restore to $INFORMIXDIR/etc
on giraffe.
Restore the following files:
■ ixbar.6
■ sqlhosts
■ onconfig
■ oncfg_destdb.6
onbar -r -p
Performing backups and restores of Informix 48
Example restore of an Informix database
echo $?
onbar -r -l
echo $?
onmode -uky
oninit
4 Make sure the table bar_version in the sysutils database has the correct
value for the bar_version column. The value should be 1.1.0.
5 (Optional) Verify that you are using the correct library.
Perform this step if you use NetBackup for Informix on an IBM AIX platform.
/usr/openv/netbackup/logs/user_ops/dbext/logs
/usr/openv/netbackup/logs/infxbsa
The user_ops and infxbsa directories and any subdirectories should have
777 permissions. They must exist and be accessible for the applications to
operate correctly.
3 Examine the client logs in the following order:
■ The Informix server log. This path is specified in ONCONFIG.
■ OnBAR debug log. This path is specified in ONCONFIG.
/usr/openv/netbackup/logs/user_ops/dbext/logs/6749.0.1115233002
■ Use an editor to open the file in that directory.The following are examples
of file names: log.103105, 103105.00001.log.
■ Use an editor to open the log file and search for the communication progress
file’s name.
For example, search for the string openProgressFile.
The search flags the following lines in the file:
This output tells you that the communication progress file’s name is
6749.0.1115233002.
/usr/openv/netbackup/logs/bpbackup
/usr/openv/netbackup/logs/bpbkar
/usr/openv/netbackup/logs/bphdb
/usr/openv/netbackup/logs/bprestore
/usr/openv/netbackup/logs/tar
/usr/openv/netbackup/logs/infxbsa
For example:
cd /usr/openv/netbackup/logs
mkdir bphdb
2 Verify that the user_ops directory, each of the log directories, and any
subdirectories exist and are accessible for all applications to operate correctly.
See “About permissions for NetBackup for Informix log files” on page 33.
3 Enable logging for the nbpem, nbjm, and nbrb scheduling processes that use
unified logging.
NetBackup writes unified logs to /usr/openv/logs.
You do not need to create log directories for the processes that use unified
logging.
Information on how to use logs and reports is available.
See the NetBackup Troubleshooting Guide.
Troubleshooting 54
About the NetBackup for Informix log files
This log contains debugging information for the bphdb process. bphdb is the
NetBackup database backup binary. It is invoked when an automatic backup
schedule is run. NetBackup for Informix uses this client process for ON-Bar
script execution.
This log contains debugging information and execution status for the NetBackup
for Informix client process.
See “Enabling the debug logs manually” on page 53.
VERBOSE = X
Note: This change may delay detecting problems during subsequent backups.
Consider putting the original value back in place once any restore that requires a
change is complete.
/usr/openv/netbackup/ext/db_ext/informix/scripts/infx_remove_expired_images
When this script runs, it creates files in the /tmp directory. These files are not
removed. Later, they can be used to diagnose any problems that occur.
Appendix A
Register authorized
locations
This appendix includes the following topics:
■ On Windows:
C:\Program Files\Veritas\NetBackup\bin>nbsetconfig
nbsetconfig> DB_SCRIPT_PATH=c:\db_scripts
nbsetconfig> DB_SCRIPT_PATH=e:\oracle\fullbackup\full_rman.sh
nbsetconfig>
<ctrl-Z>
Note: Review the NetBackup Command Reference Guide for options, such
as reading from a text file and remotely setting clients from a NetBackup server
using bpsetconfig. If you have a text file with the script location or authorized
locations listed, nbsetconfig or bpsetconfig can read from that text file. An
entry of DB_SCRIPT_PATH=none does not allow any script to execute on a client.
The none entry is useful if an administrator wants to completely lock down a
server from executing scripts.
Register authorized locations 60
Registering authorized locations used by a NetBackup database script-based policy