Re: [Bacula-users] Label barcodes - unsure if bacula labels everything
Denny Schierz schrieb: hi, I've printed some barcodes for our LTO-2 Autochanger which is also used for Amanda. For testing I want to label the tapes from 001 till 020 and not more: [..] better use 'label barcode slots 1-20' Ralf -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label barcodes
On Sun, Jul 25, 2010 at 5:38 PM, Richard Scobie rich...@sauce.co.nz wrote: I have just added 10 unlabeled, barcoded tape to a library that contains 10 labeled, barcoded tapes. From the bat application, I have issued the following commands: update slots label barcodes At this point the bat console shows a list of the tapes that will be labelled, but this includes the 10 tapes that already have labels. Is it really going to relabel these? No Also, in this scenario, are the tapes labeled in ascending slot order or ascending barcode order? The latter. I notice that bacula chooses empty appendable tapes to write to based on the time they were labeled and I would prefer that they are used in ascending barcode order. Regards, Richard -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- John M. Drescher -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label barcodes
John Drescher wrote: Also, in this scenario, are the tapes labeled in ascending slot order or ascending barcode order? The latter. Actually it is labeling them in slot order which is annoying. In future I will remember to load all the tapes with ascendinging barcode numbers in ascending slot numbers... Regards, Richard -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label barcodes
On Sun, Jul 25, 2010 at 7:55 PM, Richard Scobie rich...@sauce.co.nz wrote: John Drescher wrote: Also, in this scenario, are the tapes labeled in ascending slot order or ascending barcode order? The latter. Actually it is labeling them in slot order which is annoying. In future I will remember to load all the tapes with ascendinging barcode numbers in ascending slot numbers... Sorry. I must have always put my tapes in slot order so that the id was in the same order as the labels. I do not change tapes often. Although I have 20 on order to make a total of 100 for a 24 slot changer. John M. Drescher -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] label barcodes + IBM / ANSI tape labels
On 02/ 4/10 10:20 AM, Thomas Dhollander wrote: Dear all I have a few questions regarding the labeling of volumes in bacula release 3.0.3: As we are using an IBM TS2900 autochanger, i had set label type to 'IBM'. However, the label barcodes command now fails because Bacula tries to assign labels that are 8 characters long, while the maximum is 6. Should we use IBM labels or not? If so, is manual labeling required (rather than using the 'label barcodes' command)? When we use the default label format, 'label barcodes' seems to work. However, how do we add the labeled volumes to the (Default) pool afterwards? The pool has not been set automatically (as should be done according to the docs), and the 'add' command wants to give new labels to the already labeled volumes. label barcodes pool=PoolName Thanks for any help Thomas -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] label barcodes + IBM / ANSI tape labels
As we are using an IBM TS2900 autochanger, i had set label type to 'IBM'. However, the label barcodes command now fails because Bacula tries to assign labels that are 8 characters long, while the maximum is 6. Should we use IBM labels or not? If so, is manual labeling required (rather than using the 'label barcodes' command)? There was a way to fix that. I believe you need to modify mtx-changer list command to get this to work. Others have done this in the past on the list. John -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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
Re: [Bacula-users] 'label barcodes' and adding volumes to a particular pool
Hi, Arno Lehmann wrote: Run it several times with different slot ranges, like 'label barcodes slots=1-3 pool=F01' and so on. Brilliant - thank you. The fact that you can use slots and pool seems to be missing from the docs, so I guess I should work on trying to add it :) It only seems to want to allow me to put the tapes into a single pool. I could allow it to put everything into the default pool but there doesn't seem to be a way of moving volumes to a different pool with 'add' and 'delete' of each one which is a bit of a pain. Use 'update volume=F01T01L4 pool=F01' and so on. Or use the menu after 'update volume=F01T01L4', of course. Ah great too, very useful :) Thank you. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' and adding volumes to a particular pool
On Nov 8, 2007 7:20 PM, Chris Howells [EMAIL PROTECTED] wrote: Hi, Arno Lehmann wrote: Run it several times with different slot ranges, like 'label barcodes slots=1-3 pool=F01' and so on. Brilliant - thank you. The fact that you can use slots and pool seems to be missing from the docs, so I guess I should work on trying to add it :) It only seems to want to allow me to put the tapes into a single pool. I could allow it to put everything into the default pool but there doesn't seem to be a way of moving volumes to a different pool with 'add' and 'delete' of each one which is a bit of a pain. Use 'update volume=F01T01L4 pool=F01' and so on. Or use the menu after 'update volume=F01T01L4', of course. Ah great too, very useful :) One other thing I would like to mention is that with my changer I have bacula put all the tapes into the Scratch pool and then bacula will grab tapes from this pool when no tape is available in the pool it is using. I find this works better for me than pre-allocating tapes for each pool that I use. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' and adding volumes to a particular pool
Hi, 07.11.2007 16:30,, Chris Howells wrote:: Hi, I've defined pools F01, F02, ..., F10 in my director config. I've loaded the autochanger with a pile of tapes which have a barcodef name prefixed with the name of the pool I want to add it to. So for instance tape F01T01L4 should go into pool F01, F09T02L4 should go into pool F09. Is there any way to persuade 'label barcodes' to put a volume into a particular pool? Run it several times with different slot ranges, like 'label barcodes slots=1-3 pool=F01' and so on. It only seems to want to allow me to put the tapes into a single pool. I could allow it to put everything into the default pool but there doesn't seem to be a way of moving volumes to a different pool with 'add' and 'delete' of each one which is a bit of a pain. Use 'update volume=F01T01L4 pool=F01' and so on. Or use the menu after 'update volume=F01T01L4', of course. *label barcodes ... Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] label barcodes problem
On 9/11/07, Robert Garwacki [EMAIL PROTECTED] wrote: Hello, Today i tried to add a new tape to the pool: *label barcodes slots=2 Automatically selected Storage: Autochanger Connecting to Storage daemon Autochanger at backup:9103 ... 3306 Issuing autochanger slots command. Device Drive-1 has 16 slots. Connecting to Storage daemon Autochanger at backup:9103 ... 3306 Issuing autochanger list command. The following Volumes will be labeled: Slot Volume == 2 10L3 Do you want to continue? (yes|no): yes Defined Pools: 1: DefaultPool 2: WeeklyPool 3: Scratch Select the Pool (1-3): 3 Connecting to Storage daemon Autochanger at backup:9103 ... Sending label command for Volume 10L3 Slot 2 ... 3301 Issuing autochanger loaded? drive 0 command. 3302 Autochanger loaded? drive 0, result: nothing loaded. 3304 Issuing autochanger load slot 2, drive 0 command. 3305 Autochanger load slot 2, drive 0, status is OK. 3301 Issuing autochanger loaded? drive 0 command. 3302 Autochanger loaded? drive 0, result is Slot 2. block.c:993 Read error on fd=4 at file:blk 0:0 on device Drive-1 (/dev/nst0). ERR=Input/output error. 3000 OK label. VolBytes=64512 DVD=0 Volume=10L3 Device=Drive-1 (/dev/nst0) Catalog record for Volume 10L3, Slot 2 successfully created. There is a read error message. Should I ignore this message or not ? The tape was never used before. Read error on fd=4 at file:blk 0:0 on device Drive-1 This error is normal in this case. It means bacula tried to read a the tape but since it was blank the operation failed. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' command question?
Kern Sibbald wrote (2006/01/19): --- src/dird/ua_label.c.origThu Jan 19 10:05:21 2006 +++ src/dird/ua_label.c Thu Jan 19 10:07:50 2006 @@ -305,7 +305,9 @@ } if (!relabel (i=find_arg_keyword(ua, barcode_keyword)) = 0) { - *ua-argk[i] = 0; /* zap barcode keyword */ + i = find_arg(ua, barcode_keyword[i]); + if (i 0) + *ua-argk[i] = 0; /* zap barcode keyword */ label_barcodes = true; } I have, however, applied your patch, and will most likely release a 1.38.5 ... Hello, did you really applied the patch above? I'm looking even in 1.38.8 and still could not find it in ua_label.c. ??? -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' command question?
On Tuesday 25 April 2006 16:52, Rudolf Cejka wrote: Kern Sibbald wrote (2006/01/19): --- src/dird/ua_label.c.orig Thu Jan 19 10:05:21 2006 +++ src/dird/ua_label.c Thu Jan 19 10:07:50 2006 @@ -305,7 +305,9 @@ } if (!relabel (i=find_arg_keyword(ua, barcode_keyword)) = 0) { - *ua-argk[i] = 0; /* zap barcode keyword */ + i = find_arg(ua, barcode_keyword[i]); + if (i 0) + *ua-argk[i] = 0; /* zap barcode keyword */ label_barcodes = true; } I have, however, applied your patch, and will most likely release a 1.38.5 ... Hello, did you really applied the patch above? I'm looking even in 1.38.8 and still could not find it in ua_label.c. Yes, I did add it, but somehow it got lost. Strange. That rarely happens. Anyway, I have added it back, and it is now committed, so unlikely to get lost again. Thanks for checking this, and sorry for the confusion on my part. -- Best regards, Kern ( /\ V_V --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] label barcodes command question
Chris Wilson wrote: Hi, I just added some tapes to my autochanger. If I do a label barcodes command, will it re-label the existing tapes too, or only label the new tapes? The documentation isn't clear on that topic. Figured I'd ask before I inadvertently wipe out the existing tapes... It didn't relabel all the tapes for me - in fact it inserted all the tapes in turn and gave tape already labelled where relevant, then moved on. Quite a helpful and sensible behaviour, as far as I'm concerned. --- 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=lnkkid=110944bid=241720dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] label barcodes command question
On 8 Mar 2006 at 10:11, Gregory Orange wrote: Chris Wilson wrote: Hi, I just added some tapes to my autochanger. If I do a label barcodes command, will it re-label the existing tapes too, or only label the new tapes? The documentation isn't clear on that topic. Figured I'd ask before I inadvertently wipe out the existing tapes... It didn't relabel all the tapes for me - in fact it inserted all the tapes in turn and gave tape already labelled where relevant, then moved on. Quite a helpful and sensible behaviour, as far as I'm concerned. By design, Bacula will not label a labeled tape. This is for your protection. You must erase the tape manually. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php --- 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=lnkkid=110944bid=241720dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label barcodes with mixed library
Ian Levesque wrote: Greetings, I installed version 1.38.5 this week and am thus far impressed! Good to hear! With some tweaking, I have it interfacing w/ an ADIC Scalar 100 (50 slots) housing one LTO-1 and one LTO-2 drive. Awesome. I run a Scalar 220 with AIT2 tapes, but LTO can't be too different. I have a few initial questions regarding this solution, and would appreciate any advice: 1. How should I manage the mixture of LTO-1 and LTO-2 tapes in the ADIC with bacula? I set up two pools, one for each media type. I run the label barcodes command to use the ADIC's barcode scanner to add the tapes to the database, but this puts all the tapes in one pool. Is the solution to then manually move the LTO-2 tapes to their respective pool? If so, what's the best method in bacula? Using different pools should be based on the purpose of the pool rather than the type of media in it. However, you might still want to keep them seperated for other reason; its up to you. For example, pools could be separated so that you have a pool for full backups and a pool for incremental/differential backups, that way the incremental/differential tapes can be recycled when the next full backup occurs, or whenever the incremental/differential pool gets low on tapes. Though, if you wanted to keep them in separate pools anyway (for any reason), I would suggest loading only the LTO-1 tapes, running 'label barcodes' to add them to a pool, then swap all of them out with your LTO-2 tape and re-running 'label barcodes' to add them to a different pool. This would probably be the most efficient method, rather than having to add them by hand. 2. I would like to use the LTO-2 drive to write to LTO-1 tapes as well, since the LTO-2 tapes are only used once a month. Is is possible to set up a device to handle more than one media type? A device is only tied to a particular type of media through a job. For example, a job specifies which pool of tapes is used for a backup. Only media from that pool will be used, regardless of their 'type'. Bacula has no concern for the physical 'type' of media, so long as it works in the drive. :) 3. I also have been reading about running simultaneous jobs (in the same pool) on separate drives, which apparently isn't supported yet -- any word on when this will be available? Sorry, I'm no help here. Others might know though. Thanks! Ian --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users Best Regards, Ryan Sizemore --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label barcodes with mixed library
Dear Ryan, et al., Thank you for your response. 1. How should I manage the mixture of LTO-1 and LTO-2 tapes in the ADIC with bacula? I set up two pools, one for each media type. I run the label barcodes command to use the ADIC's barcode scanner to add the tapes to the database, but this puts all the tapes in one pool. Is the solution to then manually move the LTO-2 tapes to their respective pool? If so, what's the best method in bacula? Using different pools should be based on the purpose of the pool rather than the type of media in it. Indeed, which is why the LTO-2 tapes are in another pool - it's for backing up very large filesystems once a month. So, I would think separate pools are in order. I would suggest loading only the LTO-1 tapes, running 'label barcodes' to add them to a pool, then swap all of them out with your LTO-2 tape and re-running 'label barcodes' to add them to a different pool. This would probably be the most efficient method, rather than having to add them by hand. Thanks, this makes sense though I was hoping that there would be a better way to accomplish this. Happen to know if there is there a way to transfer the 5 or so LTO-2 tapes I just added to the wrong pool? 2. I would like to use the LTO-2 drive to write to LTO-1 tapes as well, since the LTO-2 tapes are only used once a month. Is is possible to set up a device to handle more than one media type? A device is only tied to a particular type of media through a job. For example, a job specifies which pool of tapes is used for a backup. Only media from that pool will be used, regardless of their 'type'. Bacula has no concern for the physical 'type' of media, so long as it works in the drive. :) But I assume I should tie job definitions that use the LTO-2 pool to the LTO-2 drive? Perhaps the solutions would be to define another file storage device in the director for the LTO-2 drive? But would bacula then utilize the autochanger when spanning volumes? Currently, all standard LTO-1 jobs use the autochanger as their storage device. I really don't want bacula to try to use an LTO-2 tape in the LTO-1 drive. Cheers, Ian --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Label barcodes with mixed library
Ian Levesque wrote: Dear Ryan, et al., Thank you for your response. 1. How should I manage the mixture of LTO-1 and LTO-2 tapes in the ADIC with bacula? I set up two pools, one for each media type. I run the label barcodes command to use the ADIC's barcode scanner to add the tapes to the database, but this puts all the tapes in one pool. Is the solution to then manually move the LTO-2 tapes to their respective pool? If so, what's the best method in bacula? Using different pools should be based on the purpose of the pool rather than the type of media in it. Indeed, which is why the LTO-2 tapes are in another pool - it's for backing up very large filesystems once a month. So, I would think separate pools are in order. Sounds like it. I would suggest loading only the LTO-1 tapes, running 'label barcodes' to add them to a pool, then swap all of them out with your LTO-2 tape and re-running 'label barcodes' to add them to a different pool. This would probably be the most efficient method, rather than having to add them by hand. Thanks, this makes sense though I was hoping that there would be a better way to accomplish this. Happen to know if there is there a way to transfer the 5 or so LTO-2 tapes I just added to the wrong pool? Sure. From bconsole, run update, choose 'volume parameters', pick the pool that has all of the tapes in it, choose the incorrectly assigned tapes (one at a time), and update their pool. 2. I would like to use the LTO-2 drive to write to LTO-1 tapes as well, since the LTO-2 tapes are only used once a month. Is is possible to set up a device to handle more than one media type? A device is only tied to a particular type of media through a job. For example, a job specifies which pool of tapes is used for a backup. Only media from that pool will be used, regardless of their 'type'. Bacula has no concern for the physical 'type' of media, so long as it works in the drive. :) But I assume I should tie job definitions that use the LTO-2 pool to the LTO-2 drive? Perhaps the solutions would be to define another file storage device in the director for the LTO-2 drive? But would bacula then utilize the autochanger when spanning volumes? Currently, all standard LTO-1 jobs use the autochanger as their storage device. I really don't want bacula to try to use an LTO-2 tape in the LTO-1 drive. Indeed, that would definitely be a problem. At the moment, I do not believe that bacula has the capability to use multiple drives for 1 job. If you were to use the LTO-2 for full backups and the LTO-1 for Inc/Diffs, you could make sure that only the LTO-2 pool was used on the LTO-2 drive by specifying it as such in the schedule. The Job Overrides subsection in the Schedule section of the manual goes into this in greater detail. Cheers, Ian --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users Best Regards, Ryan Sizemore --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' command question?
On Thursday 19 January 2006 10:27, Rudolf Cejka wrote: Kern Sibbald wrote (2006/01/18): I have tested both Bacula-1.38.3 and Bacula-1.38.4 now too: Unfortunately they are broken as Bacula-1.38.2 too - the first argument is discarded. As a workaround, you can use label ANYTHING slots=NNN storage=SSS pool=PPP barcodes for now - ANYTHING is simply discarded and all other arguments are taken into an account. One very important question - will you report that at bugs.bacula.org or should I do so? Let's wait on word from Kern ;o) I am unable to reproduce this on version 1.38.4, so if someone submits it to the bugs database, be sure to include proof that there is a bug. You might It seems, that you have tried barcode instead of our barcodes. When barcode is used, zeroth label is zapped, which seems to be further ignored. However when barcodes is used, first argument is zapped, because i = find_arg_keywords() returns an index of found keyword and not an index of found argument as in find_arg(). As one of possible solutions, here is my version of somewhat defensive patch (*ua-argk[find_arg(ua, barcode_keyword[i])] = 0; can be safely used too): --- src/dird/ua_label.c.orig Thu Jan 19 10:05:21 2006 +++ src/dird/ua_label.c Thu Jan 19 10:07:50 2006 @@ -305,7 +305,9 @@ } if (!relabel (i=find_arg_keyword(ua, barcode_keyword)) = 0) { - *ua-argk[i] = 0; /* zap barcode keyword */ + i = find_arg(ua, barcode_keyword[i]); + if (i 0) + *ua-argk[i] = 0; /* zap barcode keyword */ label_barcodes = true; } Should I fill a bug report, or is this sufficient? ;o) It is always better to file a bug report because it permits users to get notification of bugs and bug fixes in a more systematic way, and it provides better tracking of the project's bugs. I have, however, applied your patch, and will most likely release a 1.38.5 ... Regards. -- Best regards, Kern ( /\ V_V --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' command question?
Evan Kaufman wrote (2006/01/17): Is the long syntax of the 'label barcodes' console command fully functional? Hello, interesting - I had exactly the same problem as you yesterday too :o) It seems, that label [storage=xxx] [pool=yyy] [slots=1-10] barcodes is broken in Bacula-1.38.2, but in Bacula-1.36.3 it was functional. In other words, can I specify the slots i want labeled, in which storage resource, in which pool, all from a one-line command? I wanted to test Bacula-1.38.3 and/or Bacula-1.38.4, however I haven't sufficient time yet. -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' command question?
Hello, On 1/18/2006 10:42 AM, Rudolf Cejka wrote: Rudolf Cejka wrote (2006/01/18): I wanted to test Bacula-1.38.3 and/or Bacula-1.38.4, however I haven't sufficient time yet. I have tested both Bacula-1.38.3 and Bacula-1.38.4 now too: Unfortunately they are broken as Bacula-1.38.2 too - the first argument is discarded. As a workaround, you can use label ANYTHING slots=NNN storage=SSS pool=PPP barcodes for now - ANYTHING is simply discarded and all other arguments are taken into an account. One very important question - will you report that at bugs.bacula.org or should I do so? Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 'label barcodes' command question?
Kern Sibbald wrote (2006/01/18): I am unable to reproduce this on version 1.38.4, so if someone submits it to the bugs database, be sure to include proof that there is a bug. You might want to include output with the Director's debug level set to 400. Ok, when my bacula server is idle, I'll debug it and hopefully send some patch. -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users