Networker

[Networker] How to remove older entries from client index?

2004-09-23 11:56:13
Subject: [Networker] How to remove older entries from client index?
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 23 Sep 2004 12:00:20 -0400
Hi,

Is there an easy way to remove all entries from a client index that are
older than a certain date? Is there a preferred method? I also have a
question further down about the nwadmin Indexes tool.

Here's what happened. Someone wanted to be able to run nwrecover and
view stuff from November 2003, but the client index didn't go back that
far. There are actually 5 client resources. Resource 1 is 6month, the
others are Quarter. So, I ran the command: nsrck - L 7 -t 11/30/03
client

on the server to merge in the full index from 11/30/03 that would then
allow them to browse back further. This worked, but made the index
bigger (duh!). Now that they're done, I'd like to know how to undo it.
What I should have probably done was to have first shut down the
NetWorker services, renamed the client, re-created empty client,
re-started services and then recovered the older index on top of that.
Once they were done recovering what they needed I could have then shut
everything down again, removed the client, renamed the original client
back again and restarted and I would have been back where I started, but
I didn't do this.

There are only two ways I can think of to get rid of these old entries.

1. Rename the client; start over with empty client and then recover
index from tape from just prior to the merge and then leave it at that.
At that point, the index will look just like it did before I did this.
Of course, the next incremental will be rather large since it will have
to add all the changes since then, but I'll the be caught up. However,
I'll be missing entries for any files that were created/modified after
that and then deleted prior to the next incremental, but I can't very
well recover the later indexes since they'll have that older data in
them. I guess I can live with the possibility of missing some stuff as I
could do save set recover.

2. Same as above but scan in the data from the affected tapes for all
subsequent backups. This would add in index entries for this data and
obviously I wouldn't be merging in those older index entries from the
prior merge.

Seems like first method would be fastest with disadvantage of missing
some stuff. Second method would get everything but more arduous.

Question here on "Indexes" tool under nwadmin and advice on using:
I did take a look at nwadmin=>indexes=>client. I notice that for many of
the save sets (not all), if I then choose "Instances", I see that things
flow back contiguously to about 07/02/04 and then everything prior to
that starts at the full for 11/30/03 and goes back to like 10/27/03
which was also a full. All the entries in-between are incrementals,
levels and for one of the savesets there is also another level full
in-between. Now, I've never messed around with this "Indexes" utility
before, so I have no experience with it.

Could I simply select each saveset having these older instances and then
use the 'Remove oldest cycle'? Guess that would remove oldest full
instance and everything after that up to and including next full
instance? Not sure what this does. Might need to do this several times
for each saveset? Maybe view each time after running to see if those
older entries are gone? Not sure about "Reclaim" space button. Any
savesets not having these older instances I just ignore. Might this take
a while to run? The current size of the client index is about 1.7 GB and
it's listed at 100% Used.

Is there a command line version of this that could do it all in one
swoop?

Thanks.

George

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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