ITEM: Q7814L
Creating a sysback Fix
Env: AIX 3.2.4
Sysback 3.1.0.38
Tape Drives: Digital DLT 2000 1/2" Autoloader
(Setup as a OST)
Off of one scsi adapter the customer is running
7 devices.
When the customer makes a mkdirback backup using sysback
and tries to read using dirrestore command, the sbread
command is failing on the second sbread command.
I am going to create a workaround for this customer so he can
use sysback. The tape drive does not seem to want to position
its self correctly when reading the first image on the tape.
I am putting a rewind between the sbread -H and the sbread -T
if the customer is reading the first image on the tape. This
fix will only be for this customer because the problem seems
to only happen in this extreme case and is
not a bug with sysback ver 3.1.0.38 at all.
NOTE: Only a fix in this one case for only this customer.
If this customer orders another fix from us on a different
sysback problem, these fixes will be del from his system.
So I added these fixes to the dirrestore, vgrestore,
lvrestore and the remakevg commands for 3.1.0.38 of sysback.
NOTE:
These changes were added between the sbread -H command
and the sbread -T command
=============================
Lines added to remakevg
=============================
\#Added to rewind the device if restoring the first image on the tape
if [ "$image" = "" -a "$pos" != "no" ]
then
errmsg="`msg 104 'Unable to rewind device %s' $firstdev`"
runcommand "/usr/bin/tctl -f $firstdev rewind" "$errmsg" $hostname
fi
==========================
Lines Added to dirrestore
==========================
\#Added to rewind the device if restoring the first image on the tape
if [ "$image" = "" -a "$rewind" != "no" ]
then
errmsg="`msg 104 'Unable to rewind device %s' $firstdev`"
runcommand "/usr/bin/tctl -f $firstdev rewind" "$errmsg" $hostname
fi
=========================
Lines Added to vgrestore
==========================
\#Added to rewind the device if restoring the first image on the tape
if [ "$image" = "" -a "$rewind" != "no" ]
then
errmsg="`msg 104 'Unable to rewind device %s' $firstdev`"
runcommand "/usr/bin/tctl -f $firstdev rewind" "$errmsg" $hostname
fi
Also after the sbread -T command
\#Added to rewind the device if restoring the first image on the tape
if [ "$image" = "" -a "$rewind" != "no" ]
then
errmsg="`msg 104 'Unable to rewind device %s' $firstdev`"
runcommand "/usr/bin/tctl -f $firstdev rewind" "$errmsg" $hostname
fi
=========================
Lines Added to lvrestore
=========================
\#Added to rewind the device if restoring the first image on the tape
if [ "$image" = "" -a "$rewind" != "no" ]
then
errmsg="`msg 104 'Unable to rewind device %s' $firstdev`"
runcommand "/usr/bin/tctl -f $firstdev rewind" "$errmsg" $hostname
fi
Support Line: Creating a sysback Fix ITEM: Q7814L
Dated: January 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:37
Comments or suggestions?
Contact us