Networker

Re: [Networker] To index save or not?

2008-04-10 12:55:55
Subject: Re: [Networker] To index save or not?
From: MIchael Leone <Michael.Leone AT PHA.PHILA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 10 Apr 2008 12:51:32 -0400
EMC NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU> wrote on 
04/10/2008 12:19:24 PM:

> On Thu, Apr 10, 2008 at 12:07:58PM -0400, MIchael Leone wrote:
> > Huh. So ... let's use a specific example ... I have an EOM tape from 
> > 2007-04-30. Well beyond browse time, but I do see it in the media 
> > database, and it is listing what savesets are on the tape. So, 
presuming I 
> > know which specific file of a saveset I want, I should be able to do a 

> > restore by doing a "Saveset Recover", and choosing the 2007-04-30 
saveset 
> > (even tho that is well past the retention period).
> 
> Yes.

> 
> > And no "nsrck -L7" needed, no "scanner -i", no scanner -m"? Just have 
the 
> > tape in the library, and rock-n-roll? :-) Or would I still need 
"scanner 
> > -i" (yes, because I need to re-scan in the individual files in the 
> > saveset?).
> 
> Right.  I was mentioning 'scanner -m' earlier, which deals with the
> media database.  The File database is different.  After the browse time
> expires, the file indexes are purged from the database.  So to do a file
> recovery (not a saveset recovery), you'd need those indexes.
> 
> If the client is still active, but you need the older indexes, the two
> most common ways to merge them in would be 'nsrck -L7' to read an older
> save of the indexes, or 'scanner -i' to recreate the indexes from the
> saveset on tape.

OK! So when the volume is in the database, but is beyond the browse time, 
I need to do a "scanner -i", because I *don't* save the indexes on tape 
with the job, if I want to get a specific file. This re-creates the 
listing of all the files in the savesets that are on the tape.

If I *did* have the indexes on tape, I could do a "nsrck -L7", and NW 
would get the listing of files in the savesets on tape from the tape 
itself (it would prompt me to load the tape as necessary, I presume?)

> > So when WOULD I need the "scanner -i" or "scanner -m", then? I'm back 
to 
> > being really confused ... would I need to do "scanner -m" on a tape 
volume 
> > that I do *not* see in the media database?
> 
> Correct.  That could be foreign media (never used by this networker
> server), or perhaps an odd situation where the volume was manually
> removed from the database before it was recycled.

AH! Yes, I have a tape here that was apparently created by NW, but is 
*not* in the media database. I guess somebody inadvertently deleted the 
volume from the media database (before my time; this tape is from about 6 
months before I started here). This presumes that there's an index on 
tape? Or does that not matter?

> > Or "scanner -i"? And would I then need "nsrck -L7"? (probably not)
> 
> Those two both attempt to get to a similar goal of placing certain file
> indexes into the online catalog from tape.  The methods are different,
> but you wouldn't normally use both commands.  (And in most situations,
> 'nsrck -L7' will be faster if it is available).
> 
> The subtle point is that after the browse period expires, Networker
> removes the file indexes for that saveset from disk.  (They tend to take
> up a lot of space).

AH HA! There's a point I was previously unaware of (Consciously, anyway).

> After the retention period expires, the the volume is eligible to be
> selected for recycling, but the media database continues to track the
> savesets. 

Describes all of my month-ends ... all say "recyclable". And since I don't 
save indexes on tape, I need to "scanner -i" them, when I want to recover 
files from them. NOW I think I'm getting it ... 

> Only at recycle time will Networker automatically purge the
> saveset information for that volume.


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