SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
How to remove older entries from client index?
Author Message
Post How to remove older entries from client index? 
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

Post How to remove older entries from client index? 
In regard to: [Networker] How to remove older entries from client index?,...:

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.

Oy, way too much work. Just look at the `nsrmm' command, and pay
special attention to `-d', and probably `-P'.

Tim
Tim Mooney mooney < at > dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

Note: To sign off this list, send a "signoff networker" command via email

Post How to remove older entries from client index? 
Hmm ... Looks like using 'dP' options will remove index entries but keep
media database entries (this is what I want since I would want to be
able to do save set recover on these savesets in future), BUT too bad
the command won't allow you to specify a time value. Looks like I'll
have to use -S ssid. Guess I'll have to generate a list of all affected
ssids and then loop the nsrmm command through each of them? There's also
a -V option, but -V won't do much good as there are other savesets on
the affected volumes whose online indexes I want to keep.

If I run this 'nsrmm -dP ssid' command against each ssid, should I then
run nsrck against the client index and if so, which level of checks
would be recommended?

Thanks.

George

Tim Mooney wrote:

In regard to: [Networker] How to remove older entries from client index?,...:

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.

Oy, way too much work. Just look at the `nsrmm' command, and pay
special attention to `-d', and probably `-P'.

Tim
--
Tim Mooney mooney < at > dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

--
Note: To sign off this list, send a "signoff networker" command via email

Note: To sign off this list, send a "signoff networker" command via email

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB