(Kern, I'll file this in bugs shortly)

I've just found a couple of "gotchas" for those of us running multidrive 
changers.

1: Running "update slots" against the changer device will only ever unload 
drive 0

===================
*update slots
The defined Storage resources are:
      1: File
      2: MSL6000-changer
      3: MSL6000-0
      4: MSL6000-1
      5: DVD
Select Storage resource (1-5): 2
Enter autochanger drive[0]: 1
Connecting to Storage daemon MSL6000-changer at localhost:9103 
...
3306 Issuing autochanger "slots" command.
Device "MSL6000-changer" has 58 slots.
Connecting to Storage daemon MSL6000-changer at localhost:9103 
...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3306 Issuing autochanger "list" command.
...
===================


2: Running "update slots" against a drive instead of the changer results 
in all the tapes in the changer being linked to that drive instead of the 
changer:


===================

*update slots
The defined Storage resources are:
      1: File
      2: MSL6000-changer
      3: MSL6000-0
      4: MSL6000-1
      5: DVD
Select Storage resource (1-5): 2
Enter autochanger drive[0]: 1
Connecting to Storage daemon MSL6000-changer at localhost:9103 
...
3306 Issuing autochanger "slots" command.
Device "MSL6000-changer" has 60 slots.
Connecting to Storage daemon MSL6000-changer at localhost:9103 
...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3306 Issuing autochanger "list" command.
Catalog record for Volume "ALOW0010" updated to reference slot 1.
Catalog record for Volume "ALOW0012" updated to reference slot 2.
Catalog record for Volume "ALOW0048" updated to reference slot 7.
Catalog record for Volume "ALOW0051" updated to reference slot 10.
.....
*query
Available queries:

     15: List Volumes Bacula thinks are in changer

Choose a query (1-17): 15
+---------+------------+---------+-----------------+------+-----------------+-----------+-----------+
| MediaId | VolumeName | GB      | Storage         | Slot | Pool 
| MediaType | VolStatus |
+---------+------------+---------+-----------------+------+-----------------+-----------+-----------+
|      88 | ALOW0010   | 127.44  | MSL6000-changer |    1 | Low-churnPool 
| LTO-2     | Append    |
|     146 | ALOW0012   | 181.84  | MSL6000-changer |    2 | Low-churnPool 
| LTO-2     | Purged    |
|     244 | ALOW0048   | 633.90  | MSL6000-changer |    7 | Low-churnPool 
| LTO-2     | Append    |
......

*update slots
The defined Storage resources are:
      1: File
      2: MSL6000-changer
      3: MSL6000-0
      4: MSL6000-1
      5: DVD
Select Storage resource (1-5): 4
Enter autochanger drive[0]:
Connecting to Storage daemon MSL6000-1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "MSL6000-1" has 60 slots.
Connecting to Storage daemon MSL6000-1 at localhost:9103 ...
3301 Issuing autochanger "loaded drive 1" command.
3302 Autochanger "loaded drive 1", result: nothing loaded.
3306 Issuing autochanger "list" command.
Catalog record for Volume "ALOW0010" updated to reference slot 1.
Catalog record for Volume "ALOW0012" updated to reference slot 2.
Catalog record for Volume "ALOW0048" updated to reference slot 7.
Catalog record for Volume "ALOW0051" updated to reference slot 10.
....
*query
Available queries:

     15: List Volumes Bacula thinks are in changer

Choose a query (1-17): 15
+---------+------------+---------+-----------+------+-----------------+-----------+-----------+
| MediaId | VolumeName | GB      | Storage   | Slot | Pool            | 
MediaType | VolStatus |
+---------+------------+---------+-----------+------+-----------------+-----------+-----------+
|      88 | ALOW0010   | 127.44  | MSL6000-1 |    1 | Low-churnPool   | 
LTO-2     | Append    |
|     146 | ALOW0012   | 181.84  | MSL6000-1 |    2 | Low-churnPool   | 
LTO-2     | Purged    |
|     244 | ALOW0048   | 633.90  | MSL6000-1 |    7 | Low-churnPool   | 
LTO-2     | Append    |
|     265 | ALOW0051   | 280.15  | MSL6000-1 |   10 | Low-churnPool   | 
LTO-2     | Purged    |

===================


3: Leaving Bacula in this state will result in tapes only being available 
for one or other drive in the changer, resulting in (thousands of) 
"bacula: intervention required" messages for a tape which is in the 
changer and possibly even loaded into the other drive.


Kern:

Can you look at this please? If a tape drive is linked into a changer
then the Storage: entry needs to be altered to indicate the changer 
instead of a particular drive when "update slots" is run.


Autochanger {
   Name = MSL6000-changer
   Device = MSL6000-0
   Device = MSL6000-1
   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
   Changer Device = /dev/sg18
}


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to