Hello,
I think, I do not have a problem in my configuration.
I can load tapes into drive two with the mtx-script.
The parameters, which are send the mount-command to the mtx-script
imply ever the /dev/nst0 and the drive-index 0.
And bacule works fine with the first drive.
My autochanger config:
-------
#
# An autochanger device with two drives
#
Autochanger {
Name = tl-01
Device = tl-01-1
Device = tl-01-2
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg6
}
Device {
Name = tl-01-1 #
Drive Index = 0
Media Type = LTO-4
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = yes;
AutoChanger = yes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
Device {
Name = tl-01-2 #
Drive Index = 1
Media Type = LTO-4
Archive Device = /dev/nst1
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = yes;
AutoChanger = yes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
----
The director-sd-config:
----
# Definition of LTO tape storage device
Storage {
Name = tl-01
#Do not use "localhost" here
Address = backup # N.B. Use a fully qualified name here
SDPort = 9103
Password = "xxx" # password for Storage daemon
Device = tl-01-1 # must be same as Device in
Storage daemon
Device = tl-01-2 # must be same as Device in
Storage daemon
Media Type = LTO-4 # must be same as MediaType in
Storage daemon
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
-----
Juergen Koch
Arno Lehmann schrieb:
> Hello,
>
> 26.11.2009 16:31, Juergen Koch wrote:
>> I use a autochanger with bacula on debian/lenny.
>> The changer has two drives and I can load tapes into the drives using
>> the mtx-script:
>>
>> mtx-changer /dev/sg4 load 2 /dev/nst1 1
>>
>> But, the mount-command use only the default tape values:
>>
>> -----
>> *mount
>> Automatically selected Catalog: MyCatalog
>> Using Catalog "MyCatalog"
>> Automatically selected Storage: tl-01
>> Connecting to Storage daemon tl-01 at bacula:9103 ...
>>
>> Enter autochanger drive[0]: 1 ---!!!!---
>>
>> Enter autochanger slot: 2
>> 3307 Issuing autochanger "unload slot 1, drive 0" command.
>> 3304 Issuing autochanger "load slot 2, drive 0" command.
>> 3305 Autochanger "load slot 2, drive 0", status is OK.
>> 3001 Mounted Volume: xxx
>> 3001 Device "tl-01-1" (/dev/nst0) is already mounted with Volume "xxx"
>> ----
>
> Looks like a bug to me, unless you misconfigured something inthe
> SD.conf. Post that autochangers configuration, and also mention the
> version you're using, and we might have some advice for you!
>
> Cheers,
>
> Arno
>
>> The parameters to the mtx-script in the example are:
>>
>> -----
>>
>> /dev/sg6 unload 1 /dev/nst0 0
>>
>> /dev/sg6 load 2 /dev/nst0 0
>>
>> ----
>>
>> so, I can't load tapes to drive two (Drive Index = 1)
>>
>> any hints?
>>
>> is this a bug in the mount-command?
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|