From: Kern S. <ke...@si...> - 2003-10-31 16:43:44
|
Hello, I don't know if you got an answer or not, but in case you did not, please see the manual at: http://www.bacula.org/html-manual/autochangers.html particularly the second part of that chapter that tells you how to go about testing your autochanger manually, and what the most likely changes will be. It also tells you where to find some example scripts that users have submitted. Best regards, kern On Wed, 2003-10-29 at 00:20, Jonathan Loran wrote: > List, > > I'm new to the list and Bacula. I think this is a very impressive piece > of software. Thanks to all. > > The problem I'm having is when I label tapes with my autochanger, I get > an error on the second and subsequent tapes. If I restart the bacula-sd > I can label another tape. It looks to me like the storage daemon is > keeping the drive open between tape loads. Interestingly, btape-> test > works fine. Here's the error I'm getting in the console program: > > ---- > > Connecting to Storage daemon ADIC-2 at avalon:9103 ... > Sending label command for Volume "media-006" Slot 6 ... > 3301 Issuing autochanger "loaded" command. > 3302 Issuing autochanger "unload" command. > 3303 Issuing autochanger "load slot 6" command. > 3304 Autochanger "load slot 6" status is OK. > 3912 Failed to label Volume: ERR=dev.c:364 Rewind error on /dev/nst3. > ERR=Input/output error. > > Label command failed. > Do not forget to mount the drive!!! > ---- > > Other important info: > OS: RedHat 9.0 > Bacula Version: 1.31a > Changer: ADIC VLS400 (DLT4000) > > Device resorce in bacula-sd.conf: > > Device { > Name = "ADIC-1" # First ADIC JB > Media Type = DLT4000 > Archive Device = /dev/nst2 > AutomaticMount = yes; # when device opened, read it > AlwaysOpen = yes; > RemovableMedia = yes; > Changer Device = /dev/sg11 > Autochanger = yes; > Changer Command = "/etc/bacula/mtx-changer %c %o %S %a" > Maximum Changer Wait = 120 > LabelMedia = yes > } > > Storage resource in bacula-dir.conf: > > # Definition of DLT4000 tape storage device > Storage { > Name = "ADIC-1" > Address = avalon # N.B. Use a fully qualified name here > SDPort = 9103 > Password = "bLanHz3kfCpCVTM21F48QqMDPrpdF9E/gu5lMQCExi+5" > Device = "ADIC-1" > Media Type = DLT4000 > Autochanger = yes > } > > > The mtx-changer script test out. Any other info I can give, please let > me know. > > Thanks, > > |