Networker

Re: [Networker] How to delete a client file index?

2011-02-09 22:42:25
Subject: Re: [Networker] How to delete a client file index?
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 9 Feb 2011 22:41:25 -0500
On 02/08/11 05:19, Jason Faultless wrote:
You have to perform the nsrck -R -Y first to clear down the
bulk of the CFI data on disk. Networker can only expire CFI's
for clients that exist, so once the client resource has been deleted
then Networker will no longer be able to do so.
nsrck -R -Y will leave a sort of skeleton structure in /nsr/index
so I've always

nsrck -Y -R
rm -r /nsr/index/<client>
nsradmin delete resources associated with client

A restart of the app is most certainly not needed.

Thanks. If you already removed the client resource(s), can you simply
'rm -rf client' at that point? Or should you instead re-create the
client resource (using same clientid), run the nsrck command, 'rm -r
client' and then delete the resource?
George

Jason.

-----Original Message-----
From: EMC NetWorker discussion
[mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of George Sinclair
Sent: 07 February 2011 20:18
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] How to delete a client file index?

On 02/07/11 07:59, Tim Cassidy wrote:
I wrote a script that mminfo's all the SSID's for the
client you want
to delete and then it Issues a  (nsrmm -d -s servername -y
-S ssid).
Once this is done I delete the client from Networker and
Also remove the index entry from the index folded.

Thanks. I'm actually not interested in removing the media
database entries, however, just the client index directory
itself on disk as well as all the resources in nmc. Seems
easy enough, but wasn't sure if the 'nsrck -R - Y' command
needed to be done before or after removing the client
resources or if it even matters. Still seems unnecessary to
even bother using the nsrck command when a *very* careful
'mv' command (say, to somewhere safe outside of
/opt/nsr/index), followed by an 'rm -rf client' would do.

Then again, perhaps the whole reason to use the nsrck command
is that this might obviate the need to shut down NW first?
Doubt the command would work if NW was already down?

George


Hope this helps.

-----Original Message-----
From: EMC NetWorker discussion
[mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
On Behalf Of George Sinclair
Sent: Sunday, February 06, 2011 7:20 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] How to delete a client file index?

Hi,

Running 7.5.1 on Linux RH.

I have some old clients that I want to remove from disk because
they're taking up space and licenses. I have their NSR
client resource
information saved, including the clientid - not that I couldn't get
that from the media database - but just in case. I also have full
backups of their indexes. I don't need these anymore.

Can I just remove the NSR client resources from NMC and then run
'nsrck -R -Y client'. Is that all I need to do? Is that the
correct order?
Also, why not just run 'rm -rf client'. I mean, aside from
the obvious
possibility for horrible mistype, does the nsrck command accomplish
anything more or better?

Even if NW was somehow trying to prune the index when you
ran it, what
difference would it make if you don't need it anymore?

Thanks.

George



--
George Sinclair
Voice: (301) 713-3284 x210
- The preceding message is personal and does not reflect any
official or unofficial position of the United States
Department of Commerce -
- Any opinions expressed in this message are NOT those of the
US Govt. -

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

NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Group Limited or third parties. If you are not the 
intended recipient of this email you should not read, print, re-transmit, store 
or act in reliance on this e-mail or any attachments, and should destroy all 
copies of them. Macquarie Group Limited does not guarantee the integrity of any 
emails or any attached files. The views or opinions expressed are the author's 
own and may not reflect the views or opinions of Macquarie Group Limited.



--
George Sinclair
Voice: (301) 713-3284 x210
- The preceding message is personal and does not reflect any official or unofficial position of the United States Department of Commerce -
- Any opinions expressed in this message are NOT those of the US Govt. -

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

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