VERITAS NetBackup Media Management
Powered by pearl
Document Owner : MuthuKumar Vasuganapathy
Version : Ver 1.0
CONTENTS
1. CHALLENGES
2. TOOL ENVIRONMENT
3. TOOL SOURCE LOCATION
4. HOW IT WORKS
5. COMMAND USED
6. TOOL SOURCE LOCATION
7. PROCEDURE TO DEPLOY THE TOOL
I. Challenge:
The explosive growth of data has significantly increased server backup requirements and threatened backup window and tape
requirement, which could have a serious impact on data availability in case of disaster recovery if not properly addressed.
By paying attention to key metrics such as the ratio of data on tape to data on disk and the amount of data backed up for
the day , administrators can quickly identify inefficiencies in backup .Most backup administrators try to cover for backup
lapses by over-protecting their environments. Daily full backups, duplicate tape copies, and making table space, export,
and whole-system backups may appear to be a prudent approach to data protection; however, this just leads to escalating
costs and oversized hardware requirements. A truly conservative approach balances data protection with cost, uses data
classification to dictate protection, and avoids wasteful complexity.
This tool able to bring forward media requirements and media purchases and dramatically reduce off-site tape storage
requirements. It is also critical to watch for unexpected spikes in tape requirement
II. Tool Environment :
Perl script
Windows batch script
III.How it works
The logic behind the tape forecasting done by analyzing the historical .
The main concept is to run the scheduler.bat script that queries the NetBackup catalog
for backup statistics and stores that information in a flat .csv file database.
Commands Used:
Bpimagelist
Bperror
Bpmedialist
Available_media
STEP 1:
==========
III . Procedure to Deploy the tool
Note: Run the command from the NBU master server
c:\tapemgt\tape_mgt_exe>dir
Directory of c:\tapemgt\tape_mgt_exe
10/28/2010 11:21 AM <DIR> .
10/28/2010 11:16 AM <DIR> ..
10/28/2010 07:43 AM 518 smtp
10/13/2010 04:48 AM 1,857,443 data_collector_batch.exe
02/25/2007 12:06 PM 115,200 blat.exe
10/13/2010 04:37 AM 1,857,200 getnbu_path_registry.exe
10/28/2010 06:47 AM 2,634,927 tapemgt_run.exe
5 File(s) 6,465,288 bytes
2 Dir(s) 246,653,861,888 bytes free
STEP 2:
========
4.Execute getnbu_path_registry.exe which create pathx.bat
c:\tapemgt\tape_mgt_exe> getnbu_path_registry.exe
c:\tapemgt\tape_mgt_exe> type pathx.bat
check fot the below entries
reg query HKLM\SOFTWARE\Veritas\NetBackup\CurrentVersion /v "INSTALLDIR" 1>nbupath
5. run pathx.bat and check nbupath file have valid data ?INSTALLDIR REG_SZ C:\Program Files\Veritas\?
c:\tapemgt\tape_mgt_exe> type nbupath
HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion
INSTALLDIR REG_SZ C:\Program Files\Veritas\
Note : this will report netbackup path from registry to the nbupath file
Step 3:
========
6. run data_collector_batch.exe. which create run.bat
c:\tapemgt\tape_mgt_exe>data_collector_batch.exe
C:\Program Files\Veritas\NetBackup\bin\admincmd\bpimagelist -hoursago 1440 > imgsrc
C:\Program Files\Veritas\NetBackup\bin\admincmd\bperror > errsrc
C:\Program Files\Veritas\NetBackup\bin\admincmd\ -L > bpmedialist-L
C:\Program Files\Veritas\NetBackup\bin\goodies\available_media > available_med
Initial setup done??..
Step 4:
========
7. Put the tapemgt_run.exe to windows task manager and schedule to run every day at 9:00 O?clock localtime
c:\tapemgt\tape_mgt_exe>at 06:00 /every:M,T,W,Th,F,S,Su c:\tapemgt\tape_mgt_exe\tapemgt_run.exe