[Summary} Networker: index out of space

From: Zbigniew, Ignatowicz <zignatowicz_at_scc.ca>
Date: Tue, 01 Jun 1999 13:43:01 -0400

Hi,

Thank for all the responses. I have got two of them - both very useful in
solving my problem. I moved temporarily the nsr directory tree to other
filesystem and reclaim the space.

I am including their responses.

from:
Girish Phadke [pgirish_at_maxisnet.com.my]

You will have to first remove the oldest cycle from the index database.
Decide how many cycles of index should be online ( full backup to full
backup is one cycle.
from the index menu remove as many oldest cycles as you can.

Then reclaim space from index.
afterwards do index compression by giving command nsrck -C

This will be lowest size of your client index.
If you do not want your index to grow as much reduce the browse period in
your client setup.

and from:
Jim Fitzmaurice [jpfitz_at_fnal.gov]


    You read the documentation you will find that reclaiming space rebuilds
the database, you need space to rebuild the database and reclaim space. I
know, it doesn't make sense, but that's the way it works. I ran into this
problem once, I shut down the networker, moved the whole nsr directory to
/tmp and then linked it back. Restarted networker and ran the reclaim space.
I then shut down networker again, moved the nsr directory back, and
restarted networker. Of course this assumes you have enough space in /tmp to
accomplish the rebuild/reclaim. Since I have moved (and linked) the nsr
database to a larger directory and make sure to run reclaim space every
couple of weeks or so.
 
First you stop networker.
 
# nsr_shutdown
 
Move the nsr directory. (I like to use cpio -p)
 
# find /nsr | cpio -pvdum /tmp
 
This creates the directory /tmp/nsr and puts all the nsr stuff under it.
Then delete the /nsr directory and create the link back to /tmp/nsr.
 
# rm -r /nsr
# ln -s /tmp/nsr /nsr
 
Restart networker.
 
# /sbin/init.d/nsrd start
 
Run the reclaim space.
 
Shutdown networker again.
 
# nsr_shutdown
 
remove the link and copy everything back.
 
# rm /nsr
# cd /tmp
# find ./nsr | cpio -pvdum /
 
Restart networker and remove the nsr directory in /tmp.
 
# /sbin/init.d/nsrd start
# cd /tmp
# rm -r nsr
 
Done.
Received on Tue Jun 01 1999 - 17:46:21 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT