SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Barcode Labels
Author Message
Post Barcode Labels 
Attachments: Message as HTML

I have been using Bacula for about 6 months with two independent tape drives. I came up with my own volume naming scheme. We have just purchased a Quantum Superloader 3 and it comes with a set of barcode labels that do not match my volume naming scheme. The Quantum labels are 3 alpha and 3 numeric characters (i.e. AFG670). My volume naming scheme is one alpha and 5 numeric (i.e. A0001).

Is there a way to rename volumes in Bacula to match the new barcodes? If there is not, does anyone on the list know if the Quantum Superloader 3 will support custom barcode labels with my volume format?

Thanks,
Bob Duman
Senior Systems Engineer
Cleantech Group LLC
2250 Genoa Business Park Dr
Suite 130
Brighton, MI 48114
(810) 224-4310 x7310
http://www.cleantech.com

Post Barcode Labels 
Is there a way to rename volumes in Bacula to match the new barcodes?
Not without loosing all the data that is on them.

If
there is not, does anyone on the list know if the Quantum Superloader 3 will
support custom barcode labels with my volume format?

It should.
John

Post Barcode Labels 
Attachments: novosirj.vcf

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Drescher wrote:
Is there a way to rename volumes in Bacula to match the new barcodes?
Not without loosing all the data that is on them.

That's actually not 100% true. I have done this myself, I believe with
btape. Doesn't btape have the option of changing a tape label? The issue
then remains the catalog, but that can be cleared up with SQL (and a
good backup of the catalog! Smile).

If
there is not, does anyone on the list know if the Quantum Superloader 3 will
support custom barcode labels with my volume format?

It should.
John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

- --
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II
|$&| |__| | | |__/ | \| _| |novosirj < at > um... - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHsx/Amb+gadEcsb4RAq2IAKDkuWCJ24Gr8R+WfZyPxpwNdpl47gCfWhoU
r08i9XNZKG5OvMSOcjS7dGE=
=bw6W
-----END PGP SIGNATURE-----

Post Barcode Labels 
Bob Duman wrote:
I have been using Bacula for about 6 months with two independent tape
drives. I came up with my own volume naming scheme. We have just
purchased a Quantum Superloader 3 and it comes with a set of barcode
labels that do not match my volume naming scheme. The Quantum labels
are 3 alpha and 3 numeric characters (i.e. AFG670). My volume naming
scheme is one alpha and 5 numeric (i.e. A0001).



Is there a way to rename volumes in Bacula to match the new barcodes?
If there is not, does anyone on the list know if the Quantum Superloader
3 will support custom barcode labels with my volume format?


I am also migrating from my own volume names to standard barcode labels.
I set up new pools for the barcode volumes and when the time comes for
each of my tapes to be re-used I manually use bconsole to relabel them
with barcodes. This deletes the old volume and all related information
and sets up the tape in the new pool. Gradually my tapes are all moving
into the new pools, but I can still restore from those that have not yet
been recycled.

Mark

Post Barcode Labels 
Other people are chiming in with the how-to and caveats for relabeling, and
whether there's support from the Quantum SL3 for custome barcodes that would
make relabeling un-necessary.

Well, I am confident that custom barcodes labeling schema's ARE supported with
the Quantum, though I'm currently not using any myself. I don't know what
character length limits might be imposed or if "special" characters are
permitted.

I have, however, found out that the encoding standard used by the Quantum-SL3
for barcodes is:

C39 Std ANSI B (and don't use a checksum.)

A good stock to use for the labels is available here:

http://www.netcllc.com/site/shop-pricing.php#labelstock
Specifically part# 749303-12301

It's the same stock that my barcodes come printed on from the shop we buy our
tapes from.

I haven't gotten into printing my own labels yet. I just collected this
information together for my own future reference.

--
--
Flak Magnet (Tim)

Post Barcode Labels 
On Wed, 13 Feb 2008 11:50:08 -0500, Ryan Novosielski said:

John Drescher wrote:
Is there a way to rename volumes in Bacula to match the new barcodes?
Not without loosing all the data that is on them.

That's actually not 100% true. I have done this myself, I believe with
btape. Doesn't btape have the option of changing a tape label?

I'm pretty sure it is impossible, because tapes don't support random writes
(only append).

__Martin



Re: [Bacula-users] Barcode Labels From: K. M. Peterson

Attachments: Message as HTML

We also have a Quantum SuperLoader 3 (with DLT-S4; I've written about some
of my questions on this list) and I've also used these systems in the past.

Although it's new enough that I haven't really gotten into Bacula labeling,
I can tell you that the hardware/firmware apparently doesn't have an issue
recognizing more than 6 byte labels. I think I got 12 bytes on a label, but
I haven't figured out what our naming convention is going to be yet.

(We use the Brother P-Touch 9500PC, which I've used successfully in the
past) to create CODE39 labels. All indications at this point are that these
are processed properly by the reader in the SuperLoader; they are visible to
MTX and I presume to Bacula).

I'm happy to share templates for this or otherwise help if you want; contact
me off-list.

_KMP

On Wed, Feb 13, 2008 at 11:22 AM, Bob Duman <bob < at > cl...> wrote:

I have been using Bacula for about 6 months with two independent tape
drives. I came up with my own volume naming scheme. We have just purchased
a Quantum Superloader 3 and it comes with a set of barcode labels that do
not match my volume naming scheme. The Quantum labels are 3 alpha and 3
numeric characters (i.e. AFG670). My volume naming scheme is one alpha
and 5 numeric (i.e. A0001).



Is there a way to rename volumes in Bacula to match the new barcodes? If
there is not, does anyone on the list know if the Quantum Superloader 3 will
support custom barcode labels with my volume format?



Thanks,

Bob Duman

Senior Systems Engineer

Cleantech Group LLC

2250 Genoa Business Park Dr

Suite 130

Brighton, MI 48114

(810) 224-4310 x7310

http://www.cleantech.com



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users



Post Barcode Labels 
Hi all,

Just wanted to chime in about making barcode labels. I'm cheap and I
happen to have some full 8.5"x11" adhesive sheets (Avery #5455) so I
just use GNU barcode and a regular laser printer and then cut the
labels by hand with a nice big paper cutter.

for ((i=1; i<=60; i++)); do printf "PIT%03dL1\n" $i; done | barcode
-t 3x20 -u mm -o label.ps -e code39 -p letter -m 5,1 -c

Print that out and cut carefully into 60 pieces.

I've found our barcode readers (3 different libraries) to be very
lenient about reading these barcodes as long as they're mostly centered
and mostly straight. The orientation of the label doesn't seem to
matter either.

Regards,
Alex

On Thu, 14 Feb 2008 11:44:28 -0500
"K. M. Peterson" <kmp.lists+bacula-users < at > gm...> wrote:

We also have a Quantum SuperLoader 3 (with DLT-S4; I've written about some
of my questions on this list) and I've also used these systems in the past.

Although it's new enough that I haven't really gotten into Bacula labeling,
I can tell you that the hardware/firmware apparently doesn't have an issue
recognizing more than 6 byte labels. I think I got 12 bytes on a label, but
I haven't figured out what our naming convention is going to be yet.

(We use the Brother P-Touch 9500PC, which I've used successfully in the
past) to create CODE39 labels. All indications at this point are that these
are processed properly by the reader in the SuperLoader; they are visible to
MTX and I presume to Bacula).

I'm happy to share templates for this or otherwise help if you want; contact
me off-list.

_KMP

On Wed, Feb 13, 2008 at 11:22 AM, Bob Duman <bob < at > cl...> wrote:

I have been using Bacula for about 6 months with two independent tape
drives. I came up with my own volume naming scheme. We have just purchased
a Quantum Superloader 3 and it comes with a set of barcode labels that do
not match my volume naming scheme. The Quantum labels are 3 alpha and 3
numeric characters (i.e. AFG670). My volume naming scheme is one alpha
and 5 numeric (i.e. A0001).



Is there a way to rename volumes in Bacula to match the new barcodes? If
there is not, does anyone on the list know if the Quantum Superloader 3 will
support custom barcode labels with my volume format?



Thanks,

Bob Duman

Senior Systems Engineer

Cleantech Group LLC

2250 Genoa Business Park Dr

Suite 130

Brighton, MI 48114

(810) 224-4310 x7310

http://www.cleantech.com

Post Barcode Labels 
In message <378DE40A500EEA4DB9837F6C79E8A8F905BD72BDD5 < at > br...> you wrote:

Is there a way to rename volumes in Bacula to match the new barcodes? If
there is not, does anyone on the list know if the Quantum Superloader 3 will
support custom barcode labels with my volume format?

Well, you might address the problem just the other way round. Just
add a little glue to match the cryptic barcode labels to something
you find more suitable. This is what I'm doing:

1) I have a text file "/etc/bacula/Barcodes.conf", which is just a
table listing the barcode label and the corresponding volume name:

$ cat Barcodes.conf
Barcode VolumeID
======= ========
ABV101 I-001
ABV102 I-002
ABV103 I-003
ABV104 I-004
ABV105 I-005
ABV106 I-006
ABV107 I-007
ABV108 I-008
ABV109 I-009
ABV110 I-010
ABV111 I-011
...

2) add a little code to the "mtx-changer" script to do the
translation, for example:

--- /usr/local/src/bacula-2.2.3/scripts/mtx-changer 2007-09-10 22:43:39.000000000 +0200
+++ /etc/bacula/mtx-changer 2007-09-10 22:55:54.000000000 +0200
< at > < at > -79,6 +80,26 < at > < at >
fi
}

+#
+# Map barcode label into a more comprehensive volume name
+#
+# Input: "2:" or "4:ABC123" ==> Output: "2:" resp. "4:K-H-4"
+#
+# Slot: ${line%%:*}, Barcode: ${line##*:}
+#
+map_barcode() {
+ while read line ; do
+ if [ \! -r /etc/bacula/Barcodes.conf ] ; then
+ echo "$line"
+ continue
+ fi
+ if [ -z "${line##*:}" ] ; then
+ echo "$line"
+ continue
+ fi
+ echo "${line%%:*}:`grep "^${line##*:}" /etc/bacula/Barcodes.conf | sed -e "s/${line##*:}[ ][ ]*//"`"
+ done
+}

#
# Create a temporary file
< at > < at > -188,13 +214,12 < at > < at >
# ${MTX} -f $ctl inventory
${MTX} -f $ctl status >${TMPFILE}
rtn=$?
- cat ${TMPFILE} | grep " Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
-#
-# If you have a VXA PacketLoader and the above does not work, try
-# turning it off and enabling the following line.
-# cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | sed "s/ Storage Element //" | sed "s/Full :VolumeTag=//"
-#
- cat ${TMPFILE} | grep "^Data Transfer Element [0-9]*:Full (Storage Element [0-9]" | awk '{printf "%s:%s\n",$7,$10}'
+ { grep ' *Storage Element [0-9]*:.*Full' <${TMPFILE} | \
+ awk '{print $3 $4}' | \
+ sed 's/Full *\(:VolumeTag=\)*//'
+ grep '^Data Transfer Element [0-9]*:Full (Storage Element [0-9]' <${TMPFILE} | \
+ awk '{printf "%s:%s\n",$7,$10}'
+ } | map_barcode
rm -f ${TMPFILE} >/dev/null 2>&1
exit $rtn
;;

So for example when I run a native mtx command I will see this:

# mtx status
Storage Changer /dev/changer:1 Drives, 7 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=ACP816
Storage Element 2:Full :VolumeTag=ACP817
Storage Element 3:Full :VolumeTag=ACP818
Storage Element 4:Full :VolumeTag=AJE904
Storage Element 5:Full :VolumeTag=AJE905
Storage Element 6:Full :VolumeTag=AJE900
Storage Element 7:Full :VolumeTag=CLN381

but in bacula I get this:

*update slots barcodes storage=SLR100-1
Connecting to Storage daemon SLR100-1 at mneme.denx.de:9103 ...
3306 Issuing autochanger "slots" command.
Device "SLR100-1" has 7 slots.
Connecting to Storage daemon SLR100-1 at mneme.denx.de:9103 ...
3306 Issuing autochanger "list" command.
Catalog record for Volume "K-Q-5" updated to reference slot 1.
Catalog record for Volume "K-Q-6" updated to reference slot 2.
Catalog record for Volume "K-Q-7" updated to reference slot 3.
Catalog record for Volume "K-Q-8" updated to reference slot 4.
Catalog record for Volume "K-Q-9" updated to reference slot 5.
Catalog record for Volume "K-S-0" updated to reference slot 6.
Catalog record for Volume "K-S-1" updated to reference slot 7.

Hope this helps...

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd < at > de...
As far as we know, our computer has never had an undetected error.
-- Weisert

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB