[Bacula-users] Label Barcodes delete data?
Hi, I use bacula 2.4.0 on Linux 2.6.9-42 I have Spectralogic T50 as Library and work as well from 2 years. My LTO3 tape have barcodes. I set the label of the tape LTO3 manually, if I like to use barcode names the data on the tape was deleted? Thank you. -- Daniele Eccher Gruppo Darco - ICT Sistemi Via Ostiense 131/L Corpo B, 00154 Roma E-mail: daniele.ecc...@sociale.it tel : +39 06 57060 500 cell : +39 346 1426128 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
2009/9/21 Daniele Eccher daniele.ecc...@sociale.it: Hi, I use bacula 2.4.0 on Linux 2.6.9-42 I have Spectralogic T50 as Library and work as well from 2 years. My LTO3 tape have barcodes. I set the label of the tape LTO3 manually, if I like to use barcode names the data on the tape was deleted? Thank you. What is your question? I do not understand. John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
If I use the barcode I can mount the tape on always the 8 terapack I have (each terapack have 5 tape inside), and i'm not bind to the slot number. Understand? Thank you Il giorno 21/set/09, alle ore 16:25, John Drescher ha scritto: 2009/9/21 Daniele Eccher daniele.ecc...@sociale.it: Hi, I use bacula 2.4.0 on Linux 2.6.9-42 I have Spectralogic T50 as Library and work as well from 2 years. My LTO3 tape have barcodes. I set the label of the tape LTO3 manually, if I like to use barcode names the data on the tape was deleted? Thank you. What is your question? I do not understand. John -- Daniele Eccher Gruppo Darco - ICT Sistemi Via Ostiense 131/L Corpo B, 00154 Roma E-mail: daniele.ecc...@sociale.it tel : +39 06 57060 500 cell : +39 346 1426128 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
On Mon, Sep 21, 2009 at 10:28 AM, Daniele Eccher daniele.ecc...@sociale.it wrote: If I use the barcode I can mount the tape on always the 8 terapack I have (each terapack have 5 tape inside), and i'm not bind to the slot number. Understand? I think I do now. I believe putting a barcode label on a tape that already has a manual label will not delete the tape however executing the label barcode command will fail because the tape already has a label in its bacula header. John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
Ok, therefore the label barcode use the barcode to label each tape in the library but it's depends always that it's slot number. If i change the tape position on the slot (example from 22 to 24), i have to do update slots to see bacula the tape change position. But there is a method to use the barcode instead the slot number? So If I change the position of the tape the program search it by barcode . Daniele Il giorno 21/set/09, alle ore 16:36, John Drescher ha scritto: On Mon, Sep 21, 2009 at 10:28 AM, Daniele Eccher daniele.ecc...@sociale.it wrote: If I use the barcode I can mount the tape on always the 8 terapack I have (each terapack have 5 tape inside), and i'm not bind to the slot number. Understand? I think I do now. I believe putting a barcode label on a tape that already has a manual label will not delete the tape however executing the label barcode command will fail because the tape already has a label in its bacula header. John -- Daniele Eccher Gruppo Darco - ICT Sistemi Via Ostiense 131/L Corpo B, 00154 Roma E-mail: daniele.ecc...@sociale.it tel : +39 06 57060 500 cell : +39 346 1426128 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
On Mon, Sep 21, 2009 at 10:40 AM, Daniele Eccher daniele.ecc...@sociale.it wrote: Ok, therefore the label barcode use the barcode to label each tape in the library but it's depends always that it's slot number. If i change the tape position on the slot (example from 22 to 24), i have to do update slots to see bacula the tape change position. But there is a method to use the barcode instead the slot number? So If I change the position of the tape the program search it by barcode . Daniele Il giorno 21/set/09, alle ore 16:36, John Drescher ha scritto: On Mon, Sep 21, 2009 at 10:28 AM, Daniele Eccher daniele.ecc...@sociale.it wrote: If I use the barcode I can mount the tape on always the 8 terapack I have (each terapack have 5 tape inside), and i'm not bind to the slot number. Understand? I think I do now. I believe putting a barcode label on a tape that already has a manual label will not delete the tape however executing the label barcode command will fail because the tape already has a label in its bacula header. I do not know a the solution to this problem. I would however over time recycle/delete the tapes with manual labels so that you can add proper barcode labels to all your volumes. John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
On Mon, 21 Sep 2009 15:40:08 +0200 Daniele Eccher daniele.ecc...@sociale.it wrote: Hi, I use bacula 2.4.0 on Linux 2.6.9-42 I have Spectralogic T50 as Library and work as well from 2 years. My LTO3 tape have barcodes. I set the label of the tape LTO3 manually, if I like to use barcode names the data on the tape was deleted? Hi Daniele, If I understand correctly, you're trying to reuse tapes that were already used in Bacula before. But you want to change the label. Whenever I want to reuse a tape that has already been used by Bacula, I erase it first. Then I use it as if it was brand new. E.g. load it and do an mt -f /dev/nst0 weof mt -f /dev/nst0 rewind then label barcodes in bconsole. If the tape was used in this same Bacula installation you will likely have to clean up the related database entries. I haven't done that as I've only reused tapes from other Bacula installs. A 'purge volume' or maybe 'detete volume' should do it, check the manual. Regards, -- Alex Chekholko ch...@pcbi.upenn.edu -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
Dear John Drescher, In message 387ee2020909210749o48d1fd07qd829c661ae7af...@mail.gmail.com you wrote: I believe putting a barcode label on a tape that already has a manual label will not delete the tape however executing the label barcode command will fail because the tape already has a label in its bacula header. I do not know a the solution to this problem. I would however over time recycle/delete the tapes with manual labels so that you can add proper barcode labels to all your volumes. An alternative solution is a small modification to the mtx script to allow mapping of barcode labels to arbitrary volume names. This is working fine for me: # # 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 } plus this tiny patch: @@ -173,12 +193,12 @@ fi ${MTX} -f $ctl status ${TMPFILE} rtn=$? - if test ${vxa_packetloader} -ne 0 ; then - cat ${TMPFILE} | grep *Storage Element [0-9]*:.*Full | sed s/ Storage Element // | sed s/Full :VolumeTag=// - else - cat ${TMPFILE} | grep Storage Element [0-9]*:.*Full | awk {print \$3 \$4} | sed s/Full *\(:VolumeTag=\)*// - fi - 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 My /etc/bacula/Barcodes.conf looks something like that: Barcode VolumeID === ABV101 I-001 ABV102 I-002 ABV103 I-003 ABV104 I-004 ABV105 I-005 ABV106 I-006 ... 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: w...@denx.de An expert is a person who avoids the small errors while sweeping on to the grand fallacy. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label Barcodes delete data?
Alex Chekholko writes: Whenever I want to reuse a tape that has already been used by Bacula, I erase it first. Then I use it as if it was brand new. E.g. load it and do an mt -f /dev/nst0 weof mt -f /dev/nst0 rewind then label barcodes in bconsole. the Bacula daemons should be stopped before writing to the tape manually. Ralf Brinkmann -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users