Networker

Re: [Networker] Trying to reuse tapes with auto media management into many pools.

2007-08-20 16:31:18
Subject: Re: [Networker] Trying to reuse tapes with auto media management into many pools.
From: Davina Treiber <Davina.Treiber AT PEEVRO.CO DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 20 Aug 2007 21:26:24 +0100
On Mon, 20 Aug 2007 21:11:58 +0100, Davina Treiber
<Davina.Treiber AT PEEVRO.CO DOT UK> wrote:

>Mark them all as recyclable (easy with a simple script), set the pool
>they are in to "Recycle to other pools", and set the pools you want to
>use them in to "Recycle from other pools". If either of the pools
>concerned is the Default pool you won't be able to set this up, but
>marking Default tapes as recyclable will allow them to be re-used in the
>Default pool anyway.

If these tapes are all in the Default pool, you could create a Scratch pool
and label all your old tapes into that. Set the Scratch pool to "Recycle to
other pools" and set all tapes in the Scratch pool to recyclable. The
following script will help:

#!/bin/ksh
THISSERVER=$(uname -n)
NSRSERVER=${1:-$THISSERVER}
mminfo -s $NSRSERVER -q "pool=scratch,pool=Scratch,!volrecycle" -r
volume | while read VOLUME; do
        echo "Marking scratch volume $VOLUME on server $NSRSERVER as
recyclable"
        nsrmm -s $NSRSERVER -o recyclable -y $VOLUME
done

Needless to say you should not do any backups to the Scratch pool.

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER