Michel Meyers wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gregory Brauer wrote:
Gregory Brauer wrote:
I have ready through all of the mail archives about autochanger
problems, but am still beating my head against an autochanger
problem.
I just found that everything works fine if I manually run an
"update slots" in a console as the first thing I do after
running starting the Bacula daemons. How do I get it to
do this automatically on startup?
Normally you shouldn't need to run this on every startup, only if tapes
change positions in your autochanger (ie if you load/unload some or
shuffle them around). Bacula relies on the 'Slot' field in its database
to know where a tape is in the loader. If that slot field is empty, it
will prompt you for the tape. If it contains the wrong slot number it
will probably load the wrong tape and then complain (and fail in some
way). The 'update slots' command does nothing else than scan your
autochanger and put the received slot numbers into the database.
That was my understanding as well, but that is not the behavior
I am seeing. When I do an update slots Bacula unloads any loaded
tapes first. That seems like it is probably expected behavior.
I am not moving tapes around or even opening the loader door. I
will get a few more bits of info as the tape rotation comes around
and see if I can note anything that might useful.
Greg
FWIW, here's what I get when I update slots.
*update slots
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: Autochanger
Connecting to Storage daemon Autochanger at nara:9103 ...
Connecting to Storage daemon Autochanger at nara:9103 ...
3306 Issuing autochanger "slots" command.
Device "Autochanger" has 15 slots.
Connecting to Storage daemon Autochanger at nara:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 15.
3307 Issuing autochanger "unload slot 15, drive 0" command.
3306 Issuing autochanger "list" command.
Catalog record for Volume "BU6101" updated to reference slot 1.
Catalog record for Volume "BU6102" updated to reference slot 2.
Catalog record for Volume "BU6103" updated to reference slot 3.
Catalog record for Volume "BU6104" updated to reference slot 4.
Catalog record for Volume "BU6105" updated to reference slot 5.
Catalog record for Volume "BU6106" updated to reference slot 6.
Catalog record for Volume "BU6107" updated to reference slot 7.
Catalog record for Volume "BU6108" updated to reference slot 8.
Catalog record for Volume "BU6109" updated to reference slot 9.
Catalog record for Volume "BU6110" updated to reference slot 10.
Catalog record for Volume "BU6111" updated to reference slot 11.
Catalog record for Volume "BU6112" updated to reference slot 12.
Catalog record for Volume "BU6113" updated to reference slot 13.
Catalog record for Volume "BU6114" updated to reference slot 14.
Catalog record for Volume "BU6115" updated to reference slot 15.
-------------------------------------------------------
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