From: Vamegh H. <va...@gm...> - 2008-02-09 00:55:40
|
Hello, I have written a couple of scripts around bacula. The first is a tape cleaner of sorts.. This script has no error checking whatsoever.. It grabs every tape library connected to a server and blanks all tapes using all available drives. If you want to blank all libraries and all tapes as quickly as possible, This script is for you, its quick and dirty it threads off per library and per drive. You need lsscsi installed before running this and mt-st and mtx. I wrote it to blank all tapes after labelling them during test runs dealing with 2 libraries with 40 tapes each it aint fun to try erasing all of the labels before stopping test runs. If I get the Time I will update this with some proper error checking and will also update it to ask before erasing a library and probably to be able to select a subset of the tapes rather than everything.. Should make it a pretty decent tool. (Its been tested on Qualstar 4440 series with odd number of tape drives 2 libraries connected to 1 sd total of 7 physical tape drives sleep may need to be slightly changed depending on the speed of your drives ) The second two scripts allow every other day / weekofmonth / weekofyear / month / year rotation. Its set to allow even rotations to occur, it grabs localtime so doesnt require any arguments to be passed to it. Basically thats it, some one else might find these useful Ive also written some automated rpm generators if anyone is interested. downloads and patches and adds configs etc properly ( splits off into bacula-dir, bacula-sd, bacula-fd tested on centos 5 / rhel 5) Thanks, Vamegh |