Launching Two Streams - NetBackup

Teradata Extension for NetBackup Administrator Guide

Product
NetBackup
Release Number
16.20
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-05-02
dita:mapPath
bby1489436039204.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2400
Product Category
Teradata Tools and Utilities

The following procedure launches two streams, each from a different media server, to a single media server in parallel.

  1. Create the backup.
  2. Use NetBackup to import images from all tapes used in the archive.
  3. Modify runarcnb.bat to specify the two streams:

    Runarcnb.bat Linux Example

    This example specifies the correct client for the stream used in the archive.

    # For analyze only- overriding client.  Comment out for normal use.
    # We may have 2 streams that originate from two different
    # TARA clients.
    
    grep DSTREAM0001 $1.dflt >/dev/null 2>&1
    if [ "$?" = "0"]; then
        export ARCENVX="IOPARM='SERVER=barlnx1 CLIENT=bsrv3'"
    else
        export ARCENVX="IOPARM='SERVER=barlnx1 CLIENT=bsrv4'"
    fi
  4. Create and run an Analyze script with multi-stream capabilities. For more details, see States for Archive Jobs. For example:
    JOB DK_anlz_bsrv3_2str
    SESSIONS 1
    MULTISTREAM 2
    STREAM barlnx1
    STREAM barlnx1
    STREAMNAME DK_Archive_gcperf_syscal_multistream_47e16ef40000000c_DSTREAM0001
    STREAMNAME DK_Archive_gcperf_syscal_multistream_47e16ef40000000c_DSTREAM0002
    COMMANDLINE CSNAME=ASCII CHECKSUM=2 VB3
    TDPID gcperf
    USERID dbc
    OTB NetBackup
    NBUPOLICY TD_pol1
    NBUPOLICY TD_pol2
    SCRIPT Analyze
    LOGON $LOGON;
    ANALYZE ALL, VALIDATE, DISPLAY LONG,
    FILE=ARCHIVE;
    LOGOFF;
    ENDSCRIPT
  5. Run the restore or copy script. For example:
    JOB DK_copy_syscal_2str
    SESSIONS 4
    MULTISTREAM 2
    STREAM barlnx1
    STREAM barlnx1
    COMMANDLINE CSNAME=ASCII CHECKSUM=2
    TDPID gcperf
    USERID dbc
    SOURCEUID 47e04fea00000017
    SCRIPT Restore
    LOGON $LOGON;
    COPY DATA TABLES
          (mm_barrm.CALDATES) (FROM (SYS_CALENDAR.CALDATES)),
    RELEASE LOCK,
    FILE=ARCHIVE;
    LOGOFF;
    ENDSCRIPT 

    Do not modify runarcnb.bat.