Hi,

On 10/5/2006 8:53 AM, Michael Brennen wrote:
> On Thu, 5 Oct 2006, Pedro SepĂșlveda wrote:
> 
>> I have a robotic library Storagetek L40 with twho drives Ultrium LTO 
>> 2. In my server I have a network card scsii. I have Red Hat Advanced 
>> Server 3.0
>>
>> With this scsii I have connected the robot as the two drives in such a 
>> way that the first drive is /dev/nst0 0 and the second is /dev/nst0 1. 
>> I use this commands for example:

Erm... the drives should be /dev/nst0 and /dev/nst1.

>> /bacula/etc/mtx-changer / dev/sg2 loaded 0 / dev/nst1 0
>>
>> and for the other one
>>
>> /bacula/etc/mtx-changer / dev/sg2 loaded 0 / dev/nst1 1
>>
>> I don't know as configuring this in the bacula-sd.conf so that it 
>> works. Can they help me?
> 
> 
> This looks like it should work.  Just be sure to reference only the 
> 'STK-L40' device in the Storage configuration in the director, not the 
> drives directly.  You may have to modify the installed mtx-changer 
> script per the attached patch; the patch may at least give you an idea 
> of what might need to be changed.
> 
>    -- Michael
> 
>> #
>> # An autochanger device with two drives
>> #
>> Autochanger {
>>  Name = STK-L40
>>  Device = STK-L40-1, STK-L40-2
>>  Changer Command = "/bacula/etc/mtx-changer %c %o %S %a %d"
>>  Changer Device = /dev/sg2
>> }
>>
>> Device {
>>  Name = STK-L40-1
>>  Drive Index = 0
>>  Media Type = Ultrium2
>>  Archive Device = /dev/nst1

Make this /dev/nst0

Arno

>>  AutomaticMount = yes;
>>  AlwaysOpen = yes;
>>  RemovableMedia = yes;
>>  RandomAccess = no;
>>  AutoChanger = yes
>> }
>>
>> Device {
>>  Name = STK-L40-2
>>  Drive Index = 1
>>  Media Type = Ultrium2
>>  Archive Device = /dev/nst1
>>  AutomaticMount = yes;
>>  AlwaysOpen = yes;
>>  RemovableMedia = yes;
>>  RandomAccess = no;
>>  AutoChanger = yes
>> }
> 
> 
> ------------------------------------------------------------------------
> 
> --- mtx-changer       2006-09-05 12:02:54.000000000 -0500
> +++ mtx-changer.good  2006-08-11 14:37:56.000000000 -0500
> @@ -2,7 +2,7 @@
>  #
>  # Bacula interface to mtx autoloader
>  #
> -#  $Id: mtx-changer.in,v 1.27 2006/08/06 01:46:59 junkmale Exp $
> +#  $Id: mtx-changer.in,v 1.26 2006/04/21 11:25:15 kerns Exp $
>  #
>  #  If you set in your Device resource
>  #
> @@ -132,8 +132,8 @@
>        debug "Doing mtx -f $ctl unload $slot $drive"
>  #
>  # enable the following line if you need to eject the cartridge
> -#     mt -f $device offline
> -#     sleep 10
> +      mt -f $device offline
> +      sleep 10
>        ${MTX} -f $ctl unload $slot $drive
>        ;;
>  
> @@ -144,8 +144,8 @@
>  #
>  # Increase the sleep time if you have a slow device
>  # or remove the sleep and add the following:
> -#     wait_for_drive $device
> -      sleep 15
> +      wait_for_drive $device
> +#      sleep 60
>        exit $rtn
>        ;;
>  
> @@ -153,7 +153,7 @@
>        debug "Doing mtx -f $ctl -- to list volumes"
>        make_temp_file
>  # Enable the following if you are using barcodes and need an inventory
> -#     ${MTX} -f $ctl inventory
> +      ${MTX} -f $ctl inventory
>        ${MTX} -f $ctl status >${TMPFILE}
>        rtn=$?
>        cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | awk "{print 
> \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


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