Bacula-users

Re: [Bacula-users] Tape drive/changer : Please help - going insane ...........

2011-08-31 21:01:33
Subject: Re: [Bacula-users] Tape drive/changer : Please help - going insane ...........
From: Dan Langille <dan AT langille DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 31 Aug 2011 20:58:40 -0400
On Aug 31, 2011, at 12:23 PM, morgan_cox wrote:

> Thank you for your feedback everybody
> 
> I have changed the config and retried - It again failed...   [Crying or Very 
> sad]  [Crying or Very sad] 
> 
> However seemed to go a bit further - it failed at a slightly different point 
> (this time I believe it changed the tape!)

I have no idea as the cause of the error.  However, mtx-changer can require 
customizations.  There are many things to consider
as there are many moving parts here.  Permissions can be tricky to get right.

These URLs document what I did.  Don't rush through them.  Take your time.  
Document what you are trying.

This URL shows how I first used mtx-changer and the tests I did: 
http://www.freebsddiary.org/tape-library.php

This URL shows a lot of testing of mtx-changer from the command line: 
http://www.freebsddiary.org/tape-labeling.php

Take it slow.  Understand what you are testing and why.  Ask questions if you 
do not fully understand.

> 
> Here is the error:-
> 
> ----------------------------
> btape: btape.c:2736 End of tape 814:0. Volume Bytes=812,948,032,512. Write 
> rate = 54.28 MB/s
> 31-Aug 16:51 btape JobId 0: End of medium on Volume "TestVolume1" 
> Bytes=812,948,032,512 Blocks=12,601,501 at 31-Aug-2011 16:51.
> 31-Aug 16:51 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" 
> command.
> 31-Aug 16:52 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" 
> command.
> 31-Aug 16:52 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: 
> nothing loaded.
> 31-Aug 16:52 btape JobId 0: 3304 Issuing autochanger "load slot 2, drive 0" 
> command.
> 
> 31-Aug 16:53 btape JobId 0: 3305 Autochanger "load slot 2, drive 0", status 
> is OK.
> Wrote Volume label for volume "TestVolume2".
> 31-Aug 16:53 btape JobId 0: Wrote label to prelabeled Volume "TestVolume2" on 
> device "LTO-4" (/dev/nst0)
> 31-Aug 16:53 btape JobId 0: New volume "TestVolume2" mounted on device 
> "LTO-4" (/dev/nst0) at 31-Aug-2011 16:53.
> btape: btape.c:2311 Wrote 1000 blocks on second tape. Done.
> Done writing 0 records ...
> Wrote End of Session label.
> btape: btape.c:2380 Wrote state file last_block_num1=15500 
> last_block_num2=1001
> btape: btape.c:2398
> 
> 16:53:45 Done filling tapes at 0:1003. Now beginning re-read of first tape ...
> btape: btape.c:2476 Enter do_unfill
> 31-Aug 16:53 btape JobId 0: 3307 Issuing autochanger "unload slot 2, drive 0" 
> command.
> 31-Aug 16:54 btape JobId 0: 3304 Issuing autochanger "load slot 1, drive 0" 
> command.
> 31-Aug 16:55 btape JobId 0: 3305 Autochanger "load slot 1, drive 0", status 
> is OK.
> 31-Aug 16:55 btape JobId 0: Ready to read from volume "TestVolume1" on device 
> "LTO-4" (/dev/nst0).
> Rewinding.
> Reading the first 10000 records from 0:0.
> 10000 records read now at 1:5084
> Reposition from 1:5084 to 813:15500
> 
> ^[[15~Reading block 15500.
> Error reading block: ERR=block.c:1025 Read zero bytes at 813:0 on device 
> "LTO-4" (/dev/nst0).
> 
> btape: btape.c:2403 do_unfill failed.
> ----------------------------
> 
> 
> This is my config now:-
> 
> --------------------------------------------------
> Autochanger {
> Name = "Autochanger"
> Device = LTO-4
> Changer Device = /dev/sg1
> Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
> }
> 
> Device {
> Name = LTO-4
> Drive Index = 0
> Media Type = LTO-4
> Archive Device = /dev/nst0
> AutomaticMount = yes; # when device opened, read it
> AlwaysOpen = yes;
> AutoChanger = yes
> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
> --------------------------------------------------
> 
> Any help would we really welcomed.
> 
> Also is there a quicker test to try the changer as the fill test takes about 
> 5-6 hrs to complete ?
> 
> Regards
> 
> +----------------------------------------------------------------------
> |This was sent by mcox AT cwcs.co DOT uk via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better 
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Dan Langille - http://langille.org


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users