Forum Discussion

BR549's avatar
BR549
Level 4
12 years ago

VTL tape Quick Erase Question

 

I am running a Windows 2008 R2 Enterprise OS with Veritas 6.5.6 x64 installed.  This Veritas Master server is configured with a Physical Tape Library access via Oracle’s LibAttach software and a VTL environment that is directly connected to the Veritas Master server.

 

Since VTL does not automatically release the ‘data’ on expired tapes I need to run a program that will automatically cause the VTL tapes to show no data usage for those tapes located in the Scratch pool.

 

I have created the following script.  However this script includes the physical scratch tapes as well as the VTL scratch tapes in its output.  I would like to limit the output in the scratchlist.txt file to just the VTL tapes in the Scratch pool.  The pertinent volume group for the VTL environment is 000_00001_TLD, robot type is TLD, robot number is 1 and media numbers all begin with the letter Z. 

 

vmquery -pn Scratch -l>c:\scratchlist.txt

for /f %a in (c:\scratchlist.txt) do bplabel -m %a -d hcart -o -p Scratch -host gsslz103 -erase

 

However whenever I try to modify the vmquery statement to include these elements, vmquery –v 000_00001_TLD –rt TLD –rn 1 -pn Scratch -l>c:\scratchlist.txt it results in an error and I get the Usage help page as shown below.

 

Usage: vmquery [-h <EMM_server> | <volume_database_host>,...,

           -h <EMM_server> | <volume_database_host>]

           [-b | -w | -W | -l]

           {

           -a |

           -m <media_id> |

           -v <volume_group> |

           -rn <robot_number> |

           -rt <robot_type> |

           -mt <media_type> |

           -p <pool_number> |

           -pn <pool_name> |

           -vltcid <vault_container_id> |

           -res <robot_type> <robot_number> <robot_control_host>

                <robot_coord1> <robot_coord2> |

           -assignbyid <media_id> <media_type> <pool_number> <status>

                       <assigntime> |

           -deassignbyid <media_id> <pool_number> <status>

 

Any assistance you can provide to help me modify the above statement correctly to just include the VTL tapes.

 

Cordially,

 

Jerry Ellis

  • Working with a co-worker we finally developed a solution that works.  While not as simple as I would like it does work.  Essentially we run a VBS script to create reports for the Scratch and the NetBackup pools.  We remove the Non VTL tapes by keying in on the Tapes starting value, in our case it is V for Veritas and Z for VTL. 

    We run the list of the NetBackup Pool of tapes for a list of the Z Tapes in that pool from the previous day and compare that against the current list of Z Tapes in the scratch pool.  If the same tape number appears in both lists we output that information to a 3rd list and use that list to generate the bplable -erase commands.

    I have attached a zipped copy of our files to this response.

15 Replies

Replies have been turned off for this discussion