Operating System - HP-UX
1832801 Members
2774 Online
110045 Solutions
New Discussion

Re: script to automatie Ignite..

 
grshankar
Frequent Advisor

script to automatie Ignite..

Hi All,

Is there a way to take a automatic ignite backup through script i.e,
We have MSL Tape libarary and xp12000SAN , I need a script to take ignite backup using the MSL Tape Libarary & after completion of the task(successful/unsuccessful) it should mail to root account.

3 REPLIES 3
Shoghi Martinez G.
Honored Contributor

Re: script to automatie Ignite..

Perhaps you have better look at the HP-UX admin forum.

I am asking to move it there...
Gavin Clarke
Trusted Contributor

Re: script to automatie Ignite..

This is what we use
(/opt/omni/lbin/uma comes with Data Protector).

createIgnite:
#!/bin/sh
/opt/omni/lbin/uma -ioctl /dev/rac/rob_arm -tty /home/user/umaoutput
sleep 60
/usr/bin/umask 022
/opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/3mn
sleep 360
/opt/omni/lbin/uma -ioctl /dev/rac/rob_arm -tty /home/user/umaoutput2

umacmdfile:
move S29 D1

umacmdfile2:
move D1 S29

Basically it moves the tape from slot 29 to drive 1, waits, Ignites it, waits and moves it back again.

From the man page for uma:
_______________
3. To let uma execute a batch script of its own commands, simply redirect its stdin to a file containing a list of uma commands separated with newlines:

cat >/tmp/cmdFile

inq

addrstat



uma -ioctl /dev/spt/sctl0
/tmp/outFile

_______________

If you want to E-mail the result of the Ignite you might like to use the recovery log:

/var/opt/ignite/recovery/latest/recovery.log

You might also want the DP database if you're using Data Protector:

tarDP:

/usr/bin/touch /etc/cmcluster/omnipkg/lockfile
/opt/omni/sbin/omnisv.sh stop
/usr/bin/tar -cvf /var/backup/omniback.tar /omni_shared
/opt/omni/sbin/omnisv.sh start
sleep 120
/usr/bin/rm /etc/cmcluster/omnipkg/lockfile


We're running MC Service guard, if you aren't then you can do without touching/removing the lockfiles.

If you do decide to use this, please test it to your own satisfaction. I'm just telling you what works for us. I probably cobbled most of this together from the forums so you'll be able to find similar information by searching.
Scot Bean
Honored Contributor

Re: script to automatie Ignite..

If it were me, cron would do it.

Put a make_tape_recovery command of your choice into cron, and cron sends all output to root email.