The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tape drive problem James Zwecker SCO 2 04-14-2008 01:49 PM
Problem restoring files from remote tape drive lindab SUN Solaris 4 07-02-2007 05:52 AM
Problem reading a 4mm tape drive tdpearson AIX 2 05-24-2007 09:34 AM
Create an Ignite image on tape from Online IgniteUX image Andrek UNIX for Advanced & Expert Users 3 02-28-2007 04:14 PM
Listing the Ignite Backup tape cgege HP-UX 1 07-19-2004 12:45 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-26-2001
Registered User
 

Join Date: Sep 2001
Location: Johanessburg
Posts: 27
DLT TAPE DRIVE/ Script problem /Ignite.

Thanks for checking in.

We have this script that does a backup called Ignite on HP-UX
in this script it does everything it supposed to do accept one thing

Script
#########################################
echo
clear
cd /
echo " Please ensure there is a DLT tape in Slot 6 of the Tape Backup Unit"
echo " Press ENTER to continue if you are sure the tape is there."
read ch
echo " Ignite Started On : `date` " >>/home/utils/logs/ignite.times
echo " Ignite Started On : `date` " >/home/utils/ignitemail
/usr/bin/mailx 0836559274@sms.co.za < /home/utils/ignitemail
/usr/bin/mailx helpdesk@rtt.co.za < /home/utils/ignitemail
mc -sS6 -dD1
sleep 90
mt -f /dev/rmt/0m rew
#/opt/ignite/bin/make_recovery -I -v -d /dev/rmt/0m |tee /home/utils/logs/ignite
_make.log.`date +%y%m%d` 2>/home/utils/logs/ignite_make.errlog
/opt/ignite/bin/make_tape_recovery -I -A -v -a /dev/rmt/0mn |tee /home/utils/log
s/ignite_make.log.`date +%y%m%d` 2>/home/utils/logs/ignite_make.errlog
sleep 600
mc -sD1 -dS6
echo " Ignite Ended On : `date` " >>/home/utils/logs/ignite.times
echo " Ignite Ended On : `date` " >/home/utils/ignitemail
/usr/bin/mailx 0836559274@sms.co.za < /home/utils/ignitemail
/usr/bin/mailx helpdesk@rtt.co.za < /home/utils/ignitemail
echo
echo
echo " Please read screen messages and report any errors to the Administrator "
echo " for action. "
echo
echo " Please ensure that this tape is clearly marked with the date and sent "
echo " seperately to Metrofile for recall."
rm ignitemail
##########################################
End of script

I'm having a problem with the second
mc media changer manipulation utility
after the sleep 600
and it kicks out an error no sense 0X0
and it does not unload the tape.
i've tried increasing the sleep to 10 min so that i can wait for it to rewind but it still doesn't seem to work

Assistance in this is greatly appreciated.

Nemex
Forum Sponsor
  #2  
Old 12-27-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,610
I have never used mc, but I do have a guess: try putting "mt -f /dev/rmt/0m offl" and "sleep 90" just before the second mc.
  #3  
Old 12-27-2001
Registered User
 

Join Date: Sep 2001
Location: Johanessburg
Posts: 27
Thanks

Thank you for that one.

I forgot about mt but i don't want the tape drive to go offline.

But i did manage to find this

mt -f /dev/rmt/0m rew

Thanks.

Nemex
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0