Hello,

On 1/26/2006 8:14 PM, Reggie Dugard wrote:
On Thu, 2006-01-26 at 19:13 +0100, Arno Lehmann wrote:
...
Hmm. I don't remember if you told us which version of Bacula you're running.


I'm running 1.38.5 upgraded from 1.38 (which is the earliest version
I've used)

Your problem sounds like you either use 1.36, or have recently upgraded and didn't "clean up" the catalog.


Nope, thats not it.

In case you use 1.36, I'd recommend to upgrade to 1.38.5 as long as you're still setting everyting up. If you want or have to continue with 1.36, you need to separate your volumes into two pools, each of which should only be used in one autochanger.


So it should be OK to mix tapes from different pools in a given
autochanger in 1.38.5?

It should, or rather, I can't remember anything from the ReleaseNotes and the development list that it shouldn't be possible. *If* 8really big If...) I find the time I might look into the source code and try if I can track down how volume selection takes place. That might take some days, though.

If you're already using 1.38, you should check if the volumes are correctly assigned to the storage device the're in - either use the llist command, or use the query that tells you which media is in which autochanger and which slot (that one was added to the default query.sql file recently, but you might find it in the list archives, too).


OK, I did that and it looks right:
Choose a query (1-17): 16
+---------+------------+--------+---------+------+---------------+-----------+-----------+
| MediaId | VolumeName | GB     | Storage | Slot | Pool          | MediaType | 
VolStatus |
+---------+------------+--------+---------+------+---------------+-----------+-----------+
|     121 | BacDiff007 | 0.43   | Sony    |    1 | Differentials | DDS-4     | 
Full      |
|     120 | BacDiff006 | 30.23  | Dell    |    1 | Differentials | DDS-4     | 
Full      |
|     124 | BacDiff009 | 13.97  | Sony    |    2 | Differentials | DDS-4     | 
Append    |
|     122 | BacDiff008 | 37.96  | Dell    |    2 | Differentials | DDS-4     | 
Full      |
|     125 | BacDiff011 | 0.00   | Sony    |    3 | Differentials | DDS-4     | 
Append    |
|     127 | BacDiff010 | 0.00   | Dell    |    3 | Differentials | DDS-4     | 
Append    |
|     126 | BacDiff013 | 0.00   | Sony    |    4 | Differentials | DDS-4     | 
Append    |
|     128 | BacDiff012 | 0.00   | Dell    |    4 | Differentials | DDS-4     | 
Append    |
|      17 | Bacula017  | 35.76  | Sony    |    5 | Default       | DDS-4     | 
Purged    |
|      16 | Bacula016  | 8.43   | Dell    |    5 | Default       | DDS-4     | 
Append    |
|      19 | Bacula019  | 33.49  | Sony    |    6 | Default       | DDS-4     | 
Purged    |
|      18 | Bacula018  | 23.42  | Dell    |    6 | Default       | DDS-4     | 
Purged    |
|      21 | Bacula021  | 29.82  | Sony    |    7 | Default       | DDS-4     | 
Purged    |
|     123 | Bacula020  | 0.00   | Dell    |    7 | Default       | DDS-4     | 
Append    |
|      23 | Bacula023  | 45.20  | Sony    |    8 | Default       | DDS-4     | 
Full      |
|      22 | Bacula022  | 30.98  | Dell    |    8 | Default       | DDS-4     | 
Full      |
+---------+------------+--------+---------+------+---------------+-----------+-----------+

...
One guess at what's happening is that the job is looking for the oldest
appendable tape which is in a changer and decides that's the one it
wants to use and gets its slot number.  The problem is that the tape is
in the 2nd changer, not the one the job is using.  So it seems as if the
job has the drive that it's using switch to the slot number
corresponding to the tape in the other drive and then realizes that it
can't use the tape that it finds there.

Well that's my current theory anyway.  Please let me know if you have
anymore insights.

Nothing, currently.

The work-around seems obvious, though: Create more pools, and use tapes from one pool in one autochanger only. Or use different media types.

Both can easily be reverted when Bacula correctly supports your setup ;-) And to get there earlier, you should file a bug report a bugs.bacula.org - I think you've got all the necessary information to make that one a really well documented bug. If nothing else, a bug report forces Kern to decide if it's abug or not ;-)

Arno


Hope this helps,

Arno


Thanks again,

Reggie

25-Jan 13:03 hare-sd: 3304 Issuing autochanger "load slot 1, drive 0" command.
25-Jan 13:04 hare-sd: 3305 Autochanger "load slot 1, drive 0", status is OK.
25-Jan 13:04 hare-sd: 3301 Issuing autochanger "loaded drive 0" command.
25-Jan 13:04 hare-sd: 3302 Autochanger "loaded drive 0", result is Slot 1.
25-Jan 13:04 hare-sd: mamba.2006-01-25_13.02.34 Warning: Director wanted Volume 
"BacDiff006".
   Current Volume "BacDiff007" not acceptable because:
   1000 OK VolName=BacDiff007 VolJobs=1 VolFiles=0 VolBlocks=7154 
VolBytes=461518844 VolMounts=1 VolErrors=3 VolWrites=7156 MaxVolBytes=0 
VolCapacityBytes=0 VolStatus=Full Slot=1 MaxVolJobs=0 MaxVolFiles=0 InChanger=1 
VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=7154 VolParts=0 LabelType=0
25-Jan 13:04 hare-sd: 3301 Issuing autochanger "loaded drive 0" command.
25-Jan 13:04 hare-sd: 3302 Autochanger "loaded drive 0", result is Slot 1.
25-Jan 13:04 hare-sd: mamba.2006-01-25_13.02.34 Warning: Director wanted Volume 
"BacDiff006".
   Current Volume "BacDiff007" not acceptable because:
   1000 OK VolName=BacDiff007 VolJobs=1 VolFiles=0 VolBlocks=7154 
VolBytes=461518844 VolMounts=1 VolErrors=3 VolWrites=7156 MaxVolBytes=0 
VolCapacityBytes=0 VolStatus=Full Slot=1 MaxVolJobs=0 MaxVolFiles=0 InChanger=1 
VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=7154 VolParts=0 LabelType=0
2



Hope that helps,

Arno



Thanks for your help.


Pool: Differentials
+---------+------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | VolBytes       | VolFiles | VolRetention | 
Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|     119 | BacDiff005 | Full      | 28,591,249,133 |       31 |    5,184,000 | 
      1 |    5 |         0 | DDS-4     | 2006-01-20 15:20:19 |
|     120 | BacDiff006 | Append    | 30,055,494,201 |       32 |    5,184,000 | 
      1 |    1 |         1 | DDS-4     | 2006-01-24 10:14:51 |
|     121 | BacDiff007 | Full      |    461,518,844 |        0 |    5,184,000 | 
      1 |    1 |         1 | DDS-4     | 2006-01-24 22:29:17 |
|     122 | BacDiff008 | Append    |              1 |        0 |    5,184,000 | 
      1 |    2 |         1 | DDS-4     | 0000-00-00 00:00:00 |
|     124 | BacDiff009 | Append    |              1 |        0 |    5,184,000 | 
      1 |    2 |         1 | DDS-4     | 0000-00-00 00:00:00 |

*** From bacula-dir.conf:

Storage {
 Name = Sony
 Address = hare.merfinllc.com
 SDPort = 9103
 Password = "xx"
 Device = Sony
 Media Type = DDS-4
 Autochanger = yes
}

Storage {
 Name = Dell
 Address = hare.merfinllc.com
 SDPort = 9103
 Password = "xx"
 Device = Dell
 Media Type = DDS-4
 Autochanger = yes
}

*** From bacula-sd.conf:

Autochanger {
 Name = TSL-11000
 Device = Sony
 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
 Changer Device = /dev/sg1
}

Device {
 Name = Sony
 Media Type = DDS-4
 Archive Device = /dev/nst0
 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'"
}

Autochanger {
 Name = DellChanger
 Device = Dell
 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
 Changer Device = /dev/sg3
}

Device {
 Name = Dell
 Media Type = DDS-4
 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'"
}



--
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