Director { # define myself
Name = xxxx
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/opt/bacula/bin/working"
PidDirectory = "/opt/bacula/bin/working"
Maximum Concurrent Jobs = 2
Password = "xxx" # Console password
Messages = Daemon
Maximum Concurrent Jobs = 3
}
More info. If i have one running job, and i launch another job to different pool:
Error: block.c:577 Write error at 0:10 on device "Drive-2" (/dev/nst1). ERR=Input/output error.
Error: Error writing final EOF to tape. This Volume may not be readable.
dev.c:1745 ioctl MTWEOF error on "Drive-2" (/dev/nst1). ERR=Input/output error.
End of medium on Volume "LT0117L3" Bytes=645,120 Blocks=9 at
in other words, when run the second job, the first job volume shows this message and bacula mark the volume to full, try to mount another available volume, and when bacula try to write to the volume, the message appear again.
In /var/log/messages i get this at same time:
mptbase: ioc1: LogInfo(0x11010202): F/W: bug! MID not found
st1: Error 80000 (sugg. bt 0x0, driver bt 0x0, host bt 0x8).
st0: Error 80000 (sugg. bt 0x0, driver bt 0x0, host bt 0x8).
st0: Current: sense key: Unit Attention
Add. Sense: Scsi bus reset occurred
st1: Current: sense key: Unit Attention
Add. Sense: Scsi bus reset occurred
o_0'
On Mon, Jul 18, 2011 at 3:32 PM, John Drescher
<drescherjm AT gmail DOT com> wrote:
2011/7/18 ninyo <ninyodios AT gmail DOT com>:
> Maybe, but i dont know how can it help me, because i already have a tape
> autoloader. This is my config for storage:
> bacula-sd.conf
> ##############
> Autochanger {
> Name = Autochanger
> Device = Drive-1
> Device = Drive-2
> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> Changer Device = /dev/changer
> }
> Device {
> Name = Drive-1 #
> Drive Index = 0
> Media Type = LTO-3
> Archive Device = /dev/nst0
> AutomaticMount = yes; # when device opened, read it
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> #If you have smartctl, enable this, it has more info than tapeinfo
> Alert Command = "sh -c 'smartctl -H -l error %c'"
> Maximum Concurrent Jobs = 1
> }
> Device {
> Name = Drive-2 #
> Drive Index = 1
> Media Type = LTO-3
> Archive Device = /dev/nst1
> AutomaticMount = yes; # when device opened, read it
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> # Enable the Alert command only if you have the mtx package loaded
> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> #If you have smartctl, enable this, it has more info than tapeinfo
> Alert Command = "sh -c 'smartctl -H -l error %c'"
> Maximum Concurrent Jobs = 1
> }
> storage.conf
> ###########
> Storage {
> Name = Cinta
> Address = xxxx
> SDPort = 9103
> Password = "xxx"
> Device = Autochanger
> Media Type = LTO-3
> Autochanger = yes
> Maximum Concurrent Jobs = 2
> }
>
You also need to set Maximum Concurrent Jobs in bacula-dir.conf. Again
for the director, storage and client.
John