Networker

Re: [Networker] Reincorporating old tape set into Networker media database

2008-02-06 12:16:12
Subject: Re: [Networker] Reincorporating old tape set into Networker media database
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 6 Feb 2008 11:12:30 -0600
In regard to: Re: [Networker] Reincorporating old tape set into Networker...:

However when I try to mount one of these old tapes in a drive so I can
run Scanner, it refuses to load. Networker says "Will not be loaded
since pool "Unknown Pool" is not available. Presumably the pool no
longer exists. How might I find what it was so I can recreate it?

The pool name is written as part of the label on the tape.  I've posted
this set of steps for reading the label to the list a few times in the
past, but here it is again.  On a UNIX or Linux box with the "dd" command,
you can read the label and then save it to a file, and then examine it
with something like the "od" command:

$sudo mt -f /dev/nst0 rewind
$sudo dd if=/dev/nst0 of=/tmp/label bs=128k
0+1 records in
0+1 records out
$od -t c /tmp/label
0000000   V   O   L   1   N   D   S   U   _   I   N   E   T   W   O   R
0000020   K   E   R  \t  \t  \t  \t  \t                           3  \0
0000040   s   e   t   t   i   n   g       p   o   s   i   t   i   o   n
0000060       f   r   o   m       f   n       %   l   u   ,       r   n
0000100 % l u t o f n % l u , 0000120 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0000160  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 006  \0 002  \0  \0
0000200  \0  \0  \0 005   Ã   ©   ©   |   G   ©   ©   |   d   ?  \0  \0
0000220 206 201   o 020  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 001   \
0000240  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000260  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000300  \0  \0  \0   D  \0  \a 004   `  \0  \0  \0  \0   G   ©   ©   |
0000320  \0  \0  \0  \0   K   l 020   |  \0 002  \0  \0  \0  \0  \0 005
0000340   Ã   ©   ©   |   G   ©   ©   |   d   ?  \0  \0 206 201   o 020
0000360  \0  \0  \0 021   N   D   S   U   _   I   T   S   _   M   i   s
0000400   c   :   0   3   5  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000420  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000440  \0  \0  \0  \0  \0  \0  \0   4  \0  \0  \0 001  \0  \0  \0  \v
0000460   v   o   l   u   m   e       p   o   o   l  \0  \0  \0  \0 001
0000500  \0  \0  \0  \r   N   D   S   U       I   T   S       M   i   s
0000520   c  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000540  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0100000


As you can see, the pool name occurs at 504 (octal) in the label, and in
this case is "NDSU ITS Misc" -- I don't know if that's a fixed position
or if it floats based on the length of earlier data, since I've always
been able to identify it using this method, I've never needed to worry
about exact location in the data.  The actual volume name occurs earlier in
the label (it's NDSU_ITS_Misc:035).

I'm not certain what tools you would use on Windows to accomplish the
same task, but that's how you determine the pool that a tape belongs to.
You probably do need to know what the block size was set to when the
volume was labelled, but for Windows I would imagine it is 64K.

Tim
--
Tim Mooney                                        Tim.Mooney AT ndsu DOT 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

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