This is very similar case like the thread "Ongoing mount problems" a couple
of days ago. However, there was no solution so I started this over...
I have a quite fresh install of Bacula 2.03 on CentOS5 (~RHEL5)
Tape drive is Exabyte VXA-320 w/ 10-slot autochanger.
Previously, I was running FC5 on the same hardware, with Bacula 1.38.11 and
my conf files are basically from that system with no changes (except some
schedule changes, the system was set up a while ago so I may have forgotten
some minor change)
Now, when there is a need for the autochanger to jump to another tape
(because of eg. expired volume duration, that was set to only 15 mins for
this debugging) Bacula properly calls mtx-changer script, unloads and loads
the tapes, but the new tape won't get mounted.
Manual mount command solves this, but the need to execute it effectively
eliminates the benefits of an autochanger anyway...
Now, I've been able to repeat this 3-4 times (every time I tried today).
Any idea what causes this behaviour, and how to fix it?
Btw,
I didn't find (I'm not saying it couldn't be there somewhere anyway...) any
explanation about AutomaticMount option in the manual -I just found examples
with that line.
**** That's what comes into log:
08-Aug 13:05 dogbert-dir: Start Backup JobId 67,
Job=Backup-Dilbert.2007-08-08_13.05.53
08-Aug 13:05 dogbert-dir: Max configured use duration exceeded. Marking
Volume "CYCL-003" as Used.
08-Aug 13:06 dogbert-sd: 3307 Issuing autochanger "unload slot 3, drive 0"
command.
08-Aug 13:07 dogbert-sd: 3304 Issuing autochanger "load slot 4, drive 0"
command.
08-Aug 13:08 dogbert-sd: 3305 Autochanger "load slot 4, drive 0", status is
OK.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:08 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:08 dogbert-sd: Please mount Volume "CYCL-004" on Storage Device
"VXA320" (/dev/nst0) for Job Backup-Dilbert.2007-08-08_13.05.53
08-Aug 13:09 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:09 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:09 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:09 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
08-Aug 13:09 dogbert-sd: Please mount Volume "CYCL-004" on Storage Device
"VXA320" (/dev/nst0) for Job Backup-Dilbert.2007-08-08_13.05.53
08-Aug 13:10 dogbert-sd: 3301 Issuing autochanger "loaded? drive 0" command.
08-Aug 13:10 dogbert-sd: 3302 Autochanger "loaded? drive 0", result is Slot
4.
**** Essential part of SD conf:
Autochanger {
Name = "Exabyte Autoloader"
Device = VXA320
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg2
}
Device {
Name = "VXA320"
# Drive Index = 0
Media Type = VXA3
Archive Device = /dev/nst0 # Normal archive device
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
LabelMedia = 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'"
}
**** Essential part of DIR conf:
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Full
Storage = "Exabyte Autoloader"
Messages = Standard
Pool = Default
Priority = 10
}
Job {
Name = "Backup-Dilbert"
JobDefs = "DefaultJob"
Client = dilbert-fd
FileSet = "FullSet-Dilbert"
Schedule = "WeeklyCycle"
WriteBootstrap = "/var/bacula/dilbert.bsr"
}
Storage {
Name = "Exabyte Autoloader"
# Do not use "localhost" here
Address = dogbert # N.B. Use a fully qualified name here
SDPort = 9103
Password = "n4ciRILlz4Br5jERthtbvT/6OBr6IsWxCYwLRZjw/OVS"
Device = "Exabyte Autoloader"
MediaType = VXA3
AutoChanger = yes
}
Pool {
Name = Cycle
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 90 days
# Volume Use Duration = 30 days
Volume Use Duration = 15 mins
# Accept Any Volume = yes # write on any volume in the pool
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users