Hello,

On 1/24/2006 11:33 PM, Andreas Freyvogel wrote:
Hi Arno,

Thanks for the quick reply. I did actually try to implement the
"autochanger" configuration but ran into mounting problems.  So, my thought
was to get the configuration working that worked before.

Good thought, but as far as I know that won't work...

The problem was that I was unable to specify a drive (by its index) to be
mounted/unmounted, it always ran the command on drive 0.

Definition of tape storage device in the director configuration:

Storage {
        Name = Autochanger
        Address = 216.113.192.114
        SDPort = 9103
        Password = "quiGfr+aOr7e/v7a8ghWsIsmV7zTocCadJKR3puuHj1c"
        Device = DLT8000-1
        Device = DLT8000-2

This might be the problem. Try specifying 'Device=Autochanger' here.

        Media Type = DLT8000
        Autochanger = yes
        Maximum Concurrent Jobs = 8
<<<

The autochanger and DLT 8000 Drives as defined in the storage configuration:

Autochanger {
  Name = Autochanger
  Device = DLT8000-1
  Device = DLT8000-2

Here, the actual drives are linked to the device the DIR sees.

  Changer Command = "/usr/local/bacula/scripts/chio-bacula %c %o %s %d"
  Changer Device = /dev/ch0
}

Device {
        Name = DLT8000-1
        Description = "DLT8000-1"
        Media Type = DLT8000
        Archive Device = /dev/sa0
        AutomaticMount = yes;
        AutoChanger= yes;
        AlwaysOpen = yes
        Hardware End of Medium = no
        BSF at EOM = yes
        Backward Space Record = no
        Fast Forward Space File = no
        TWO EOF = yes
        Drive Index = 0
        Spool Directory = /spool
        Maximum Job Spool Size = 8G
        Maximum Spool Size = 120G
}

Device {
        Name = DLT8000-2
        Description = "DLT8000-2"
        Media Type = DLT8000
        Archive Device = /dev/sa1
        AutomaticMount = yes;
        AutoChanger= yes;
        AlwaysOpen = yes
        Hardware End of Medium = no
        BSF at EOM = yes
        Backward Space Record = no
        Fast Forward Space File = no
        TWO EOF = yes
        Drive Index = 1
        Spool Directory = /spool
        Maximum Job Spool Size = 8G
        Maximum Spool Size = 120G
}
<<<

Did I miss something that would specify the drives more clearly to bacula?

Only the definition for the DIR as far as I can tell. The drive indices should be ok, and the rest of the drives setup doesn't need modification.

After you did the changes, and in case it doesn't work out, try running the SD with debug output (can be set from the console using the setdebug command) and have a look at the output from 'status storage=Autochanger'. It should list the autochanger setup as seen by the DIR, and also the status of the two drives.

And, in case you see the debug output from the SD (which would require a restart of the SD with the -d switch AFAIK) you might find some useful information concerning drive selection there.

Hopefully you get that set up soon so you can lean back watching the backup run for the rest of the night :-)

Arno


-Andreas


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Arno
Lehmann
Sent: Tuesday, January 24, 2006 2:18 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Manual intervention needed to change tapes


Hello,

On 1/24/2006 10:09 PM, Andreas Freyvogel wrote:

Greetings everyone,

We have recently been having a problem where Bacula is no longer
automatically changing tapes and it is requiring manual intervention.

Below

is what I see in the logs:


24-Jan 12:08 storage: End of Volume "CUZ277" at 64:8114 on device
"DLT8000-2" (/dev/sa1). Write of 64512 bytes got 0.
24-Jan 12:08 storage: End of medium on Volume "CUZ277"

Bytes=58,715,185,981

Blocks=910,158 at 24-Jan-2006 12:08.
24-Jan 12:09 director: Pruned 1 Job on Volume "BZF282" from catalog.

...

24-Jan 12:11 storage: Please mount Volume "CUZ306" on Storage Device
"DLT8000-2" (/dev/sa1) for Job webhosting1.2006-01-24_05.00.13
<<<

We are running bacula 1.38.2 (recently upgraded from 1.36.3 where this

used

to work) on FreeBSD 5.4 and the tape drives (Quantum DLT8000) are within

an

ATL (96 slot) Autochanger.


Ok, that's the hint... you recently upgraded.

First, verify that you've got the necessary and newly introduced
Autochanger section in SD configuration. If you've not got that, you
have to kill your running jobs :-| because the SD needs a restart after
that modification. (And remember to do the full btape test routine after
modifying the SD configuration...)

Apart from that, I guess the catalog is not yet in the right state, i.e.
the relationship between the Media information Slot and InChanger and
the newly created StorageId is not correct.

Try to clear all changer-related information from the catalog, for
example using a sql query like 'update Media set Slot=0,InChanger=0;'
and do an 'update slots' afterwards. Should work, then.

Arno


From what I can see everything is set up correctly. Also, I am able to run
the load, unload, loaded commands from the command prompt (using
chio-bacula) successfully.

Our configuration files include:

--------------
Director.conf:
--------------

Storage {
        Name = DLT8000-1
        Address = xxx.xxx.xxx.xxx
        SDPort = 9103
        Password = "quiGfr+aOr7e/v7a8ghWsIsmV7zTocCadJKR3puuHj1c"
        Device = DLT8000-1
        Media Type = DLT8000
        Maximum Concurrent Jobs = 8
}
Storage {
        Name = DLT8000-1-local
        Address = xxx.xxx.xxx.xxx
        SDPort = 9103
        Password = "quiGfr+aOr7e/v7a8ghWsIsmV7zTocCadJKR3puuHj1c"
        Device = DLT8000-1
        Media Type = DLT8000
        Maximum Concurrent Jobs = 8
}

Storage {
        Name = DLT8000-2
        Address = xxx.xxx.xxx.xxx
        SDPort = 9103
        Password = "quiGfr+aOr7e/v7a8ghWsIsmV7zTocCadJKR3puuHj1c"
        Device = DLT8000-2
        Media Type = DLT8000
        Maximum Concurrent Jobs = 8
}
Storage {
        Name = DLT8000-2-local
        Address = xxx.xxx.xxx.xxx
        SDPort = 9103
        Password = "quiGfr+aOr7e/v7a8ghWsIsmV7zTocCadJKR3puuHj1c"
        Device = DLT8000-2
        Media Type = DLT8000
        Maximum Concurrent Jobs = 8
}
<<<

-------------
Storage.conf:
-------------

#
# The DLT 8000 Drives
#
Device {
        Name = DLT8000-1
        Description = "DLT8000-1"
        Media Type = DLT8000
        Changer Command = "/usr/local/bacula/scripts/chio-bacula %c %o %s %d"
        Changer Device = /dev/ch0
        AutoChanger = yes
        Archive Device = /dev/sa0
        AutomaticMount = yes;
        AlwaysOpen = yes
     Offline On Unmount = no
        Volume Poll Interval = 3600
        Hardware End of Medium = no
        BSF at EOM = yes
        Backward Space Record = no
        Fast Forward Space File = no
        TWO EOF = yes
        Drive Index = 0
        Spool Directory = /spool
        Maximum Job Spool Size = 8G
        Maximum Spool Size = 120G
        Maximum Changer Wait = 600
}
Device {
        Name = DLT8000-2
        Description = "DLT8000-2"
        Media Type = DLT8000
        Changer Command = "/usr/local/bacula/scripts/chio-bacula %c %o %s %d"
        Changer Device = /dev/ch0
        AutoChanger = yes
        Archive Device = /dev/sa1
        AutomaticMount = yes;
        AlwaysOpen = yes
     Offline On Unmount = no
        Volume Poll Interval = 3600
        Hardware End of Medium = no
        BSF at EOM = yes
        Backward Space Record = no
        Fast Forward Space File = no
        TWO EOF = yes
        Drive Index = 1
        Spool Directory = /spool
        Maximum Job Spool Size = 8G
        Maximum Spool Size = 120G
        Maximum Changer Wait = 600
}
<<<

Any advice, ideas or assistance would be greatly appreciated. Thank you in
advance.
-Andreas

----------------------------------------------------------------
Andreas Freyvogel             |
System Administrator          |  "To do is to be." -- Plato
                             |
Uniserve Communications Corp. |  "To be is to do." -- Kant
direct: 604.647.0602          |
cell:   604.308.2497          |  "Do be do be do." -- Sinatra
Fax:    604-687-8130          |
-----------------------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log

files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to