Operating System - HP-UX
1849542 Members
6349 Online
104044 Solutions
New Discussion

Re: DDS3 & Ultrium tape backup script

 
SOLVED
Go to solution
ajk_5
Frequent Advisor

DDS3 & Ultrium tape backup script

Dear all,

I got a backup problem from the following script that the backup light was keep working on DDS3 tape drive and the Ultrium tape drive seems not working from the script. Anyone tell me why?

##########################################
# Perform System (DDS3) Backup
##########################################
echo "System (DDS3) Backup by Ignite...(takes about 1 hour 30 minutes)"
echo
echo "System Backup directories: /"
echo "-------------------------------------------------"
echo "Insert a DDS3 and Ultrium tapes into tape drivers"
echo
echo "Press ENTER to start backup"
read dummy
echo
echo "System (DDS3) Backup in progress ...."
date
$ISD_MENU/writelog.sh System DDS3 Backup Start
#echo "enter ROOT password!"
/opt/ignite/bin/make_tape_recovery -A /dev/rmt/0m >> $ISD_MENU/backup_os.log
$ISD_MENU/writelog.sh System DDS3 Backup End
date
echo "System (DDS3) Backup Finished !"
echo
#echo Press ENTER to continue...
#read dummy
##########################################
##########################################
# Perform System (Ultrium) Backup
##########################################
echo "System (Ultrium) Backup by Ignite...(takes about 30 minutes)"
echo
#echo "System Backup directories: /"
#echo "-----------------------------------------------"
#echo "Insert an Ultrium tape into Ultrium tape driver"
#echo
#echo "Press ENTER to start backup"
#read dummy
#echo
echo "System (Ultrium) Backup in progress ...."
date
$ISD_MENU/writelog.sh System Ultrium Backup Start
#echo "enter ROOT password!"
/opt/ignite/bin/make_tape_recovery -A /dev/rmt/1m >> $ISD_MENU/ultrium_backup_os.log
$ISD_MENU/writelog.sh System Ultrium Backup End
date
echo "System (Ultrium) Backup Finished !"
echo Press ENTER to continue...
read dummy
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: DDS3 & Ultrium tape backup script

check the hardware

dmesg

all my DDS3 scripts work just fine with Ultrium drives.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: DDS3 & Ultrium tape backup script

I'm surprised the backups would work at all. For starters the device used for ignite tapes must be no-rewind, or the backup is useless.

/dev/rmt/0mn
/dev/rmt/1mn

Test the backup device manually

Anyone for a Mutiny ?
twang
Honored Contributor

Re: DDS3 & Ultrium tape backup script

Does the following command work:
# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/1mn
Tim Adamson_1
Honored Contributor

Re: DDS3 & Ultrium tape backup script

Depending on the version of Ignite you have installed, you could be in trouble with the device files you specify. To err on the side of caution, use the no-rewind device files.

If you doubt the backup to the Ultrium has worked, check it out.

mt -t /dev/rmt/1mn rew
mt -t /dev/rmt/1mn fsf 1
tar tvf /dev/rmt/1mn > /tmp/recovery.log

Then compare it to the list of files in /var/opt/ignite/recovery/latest/flist.

I assume you are NOT using make_tape_recovery to do a FULL system backup (ie, including applications). If the applications live in another VG, you are not backin up the files.

Anyway, check it out and if you have any doubts, post another question.


tim
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
twang
Honored Contributor

Re: DDS3 & Ultrium tape backup script

You may remove device file and try again:
...
#echo "enter ROOT password!"
/opt/ignite/bin/make_tape_recovery -A >> $ISD_MENU/ultrium_backup_os.log
....
ajk_5
Frequent Advisor

Re: DDS3 & Ultrium tape backup script

Twang,

What is the difference between these two commands?

#make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/1mn

#make_tape_recovery -A /dev/rmt/1mn



Regards
Ajk
twang
Honored Contributor
Solution

Re: DDS3 & Ultrium tape backup script

This is what we use (run by cron once a week):
/opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/1mn >/dev/null 2>&1
to create an interactive boot tape, -x provides flexibility.
Because new make_tape_recovery option -A doesn't quite mean vg00 as it did with make_recovery. So i like to replace -A with '-x inc_entire=vg00' when using make_tape_recovery.


/opt/ignite/bin/make_tape_recovery -Av to take backup of root vg(vg00) includes all files the vg00 into the archive(/dev/rmt/1mn). If no device file provided, it will be on the default tape drive /dev/rmt/0mn.
ajk_5
Frequent Advisor

Re: DDS3 & Ultrium tape backup script

I did update the script regarding Twang's information and try again. The first part (DDS3 tape backup) is ok. The second part (Ultrium tape backup) is still go through each step, but the Ultrium tape drive didn't backup data. Please help!

Thanks a lot!

Regards
Ajk
twang
Honored Contributor

Re: DDS3 & Ultrium tape backup script

Can you manually perform the backup via command-line successfully?