Arno Lehmann schreef:
Hi,
I didn't follow the list very close during the last days, so sorry if
this is already resolved!
On 2/17/2006 10:18 AM, [EMAIL PROTECTED] wrote:
...
The first job starts and when finished it unloads the tape (with
runafterjob command)-->backup OK
This is something I don't understand - how do you unload the tape (and
why?)
why: i take the tape offsite, so i unload it autmatically
The only way "acceptable" for Bacula is using the console to unmount the
tape, for example using a script like
echo 'umount STORAGENAME'|bconsole -c ...
and using a similar command to mount the volume before the next jobs.
In that case, you need to modify your catalog backup job to issue the
proper commands, too.
I upgraded to 1.38.5 and now it works, but i'll change the commands to
the proper ones.
The next job starts loads the same tape and when fininshed it unloads
the tape-->backup OK
The next job starts loads the same tape and when fininshed it unloads
the tape-->backup OK
The Catalog job starts and outputs the following messages. This time
i got to mount the tape myself (tape VR0801L1 is in changer slot 8).
After manually loading the tape (with mtx) and mounting the device,
the backup is continuing and is OK. The only problem is 'why do i
have to load and mount the tape'.
Because you didn't set up the job to do it, I guess...
Arno
<messages for catalog job>
17-feb 09:30 fs2-sd: 3301 Issuing autochanger "loaded drive 0" command.
17-feb 09:30 fs2-sd: 3302 Autochanger "loaded drive 0", result:
nothing loaded.
17-feb 09:30 fs2-sd: 3301 Issuing autochanger "loaded drive 0" command.
17-feb 09:30 fs2-sd: 3302 Autochanger "loaded drive 0", result:
nothing loaded.
17-feb 09:30 fs2-sd: Please mount Volume "VR0801L1" on Storage Device
"EXABYTE" (/dev/nst0) for Job BackupCatalog.2006-02-17_01.10.00
17-feb 09:30 fs2-sd: Please mount Volume "VR0801L1" on Storage Device
"EXABYTE" (/dev/nst0) for Job BackupCatalog.2006-02-17_01.10.00
</messages for catalog job>
<bacula-sd.conf>
# EXABYTE 221L tape changer with IBM LTO-1 drive
Autochanger {
Name = "EXABYTE-CHANGER"
Device = "EXABYTE"
Changer Device = /dev/sg2
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
## Changer Command = "/tmp/mtx-changer %c %o %S %a %d"
}
Device {
Name = EXABYTE
Drive Index = 0
Media Type = LTO-1
Archive Device = /dev/nst0
# Archive Device = /dev/nrst0
## AutomaticMount = yes; # when device opened, read it
AutomaticMount = no; # when device opened, read it
## AlwaysOpen = yes;
AlwaysOpen = no;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
Maximum Changer Wait = 120 seconds
}
</bacula-sd.conf>
<bacula-dir.conf>
JobDefs {
Name = "CatalogJob"
Type = Backup
Level = Incremental
Client = fs2-fd
FileSet = "Full-Set-fs2"
Schedule = "WeeklyCycle"
Storage = EXABYTE
Messages = Standard
Pool = CatalogPool
Priority = 11
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "CatalogJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/home/marc/bacula/etc/scripts/make_catalog_backup
bacula2 bacula"
# This deletes the copy of the catalog
## RunAfterJob =
"/home/marc/bacula/etc/scripts/delete_catalog_backup ;
/home/marc/bacula/etc/scripts/mtx-changer /dev/sg2 unload -1 /dev/nst0 0"
RunAfterJob = "/home/marc/bacula/etc/scripts/end_catalog_job"
Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
</bacula-dir.conf>
<end_catalog_job>
#!/bin/sh
/home/marc/bacula/etc/scripts/delete_catalog_backup
/home/marc/bacula/etc/scripts/mtx-changer /dev/sg2 unload -1 /dev/nst0 0
</end_catalog_job>
--
Met vriendelijke groet
Marc Cuypers
Publi Van Dyck N.V. T: +32 14 81 12 33
Bankei 1 F: +32 14 81 45 57
2490 BALEN E: [EMAIL PROTECTED]
Belgium
Death is God's way of telling you not to be such a wise guy.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users