Operating System - HP-UX
1829417 Members
2310 Online
109991 Solutions
New Discussion

fbackup aborting at EOT, I'm not doing in batch/cron

 
Kirk Reindl
Frequent Advisor

fbackup aborting at EOT, I'm not doing in batch/cron

HPUX 11.11
K-Box

Hi,

I'm running fbackup from a script I created for my operator. Here is the exact command.

fbackup -I $opac/log/DAILY$ii.log -c $opac/list/fbackup.parms -f /dev/$Ttype$ii -g $opac/
list/DAILY$ii.set 2>&1|tee -a $log_filnm &

I have only one tape drive on this system, so I need operator to swap out tape. Here is my fbackup.parms file:

blocksperrecord 128
records 16
checkpointfreq 256
readerprocesses 6
maxretries 0
retrylimit 5000000
maxvoluses 100
chgvol /home/operator/bku/chgvol.ksh
error /home/operator/bku/error.ksh
filesperfsm 200

Here is the permissions on /home/operator/bku/chgvol.ksh:
@ccchpc11::super_ /home/operator/list> ll /home/operator/bku/chgvol.ksh
-rwxr-xr-- 1 root sys 216 Sep 24 13:26 /home/operator/bku/chgvol.ksh
@ccchpc11::super_ /home/operator/list>

Contents of chgvol.ksh

#!/usr/bin/ksh

# Purpose of this script is to alert operators when fbackup's tape has reached end of volume an
# d they need to load a new tape.

echo "fbackup has reached end of volume please insert a new tape---"
chgvol.ksh: END.

It is like it isn't even giving me a chance to change the tape. Please tell me why this isn't waiting.

Regards,

Kirk
1 REPLY 1
Denver Osborn
Honored Contributor

Re: fbackup aborting at EOT, I'm not doing in batch/cron

your chgvol script has nothing in it except for an echo. This won't give the operator time to do anything! :)

If you have access to the ITRC's technical docs, look at Doc ID# KBRC00003074 it has an example chgvol script that you can cut/paste. Don't forget to get the "tape_ready" script from the example.

This should do it for you.

-denver