[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] Feature Request: don't block console commands while labeling tapes


Hello,

You can try something like that :

cat > cmds <<EOF
label barcodes Pool=Scratch drive=0 slots=51
yes
EOF

cat cmds | bconsole

or echo -e "label barcodes ..\nyes" | bconsole


You can also use an other bconsole session to do the
rest of your work.

Bye

On Thursday 22 May 2008 16:49:14 Bob Hetzel wrote:
> I'm proposing the following feature request...
>
> Item: Modify bacula console code to not block further commands while
> labeling tapes.
>
> Origin: "Bob Hetzel" beh@xxxxxxxx
>
> Date: 22 May 2008
>
> Status:
>
> Why: I (and presumably most places that are using bacula for larger
> installations) have a 2-drive autochanger and so would like to be able
> to use both drives for labeling tapes and/or run backups/restores/etc.
> on the other drive(s).  Currently, bacula 2.2.8 blocks further commands
> while it waits for output from the drive and changer.
>
> Notes: Additionally, when you specify everything it's asking for on the
> command line to tell it to label a tape using the barcode, you get a
> prompt confirming the actual barcode.  I'd like a way to override this
> behavior.  Message printing is fine with me but I want to be able to
> turn off the confirmation yes|no question.
>
> Here's an example...
>
> *label barcodes Pool=Scratch drive=0 slots=51
> Automatically selected Storage: Dell-PV136T
> Connecting to Storage daemon Dell-PV136T at gyrus:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "Dell-PV136T" has 72 slots.
> Connecting to Storage daemon Dell-PV136T at gyrus:9103 ...
> 3306 Issuing autochanger "list" command.
> The following Volumes will be labeled:
> Slot  Volume
> ==============
>    51  LTO254L2
> Do you want to label these Volumes? (yes|no): yes
> Connecting to Storage daemon Dell-PV136T at gyrus:9103 ...
> Sending label command for Volume "LTO254L2" Slot 51 ...
> 3301 Issuing autochanger "loaded? drive 0" command.
> 3302 Autochanger "loaded? drive 0", result is Slot 49.
> 3307 Issuing autochanger "unload slot 49, drive 0" command.
> 3304 Issuing autochanger "load slot 51, drive 0" command.
> 3305 Autochanger "load slot 51, drive 0", status is OK.
> 3301 Issuing autochanger "loaded? drive 0" command.
> 3302 Autochanger "loaded? drive 0", result is Slot 51.
> 3000 OK label. VolBytes=64512 DVD=0 Volume="LTO254L2" Device="IBMLTO2-1"
> (/dev/nst0)
> Catalog record for Volume "LTO254L2", Slot 51  successfully created.
>
> -------------------------------------------------------------------------
> 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-devel mailing list
> Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/bacula-devel



-------------------------------------------------------------------------
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-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.