Networker

Re: [Networker] Incorrect block size in Windows2003

2005-11-02 11:54:18
Subject: Re: [Networker] Incorrect block size in Windows2003
From: Patricia Neal <neal AT CSEAINC DOT ORG>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 2 Nov 2005 11:51:59 -0500
Goal
-------
How to recover files on a tape whose block size differs from the block size
setting on the NetWorker server?

Goal
-------
How to change the block size on Compaq servers using the Compaq miniport
driver cpq32fs2?

Fact
-------
Windows NT 4sp6

Fact
-------
NetWorker for Windows 6.1.2

Fact
-------
SCSI adapter is a Symbios logic 875xs model 2280x

Fact
-------
Compaq miniport driver cpq32fs2

Symptom
-------
Error: 'nsrd: media warning: <\\.\Tape5> moving: fsr 59 (read): More data is
available.'

Symptom
-------
Error:'nsrd: media emergency: could not position xxxx to file 53, record 60'

Symptom
-------
Error:'nsrd: media notice: Volume ""xxxx"" on device ""<\\.\Tape5>": Cannot
decode block. Verify the device configuration. Tape positioning by record is
disabled.'

Symptom
-------
Error: device disabled warning: Device <\\.\Tape5> is automatically
disabled.

Symptom
-------
Unable to restore files from tapes backed up on old NetWorker server.

Change
-------
NetWorker Server recovered to a new server

Cause
-------
The block size used to back up the tape was 128k and the NetWorker server
was configured for a 64k block size.

Fix
-------
NOTE:  Because the SCSI card is not an adaptec card <a
href="primus://:legato7083">Legato7083</a> will not apply

INITIAL CHECKS:

First, check the block size the tape was written with:
- Load the tape with no mount to one of the drives
- Scan the tape with verbose switch on (scanner -vvvv <\\.\TapeX>)
- you can read from the scanner output (Sample below: shows "record size
655536") when you divide the number shown by 1024 this will give you the
block size of the tape (ie. 65536/1024=64kb)

Sample:
C:\>nsrjb -lnv -f <\\.\Tape0> -S Slot_Number C:\> scanner -vvv <\\.\Tape0>
scanner: Opened <\\.\Tape0> for read
scanner: Rewinding...
scanner: Rewinding done
scanner: Reading the label...
scanner: Reading the label done
scanner: scanning dlt7000 tape Full.001 on <\\.\Tape0>
scanner: volume id 128186625 record size 65536 created 11/30/01 10:21:29
expires 11/30/03 10:21:29 ...

CHANGING THE BLOCK SIZE:

1. Run REGEDIT (the Registry Editor)
2. open:
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cpq32fs2

3. Create a key named Parameters (if it doesn't exist) by selecting from the
menu:
Edit > New > Key and entering Parameters for Key Name.

4. Open the Parameters key and create a key named Device by selecting from
the menu:
Edit > New > Key and entering Device for Key Name.

5. Open the Device key and create a DWORD named MaximumSGList by selecting
from the menu:
Edit > New > DWORD and entering MaximumSGList for DWORD Name.

6. Open the MaximumSGList Value Name and replace the existing Value Data in
Decimal with one of the values from (Table 6)

Table 6. Block Sizes
Block Size Decimal Value Hex Value
64k 17 decimal 11 hex
96k 25 decimal 19 hex
128k 33 decimal 21 hex
256k 65 decimal 41 hex
512k 129 decimal 81 hex

If your block size is not listed, please use the above formula for the
decimal value:
MaximumSGList = (Maximum Block Size)/4K +1


7.  Close regedit and reboot the server.

8.  Run the mt command to confirm that the maximum block size has changed.

Sample:
C:\>mt -f <\\.\Tape1> status
<\\.\Tape1>:
Media Capacity = 15.20GByte
Media Remaining = 13.60GByte
Media Blocksize = 0
Media Partition Count = 0
Media is not write protected
default blocksize = 65536
maximum blocksize = 131072
minimum blocksize = 1
MaximumPartitionCount = 0
Partition = 0
Logical block position = 44815
EOTWarningZoneSize = 0
CompressionEnabled
Features: ...

>>

For the backup system, you have to set all machines, switch with full duplex
or all with half duplex. Don't mix the full duplex and half duplex in the
system.


Patricia Neal
Production Support Specialist
C.S.E.A.
----- Original Message ----- 
From: "Pierpa" <pierpaolo.frassino AT SOLVEIT DOT IT>
To: <NETWORKER AT LISTSERV.TEMPLE DOT EDU>
Sent: Wednesday, November 02, 2005 5:52 AM
Subject: [Networker] Incorrect block size in Windows2003


> Hi,
> I've setup my ADIC ascalar library with 2 IBM LTO Ultrium 2 drives, in SAN
> with A Windows2003 Networker 7.2.1 server.
> In order to setup a LTO blocksize of 256K, I've used the variable
> NSR_DEV_BLOCK_SIZE_LTO_ULTRIUM_2 to 256, and it seems to work fine (
> infact, as soon as I boot my networker server it says "LTO Ultrium-2 set
> to 256K".
> If I check on my Windows2003 box, the IBM drivers sets these parameters:
>
> Max blocksize  2097152
> min blocksize   1
> default blocksize 65536
>
> but, if I check a tape with "mt -f \\.\Tapex status" command I see
> something like :
>
> default blocksize  65536
> minimum blocksize  1
> maximum blocksize  131072
>
> So, the maximum blocksize is not the same I see using the GUI. Of course,
> If I try to label a tape from networker, I see from scanner utility the
> block size to 128K and not 256K as I fixed using the NSR variable. I've
> installed/uninstalled the devices drivers several times, but I see always
> the same frustrating difference between the GUI and the mt command. Of
> course the real blocksize on the tape is never 256K as I need, but 128k.
> Have I missed something ? There is something else I have to check ( even
> on the registries )??
>
> Any help is really apprecited
>                               Pierpa
>
> 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
> wit 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
>

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