Networker

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

2007-08-20 16:37:01
Subject: Re: [Networker] Trying to reuse tapes with auto media management into many pools.
From: E Gold <egold AT FSA DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 20 Aug 2007 16:32:37 -0400
Great idea and script, I will try.

thanks alot!




Davina Treiber <Davina.Treiber AT PeeVRo.co DOT uk> wrote on 08/20/2007 04:26:24
PM:

> 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.

____________________________________
This e-mail message is for the sole use of the intended recipient(s) and
may contain proprietary, confidential and/or privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.  If you
are not the intended recipient (or an employee or agent responsible to
deliver it to the intended recipient), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply e-mail.

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