Re: [Networker] Importing tapes.
2007-07-23 08:25:46
To force networker to use barcode scan in way of volume mount,
before launching the inventory, update (using mmlocate) volume
records in media db with SILO name (check name from a tape that
is already loaded in the silo)
Then, nsrjb -I the lib would only scan barcodes.
HTH
TH
Kind regards - Bien cordialement - Vriendelijke groeten,
Thierry FAIDHERBE
HP Services - Storage Division
Tru64 Unix and Legato Enterprise Backup Solutions Consultant
********* ********* HEWLETT - PACKARD
******* h ******* - 1 Rue de l'aeronef/Luchtschipstraat
****** h ****** 1140 Bruxelles/Brussel/Brussels
***** hhhh pppp ***** - 102 Blv de la Woluwe/Woluwedal
***** h h p p ***** 1200 Bruxelles/Brussel/Brussels
***** h h pppp ***** -> HP moves as from 20 August 2007
****** p ****** Hermeslaan 1a - B-1831 Diegem
******* p ******* BELGIUM
********* *********
Phone : +32 (0)2 / 729.85.42
I N V E N T Mobile : +32 (0)498/ 94.60.85
Fax : +32 (0)2 / 729.88.30
Enterprise number 0402.220.594 Email/MSN : thierry.faidherbe(at)hp.com
RPM/RPR Brussels Internet : http://www.hp.com/
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of michael mcgearty
Sent: lundi 23 juillet 2007 12:45
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Importing tapes.
Finally figured it out.
On backup server i did
nsrjb -a -T S0000 -d (door opened and i put 40 tapes in cap acsls
imported all the tapes but networker didnt see them.
on acsls server i did the following to get the list of tapes acsls sees.
su acsss "/export/home/ACSSS/bin/volrpt -d" | awk '{print $1}'.
>file1.dat
Got a list of networker tapes from nsrjb >file2.dat
Ran sdiff on both file1.dat and file2.dat and ran a script that added
differences to networker with the nsrjb -a command.
Now all i have to do is figure out how to make the server do a barcode
inventry instead of a mount all the tapes into the drives.
Its all in a script that is below
#!/bin/ksh
#Function to get all of ACSLS tapes
function ACSLS_VOLS {
/usr/local/bin/ssh parnellpk \
"su acsss /export/home/ACSSS/bin/volrpt -d -f
/export/home/ACSSS/data/external/volrpt/micko.volrpt" |\
grep -v CLN | awk '{print $1}' | grep -v ^$
}
#Function to get all of nsrjb tapes
function NSRJB_VOLS {
nsrjb >/tmp/nsrjb.out
cat /tmp/nsrjb.out |egrep -v "drive|rd|dev|media data|slot|Juke" | \
sed -f /var/tmp/mmg/nsrjb.sed | grep '*' | awk '{print $3}'
>/tmp/foop.$$
cat /tmp/nsrjb.out |egrep -v "drive|rd|dev|media data|slot|Juke" | \
sed -f /var/tmp/mmg/nsrjb.sed | grep -v '*' | awk '{print $4}'
>>/tmp/foop.$$
cat /tmp/foop.$$ | sort -u | grep -v ^$
rm /tmp/foop.$$
}
#Create diff files
NSRJB_VOLS >/tmp/diff_nsrjb
ACSLS_VOLS >/tmp/diff_acsls
#Diff the files and list the tapes Networker has and Not in ACSLS.
echo "in JB and not ACSLS"
sdiff /tmp/diff_nsrjb /tmp/diff_acsls | egrep "<" | awk '{print $1}'
#Diff the files and list the tapes ACSLS has and Not in Networker.
echo "in ACSLS and not JB"
sdiff /tmp/diff_nsrjb /tmp/diff_acsls | egrep ">" | awk '{print
"nsrjb -a -T "$2}'
On 7/20/07, Wood, R A (Bob) <WoodR AT chevron DOT com> wrote:
> I've seen something like this before.
> It is something along the lines of - your library is still defined,
> somewhere, as a logical library.
> Edit the library and check the model - for our AlphaStor controlled
> library it is smartmedia - for our non-AlphaStor libraries it is auto
> detected SCSI library.
>
> On the library operations GUI there is an add and remove option on the
> smartmedia library but those options don't appear for the 'normal'
> libraries.
>
> Regards
> Bob
>
>
>
>
>
> >-----Original Message-----
> >From: EMC NetWorker discussion
> >[mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of michael mcgearty
> >Sent: 20 July 2007 06:13
> >To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> >Subject: [Networker] Importing tapes.
> >
> >Hi all,
> >
> >We have a back up solution that used to use Alpha-Stor as the
> >tape management solution. recently we have had to remove it
> >and since I have been having some problems with
> >importing/exporting tapes.
> >I think I have the exports going ok but the imports are
> >causing me a big head ache. When I try to import a cap full
> >of tapes with nsrjb -a -d I get an error
> >nsrjb: Jukebox error: Jukebox indicated that there are no
> >import/export caps available and to get Networker to import a
> >tape i have to do nsrjb -a -T S0000 -d
> >
> >This is a real pain as it means that we have to manually type
> >in the bar code of every tape we put it and there can be a lot.
> >Is there a way of just putting 40 tapes into the caps and get
> >them to deposit so Networker can use them without putting in
> >all the barcodes?
> >
> >We have a pool of over 3500 LTO2 tapes so when i am putting in
> >tapes they will not be in any numerical range.
> >
> >Environment is
> >Networker 7.1.4 running on Solaris 9
> >L5500 Storage Tek Library using ACSLS.
> >
> >--
> >Regards
> >Michael McGearty
> >
> >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
> >
>
--
Regards
Michael McGearty
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
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
|
|
|