Robert,

McGraw, Robert P. wrote:

However, I have a tape library that has a barcode reader and in the
1.36.3 documentation P 280, it talks about this:

"Bacula provides barcode support with two Console commands, label
barcodes
and update slots. The label barcodes will cause Bacula to read the
barcodes of all the cassettes that are currently installed in the
magazine (cassette holder) using the mtx-changer list command. Each
cassette is mounted in turn and labeled with the same Volume name as the
barcode.

The update slots command will rst obtain the list of cassettes and their
barcodes from mtx-changer. Then it will find each volume in turn in the
catalog database corresponding to to the barcodes and set its Slot to
correspond to the value just read. If the Volume is not in the catalog,
then nothing will be done. This command is useful for synchronizing
Bacula with the current magazine in case you have changed magazines or
in case you have moved cassettes from one slot to another."

When I tried to run "label barcodes"

Connecting to Director banach.math.purdue.edu:9101
1000 OK: banach-dir Version: 1.36.3 (22 April 2005)
Enter a period to cancel a command.
*label barcode
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: SDLT1
Connecting to Storage daemon SDLT1 at banach.math.purdue.edu:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3306 Issuing autochanger "list" command.
Illegal character "=" in a volume name.
Invalid Volume name: 1:Full:VolumeTag=000065

This is aproblem with parsing the output of mtx status.

If you know how to modify a sed script, you can simply change the mtx-changer script accordingly. Or, you try uncommenting the line prepared for the VXA autoloaders. Fromlooking at it, it should work for you.

The documentation sounds like it is suppose to find the tape, load into
the tape drive using the mtx-changer, and label the tape with the
barcode.

Yup.

Thanks

Robert

Arno





-----Original Message-----
From: Slartibartfast [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 19, 2005 9:31 PM
To: McGraw, Robert P.
Subject: Re: [Bacula-users] bconsole mount

Having just made the same mistake 1hr ago, no the mount command

doesn't

load the tape as you would think.

Now if you have a schedule job and the automounter is working

correctly

it will determine you have no tape and attempt to mount one.

However if you are attempting to change the tape yourself you need to
umount, load the tape (mtx-changer ...), then mount.

Hope that helps.

On Thu, 2005-05-19 at 09:58, McGraw, Robert P. wrote:

I am trying to test/learn the bacula package but already stumped. I

have

a STK L10 library with one SDLT 220 tape drive.

I have set up the mx-changer and have tested thoroughly.

I start up bconsole ran setdebug 10 and run the command "mount

SDLT1"

which SLDT is my storage device in bacula-sd.conf. I get the

following

message:


Connecting to Storage daemon SDLT1 at banach.math.purdue.edu:9103 3000 OK setdebug=10 Connecting to Client Banach at banach.math.purdue.edu:9102 2000 OK setdebug=10 *mount SDLT1 3901 open device failed: ERR=dev.c:289 stored: unable to open

device

/dev/rmt/1cbn: ERR=I/O error

This makes sense as I am trying to load a  tape into /dev/rmt/1cbn.

What am I missing? Should not the mount command try and load the

tape

into the tape drive?

Thanks

Robert


-------------------Below is my bacula-sd.conf file ------------------------------

##R##-banach->[317] ##> vi bacula-sd.conf
"bacula-sd.conf" 64 lines, 1601 characters
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 1.36.3 (22 April 2005) -- solaris 5.8
#
# You may need to change the name of your tape drive
#   on the "Archive Device" directive in the Device
#   resource.  If you change the Name and/or the
#   "Media Type" in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage {                             # definition of myself
 Name = banach-sd
 SDPort = 9103                  # Director's port
 WorkingDirectory = "/etc/opt/csw/var/bacula/working"
 Pid Directory = "/etc/opt/csw/var/bacula/run"
 Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
 Name = banach-dir
 Password = "LOsk8Z2zi6ugkIxriBx84+PVNjKArQP/5G21y0RGbksJ"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
 Name = banach-mon
 Password = "+atbnD675Qc1BC419TIQOHfd1GAJnla7sSJwGius47W+"
 Monitor = yes
}

# A Linux or Solaris tape drive

Device {
 Name = SDLT1
 Media Type = SDLT
 Archive Device = /dev/rmt/1cbn
 AutomaticMount = yes;               # when device opened, read it
 AlwaysOpen = yes;
 RemovableMedia = yes;
 RandomAccess = no;
 Changer Command = "/opt/csw/etc/bacula/mtx-changer %c %o %S %a %d"
 Changer Device = /dev/changer/1
 Autochanger = yes
 Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}


# # Send all messages to the Director, # mount messages also are sent to the email address #

Messages {
 Name = Standard
 director = banach-dir = all
}




_____________________________________________________________________

Robert P. McGraw, Jr.
Manager, Computer Systems                EMAIL1: [EMAIL PROTECTED]
Purdue University                          ROOM: MATH-807
Department of Mathematics                 PHONE: (765) 494-6055
150 N. University Street                    FAX: (419) 821-0540
West Lafayette, IN 47907-2067            EMAIL2:

[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

-- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to