KB Logo

TOLIS Group Knowledge Base

Browse KB by category:
Go to KB #:
Glossary
Email   Bookmark



Setting up an Autoloader to work with BRU - Method 2

Views: 12873
Votes: 0
Posted: 26 Jun, 2008

Setting Up BRU to Work With an Autoloader: Method 2

This is Method 1 from the "Using Autoloaders and BRU" Knowledge Base article, which should be read first if you have not already done so.

This method allows BRU to place multiple archives on the same tape.  Instead of ejecting the tape following each command (Method 1), BRU will eject the tape only when the end of the tape has been reached.

Instructions:

These are the two fundamental steps required to properly configure the autoloader:

  1. Get the modified autoloader script and modify to suit the current configuration.
    • Download the script: am2.script.bru.
      (You may need to right-click and choose 'Save As...' or hold the left shift key the left-click the mouse to save)
    • Install the script by running:
    • mv am2.script.bru /bin
      cd /bin
      bru -xv -ua -f am2.script.bru
    • Modify 'unmountcmd.sh' by searching for 'poss_chng'.  All locations that may need changing are tagged with the 'poss_chng' line.
    • You won't need to make any chnages to the 'mountcmd.sh' file.
    • Test your file! Ensure that you have at least two tapes in your autoloader that you can test with.  One needs to be loaded in the drive and the other needs to be in the next slot.  Once you've done this, run the command:
      ./bin/unmountcmd.sh /dev/st0 1 c
      The current tape should be ejected, put back into its slot, and the next tape loaded.  If the tape does not eject, there is a problem with the modifications that were made to the script. Be sure to check all commands in your 'unmountcmd.sh' since the commands may not work on your OS.  Check your 'man' pages.  If the tape does eject but the next tape does not load or fails to load properly, then your script is fine.  The problem in this case is that your autoloader is NOT configured properly for sequential mode.  See your autoloader manual for instructions on the proper setting.

  2. Change the "/etc/brutab", once the above step is done, to reflect the new configuration.
    WARNING: Failure to do 'Step 1' above first could result in the BRU extraction of script files to fail as BRU will be looking for 'mountcmd.sh' and aborting.
    1. Edit (vi, pico, or other text editor) /etc/brutab.
    2. Add two Global Parameters near the beginning just below the existing ones.  These lines ALL begin with "pound-plus" (#+).
      #+MOUNTCMD=/bin/mountcmd.sh
      #+UNMOUNTCMD=/binunmoundcmd.sh
Others in this Category
document Setting up an Autoloader to work with BRU - Method 1
document Disable/Enable Hardware Compression When Using BRU
document Sample BRUTAB Settings
document Important changes made to the 'bruxpat' file declaration in version 17.0.1.4.6 and higher.
document How to use BRU with Autoloaders
» More Articles



RSS
Powered by KnowledgebasePublisher
Page Load Time: 0.027887 seconds / 27.887 milliseconds.
Page File Size: 23259 bytes.