Networker

Re: [Networker] Relabeling a tape versus recycling - I'm confused?

2008-09-26 23:20:51
Subject: Re: [Networker] Relabeling a tape versus recycling - I'm confused?
From: Peter Viertel <Peter.Viertel AT MACQUARIE DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Sat, 27 Sep 2008 13:16:26 +1000
-R  add checks into the process to ensure there was already a valid
networker label on the tape before writing a new one... If you don't use
-R and there's been a problem with mis-ordered drives then -R will save
you from accidental destruction of data. It only carries the history
data over from the old label when the old one was still in the media
database.

-B is a silimar flag - it checks there is not a networker label on the
tape before labelling it - this also helps prevent accidental
destruction of data when jukebox inventories are wrong.

-Y skips asking you the question.


I always use -R or -B  in scripts that relabel/label tapes so if
anyhting is wrong the operation fails in a safe way that you can recover
from.

There's the odd case where you do need to do relabelling without the -R
flag, and there are also cases when you have to delete a volume first
with nsrmm  - but only if you take care to make sure nothing is wrong
with the system first.. I see no need for anyone to be using tar or dd,
it's a waste of time and risky.



-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of George Sinclair
Sent: Saturday, 27 September 2008 6:22 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] Relabeling a tape versus recycling - I'm confused?

If you re-label a tape (not using the same volume name), what's the 
difference between doing it this way:

nsrjb -s server -L -b pool_name -S slot

and the answering 'yes' when it asks if you want to overwrite, versus 
running this instead???:

nsrjb -s server -L -b pool_name -R -S slot

I've always used the first method, although if it has an associated bar 
code, and I don't plan to reuse the bar code label, then I always remove

it from the media database first to avoid associating the previous bar 
code with the new volume. Also, I remove it first if I'm re-labeling it 
with the same volume name.

According to the man page for nsrjb and nsrmm, the '-R' option re-writes

the label. Wouldn't this happen anyway? If you don't specify the '-R' 
option then what happens? Clearly, NW has to have some way to store the 
new volume name on the volume, right? Why would it not re-write the
label?

I'd read somewhere that when re-labeling a tape that you should first 
remove it from the database (nsrmm -d) and then tar some data to it and 
then label it? Is this the same as using '-R'.

Can someone please straighten me out on this issue.

Thanks.

George


-- 
George Sinclair
NOAA/NESDIS/National Oceanographic Data Center
SSMC3 E/OC3 Room 4145         | Voice: (301) 713-3284 x210
1315 East West Highway        | Fax:   (301) 713-3301
Silver Spring, MD 20910-3282  | Web Site:  http://www.nodc.noaa.gov/
- 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.

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>