That fixed it! Many thanks.

JJ

________________________________
From: Timo Neuvonen [timo-n...@tee-en.net]
Sent: Saturday, June 19, 2010 1:26 AM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] accessing 2nd drive

>From your original post:
----
Device "Drive1" (/dev/st0) is mounted with:
....
    Slot 17 is loaded in drive 0.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
Device "Drive2" (/dev/st1) is not open.
    Slot 17 is loaded in drive 0.
----

This is only an educated guess since I don't have a multi-drive autochanger...
But in the cut above it looks like both the drives are addressed like "0".
AFAIK, the last parameter to mtx-changer (%d) should idicate the drive-index.
Have a look at "Drive Index = n" in the manual cuts below. Maybe it helps?



Autochanger {
Name = "Autochanger"
Device = Drive-1, Drive-2
Changer Device = /dev/sg0
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}
Device {
Name = Drive-1
Drive Index = 0
Media Type = DDS-4
Archive Device = /dev/nst0 # Normal archive device
Autochanger = yes
LabelMedia = no;
AutomaticMount = yes;
AlwaysOpen = yes;
}
Device {
Name = Drive-2
Drive Index = 1
Media Type = DDS-4
Archive Device = /dev/nst1 # Normal archive device
Autochanger = yes
LabelMedia = no;
AutomaticMount = yes;
AlwaysOpen = yes;
}
--
TiN


"Jeremiah D. Jester" <jj...@u.washington.edu<mailto:jj...@u.washington.edu>> 
kirjoitti viestissä 
news:14c6c8313f1842459faad0b3feb9e42c4feeb...@ads-mbx-02.exchange.washington.edu...
Am also receiving these messages… Odd that Drive1 auto loads but Drive2 does 
not.


18-Jun 13:24 bacula01-sd JobId 0: 3301 Issuing autochanger "loaded? drive 0" 
command.

18-Jun 13:24 bacula01-sd JobId 0: 3302 Autochanger "loaded? drive 0", result is 
Slot 17.

18-Jun 13:24 bacula01-sd JobId 0: 3301 Issuing autochanger "loaded? drive 0" 
command.

18-Jun 13:24 bacula01-sd JobId 0: 3302 Autochanger "loaded? drive 0", result is 
Slot 17.

18-Jun 13:24 bacula01-sd: Fatal Error at device.c:298 because:

dev open failed: dev.c:491 Unable to open device "Drive2" (/dev/st1): ERR=No 
medium found



18-Jun 13:24 bacula01-sd JobId 0: Error: stored.c:551 Could not open device 
"Drive2" (/dev/st1)


From: Jeremiah D. Jester [mailto:jj...@u.washington.edu]
Sent: Friday, June 18, 2010 1:33 PM
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] accessing 2nd drive

I have a autoloader that has two drives in it. For some reason, Drive1 is only 
being utilized and jobs are being backlogged in the que without taking 
advantage of the other drives. Any ideas why this might be? I’ve included info 
from bconsole and bacula-sd.conf.

Thanks!
JJ
Bacula-sd.conf
Autochanger {
        Name = ADIC_Scalar_24
        Device = Drive1
        Device = Drive2
        Changer Device = /dev/sg3
        Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}
Device {
        Name=Drive1
        Media Type = LTO2
        Archive Device = /dev/st0
        Autochanger = yes
        AutomaticMount = yes;
        AlwaysOpen = yes;
        LabelMedia = no;
        RemovableMedia = yes;
        Random Access = no;
}
Device {
        Name=Drive2
        Media Type = LTO2
        Archive Device = /dev/st1
        Autochanger = yes
        AutomaticMount = yes;
        AlwaysOpen = yes;
        LabelMedia = no;
        RemovableMedia = yes;
        Random Access = no;
}

Bconsole.
…
Device status:
Autochanger "ADIC_Scalar_24" with devices:
   "Drive1" (/dev/st0)
   "Drive2" (/dev/st1)
Device "Drive1" (/dev/st0) is mounted with:
    Volume:      KL0410
    Pool:        Onsite
    Media type:  LTO2
    Device is being initialized.
    Slot 17 is loaded in drive 0.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
Device "Drive2" (/dev/st1) is not open.
    Slot 17 is loaded in drive 0.
Device "FileStorage" (/tmp) is not open.



Jeremiah Jester
Senior Informatics Specialist
Microbiology, Katze Lab
Box 357242
P: 206-732-6185


________________________________

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo

________________________________

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to