On 3/23/07, Kristian Rink <[EMAIL PROTECTED]> wrote:


Folks;

not sure whether this is worth a question around, but I think of my
autochanger configuration to be messed-up somehow. By now I tracked
down things as far as having /etc/bacula/scripts/mtx-changer
successfully (un)loading tapes while being called from a shell.
However, while running btape, it seems that nothing happens:

backer:/etc/bacula# btape -c /etc/bacula/bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:272 Using device: "/dev/nst0" for writing.
23-Mar 09:44 btape: 3301 Issuing autochanger "loaded drive 0" command.
23-Mar 09:44 btape: 3302 Autochanger "loaded drive 0", result: nothing
loaded.
23-Mar 09:44 btape: 3301 Issuing autochanger "loaded drive 0"
command.
23-Mar 09:44 btape: 3302 Autochanger "loaded drive 0", result:
nothing loaded.
btape: btape.c:338 open device "LTO-2" (/dev/nst0): OK


When checking the loader status using mtx after starting btape this
way, I see the drive is empty. Is there anything else I
am still missing right now?


Environment:
- bacula 1.38.11, Debian unstable, pretty plain configuration by now
- Tandberg LTO-2 autoloader, 1 drive, no barcode reader
- drive-configuration in bacula-sd.conf:

Device {
  Name = LTO-2                       #
  Media Type = LTO-2
  Archive Device = /dev/nst0
  AutomaticMount = Yes;               # when device opened, read it
  AlwaysOpen = Yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %s %a %d"
  Changer Device = /dev/sg3
  AutoChanger = Yes
#  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}



My configuration has separate entries for the tape and the autoloader:

Autochanger {
 Name = 1x8_Autoloader
 Device = Ultrium-448
 Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
 Changer Device = /dev/sg1
}

Device {
 Name = Ultrium-448
 Media Type = LTO-2
 Archive Device = /dev/nst0
 AutomaticMount = yes;               # when device opened, read it
 AlwaysOpen = yes;
 RemovableMedia = yes;
 RandomAccess = no;
## Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
 AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# Spooling specs
 Spool Directory = /spooling/spool1
 Maximum Spool Size = 32000000000 # 32 GB
 Maximum Job Spool Size = 8000000000 # 8 GB
}

(and it works :-)

Cheers
--
Maxx
-------------------------------------------------------------------------
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

Reply via email to