On Dec 13, 2007 9:18 AM, Gary Danko <[EMAIL PROTECTED]> wrote:
> I think I am doing something wrong in configuring my autochanger. Would
> someone who successfully uses a changer with more than one tape engine
> please post their configs so I can examine them? The field the I am not sure
> about is the "Changer Device" in the Device section.
>
> From the documentation I read: " The specified name-string must be the
> generic SCSI device name of the autochanger that corresponds to the normal
> read/write Archive Device specified in the Device resource. This generic
> SCSI device name should be specified if you have an autochanger or if you
> have a standard tape drive and want to use the Alert Command (see below)."
>
> Does this mean that in the Device section, my "Changer Device" needs to be
> the generic SCSI device name of the changer itself or of the individual tape
> drive?
>
> My setup looks like this:
>
> tape drive 0 = /dev/nst0 = /dev/sg2
> tape drive 1 = /dev/nst1 = /dev/sg3
> tape drive 2 = /dev/nst2 = /dev/sg5
> tape drive 3 = /dev/nst3 = /dev/sg6
> changer = /dev/sg4
>
> The configuration for the changer and two of its drives is below. I am not
> sure if I should change the Changer Device to /dev/sg4 for each of the
> Device entries. Any ideas?
>
> Autochanger {
> Name = Dell
>   Device = ML6020-D0
>   Device = ML6020-D1
>   Device = ML6020-D2
>   Device = ML6020-D3
>   Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg4
> }
>
> Device {
>   Name = ML6020-D0
>   Archive Device = /dev/nst0
>   Device Type = Tape
>   Media Type = LTO4
>   Autochanger = Yes
>   Changer Device = /dev/sg2
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>   Drive Index = 0
>   Autoselect = Yes
>   AlwaysOpen = Yes;
>   RemovableMedia = Yes;
>   RandomAccess = No;
>   RequiresMount = No;
> }
>
>  Device {
>   Name = ML6020-D1
>   Archive Device = /dev/nst1
>    Device Type = Tape
>   Media Type = LTO4
>   Autochanger = Yes
>   Changer Device = /dev/sg3
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>   Drive Index = 1
>   Autoselect = Yes
>   AlwaysOpen = Yes;
>   RemovableMedia = Yes;
>   RandomAccess = No;
>   RequiresMount = No;
> }
>

Here is my config:

I have an Exabyte224 with 2 LTO2 drives.

Autochanger {
 Name = Magnum224-0
 Device = LTO2-0, LTO2-1
 Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
#  Changer Device = /dev/sg5
# 02/12/2007 added udev rule to link /dev/autochanger1 to the changer
 Changer Device = /dev/autochanger1
}

Device {
 Name = LTO2-0
 Media Type = LTO-2
 Drive Index = 0
 Archive Device = /dev/nst0
 Autochanger=yes
 AutomaticMount = yes;               # when device opened, read it
 AlwaysOpen = yes;
 RemovableMedia = yes;
 RandomAccess = no;
 Spool Directory = /mnt/tmp/bacula/tape
 Maximum Job Spool Size = 2G
 LabelMedia = Yes
 Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

Device {
 Name = LTO2-1
 Media Type = LTO-2
 Drive Index = 1
 Archive Device = /dev/nst1
 Autochanger=yes
 AutomaticMount = yes;               # when device opened, read it
 AlwaysOpen = yes;
 RemovableMedia = yes;
 RandomAccess = no;
 Spool Directory = /mnt/tmp/bacula/tape
 Maximum Job Spool Size = 2G
 LabelMedia = Yes
 Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

John

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to