tomupnorth
MIS
We have a script that runs a mksysb and then a savevg on the remaining vg's. If it runs under cron or at
it hangs running dd ibs=1b obs=64b of=/tmp/tape.bootimage. However if I kill all the processes and run the same script manually, it goes through just fine. If I kill the above dd process the remainder of the script completes ok aswell.
Have tried re-creating the shell environment while running under cron to no avail.
Does anyone have any suggestions as to what might be causing this ? OS is AIX 433 ML8. Thanks in advance.
Here's the process listing at hang point:
root 22182 48834 0 18:04:40 - 0:00 ksh /usr/bin/mksysb -X -i -m /dev/rmt0.1
root 42512 625438 0 18:04:06 - 0:00 ksh
root 42806 54446 0 18:05:00 - 0:00 dd ibs=1b obs=64b of=/tmp/tape.bootimage
root 48834 1005524 0 18:04:06 - 0:00 ksh /usr/bin/mksysb -X -i -m /dev/rmt0.1
root 54446 48834 0 18:04:52 - 0:00 ksh /usr/sbin/bosboot -d/dev/rmt0.1 -a -k /usr/lib/boot/unix_mp
root 1005524 42512 0 18:04:06 - 0:00 ksh ./fullbackup.sh
and here's the script:
#!/bin/ksh
TAPE=/dev/rmt0.1
LOG=/tmp/fullbackup.log
mv $LOG $LOG.yesterday
tctl -f $TAPE rewind
# set >> $LOG
echo "Starting backup at `date`" >> $LOG
/usr/bin/mksysb -X -i -m $TAPE >> $LOG 2>&1
for i in `lsvg | grep -v rootvg`
do
/usr/bin/savevg -i -f $TAPE $i >> $LOG 2>&1
done
echo "Finished backup at `date`" >> $LOG
it hangs running dd ibs=1b obs=64b of=/tmp/tape.bootimage. However if I kill all the processes and run the same script manually, it goes through just fine. If I kill the above dd process the remainder of the script completes ok aswell.
Have tried re-creating the shell environment while running under cron to no avail.
Does anyone have any suggestions as to what might be causing this ? OS is AIX 433 ML8. Thanks in advance.
Here's the process listing at hang point:
root 22182 48834 0 18:04:40 - 0:00 ksh /usr/bin/mksysb -X -i -m /dev/rmt0.1
root 42512 625438 0 18:04:06 - 0:00 ksh
root 42806 54446 0 18:05:00 - 0:00 dd ibs=1b obs=64b of=/tmp/tape.bootimage
root 48834 1005524 0 18:04:06 - 0:00 ksh /usr/bin/mksysb -X -i -m /dev/rmt0.1
root 54446 48834 0 18:04:52 - 0:00 ksh /usr/sbin/bosboot -d/dev/rmt0.1 -a -k /usr/lib/boot/unix_mp
root 1005524 42512 0 18:04:06 - 0:00 ksh ./fullbackup.sh
and here's the script:
#!/bin/ksh
TAPE=/dev/rmt0.1
LOG=/tmp/fullbackup.log
mv $LOG $LOG.yesterday
tctl -f $TAPE rewind
# set >> $LOG
echo "Starting backup at `date`" >> $LOG
/usr/bin/mksysb -X -i -m $TAPE >> $LOG 2>&1
for i in `lsvg | grep -v rootvg`
do
/usr/bin/savevg -i -f $TAPE $i >> $LOG 2>&1
done
echo "Finished backup at `date`" >> $LOG