Thursday, February 12, 2015

Configuring Managing Tape Drivers



Check weather correctly mounted the tape driver to OS

cat /proc/scsi/scsi


 vendor details are listed if properly configured.You can see that with


 Check the status of the tape 

mt –f  /dev/st0 status  or  mt –f  /dev/st1  status 

ps : If mt command does not work  you want to install  mt-st-0.9b-2.2.2.x86_64.rpm  rpm.

other possible  commands for  tape

 mt -f   /dev/st0  rewind
 mt -f   /dev/st0 erase
mt  -f   /dev/st0 rewind
mt  -f   /dev/st0 lock  //while copying to the disk if somebody ejects it 
mt  -f   /dev/st0 unlock

Copying Files to tape drive

tar –cvzf  /dev/st0  /u01/app/rman

mt –f  /dev/st0 unlock

mt –f /dev/st0 eject