DLT TAPE DRIVE/ Script problem /Ignite.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers DLT TAPE DRIVE/ Script problem /Ignite.
# 1  
Old 12-27-2001
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
# 2  
Old 12-27-2001
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-28-2001
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Install ext DLT Sun Tape drive on V445 Solaris 10

I have a SunFire V445 running Solaris 10 and am adding a Sun DLT tape drive. From the OK prompt the probe-scsi-all does see the drive and it is the proper target of 4. When I do the boot -- -r it does build the /dev/rmt directories correctly and the links to /devices appear correct as well. When I... (8 Replies)
Discussion started by: chastings
8 Replies

2. AIX

AIX 4.2.1 Tape Drive Problem

Hi, The problem I have is I want to restore my AIX machine. I have created a mksysb tape from my tape drive rmt0 and I changed the bootlist using this command "bootlist -m normal rmt0 hdisk0". However, when I display the bootlist "bootlist -om normal", it shows '-' hdisk0. I googled and... (2 Replies)
Discussion started by: AixNoob87
2 Replies

3. HP-UX

DLT 7000 tape drive failing with "write error on a record in the index"

HP rp5450 (L2000) running HP-UX 11.11B Using DLT 7000 and DLT 4000 tape drives for nightly full backups Backup jobs created by SAM DLT 7000 cron entry is as follows: 00 2 * * 1-6 /usr/sam/lbin/br_backup DLT FULL Y /dev/rmt/0m /var/sam/graphLCAa17036 root Y 1 N > /var/sam/SAM_br_msgs 2>&1... (1 Reply)
Discussion started by: dreh99
1 Replies

4. Hardware

Help with scsi tape drive problem

I've had a scsi hard drive, scsi tape drive, and cd rom working off an adaptec 29160 controller. Everything worked great until a few days ago. I begin getting tar format errors (running sco 5.0.6) on the tape drive and occasionally the entire system would hang up while trying to access data on... (0 Replies)
Discussion started by: powwm
0 Replies

5. AIX

Tape Drive problem

Hi, I'm at AIX 5.3. My EOD program is giving following error while writing to tape: Can't write output cpio: Media Surface error Failed on Shell-script cd /; cpio -ocB 2 >> /autoline/misc/logs/bk.CopyToTape < /autoline/work/BACKUP.01022 1>/dev/rm0 I have tried with several new tapes,... (2 Replies)
Discussion started by: tayyabq8
2 Replies

6. Solaris

external tape drive DAT 72 problem

Hi all, I have solaris 10 sparc running and working very well but i have problem with external SCSI tape drive DAT 72 problem it seems to me the tape drive is manufactured by SUN microsystems when i ran ls -l /dev/rmt/0 it reveals the following output bash-3.00# mt -f /dev/rmt/0... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

7. AIX

Tape Drive Problem.

Dear all, I have ultriam3 tape. It is connected my LPAR. I have that the Sl.Nos. and slot number. but run the cfmgr i am not getting the tape drive. I have fired the command lsdev -Cc tape but no reply. how will i configure the tape in LPAR? Please suggest. It is very urgent. (3 Replies)
Discussion started by: pernasivam
3 Replies

8. SCO

Tape drive problem

I replaced a HP Superstore Dat 40 with another HP Superstore Dat 40, but my backupedge software keeps putting up error code 1 (device not found) I have tried reinstaling the drive as DAT Alad stp 0 6 0 0. I'm not a computer expert but willing to have a go. I went into Backupedge to try and format a... (2 Replies)
Discussion started by: James Zwecker
2 Replies

9. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

10. AIX

Problem reading a 4mm tape drive

I'm attempting to read a tape in a 4mm drive (AIX 4.3) using the following command... tar tvf /dev/rmt0 ...and I keep getting the following error message: tar: 0511-193 An error occurred while reading from the media. There is not enough memory available now. I've googled this error... (2 Replies)
Discussion started by: tdpearson
2 Replies
Login or Register to Ask a Question