Operating System - HP-UX
1752464 Members
5739 Online
108788 Solutions
New Discussion юеВ

Re: mount tap for fbackup

 
Carlos  Soares
Occasional Contributor

mount tap for fbackup

I have one submission the fbackup by crontab, but when tape not ready or not
mounted, fbackup is canceled with a following messages:

fbackup(3038): output file /dev/rmt/0mn is not a valid device file for backup
fbackup(3019): would you like to enter a new output file?
fbackup(3004): writer aborting
fbackup(1002): Backup did not complete : Reader or Writer process exit

Exist one form for fbackup issue alert or wait until mount the tape ????

Thanks
3 REPLIES 3
Fernando Santana
Frequent Advisor

Re: mount tap for fbackup

I don't know about any kind of alarm for this
situation, nor the fbackup command waits for the tape
to be mounted. What I've done is a script which runs
the fbackup and according to it's error code "$?", I
page my pager, e-mail the operators to have the tape mounted and automatically
reschedule the backup to
restart one hour later using the "at" command.
Evan Day_1
Frequent Advisor

Re: mount tap for fbackup

As far as I know, fbackup won't wait for a tape or issue any kind of request if
you've executed it from cron.

What I ended up doing was writing a script that sends out a message to
operations to load a tape and waits for a file in /tmp to be created to
indicate the tape is loaded. Operations loads the tape and runs a command that
touches the file and fbackup takes off.

Less ambitious would be to write a script that does uses the mt command to
check for a tape in the drive, and if there is no tape, wait 5 minutes, check
again, etc, until a tape is ready and then run fbackup.

-Evan
Sachin Patel_2
Advisor

Re: mount tap for fbackup

Try using /dev/rmt/0m not 0mn or try using
/dev/rmt/c?t?d?BEST (just BEST). It always wait for my input. Sometime I ran
from script sometime from command line.

Sachin