Operating System - Tru64 Unix
1752808 Members
6996 Online
108789 Solutions
New Discussion юеВ

vrestore >empty save set on second tape

 
Bernard  Bravo
Advisor

vrestore >empty save set on second tape

Hi,

We are having problem on our fs backup using vdump and backup verification using vrestore.

I used the ffg to backup my /u01 fs to a DLT drive. /u01 is more than 100gb that cause it to ask for another tape to complete the dump.

vdump -0uvf /dev/rmt/0h /u01

when I verified the backup using vrestore with "-ivf" and "-tvf" but it says "empty save set" on the second tape.

is there any hint or solution to my problem...

Tru64 guro pls. advise.

thanks.
Do good, Look Good, Feel Good
4 REPLIES 4
Kjetil Jensen
Advisor

Re: vrestore >empty save set on second tape

It seems like you are trying to do a "vrestore -i" on the second tape!
The second tape will not carry it's own index so you will not be able to see what files are on the tape. Solution is to get the first tape and locate the correct saveset and then tag the file(s) there. vrestore will ask fot the correct tape.

Kjetil
melvyn burnard
Honored Contributor

Re: vrestore >empty save set on second tape

I agree, have you only run the command against the second tape?
I would have thought that running hte command starting with the first tape would run through, and hten ask for hte second tape.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Bernard  Bravo
Advisor

Re: vrestore >empty save set on second tape

Hi,

I have also tried doing it from the first tape and it didnt ask for the second tape... below is my script.

==========================
echo "Started at `date`" >> Done.log

stty -isig
mt -f /dev/nrmt0h rewind 2>/dev/null
xx=$?
if [ $xx = 1 ]
then
banner "NO DLT"
banner "TAPE"
banner "INSERTED"
sleep 10
exit 1
fi

clear
echo "Processing ..."
det=`date +%m%d`
blog=/usr/users/backup/log/fs_bkup${det}.log
./fb_head.sh >> /u17/LOG_FILES/fb.log
echo "Prospero Prod Full File System Backup just started!"
BATCH_1()
{
echo "`date +%D-%T` : BATCH 1 Backup consists of /, /usr, /u01, /u02, /u03, /u04, /u05 "| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h / 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /usr 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u01 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u02 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u03 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u04 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u05 2>&1 | tee -a $blog
}
BATCH_2()
{
echo "`date +%D-%T` : BATCH 2 Backup consists of /u06, /u07, /u10 "| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u06 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u07 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u10 2>&1 | tee -a $blog
}
BATCH_3()
{
echo "`date +%D-%T` : BATCH 3 Backup consists of /u08, /u09, /u11, /u12 "| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u08 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u09 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u011 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u012 2>&1 | tee -a $blog
}
BATCH_4()
{
echo "`date +%D-%T` : BATCH 4 Backup consists of /u13, /u14, /u15, /u16, /u17, /u18, /u19"| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u13 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u14 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u15 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u16 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u17 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u18 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u19 2>&1 | tee -a $blog
}
BATCH_5()
{
echo "`date +%D-%T` : BATCH 5 Backup consists of /prospero01, /prospero02, /prospero03 "| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /prospero01 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /prospero02 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /prospero03 2>&1 | tee -a $blog
}
BATCH_6()
{
echo "`date +%D-%T` : BATCH 6 Backup consists of /u20, /oradata01, /repdump "| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /u20 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /oradata01 2>&1 | tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /repdump 2>&1 | tee -a $blog
}
BATCH_7()
{
echo "`date +%D-%T` : BATCH 7 Backup consists of /oradump "| tee -a $blog
/sbin/vdump -0uf /dev/nrmt0h /oradump 2>&1 | tee -a $blog
}
for batch in BATCH_1 BATCH_2 BATCH_3 BATCH_4 BATCH_5 BATCH_6 BATCH_7
do
echo "Please insert NEW tape for $batch backup, then PRESS ENTER to proceed:"
echo "Before proceeding, PLEASE MAKE SURE THAT Database Dump have been completed to include it in the backup of BATCH_7 !"
read me
echo "PRESS ENTER again to confirm:"
read me
mt -f /dev/rmt0h rewind
$batch
mt -f /dev/nrmt0h unload 2>/dev/null
done
./fb_tail.sh >> /u17/LOG_FILES/fb.log
echo "`date +%D-%T` : Prospero Production FS Backup finished" | tee -a $blog

===========================

here is the command to verify...

/sbin/vrestore -tvf /dev/rmt0h

/sbin/vrestore -if /dev/rmt0h


thanks...

Do good, Look Good, Feel Good

Re: vrestore >empty save set on second tape

The catalogue of files on the tapes is only on the first tape.

Do this:
do a vrestore -i on the first tape. Mark a file for restoration that you know is on the second tape. then extract it. If there is data on the second tape, then vrestore should prompt you to insert the second tape.

Cheers,
Christian Klein
HP Tru64 Unix Support