Bacula-users

Re: [Bacula-users] accessing 2nd drive

2010-06-19 04:32:12
Subject: Re: [Bacula-users] accessing 2nd drive
From: "Timo Neuvonen" <timo-news AT tee-en DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 19 Jun 2010 11:26:59 +0300

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
 
 

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:jjest AT u.washington DOT edu]
Sent: Friday, June 18, 2010 1:33 PM
To: bacula-users AT lists.sourceforge DOT 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 AT lists.sourceforge DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>