he host is connected through an LSI scsi card (LVD) to a VXA Packet loader.
The details displayed in /var/log/messages is nothing like the exmaple from
the tape test notes. Command tapeinfo output also seems odd. Variable block
doesn't last, it very quickly returns to 1024.
Any config ideas or setting changes would be very welcome
Alex
Errors and configuration details are...
[EMAIL PROTECTED] ~]# tapeinfo -f /dev/nst0
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
[EMAIL PROTECTED] bacula]# btape -v -d 3 -c bacula-sd.conf /dev/nst0 Tape block
granularity is 1024 bytes.
btape: butil.c:272 Using device: "/dev/nst0" for writing.
18-May 09:06 btape: 3301 Issuing autochanger "loaded drive 0" command.
18-May 09:06 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
18-May 09:06 btape: 3301 Issuing autochanger "loaded drive 0" command.
18-May 09:06 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:338 open device "Drive-1" (/dev/nst0): OK *test
=== Write, rewind, and re-read test ===
I'm going to write 1000 records and an EOF then write 1000 records and an EOF,
then rewind, and re-read the data to verify that it is correct.
This is an *essential* feature ...
btape: btape.c:795 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:811 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:820 Rewind OK.
18-May 09:07 btape: btape Error: block.c:263 Volume data error at 0:0! Wanted
ID: "BB02", got "YTE ". Buffer discarded.
btape: btape.c:832 Read block 1 failed! ERR=Input/output error
[EMAIL PROTECTED] ~]# uname -a
Linux polaris.inter-systems.com.au 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST
2005 x86_64 x86_64 x86_64 GNU/Linux
[EMAIL PROTECTED] ~]# cat /etc/redhat-release Red Hat Enterprise Linux ES
release
4 (Nahant Update 3)
[EMAIL PROTECTED] ~]# grep st0 /var/log/messages polaris scsi.agent[801]:
changer
at /devices/pci0000:00/0000:00:06.0/0000:05:00.0/0000:06:02.0/host0/target0:0:0
/0:0:0:0
polaris scsi.agent[827]: tape
at /devices/pci0000:00/0000:00:06.0/0000:05:00.0/0000:06:02.0/host0/target0:0:1
/0:0:1:0
polaris kernel: Attached scsi tape st0 at scsi0, channel 0, id 1, lun 0
polaris kernel: st0: try direct i/o: yes (alignment 512 B), max page reachable
by HBA 268435455 polaris kernel: st0: Block limits 1 - 245760 bytes.
[EMAIL PROTECTED] ~]# lspci
06:02.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1010 66MHz
Ultra3 SCSI Adapter (rev 01)
[EMAIL PROTECTED] vxa]# ./libTool -S
libTool V1.62 - (c) 2002-2004 Exabyte Corp.
Scanning your system for media changers...OK
Device | Address
------------------------+---------------
EXABYTE VXA 1x10 1U | /dev/sg0
[EMAIL PROTECTED] vxa]# mt -f /dev/nst0 status SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 1024 bytes. Density code 0x81 (DLT 15GB compressed).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
[EMAIL PROTECTED] vxa]# mt -f /dev/nst0 setblk 0
[EMAIL PROTECTED] vxa]# mt -f /dev/nst0 status SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x81 (DLT 15GB compressed).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
[EMAIL PROTECTED] vxa]# cd /etc/bacula
[EMAIL PROTECTED] bacula]# btape -v -d 3 -c bacula-sd.conf /dev/nst0 Tape block
granularity is 1024 bytes.
btape: butil.c:272 Using device: "/dev/nst0" for writing.
18-May 09:06 btape: 3301 Issuing autochanger "loaded drive 0" command.
18-May 09:06 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
18-May 09:06 btape: 3301 Issuing autochanger "loaded drive 0" command.
18-May 09:06 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:338 open device "Drive-1" (/dev/nst0): OK *test
=== Write, rewind, and re-read test ===
I'm going to write 1000 records and an EOF then write 1000 records and an EOF,
then rewind, and re-read the data to verify that it is correct.
This is an *essential* feature ...
btape: btape.c:795 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:811 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:820 Rewind OK.
18-May 09:07 btape: btape Error: block.c:263 Volume data error at 0:0! Wanted
ID: "BB02", got "YTE ". Buffer discarded.
btape: btape.c:832 Read block 1 failed! ERR=Input/output error
[EMAIL PROTECTED] bacula]# cat bacula-sd.conf ...
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
#
# An autochanger device with two drives
#
Autochanger {
Name = Autochanger
Device = Drive-1
#Device = Drive-2
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg0
}
Device {
Name = Drive-1 #
Drive Index = 0
Media Type = 8mm
Archive Device = /dev/tape
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users