I am having a problem with the settings for a HP C1557A Surestore 24x6
tape changer with amanda 2.4.1p1 and FreeBSD 4.1.1-RELEASE. The driver is
working properly, but I don't think I have the setting for the drive
correct. amcheck gives the following error:
%amcheck normal
Amanda Tape Server Host Check
-----------------------------
/hold/amanda: 53130264 KB disk space available, that's plenty.
amcheck-server: could not get changer info: 6 1
The strange thing is that amlabel is able to label the tapes just fine
(maybe?).
I noticed that when I try to cat the device after labeling it I get this
error:
%cat /dev/nsa0
cat: /dev/nsa0: Input/output error
And this error shows up in /var/log/messages:
Nov 1 16:22:05 bofh /kernel: (sa0:sym0:0:5:0): 32768-byte tape record
bigger than suplied buffer
Nov 1 16:22:05 bofh /kernel: (sa0:sym0:0:5:0): tape is now frozen- use an
OFFLINE, REWIND or MTEOM command to clear this state.
I believe the problem is in the settings for the tape changer
itself. Here is the output from mt status:
%mt -f /dev/nsa0 status
Mode Density Blocksize bpi Compression
Current: 0x25:DDS-3 variable 97000 disabled
---------available modes---------
0: 0x25:DDS-3 variable 97000 DCLZ
1: 0x25:DDS-3 variable 97000 DCLZ
2: 0x25:DDS-3 variable 97000 DCLZ
3: 0x25:DDS-3 variable 97000 DCLZ
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0 Record Number: 0
I have tried changing the blocksize to 32768:
%mt blocksize 32768
%mt status
Mode Density Blocksize bpi Compression
Current: 0x25:DDS-3 32768 bytes 97000 disabled
---------available modes---------
0: 0x25:DDS-3 32768 bytes 97000 DCLZ
1: 0x25:DDS-3 32768 bytes 97000 DCLZ
2: 0x25:DDS-3 32768 bytes 97000 DCLZ
3: 0x25:DDS-3 32768 bytes 97000 DCLZ
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0 Record Number: 0
After the change, the following message shows up in /var/log/messages:
Nov 1 16:32:35 bofh /kernel: (sa0:sym0:0:5:0): Invalid request. Fixed
block device requests must be a multiple of 32768 bytes
--
Robert Simmons
Systems Administrator
http://www.wlcg.com/