This batch script can be used as an example, showing how to increase the capacity of a Virtual Tape Library (VTL) by creating additional media files. The example creates an additional 10 media of 100 gigabytes each.
Below is a sample script that could be used to help automate the nvmakemedia process. Assuming the barcodes for the VTLs are "VTL10xx", and the existing VTL is in C:\TEMP\VTL
By default, NetVault is installed on 64bit Windows in C:\Program Files (x86)\Quest Software\NetVault Backup. Make sure to update the path to nvmakemedia to reflect your local installation.
In this sample script we first create directories numbered 11-20 for additional vtl slots in the specified VTL path.
Then create the .media files in each new slot directory numbered 11-20 with the appropriate barcode and path to the VIrtual media files.
Finally create the Virtual media files for each new piece of media numbered 11-20 with the appropriate barcode
REM Create the directories for the slots:
for %x in (11 12 13 14 15 16 17 18 19 20) do mkdir C:\TEMP\VTL\slots\%x
REM Create the .media files:
for %x in (11 12 13 14 15 16 17 18 19 20) do echo C:\TEMP\VTL\media\VTL10%x> C:\TEMP\VTL\slots\%x\.media
REM Create the Virtual media files:
for %x in (11 12 13 14 15 16 17 18 19 20) do "C:\Program Files (x86)\Quest Software\NetVault Backup\util\nvmakemedia" 100g mediafiles C:\TEMP\VTL\media\VTL10%x
Note:
It is recommeneded to stop NetVault: Backup while expanding VTLs. If this is not possible, when finished, perform an Open/Close door on the VTL in order to allow for the new slots and media to be picked up and displayed in Device Management.
BakBone SFDC Solution Number: 00004637