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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Offsite Storage / Cloning

Status
Not open for further replies.

eskolnik

Technical User
Sep 4, 2002
117
US
How are folks handling offsite storage? We were sending clones off site manually, but then the clones won’t scratch (recycle) till the primary save set does. How I am looking to clone the world and mark the originals as suspect, and then send them offsite. Some-how I’ll delete (using mminfo and nsrmm -d -y –S) the clone savesets after some period of time so I don’t double my tape usage.

How for specific questions:
I was wondering how others perform this process.
I’ve been playing around with updating the location on the media database using nsrmm, but when the volume is re-deposited in the juke box the location doesn’t get automaticly updated.
Does any know what command updates and reports the remarks in the media database?
(I looked at the mmifo man page and can’t find anything)
Ed Skolnik
The Interpublic Group Of Companies, Inc.
GIS Chicago System Administrator
Chicago, Illinois 60611
 
Ed,

We send our clone tapes off site but don't remove them from Networker because of the short cycle time (2 weeks).
I have attached a couple of scripts that I use to eject/deposit these tapes.

This one ejects the clone tapes used in the past 24 hours
and updates their location with the current date.

#!/usr/bin/ksh
echo "ejectclones.sh Version 100 24th May 2001"
getdate="date '+%b%d%Y'"
eject_time=`eval $getdate`
filelist=/nsr/logs/tapelogs/$eject_time
Yesterday=`cat /scripts/yesterday`
echo $Yesterday
echo $filelist
/usr/sbin/nsr/mminfo -t "1 days ago" -s sapprda -q'pool="Production Clone"' -r volume >/tmp/otherclonetapelist.txt
if [ -r $filelist ]
then
echo $filelist exists
for clone in `fgrep CP /tmp/otherclonetapelist.txt | sort -u`
do
# echo $clone
# /usr/sbin/nsr/nsrjb -u $clone
if [ $? -eq 0 ]; then
/usr/sbin/nsr/nsrjb -w $clone
/usr/sbin/nsr/mmlocate -n $clone -u $eject_time
echo "$clone ejected. Please send to Data Security"
echo $clone >>$filelist
# mminfo -q 'volume=$clone' -r 'volume,client,savetime,sumsize,name,ssid'
/usr/sbin/nsr/mminfo -v -a $clone
banner $clone
fi
done

else
echo "File does not exist creating"
touch $filelist
for clone in `fgrep CP0 /tmp/otherclonetapelist.txt | sort -u`
do
# echo $clone
# /usr/sbin/nsr/nsrjb -u $clone
if [ $? -eq 0 ]; then
/usr/sbin/nsr/nsrjb -w $clone
/usr/sbin/nsr/mmlocate -n $clone -u $eject_time
echo "$clone ejected. Please send to Data Security"
echo $clone >> $filelist
# mminfo -q 'volume=$clone' -r 'volume,client,savetime,sumsize,name,ssid'
/usr/sbin/nsr/mminfo -v -a $clone
banner $clone
fi
done
fi
mailx -s&quot;Clones ejected&quot; vic.mcdonald@mightyriver.co.nz < /tmp/ejectclones.log
banner ends

This script deposits the returned tapes and changes the location back to stk9710

nsrjb -d
nsrjb -I
nsrjb >/tmp/returned_tapes1

cat /tmp/returned_tapes1 | awk '{print $2}'>/tmp/returned_tapes2
fold -w 6 /tmp/returned_tapes2 >/tmp/returned_tapes3
for clone in `fgrep CP /tmp/returned_tapes3`
do
echo $clone
mmlocate -n $clone -u stk9710
done
for clone in `fgrep PR /tmp/returned_tapes3`
do
echo $clone
mmlocate -n $clone -u stk9710
done
for clone in `fgrep AR /tmp/returned_tapes3`
do
echo $clone
mmlocate -n $clone -u stk9710
done
for clone in `fgrep PL /tmp/returned_tapes3`
do
echo $clone
mmlocate -n $clone -u stk9710
done

 
What's the &quot;PR&quot; &quot;AR&quot; PL&quot; &quot;CP&quot; that your fgreping for? Ed Skolnik
The Interpublic Group Of Companies, Inc.
GIS Chicago System Administrator
Chicago, Illinois 60611
 
These are the different tape labels PR0000, AR0000, PL0000 and CP etc... Will depend on your labeling standards
 
Further info... The clone tapes are all labelled CPxxxx and these are the only ones ejected and sent off line.
I amended the second script to include the other tape labels in case I had to deposit other groups of tapes


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top