Networker

Re: [Networker] Script for Read Only

2008-06-10 05:09:17
Subject: Re: [Networker] Script for Read Only
From: Davina Treiber <Davina.Treiber AT PEEVRO.CO DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 10 Jun 2008 10:06:51 +0100
Skinner, Alan C Mr CTR USA IMCOM wrote:
Different tape media, went from sdlt 320 to LTO-3. I thought the library
would ask to load one of the sdlt tapes. But I am doing a test backup
right now and its loading one of the LTO's.

So basically you wish to mark all your sdlt320 tapes as read only.

What you probably need to do is mark them read only AND manual recycle. Read only will prevent any partially written tapes being requested for write, and manual recycle will prevent all tapes from being recycled and thus potentially requested for write.

If you were writing this in Unix shell you would do the following:

mminfo -q "type=SDLT320" -r volume | while read VOL; do
        nsrmm -y -o readonly $VOL
        nsrmm -y -o manual $VOL
done

This should be fairly easy to translate to a BAT or CMD file for someone with the right skills.

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

<Prev in Thread] Current Thread [Next in Thread>