Networker

Re: [Networker] How best to remove a file from a file type device?

2010-06-17 10:34:15
Subject: Re: [Networker] How best to remove a file from a file type device?
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 17 Jun 2010 10:31:12 -0400
Francis Swasey wrote:
You could unmount and manually remove, if you can find the real file. I'd personally try the -C flag to nsrstage first -- which should do just
what you want.

Thanks. I tried that. No errors, but it didn't remove it. Odd. So, I unmounted the file type device and retried - not that I thought that would work, but what the heck - and the results were the same.

Since the savetime for the file is unique, I can easily identify it. Also, it's name is ssid.0, so I considered just removing the file while I had the device unmounted, but to be clever, I ran scanner to add the ssid back to the media database as:

scanner -s server -t file -m -S ssid/cloneid /ftypedevice > /dev/null

That worked. I then remounted the device and then ran nsrstage as:

nsrstage -v -b 'clone pool' -m -S ssid/cloneid

That worked. It's gone now.


George



Frank

On 6/16/10 4:42 PM, George Sinclair wrote:
Since NW doesn't know it's there, can I simply unmount the volume,
manually delete the file, and then remount?

I guess I could scan the device, but I don't really need the saveset
there since I already have a copy on the clone.



--
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>