Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xfsdump and LTO autoloaders

Status
Not open for further replies.

Goldfish75

Technical User
Feb 1, 2004
2
AU
We have just purchased a HP SSL1016 autoloader from SGI and have it working in its most basic form. I have installed MTX to look after the robot controls however I cannot get XFSDump to change to the next tape when it hits EOT. SGI support suggest that XFSDump will not support a tape change when run in scripted mode, and that we should purchase Legato Networker for an addition fee!!!! I need to know if anyone has or is using the xfs -c option to call a script when it hits the EOT. Theoretically I should be able to call an mtx script that changes to the next tape and then resumes the dump, but I cannot seem to get it to work.
 
Hi there,

It did work with xfsdum -c.
Take a look at my tapechange.sh

#!/bin/sh
TAPE_DEVICE=
WORK_DIR=
STACKER_SLOT=$WORK_DIR"stacker_slot.txt"
CUR_SLOT=`cat $STACKER_SLOT`
MAX_SLOT=9

if [ "$1" = "reset" ] ; then
CUR_SLOT=0
fi

if [ $CUR_SLOT -gt 0 ]; then
echo "Unload tape into slot $CUR_SLOT"
stacker -u $CUR_SLOT
sleep 60
fi

if [ $CUR_SLOT -lt $MAX_SLOT ] ; then
CUR_SLOT=`expr $CUR_SLOT + 1`
echo $CUR_SLOT > $STACKER_SLOT
echo "Load tape from slot $CUR_SLOT"
stacker -l $CUR_SLOT
sleep 60
 
It's me again
With xfsdump
Don't use -F option when you want to use -c option

 
Tamvuong, Thanks for your post. This project has been on the back burner for some time now. I am unfortunately not a scripting guru and dont quite understand where the STACKER_SLOT=$WORK_DIR"stacker_slot.txt" fits in. Could you expand a bit on that for me. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top