Bacula-users

[Bacula-users] Manual removal of tapes and In Use Volume Status

2008-07-21 07:18:51
Subject: [Bacula-users] Manual removal of tapes and In Use Volume Status
From: Nils Blanck-Wehde <nils.blanck-wehde AT backofficeservice DOT biz>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 21 Jul 2008 13:18:38 +0200
Hello list,

I am doning a daily backup to tape. We have a Quantum Superloader 3 DLT 
with 16 Slots.
This is the storage ressource:

Autochanger {
  Name = QS3DLT
  Device = DLT-Drive-1
  Changer Command = "/usr/lib/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}

Device {
  Name = DLT-Drive-1                      #
  Drive Index = 0
  Media Type = DLT-VS1
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = no;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}

Each tape is used only once und recycled after 7 weeks, this is the 
pool-ressource:

Pool {
  Name = "Weekly_Full_Backup_to_DLT"
  Pool Type = Backup
  Maximum Volume Jobs = 1
  Volume Retention = 7 weeks
  Recycle = yes
  AutoPrune = yes
  Cleaning Prefix = "CNV760"
}


After each backup, I want to export the last used tape to the mailslot. 
As mtx doesn't recognise the mailslot of this device, I have to do this 
via the Webfrontend of the library.
After the manual export I am issuing "update slots" on the 
Autochanger-device to let bacula know of the changes.
Still "status storage" still shows the removed volume as "in use" in 
drive 0:
Device status:
Autochanger "QS3DLT" with devices:
   "DLT-Drive-1" (/dev/nst0)
Device "FileStorage_SATA-RAID1-MD1" (/var/bacula/File-Storage) is not open.
Device "DLT-Drive-1" (/dev/nst0) is not open.
    Slot 2 is loaded in drive 0.
Device "DVD Writer" (/dev/hda) is not open.
====

In Use Volume status:
CNV762 on device "DLT-Drive-1" (/dev/nst0)
    Reader=0 writers=0 devres=0 volinuse=0
====

When the next backup starts, bacula tries to unload the tape (that isn't 
present any more), fails, checks whether there ist anything loaded at 
all and then loads the correct next tape:

21-Jul 13:09 WEFIS_bacula-sd JobId 109: 3307 Issuing autochanger "unload slot 
2, drive 0" command.
21-Jul 13:09 WEFIS_bacula-sd JobId 109: 3995 Bad autochanger "unload slot 2, 
drive 0": ERR=Child exited with code 1
Results=Data Transfer Element 0 is Empty

21-Jul 13:09 company_bacula-sd JobId 109: 3301 Issuing autochanger "loaded? 
drive 0" command.
21-Jul 13:09 company_bacula-sd JobId 109: 3302 Autochanger "loaded? drive 0", 
result: nothing loaded.
21-Jul 13:09 company_bacula-sd JobId 109: 3301 Issuing autochanger "loaded? 
drive 0" command.
21-Jul 13:09 company_bacula-sd JobId 109: 3302 Autochanger "loaded? drive 0", 
result: nothing loaded.
21-Jul 13:09 company_bacula-sd JobId 109: 3301 Issuing autochanger "loaded? 
drive 0" command.
21-Jul 13:09 company_bacula-sd JobId 109: 3302 Autochanger "loaded? drive 0", 
result: nothing loaded.
21-Jul 13:09 company_bacula-sd JobId 109: 3304 Issuing autochanger "load slot 
3, drive 0" command.
21-Jul 13:11 company_bacula-sd JobId 109: 3305 Autochanger "load slot 3, drive 
0", status is OK.


I am wondering whether this is how it's supposed to work or if I somehow 
should tell bacula, that the drive was unloaded. I tried "unmount" 
before but I didn't know how to remount the device afterwards because 
that would mean I had to load a tape and I didn't want to confuse bacula...

Thanks for any hints!

Nils

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>