I would suggest looking at and testing the mtx-changer command, since it
parses the output of the MTX command. I have found that for my auto
changer i had to tweek the script since my output was slightly different
than what was expected.
Justin Wainwright wrote:
New Bacula user here- I've gone over the config documentation a number
of times and I hope I'm missing something small...but I'm having issues
with 2-Sun L25s linked together with a Quantum StackLink on Debian etch
(2.6.x) with MySQL 5.0.30.
I've had the same issues with both the prepackaged Debian packages and
building from source, which suggests a config file problem...
I can load/unload tapes just fine and do all mtx commands with no
problems. All bacula services start fine (running as root). All
devices exist under /dev and permissions are correct for root. Each L25
has 2 drives available, giving me 4 drives able to write
simultaneously. However, bconsole won't run 'update slots scan' for the
autochanger (since it tries to access the drive's archive device instead
of the changer device), and I can successfully run 'btape test' and
'btape fill', but autochanger does NOTHING- just gives me another * prompt.
----------------------------------------------------------------
results from dmesg:
ch 2:0:0:0: Attached scsi changer ch0
ch 2:0:0:0: Attached scsi generic sg0 type 8
st 2:0:1:0: Attached scsi tape st0
st 2:0:1:0: Attached scsi generic sg1 type 1
st 2:0:2:0: Attached scsi tape st1
st 2:0:2:0: Attached scsi generic sg2 type 1
st 2:0:3:0: Attached scsi tape st2
st 2:0:3:0: Attached scsi generic sg3 type 1
st 2:0:4:0: Attached scsi tape st3
st 2:0:4:0: Attached scsi generic sg4 type 1
----------------------------------------------------------------
from bacula-dir:
Storage {
Name = StackLink
Address = myhost
SDPort = 9103
Password = ""
Device = StackLink
Autochanger = yes
Media Type = LTO-2
}
-----------------------------------------------------------------
from bacula-sd:
Autochanger {
Name = StackLink
Device = L25-1-1, L25-1-2, L25-2-1, L25-2-2
Changer Device = /dev/sg0
Changer Command = "/etc/bacula/mtx-changer %c %o %d %S" # I've
modified mtx-changer to use drive before slot
}
Device {
Name = L25-1-1
Media Type = LTO-2
Archive Device = /dev/nst0
AutomaticMount = yes;
Device Type = Tape
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Autoselect = yes
Drive Index = 0;
}
Device {
Name = L25-1-2
Media Type = LTO-2
Archive Device = /dev/nst1
AutomaticMount = yes;
Device Type = Tape
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Autoselect = yes
Drive Index = 1;
}
Device {
Name = L25-2-1
Media Type = LTO-2
Archive Device = /dev/nst2
AutomaticMount = yes;
Device Type = Tape
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Autoselect = yes
Drive Index = 2;
}
Device {
Name = L25-2-2
Media Type = LTO-2
Archive Device = /dev/nst3
AutomaticMount = yes;
Device Type = Tape
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Autoselect = yes
Drive Index = 3;
}
----------------------------------------------------
result from bconsole 'update slots scan':
*update slots scan
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: StackLink
Connecting to Storage daemon StackLink at myhost:9103 ...
3993 Device "L25-1-1" (/dev/nst0) not an autochanger device.
Device "StackLink" has 0 slots.
No slots in changer to scan.
----------------------------------------------------
Thanks in advance for any help you can offer.
-Justin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
begin:vcard
fn:Jeffrey Lang
n:Lang;Jeffrey
org:University of Wyoming;Geology and Geophyscis
adr:;;1000 E. University Ave;Laramie;WY;72071;USA
email;internet:[EMAIL PROTECTED]
title:Unix/Linux Systems Admiin
tel;work:307-766-3381
x-mozilla-html:TRUE
url:http://home.gg.uwyo.edu
version:2.1
end:vcard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users