The instructions provided in this document by Data Domain are for customer
convenience and are not warranted or supported by Data Domain. Data Domain
expects users to customize installation of third-party software for use at a particular
site, but Data Domain is not responsible for the usability of third-party software after
installation.
Copyright Data Domain, Inc. 2005 - 2007
April 16, 2008
1 of 20
Table of Contents
1.
2.
Introduction................................................................................................................. 3
Tuning ......................................................................................................................... 3
2.1.
NetBackup 6.5 media server nfs mount option requirement ........................... 3
2.2.
OST duplication via gui on NetBackup 6.5 ...................................................... 4
2.3.
General for NetBackup with UNIX-Based Systems........................................... 4
2.4.
Memory on UNIX-Based Systems ..................................................................... 6
2.4.1.
Systems with 1 - 1.5 GB of RAM:.............................................................. 6
2.4.2.
Systems with 2 GB or more of RAM: ........................................................ 6
2.5.
Solaris Backup Servers ....................................................................................... 7
2.5.1.
Systems with about 1 - 1.5 GB of RAM:.................................................... 8
2.5.2.
Systems with 2 GB or more of RAM: ........................................................ 9
2.6.
HP-UX Backup Servers ...................................................................................... 9
2.7.
AIX Backup Servers ........................................................................................... 9
2.8.
Linux Backup Servers....................................................................................... 10
3. Replication ................................................................................................................ 11
4. Replication and Disaster Recovery........................................................................... 11
4.1.
Recovery procedures......................................................................................... 12
4.2.
UNIX Platforms ................................................................................................ 14
4.2.1.
Restore from a Replica using the Primary Media Server ......................... 15
4.2.2.
Restore from an Originator using the Secondary Media Server ............... 15
4.2.3.
Restore from a Replica using the Secondary Media Server ..................... 15
4.2.4.
Setup for Restoring a Catalog to a UNIX Media Server .......................... 16
4.2.5.
Restore a Catalog from a Restorer to a UNIX Media Server ................... 16
4.3.
Windows Platforms........................................................................................... 17
4.3.1.
Restore from a Replica using the Primary Media Server ......................... 17
4.3.2.
Restore from an Originator using the Secondary Media Server ............... 17
4.3.3.
Restore from a Replica using the Secondary Media Server ..................... 18
4.3.4.
Setup for Restoring a Catalog to a Windows Media Server ..................... 18
4.3.5.
Restore a Catalog from a Restorer to a Windows Media Server .............. 19
5. Replication and Vaulting .......................................................................................... 19
2 of 20
1. Introduction
This technical note provides general information for NetBackup 6.5 media server nfs
mounting.
2. Tuning
2.1.
When using NBU 6.5.0, the following nfs mount option must be used on the media server
to mount the Data Domain DDR:
If the nfs mount option is not used, the backup will fail and the following log lines will be
generated in bpbrm log file found at /usr/openv/netbackup/logs on the NBU media server.
20:25:47.344 [13640] <2> vnet_vnetd_connect_forward_socket_begin:
vnet_vnetd.c.560: hash_str1: c44ef5e741c9d880b3132135a89d684b
20:25:47.464 [13640] <2> bpbrm Exit: OUT_SOCK from bpcr = 6
20:25:47.464 [13640] <2> bpbrm Exit: IN_SOCK from bpcr = 8
20:25:47.505 [13640] <2> bpcr_get_version_rqst: bpcd version: 06500000
20:25:47.555 [13640] <2> bpcr_get_version_rqst: bpcd version: 06500000
20:25:47.655 [13640] <2> bpcr_get_version_rqst: bpcd version: 06500000
20:25:47.707 [13640] <2> bpbrm Exit: client backup EXIT STATUS 14: file
write failed
3 of 20
2.2.
When using NBU 6.5.x gui for duplication, the Media ID must be chosen rather than
Disk Type, as shown in the screen shot below.
4 of 20
For the disk storage units used with a restorer, set Maximum concurrent jobs to a
large number, such as 10. Leave the Maximum fragment size at the default.
You can view low-level operations of disk-based backups, such as the performance of
individual file writes and the utilization of the buffers set up in the
SIZE_DATA_BUFFERS and NUMBER_DATA_BUFFERS files. To view the
operations, create an area for a bpdm log:
In NetBackup, set the bpdm log level to a nonzero value (such as 5).
The restorer can attach to a backup server with a crossover cable for Gigabit speeds.
If using a crossover cable with a Gigabit network, consider using a private subnet.
Check with your local network administrator for subnet addresses.
NetBackup software automatically pauses when a backup device runs out of space for
the backup image. Data Domain recommends modifying the NetBackup script that
causes the pause so that the script sends email.
The script that creates a pause is:
/usr/openv/netbackup/bin/diskfull_notify
The line to modify and uncomment is the last line in the following sequence. Replace
someone_who_cares with a valid email address:
# might want to mail this info to someone
#
# cat $OUTF | mail -s "NetBackup disk full" someone_who_
cares
For automating tape-based backups after a disk backup completes, use the built-in
NetBackup hooks. The bpend_notify script, located in
/usr/openv/netbackup/bin/goodies, can be modified to kick-off tape
duplication once a backup successfully completes. The script has several parameters
passed to it, including: client name, policy name, schedule name, schedule type, and
5 of 20
A restorer makes it possible for individual users to initiate backups and restores. To
enable user-initiated backups and restores, create a user backup schedule within a
policy that points to the restorer as a disk storage unit.
Check for the following two text files in the directory /opt/openv/
netbackup/db/config. If either or both do not exist, create the files and enter
the values given below. If the files do exist, make sure that the values in the files are
at least as high as the values given below. The files and values are:
Note that the files are used globally by NetBackup version 4.5 and earlier for tape and
disk drives. The settings for disk degrade performance with tape drives.
Using NetBackup version 5 and later:
Check for the following two text files in the directory /opt/openv/
netbackup/db/config. If either or both do not exist, create the files and enter
the values given below. If the files do exist, make sure that the values in the files are
at least as high as the values given below. Both files affect only disk drives, not tapes.
The files and values are:
6 of 20
Check for the following two text files in the directory /opt/openv/
netbackup/db/config. If either or both do not exist, create the files and enter
the values given below. If the files do exist, make sure that the values in the files are
at least as high as the values given below. The files and values are:
Note that the files are used globally by NetBackup version 4 and below for tape and
disk drives. The files degrade performance with tape drives.
Using NetBackup version 5 and later:
Check for the following two text files in the directory /opt/openv/
netbackup/db/config. If either or both do not exist, create the files and enter
the values given below. If the files do exist, make sure that the values in the files are
at least as high as the values given below. Both files affect only disk drives, not tapes.
The files and values are:
2.5.
Note: When using NBU 6.5.0., for Solaris use -F and llock, but otherwise it's like the
directions under Linux Backup Servers.
7 of 20
msgsys:msginfo_msgmnb=65536
msgsys:msginfo_msgtql=500
semsys:seminfo_semmni=300
semsys:seminfo_semmns=300
semsys:seminfo_semmsl=300
semsys:seminfo_semmnu=600
shmsys:shminfo_shmmax=10000000
shmsys:shminfo_shmmin=1
shmsys:shminfo_shmmni=100
shmsys:shminfo_shmseg=10
8 of 20
2.6.
msgsys:msginfo_msgmnb=65536
msgsys:msginfo_msgtql=500
semsys:seminfo_semmni=1580
semsys:seminfo_semmns=3780
semsys:seminfo_semmsl=1580
semsys:seminfo_semmnu=600
shmsys:shminfo_shmmax=4294967295
shmsys:shminfo_shmmin=1
shmsys:shminfo_shmmni=1380
shmsys:shminfo_shmseg=1290
To set the sizes immediately, enter the following two commands on the HP-UX
server and then remount the restorer NFS share to enable the values:
ndd -set /dev/tcp tcp_recv_hiwater_def 262144
ndd -set /dev/tcp tcp_xmit_hiwater_def 262144
To make the changes persistent over system reboots, create a startup script that runs
before the NFS automount. The numbering in the script name depends on how startup
scripts are set up on your system, but as an example: /sbin/rc3.d/S99dd. Enter
the following two lines in the script:
ndd -set /dev/tcp tcp_recv_hiwater_def 262144
ndd -set /dev/tcp tcp_xmit_hiwater_def 262144
2.7.
Note: When using NBU 6.5.0., for AIX use the llock option.
When mounting restorer directories on an AIX 5.2 client that uses NetBackup 6.0, Data
Domain finds that the following options lead to successful backups. Use a mount
command similar to:
mount -V nfs -o llock,intr,hard,rsize=32768,wsize=32768,
proto=tcp,combehind,timeo=600,retrans=2 192.111.8.2:/ddvar
/dd/ddvar
9 of 20
Note: When using NBU 6.5.0., for Linux use the nolock option.
A Linux NetBackup Media or Master Server needs to mount restorer directories using
NFS. On the backup server:
Add the following lines to the file /etc/fstab. The lines mount the directories at
every reboot.
restorer:/backup /dd/rstr01/backup nfs hard,intr,vers=3,
tcp,rsize=32768,wsize=32768,bg 1 1
restorer:/ddvar /dd/rstr01/ddvar nfs hard,intr,vers=3,
tcp,rsize=32768,wsize=32768,bg 1 1
For systems with at least 2 GB of physical memory, add the following lines to the file
/etc/rc.d/rc.local. The lines increase the amount of shared memory
available to NetBackup.
echo 536870912 > /proc/sys/kernel/shmmax
echo 536870912 > /proc/sys/kernel/shmall
Data Domain strongly recommends creating one or more subdirectories for different
types of data under the restorer's mounted file system of /backup. You can then
easily display and compare compression for different types of data with the
filesys show compression command and a target subdirectory. Examples of
subdirectories are:
/dd/rstr01/backup/oracle
/dd/rstr01/backup/exchange
10 of 20
3. Replication
For setting up replication between two restorers, regardless of the backup software that
communicates with the restorers, see the Replication chapter of the Data Domain
Restorer User Guide. A section of the chapter, with the heading Procedure: Set Up and
Start Replication, steps through the process. The rest of the chapter gives details about
administering replication between the two restorers.
When using directory replication with NetBackup: As a best practice, use the same path
for the source and destination data. NetBackup looks for the same path on the destination
restorer as was used on the source restorer when doing a restore or vault-to-tape operation
from the destination restorer. For example, when setting up the source and destination
pair:
replication add source dir://hostA/backup/oracle
destination dir:/hostB/backup/oracle
For details about replication and disaster recovery with NetBackup, see the next section
of this document. For details about replication and vaulting, see the Replication and
Vaulting section at the end of this document.
11 of 20
For recovery from the loss of the originator restorer, see "Restore from a Replica
using the Primary Media Server" on page 15 for NetBackup on UNIX and page 17 for
NetBackup on Windows. Also see Figure 2.
For recovery from the loss of the primary media server see "Restore from an
Originator using the Secondary Media Server" on page 15 for NetBackup on UNIX
and on page 17 for NetBackup on Windows. Also see Figure 3.
For recovery from the loss of the primary media server and the originator restorer, see
"Restore from a Replica using the Secondary Media Server" on page 15 for
NetBackup on UNIX and on page 18 for NetBackup on Windows. Also see Figure 4.
12 of 20
Figure 2 shows communications between media servers and restorer when the primary
media server needs to restore data from the replica restorer.
Figure 2: Originator restorer not available
Figure 3 shows communications between media servers and restorer when the secondary
media server needs to restore data from the originator restorer.
Figure 3: Primary media server not available, recover from the originator
13 of 20
Figure 4 shows communications between media servers and restorer when the secondary
media server needs to restore data from the replica restorer.
Figure 4: Primary media server and originator not available
14 of 20
15 of 20
To restore data through a secondary media server, the catalog from each backup must be
copied to the originator restorer after each backup. A restorer replication pair
automatically moves a copy of any data on the originator restorer to the replica restorer.
Catalogs copied to the originator are then available from the replica. Also, a policy must
exist on each media server to allow importing a catalog. See "Setup for Restoring a
Catalog" on page 16.
1. Move catalogs from the replica restorer to the secondary media server. See "Restore a
Catalog from a Restorer" on page 16.
2. From the secondary media server, run a standard restore operation.
3. Use the VERITAS Activity Monitor to verify that the restore completes.
4.2.4. Setup for Restoring a Catalog to a UNIX Media Server
To set up a restorer replication pair that allows restoring a NetBackup catalog from a
restorer to a media server:
1. Create a policy named catarc. The policy must exist on the media servers for both
restorers in a replication pair.
Set the policy for user backup.
Make the policy inactive.
Point the policy to the /opt/openv/netbackup/db/images/ directory
under the Files tab.
2. After each backup, copy the DB (catalog) archive files from the media server to the
originator mount point. The DB archive files on a media server are located in
/opt/openv/netbackup/db/images/.
4.2.5. Restore a Catalog from a Restorer to a UNIX Media Server
To recover a catalog from a restorer:
1. If the restorer is a replica, run the command replication break.
2. Copy the catalog archive file from the restorer mount point back to its original
directory on the target media server: /opt/openv/netbackup/db/images/.
3. From the media server command line interface run the bpcatlist command piped
through the bpcatres command (both located in the NetBackup installation
directory). The following is a simple example. Note that the commands have
numerous options not used in the example. See the NetBackup command descriptions
for all possible command options.
16 of 20
17 of 20
18 of 20
2. After each backup, copy the DB (catalog) archive files from the media server to the
originator. The DB archive files on a media server are located in install-path\
openv\netbackup\db\images\.
4.3.5. Restore a Catalog from a Restorer to a Windows Media Server
To recover a catalog from a restorer:
1. If the restorer is a replica, run the command replication break on the restorer.
2. Copy the catalog archive file from the restorer mount point back to its original folder
on the target media server: install-path\openv\netbackup\db\images\
client-name.
3. From a command prompt window on the media server, run the bpcatlist
command piped through the bpcatres command (both located in: installpath\openv\netbackup\bin\admincmd\). The following is a simple
example. See the NetBackup command descriptions for all possible command
options.
bpcatlist -policy policy_name -date date(s)_of_files_to
_restore | bpcatres
The policy_name is the name of the policy that created the catalog, such as a policy
named daily. The bpcatres command uses the catarc policy to file the location of
the catalog archive file (ending in .f). The catalog archive file has a pointer to the
location of the image file that is on the restorer.
When vaulting from an originator restorer, do a standard vaulting operation using the
originator as a standard disk device.
19 of 20
Wait for the amount of time given in the Replica lag line.
Run a normal vault operation from the media server that mounts the replica
restorer.
For example, if a backup completes at 13:50, wait until 14:00 and then run the
replication status command. If the value in the Replica lag line is 30
minutes, wait until 14:30 to run the vault operation.
20 of 20