Bacula-users

[Bacula-users] RFC/NFR: Barcode / Volume ID Abstraction

2008-09-03 12:43:57
Subject: [Bacula-users] RFC/NFR: Barcode / Volume ID Abstraction
From: "Brian A. Seklecki" <bseklecki AT collaborativefusion DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 03 Sep 2008 12:43:50 -0400
Back in late `05, early 06 I recommended changing the the barcode
handling to abstract the "volume id" from the "bar code" value.  I'd
like to re-propose that.

The current barcode system only allows you to label your pool members
using 1) the serial as a suffix 2) a pre-defined prefix.

We prefer to use the "Volume ID" as a symbolic name "Week0, week1,
week2...week 52..." for example, in pool "OffSiteWeekly", to simplify
volume management and off site storage.

For example, we have to keep track of:

  chio -  volid  - bac-slot - tape ser - storage ser
  ------------------------------------------------
  slot 0 = Daily6 = slot 1 = 000123 = xxxxx027

Tape serial and storage vendor serial (what the scan when they move
media offsite) are organizationally unique IDs.  However, the Bacula
volume ID is relative.

There's no reason Bacula couldn't have a serial-number column in the
volume table (by which chio(8) or mtx(8) ask for the volume) -- separate
from the "relative" volume ID.

You could maintain a strict 1:1 relationship initially.  That would
avoid schema changes.  However, that would also prevent you from
tracking tapes that have been destroyed, etc. (Media volume management)

Therefore, to normalize the SQL pragmatically, you'd have to create a
separate table "PhysicalMedia", and a pivot table to relate physical
media to volume (with an "active flag").  

E.g., Over the life of a system, you might have 20 tapes that function
as "Daily2"

The "in changer" flag would move along with the "Physical Media" table.

In the Dir, when a pool/VolumeID selection has been made, another query
is made in the pivot table for the current "active" physical media for
that Volume ID -- and MTX loads that unit instead.

Thoughts?

-- 
Brian A. Seklecki <bseklecki AT collaborativefusion DOT com>
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.



-------------------------------------------------------------------------
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>