HP 12000 HP VLS Solutions Guide Design Guidelines for Virtual Library Systems - Page 141

NetBackup Import Example Script, IBM TSM, IBM TSM Application Overview

Page 141 highlights

• Multistreaming SQL Server: For large SQL Server databases with more than one file group and more than one data file per file group, configure the backup to create one backup set per database data file (for example, single stripe per data file) for optimal deduplication. • Different backup job names for the same data: You should not have different group names for backing up the same data or they will not deduplicate against each other. Different job names could be due to having different retention times for the different backup types (for example, different policy names for full backups vs. incremental backups or different names for weekly full backups vs. monthly full backups), but a single policy can also achieve this. NetBackup Import Example Script The following section details a script to perform the tape import commands for Symantec NetBackup. The input to the script is the ISV Import email report (containing a list of cartridges by /barcode/library/slot that were successfully replicated and thus are ready for import). This example uses a Linux server client which contains the Email Processing Example Script) and has CLI access to the NetBackup CLI. The virtual library on the VLS target device has been presented to NetBackup over Fibre Channel and configured in NetBackup as a tape library with tape drives. To perform the import you must define the target virtual library in NetBackup terms with a robot type and robot number. For example, create a libmap_filecontaining entries with the library serial number, library type, and library number: DEC06150U7~TLD~2 The actual script would process the cartridge list from stdin (identified by the "ISV" tag at the beginning of the line) and use the NetBackup CLI to trigger a tape import on the specified library. For example: #!/bin/bash #set -x #read from stdin CARTLIST=`grep ISV~ /dev/stdin` for CART in $CARTLIST do BARCODE=`echo $CART | awk -F"~" '{print $2}'` LIBSERIAL=`echo $CART | awk -F"~" '{print $3}'` BCSLOT=`echo $CART | awk -F"~" '{print $4}'` ROB_TYPE=`grep $LIBSERIAL libmap_file | awk -F"~" '{print $2}'` ROB_NUM=`grep $LIBSERIAL libmap_file | awk -F"~" '{print $3}'` vmupdate -rt $ROB_TYPE -rn $ROB_NUM bpmedia -unfreeze -m $BARCODE bpmedia -unsuspend -m $BARCODE bpexpdate -d 0 -force -m $BARCODE bpimport -create_db_info -id $BARCODE & done wait IBM TSM This section includes both general and deduplication guidelines as well as other useful information for IBM TSM. IBM TSM Application Overview Figure 61 (page 142) shows an overview of TSM (Tivoli Storage Manager) LAN-based backups that incorporate virtual libraries. The steps are described below. IBM TSM 141

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160

Multistreaming SQL Server: For large SQL Server databases with more than one file group
and more than one data file per file group, configure the backup to create one backup set
per database data file (for example, single stripe per data file) for optimal deduplication.
Different backup job names for the same data: You should not have different group names
for backing up the same data or they will not deduplicate against each other. Different job
names could be due to having different retention times for the different backup types (for
example, different policy names for full backups vs. incremental backups or different names
for weekly full backups vs. monthly full backups), but a single policy can also achieve this.
NetBackup Import Example Script
The following section details a script to perform the tape import commands for Symantec NetBackup.
The input to the script is the ISV Import email report (containing a list of cartridges by
/barcode/library/slot that were successfully replicated and thus are ready for import). This example
uses a Linux server client which contains the
Email Processing Example Script
) and has CLI access
to the NetBackup CLI. The virtual library on the VLS target device has been presented to NetBackup
over Fibre Channel and configured in NetBackup as a tape library with tape drives. To perform
the import you must define the target virtual library in NetBackup terms with a robot type and robot
number. For example, create a
libmap_file
containing entries with the library serial number,
library type, and library number:
DEC06150U7~TLD~2
The actual script would process the cartridge list from
stdin
(identified by the “ISV” tag at the
beginning of the line) and use the NetBackup CLI to trigger a tape import on the specified library.
For example:
#!/bin/bash
#set -x
#read from stdin
CARTLIST=`grep ISV~ /dev/stdin`
for CART in $CARTLIST
do
BARCODE=`echo $CART | awk -F"~" '{print $2}'`
LIBSERIAL=`echo $CART | awk -F"~" '{print $3}'`
BCSLOT=`echo $CART | awk -F"~" '{print $4}'`
ROB_TYPE=`grep $LIBSERIAL libmap_file | awk -F"~" '{print $2}'`
ROB_NUM=`grep $LIBSERIAL libmap_file | awk -F"~" '{print $3}'`
vmupdate -rt $ROB_TYPE -rn $ROB_NUM
bpmedia -unfreeze -m $BARCODE
bpmedia -unsuspend -m $BARCODE
bpexpdate -d 0 -force -m $BARCODE
bpimport -create_db_info -id $BARCODE &
done
wait
IBM TSM
This section includes both general and deduplication guidelines as well as other useful information
for IBM TSM.
IBM TSM Application Overview
Figure 61 (page 142)
shows an overview of TSM (Tivoli Storage Manager) LAN-based backups
that incorporate virtual libraries. The steps are described below.
IBM TSM
141