Hithere,

I compiled bacula-1.38.2 last week and I running btape to test my LTO
drives.

We have two HP Ultrium drives, which are part of a HP C7200/dell pv128
autochanger.  I am currently testing the drives separately. Both drives
pass the "btape test" command. Both drives fail when using "btape fill
simple".

For Drive-1,btape fills ~2GB then aborts. I guess the last block is
never written properly. The fill test continues though, it thinks it
has filled the tape and attempts read the last block, where it hangs.

So...
Suggestions for troubleshooting ?
Any magic mt commands I should be issuing before starting the test ?

Thanks,

Chris

Here is my bacula-sd.conf:

Device {
  Name = Drive-1                      #
  Drive Index = 0
  Media Type = LTO-1
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = no;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes;
  LabelMedia = yes;
  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
#  SpoolDirectory=/.tape_spool
#  Maximum Spool Size = 20G
#  Maximum Open Wait = 30 seconds
}

Device {
  Name = Drive-2                      #
  Drive Index = 1
  Media Type = LTO-1
  Archive Device = /dev/nst1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = no;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  LabelMedia = yes;
  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
#  SpoolDirectory=/.tape_spool
#  Maximum Spool Size = 20G
#  Maximum Open Wait = 30 seconds
}


Here is the output for "btape fill simple:"
> ./btape -v -d 100 /dev/nst0

*fill

This command simulates Bacula writing to a tape.
It requires either one or two blank tapes, which it
will label and write.

If you have an autochanger configured, it will use
the tapes that are in slots 1 and 2, otherwise, you will
be prompted to insert the tapes when necessary.

It will print a status approximately
every 322 MB, and write an EOF every 3.2 GB.  If you have
selected the simple test option, after writing the first tape
it will rewind it and re-read the last block written.

If you have selected the multiple tape test, when the first tape
fills, it will ask for a second, and after writing a few more
blocks, it will stop.  Then it will begin re-reading the
two tapes.

This may take a long time -- hours! ...

Do you want to run the simplified test (s) with one tape
or the complete multiple tape (m) test: (s/m) s
Simple test (single tape) selected.
btape: btape.c:1818 Begin append device="Drive-1" (/dev/nst0)
btape: btape.c:1819 MaxVolSize=0
btape: dev.c:655 rewind_dev fd=3 "Drive-1" (/dev/nst0)
btape: dev.c:1521 weof_dev
btape: dev.c:655 rewind_dev fd=3 "Drive-1" (/dev/nst0)
btape: label.c:299 write_volume_label()
btape: label.c:305 Label type=0
btape: dev.c:655 rewind_dev fd=3 "Drive-1" (/dev/nst0)
btape: label.c:538 Start create_volume_label()

Volume Label:
Id                : Bacula 1.0 immortal
VerNo             : 11
VolName           : TestVolume1
PrevVolName       :
VolFile           : 0
LabelType         : PRE_LABEL
LabelSize         : 0
PoolName          : Default
MediaType         : LTO-1
PoolType          : Backup
HostName          : xxxxx
Date label written: 06-Jan-2006 22:44
btape: label.c:527 Created Vol label rec: FI=PRE_LABEL len=176
btape: label.c:341 Wrote label of 176 bytes to "Drive-1" (/dev/nst0)
btape: label.c:344 Call write_block_to_dev()
btape: label.c:349  Wrote block to device
btape: dev.c:1521 weof_dev

Volume Label:
Id                : Bacula 1.0 immortal
VerNo             : 11
VolName           : TestVolume1
PrevVolName       :
VolFile           : 1
LabelType         : PRE_LABEL
LabelSize         : 0
PoolName          : Default
MediaType         : LTO-1
PoolType          : Backup
HostName          : xxxxx
Date label written: 06-Jan-2006 22:44
Wrote Volume label for volume "TestVolume1".
btape: btape.c:1840 just before acquire_device
btape: btape.c:2649 Enter dir_get_volume_info
btape: btape.c:1847 Just after acquire_device_for_append
btape: label.c:636 session_label record=89cdea8
btape: label.c:692 Write sesson_label record JobId=0 FI=SOS_LABEL
SessId=1 Strm=         0 len=144 remainder=0
btape: label.c:696 Leave write_session_label Block=0 File=1
Wrote Start of Session label.

Begin writing Bacula records to tape ...
Wrote blk_block=5000, dev_blk_num=984 VolBytes=63,479,808 rate=976.6
KB/s
Wrote blk_block=10000, dev_blk_num=5984 VolBytes=386,039,784 rate=974.8
KB/s
Wrote blk_block=15000, dev_blk_num=10984 VolBytes=708,599,728 rate=976.0
KB/s
Flush block, write EOF
btape: block.c:420 return write_block_to_dev no data to write
btape: dev.c:1521 weof_dev
Wrote blk_block=20000, dev_blk_num=5000 VolBytes=1,031,159,680
rate=972.8 KB/s
Wrote blk_block=25000, dev_blk_num=10000 VolBytes=1,353,719,624
rate=973.2 KB/s
Wrote blk_block=30000, dev_blk_num=15000 VolBytes=1,676,279,568
rate=974.6 KB/s
Flush block, write EOF
btape: block.c:420 return write_block_to_dev no data to write
btape: dev.c:1521 weof_dev
Wrote blk_block=35000, dev_blk_num=5000 VolBytes=1,998,839,520
rate=973.6 KB/s
06-Jan 23:37 btape: btape Error: block.c:538 Write error at 3:8229 on
device "Drive-1" (/dev/nst0). ERR=Input/output error.
btape: block.c:550 === Write error. fd=3 size=64512 rtn=-1 dev_blk=8229
blk_blk=38229 errno=5: ERR=Input/output error
btape: dev.c:1521 weof_dev
06-Jan 23:37 btape: btape Error: Error writing final EOF to tape. This
Volume may not be readable.
dev.c:1553 ioctl MTWEOF error on "Drive-1" (/dev/nst0). ERR=Input/output
error.
btape: block.c:688 WEOF error.

btape: block.c:705 dir_update_volume_info terminate writing -- ERROR
btape: block.c:728 Leave terminate_writing_volume -- ERROR
btape: btape.c:2295 Last block at: 3:8228 this_dev_block_num=8229
btape: btape.c:2309 Block not written: FileIndex=67297 blk_block=38229
Size=64448
btape: block.c:81 Dump block Last block written 89cdea8: size=64512
BlkNum=38228 Hdrcksum=ad597ecb cksum=ad597ecb
btape: block.c:94    Rec: VId=1 VT=1136604024 FI=67293 Strm=contDATA
len=11612 p=8a06448
btape: block.c:94    Rec: VId=1 VT=1136604024 FI=67294 Strm=DATA
len=32768 p=8a091b0
btape: block.c:94    Rec: VId=1 VT=1136604024 FI=67295 Strm=DATA
len=32768 p=8a111bc

btape: block.c:81 Dump block Block not written 89bd580: size=64512
BlkNum=38229 Hdrcksum=ad7ee8e6 cksum=ad7ee8e6
btape: block.c:94    Rec: VId=1 VT=1136604024 FI=67295 Strm=contDATA
len=12696 p=89bd608
btape: block.c:94    Rec: VId=1 VT=1136604024 FI=67296 Strm=DATA
len=32768 p=89c07ac
btape: block.c:94    Rec: VId=1 VT=1136604024 FI=67297 Strm=DATA
len=32768 p=89c87b8

btape: btape.c:2329 End of tape 3:8229. VolumeCapacity=2,207,148,736.
Write rate          = 689.9 KB/s
Done writing ...
Wrote state file last_block_num1=8228 last_block_num2=0


Done filling tape at 3:8229. Now beginning re-read of tape ...
btape: btape.c:2077 Enter do_unfill
btape: dev.c:655 rewind_dev fd=3 "Drive-1" (/dev/nst0)




-- 
Chris Hunter
Systems Programmer
Department of Astronomy, Yale University
[EMAIL PROTECTED]





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to