> You need to post more details of your system and bacula version, your
> current configs and the exact error messages. It is impossible to
> debug with the amount of information you have revealed.
>
>
> John
Ok. No Problem:
I have 2 SD-Server. SD#1 use Drive-0 and SD#2 use Drive-1 - bis Drive-3. SD#1
have noch Problem to use Drive-0 (Drive Index 0). SD#2 Can't use any Drive -
see Debug Output below.
When i change the config von sd#1 to sd#2 and from sd#2 to sd#1, sd#1 can't use
Drive-1 to Drive-3. I get the same error. SD#2 can use with no problem Drive-1.
My bacula-sd.conf:
----
Autochanger {
Name = sgzhBaculaSD2-LTO
Device = Drive-0
Device = Drive-1
Device = Drive-2
Device = Drive-3
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg2
}
Device {
Name = Drive-0 #
Drive Index = 0
Media Type = LTO
Archive Device = /dev/nst2
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes;
Autoselect = no
Spool Directory = "/var/lib/bacula/tmp"
}
Device {
Name = Drive-1 #
Drive Index = 1
Media Type = LTO
Archive Device = /dev/nst3
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes;
Autoselect = yes
Spool Directory = "/var/lib/bacula/tmp"
}
Device {
Name = Drive-2 #
Drive Index = 2
Media Type = LTO
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes;
Autoselect = yes
Spool Directory = "/var/lib/bacula/tmp"
}
Device {
Name = Drive-3 #
Drive Index = 3
Media Type = LTO
Archive Device = /dev/nst1
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes;
Autoselect = yes
Spool Directory = "/var/lib/bacula/tmp"
}
---
Here are the output on the bconsole:
---
Mount sgzhBaculaSD2-LTO
3999 Device "sgzhBaculaSD2-LTO" not found or could not be opened.
---
And the debug output from the sd-server:
---
sgzhBaculaSD2: dircmd.c:172-0 Conn: Hello Director sgzhBaculaDIR-dir calling
sgzhBaculaSD2: dircmd.c:185-0 Got a DIR connection
sgzhBaculaSD2: jcr.c:603-0 OnEntry JobStatus=sgzhBaculaSD2: jcr.c:623-0 OnExit
JobStatus=C set=C
sgzhBaculaSD2: cram-md5.c:73-0 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
sgzhBaculaSD2: cram-md5.c:133-0 cram-get received: auth cram-md5 <[EMAIL
PROTECTED]> ssl=0
sgzhBaculaSD2: cram-md5.c:152-0 sending resp to challenge:
ex1azj/br///S7BNT5gMSC
sgzhBaculaSD2: dircmd.c:207-0 Message channel init completed.
sgzhBaculaSD2: dircmd.c:214-0 <dird: mount sgzhBaculaSD2-LTO drive=-1
sgzhBaculaSD2: dircmd.c:228-0 Do command: mount
sgzhBaculaSD2: dircmd.c:590-0 Try changer device Drive-1
sgzhBaculaSD2: dircmd.c:611-0 Device sgzhBaculaSD2-LTO drive wrong: want=0
got=1 skipping
sgzhBaculaSD2: mem_pool.c:377-0 garbage collect memory pool
---
When i set the Drive Index to 0 (zero) the sd server can mount the drive-1
correct. But the autochanger move the tape in the false drive.
Version 2.2.6 and 2.2.8 have the same problem. In Bacula 1.38.11 where are no
problems with this config.
Heiko
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users