Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: sme server list on March 15, 2003, 11:19:21 AM

Title: exabyte (ecrix) vxa-1 tape drive install setup compatibility
Post by: sme server list on March 15, 2003, 11:19:21 AM
anyone setup and using a scsi or ide, external or internal vxa-1 tape drive connected to the sme server?

we have a external scsi and would like to hook it up to ours as backup over the network doesnt allow a full backup, including system and email and such.

here's ide instructions which i will take a deeper look at:
http://myezserver.com/downloads/mitel/howto/idetape-howto.html

How to install an IDE Tape drive on e-smith 4.x/SME 5.x
--------------------------------------------------------------------------------
Problem:
You need an inexpensive, easy to use, tape backup solution for your e-smith server and gateway.

Recommended Solution:
IDE TBU Hardware:
Seagate STT220000A Hornet 10/20GB IDE Tape Drive (highly recommended)
Ecrix VXA-1 33/66GB IDE Tape Drive

Step 1- Hardware Set-up:
Place your hard drive(s) on IDE0 connected to an 80 wire, 40 pin UDMA IDE cable.  Connect your tape drive and CD-ROM on IDE1 using a standard 40 pin IDE cable.

Step 2 - Using SSH:
Follow your server's manual and use an SSH client to connect to the server command line.  Some good SSH clients are puTTY, MindTerm or TeraTermSSH.

Step 3 - Testing your tape drive:
To test your tape drive issue the command:
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 512 bytes. Density code 0x47 (unknown to this mt).
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN
 
Step 4 - Performing a backup/restore:
See How to use flexbackup
http://myezserver.com/downloads/mitel/howto/flexbackup-howto.html

How-To use the flexbackup tape program
--------------------------------------------------------------------------------
Using the e-smith-manager's Backup or restore panel you may set-up your e-smith server to perform a scheduled daily full backup. Also, under the Backup or restore panel you may restore your e-smith server and gateway, configuration and user data files from a backup tape.

The command line must be used if you want to restore the entire tape or individual files. This How-To guide will assist you in performing the command line functions.  
--------------------------------------------------------------------------------
flexbackup --help

  flexbackup -help                : this message
  flexbackup -fs all              : backup all filesystems, level 0
  flexbackup -fs              : backup filesystem , level 0
  flexbackup -fs all -level   : backup all filesystems, level n
  flexbackup -fs -level   : backup filesystem , level n
  flexbackup -list                : list files in archive at current
                                    tape position
  flexbackup -extract             : extract all files from current tape
                                    position into your current working directory
  flexbackup -extract -files  : restore the files listed in file
                                    from current tape position into your
                                    current working directory
  flexbackup -compare             : compare archive at current tape position
                                    with the files in your current directory
  flexbackup -restore             : as above, but interactive restore
                                    (dump type only for now)
  flexbackup [operation] file     : if archiving to files rather than a device,
                                    list/extract/compare/restore options take
                                    a filename argument
  flexbackup [operation] -num : read file number n from tape
  flexbackup -toc                 : list this tape's table of contents
  flexbackup -toc all             : list all known table of contents
  flexbackup -toc           : list table of contents for tape key
  flexbackup -toc -delete   : force deletion of entire specified tape index
  flexbackup -toc -dfile n  : force deletion of specified tape/filenumber
  flexbackup [opt] -c      : use instead of /etc/flexbackup.conf
                                    for configuration
  flexbackup [opt] -type      : override $type from config file
  flexbackup [opt] -compress  : override $compress from config file
  flexbackup -fs all -noreten     : don't retension for level 0 "all" backups
  flexbackup -fs all -noerase     : don't rewind/erase for level 0 "all" backups
  flexbackup -fs -erase       : force a rewind/erase before backup
  flexbackup -fs -norewind    : don't rewind tape after a single backup
  flexbackup [operation] -reten   : force a retension before read
  flexbackup -newtape             : erase & create new index key (but no backup)
  flexbackup [opt] -n             : don't run actual dump or mt commands
  flexbackup [opt] -d 'var=val'   : override config file setting of $var
  flexbackup -version             : show version
   
How to perform a full backup
To perform a full backup, you may use the e-smith-manager to schedule a backup session. Alternately, to execute an immediate backup you may use the command script:

   . /sbin/e-smith/backup
NOTE: Do not run 'flexbackup -fs all' to perform a backup. The script /sbin/e-smith/backup is preferable as it performs many additional functions required to completely backup an e-smith server.
How to set flexbackup to always perform an erase

/sbin/e-smith/db configuration setprop flexbackup erase_rewind_only false
/sbin/e-smith/signal-event console-save

This will set flexbackup to erase the tape prior to running the backup.  This is known to help some hardware configurations where i/o errors are encountered.

How to list and view the contents of a tape

First let's create a working directory /root/flexbackup with the following command:

   mkdir /root/flexbackup
To list and view the contents of a tape you may issue the commands shown below:

   cd /root/flexbackup
   /bin/mt -f /dev/nst0 rewind
   /bin/mt -f /dev/nst0 fsf 1
   /usr/bin/flexbackup -list > /dev/null
   /bin/ls -l /root/flexbackup/flexbackup.list.log
   /bin/mt -f /dev/nst0 rewind
   /usr/bin/pico /root/flexbackup/flexbackup.list.log
Alternately you could create a script including these commands and launch the script from the command line. As an example if you created the script named '/root/flexbackup/flexbackup-list' you would launch the script by entering:
   . /root/flexbackup/flexbackup-list
How to perform a full -extract  

To perform a full restore you may issue the commands shown below:

   cd /
   /bin/mt -f /dev/nst0 rewind
   /bin/mt -f /dev/nst0 fsf 1
   /usr/bin/flexbackup -extract
   /bin/mt -f /dev/nst0 rewind
Alternately you could create a script including these commands and launch the script from the command line. As an example if you created the script named '/root/flexbackup/flexbackup-extract' you would launch the script by entering:

   . /root/flexbackup/flexbackup-extract
How to perform a selective -extract

To perform a command line restore, create a file which contains a list of all files/directories to be restored. As an example, lets assume you have an ibay name 'data' and subdirectories named '/acct/1999' and /acct/2000 that you want to restore. You could create a file named '/root/flexbackup/extract-list' which contains the following lines:

   /home/e-smith/files/ibays/data/files/acct/1999
   /home/e-smith/files/ibays/data/files/acct/2000
To perform the restore you would issue the command:

   cd /
   /bin/mt -f /dev/nst0 rewind
   /bin/mt -f /dev/nst0 fsf 1
   /usr/bin/flexbackup -extract -files /root/flexbackup/extract-list
   /bin/mt -f /dev/nst0 rewind
NOTE: The first line cd / will restore your files to their original locations.  To restore to the current directory, remove the 'cd /' entry.

Alternately you could create a script including these commands and launch the script from the command line. As an example if you created the script named '/root/flexbackup/flexbackup-extract-list' you would launch the script by entering:

   . /root/flexbackup/flexbackup-extract-list
How to perform an interactive restore

To perform an interactive restore you may issue the commands shown below:

   cd /
   /bin/mt -f /dev/nst0 rewind
   /bin/mt -f /dev/nst0 fsf 1
   /usr/bin/flexbackup -restore
   /bin/mt -f /dev/nst0 rewind
Alternately you could create a script including these commands and launch the script from the command line. As an example if you created the script named '/root/flexbackup/flexbackup-restore' you would launch the script by entering:

   . /root/flexbackup/flexbackup-restore
NOTE: The first line cd / will restore your files to their original locations.  To restore to the current directory, remove the 'cd /' entry.  Remember the restore includes the full path.  As an example if your current directory is /root and you restore /home/e-smith/files/ibays... the restore will be found under /root/home/e-smith/files/ibays...

Available commands when running flexbackup - restore in interactive mode are:

   ls [arg] - list directory
   cd arg - change directory
   pwd - print current directory
   add [arg] - add arg' to list of files to be extracted
   delete [arg] - delete arg' from list of files to be extracted
   extract - extract requested files
   setmodes - set modes of requested directories
   quit - immediately exit program
   what - list dump header information
   verbose - toggle verbose flag (useful with ls'')
   prompt - toggle the prompt display
   help or ?' - print this list
   If no arg' is supplied, the current directory is used
--------------------------------------------------------------------------------
As a final note, as an easy way to keep all of these flexbackup scripts during an e-smith upgrade, I would suggest you move them all to an ibay location and run them from the ibay location instead of /root.  Of course you will have to edit the scripts as appropriate for your actual ibay location.  Since the e-smith-manager tape restore function restores all the ibays you'll be ready to go immediately after an e-smith-manager restore :-)


here's other general info i've found so far in the exabyte kb:
http://www.exabyte.com/support/online/kb/display.cfm?id=806
http://www.exabyte.com/support/online/kb/display.cfm?id=811

your experiences and feedback, step by step instructions or pointers to relevant urls would be greatly appreciated!

thanx!