Hi All,

On a new installation of bacula, interfacing with three LTO2 drives
through an ADIC Scalar 100 autochanger, I've come across the problem
where multiple jobs are requesting the same volume on different drives.
This used to be a problem prior to 1.38.6-b1 but I'm running 1.38.9
here. I doubt this is a race condition, as this happens after the first
job is well underway.

Example error:
------------------------
05-Jun 08:50 sbgrid-sd: FS4_XRAY.2006-06-05_07.05.29 Warning: Volume
000014L2 is in use by device "LTO2A" (/dev/nst0)

05-Jun 08:50 sbgrid-sd: Please mount Volume "000014L2" on Storage Device
"LTO2B" (/dev/nst1) for Job FS4_XRAY.2006-06-05_07.05.29


bacula-dir.conf:
------------------------
Storage {
   Name = "ADIC Scalar 100"
   Address = fs2.in.hwlab
   SDPort = 9103
   Password =
   Device = "ADIC Scalar 100"
   Media Type = LTO
   Maximum Concurrent Jobs = 6
   Autochanger = yes
}


bacula-sd.conf:
------------------------
Autochanger {
   Name = "ADIC Scalar 100"
   Device = LTO2A, LTO2B, LTO2C
   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
   Changer Device = /dev/sg0
}

Device {
   Name = LTO2A
   Drive Index = 0
   Media Type = LTO
   LabelMedia = no;
   Archive Device = /dev/nst0
   AutomaticMount = Yes;
   AlwaysOpen = yes;
   RemovableMedia = yes;
   RandomAccess = no;
   Offline On Unmount = no;
   AutoChanger = yes
   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
   Changer Device = /dev/sg0
   Maximum Network Buffer Size = 65536
   Spool Directory = /var/bacula/spool
   Maximum Spool Size = 50g
}

(repeat for LTO2B, LTO2C w/ relevant "Drive Index" & "Archive Device")


mtx-changer:
------------------------
[EMAIL PROTECTED] bacula]# diff mtx-changer original.configs/mtx-changer
135,136c135,136
<      mt -f $device offline
<      sleep 10
---
> #     mt -f $device offline
> #     sleep 10


Storage reported by mySQL:
------------------------
Enter SQL query: select * from Storage;
+-----------+-----------------+-------------+
| StorageId | Name            | AutoChanger |
+-----------+-----------------+-------------+
|         1 | File            |           0 |
|         2 | ADIC Scalar 100 |           1 |
|         3 | LTO2A           |           0 |
|         4 | LTO2B           |           0 |
|         5 | LTO2C           |           0 |
+-----------+-----------------+-------------+


Many thanks for any advice!
Ian



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to