Thanks for the quick reply!
I was a little too aggressive and deleted everything from the USB drive
including the index. So I shut down bacula, deleted the vchanger drive
directory in /var/lib/bacula, restarted bacula and ran "vchanger -u
bacula -g disk /etc/bacula/vchanger.conf initmag 1". It re-created the
directory in /var/lib/bacula and made the index and volume files on the
USB drive. I then deleted just the volume files on the USB and started BAT:
label barcodes
Automatically selected Catalog: MyCatalog
Select Storage resource (1-2): Connecting to Storage daemon usbbcla1 at
p-plover:9103 ...
Connecting to Storage daemon usbbcla1 at p-plover:9103 ...
3306 Issuing autochanger "slots" command.
Device "usbchanger" has 9 slots.
Connecting to Storage daemon usbbcla1 at p-plover:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot Volume
==============
1 usbbcla1_0001_0001
2 usbbcla1_0001_0002
3 usbbcla1_0001_0003
4 usbbcla1_0001_0004
5 usbbcla1_0001_0005
6 usbbcla1_0001_0006
7 usbbcla1_0001_0007
8 usbbcla1_0001_0008
9 usbbcla1_0001_0009
Select the Pool (1-3): Media record for Slot 1 Volume
"usbbcla1_0001_0001" already exists.
Connecting to Storage daemon usbbcla1 at p-plover:9103 ...
Sending label command for Volume "usbbcla1_0001_0002" 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.
3992 Bad autochanger "load slot 2, drive 0": ERR=Unknown error during
program execvp.
Results=failed to rename volume file while loading drive 0 from slot 2
Label command failed for Volume usbbcla1_0001_0002.
Sending label command for Volume "usbbcla1_0001_0003" Slot 3 ...
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 3, drive 0" command.
3992 Bad autochanger "load slot 3, drive 0": ERR=Unknown error during
program execvp.
Results=failed to rename volume file while loading drive 0 from slot 3
..............etc. etc.
A little different than before, but still a problem!
Josh Fisher wrote:
> Delete the volume files from the USB drive and try again without
> issuing the update slots command before the label barcodes.
>
> T. Plancon wrote:
>> Hello,
>>
>> I'm working on setting up Bacula 2.4.2 with the current version of
>> vchanger 0.8.2 from Sourceforge, using USB drives on CentOS 5.2.
>> Everything is going pretty much as described in the vchanger HowTo,
>> however "label barcodes" fails. the following is from console in BAT,
>> after attaching USB drive:
>>
>> update slots
>> Select Storage resource (1-2): Connecting to Storage daemon usbbcla1
>> at p-plover:9103 ...
>> 3306 Issuing autochanger "slots" command.
>> Device "usbchanger" has 9 slots.
>> Connecting to Storage daemon usbbcla1 at p-plover:9103 ...
>> 3306 Issuing autochanger "list" command.
>> Volume "usbbcla1_0001_0001" not found in catalog. Slot=1 InChanger
>> set to zero.
>> Volume "usbbcla1_0001_0002" not found in catalog. Slot=2 InChanger
>> set to zero.
>> ...................
>> Volume "usbbcla1_0001_0008" not found in catalog. Slot=8 InChanger
>> set to zero.
>> Volume "usbbcla1_0001_0009" not found in catalog. Slot=9 InChanger
>> set to zero.
>>
>> label barcodes
>> Connecting to Storage daemon usbbcla1 at p-plover:9103 ...
>> Sending label command for Volume "usbbcla1_0001_0001" Slot 1 ...
>> 3301 Issuing autochanger "loaded? drive 0" command.
>> 3302 Autochanger "loaded? drive 0", result: nothing loaded.
>> 3304 Issuing autochanger "load slot 1, drive 0" command.
>> 3305 Autochanger "load slot 1, drive 0", status is OK.
>> 3000 OK label. VolBytes=221 DVD=0 Volume="usbbcla1_0001_0001"
>> Device="usbchanger-drive-0" (/var/lib/bacula/usbbcla1/drive0)
>> Catalog record for Volume "usbbcla1_0001_0001", Slot 1 successfully
>> created.
>> Sending label command for Volume "usbbcla1_0001_0002" Slot 2 ...
>> 3307 Issuing autochanger "unload slot 1, drive 0" command.
>> 3304 Issuing autochanger "load slot 2, drive 0" command.
>> 3305 Autochanger "load slot 2, drive 0", status is OK.
>> 3920 Cannot label Volume because it is already labeled:
>> "usbbcla1_0001_0001"
>> Label command failed for Volume usbbcla1_0001_0002.
>> Sending label command for Volume "usbbcla1_0001_0003" Slot 3 ...
>> ..........
>> 3920 Cannot label Volume because it is already labeled:
>> "usbbcla1_0001_0001"
>> Label command failed for Volume usbbcla1_0001_0008.
>> Sending label command for Volume "usbbcla1_0001_0009" Slot 9 ...
>> 3307 Issuing autochanger "unload slot 8, drive 0" command.
>> 3304 Issuing autochanger "load slot 9, drive 0" command.
>> 3305 Autochanger "load slot 9, drive 0", status is OK.
>> 3920 Cannot label Volume because it is already labeled:
>> "usbbcla1_0001_0001"
>> Label command failed for Volume usbbcla1_0001_0009.
>>
>> I tried running a job just to see what would happen.
>> usbbcla1_0001_0001 filled successfully and then bacula asked for a
>> new volume but said no volumes could be found. Bacula seems to have
>> labeled the first volume in "slot 1" of the "magazine" successfully.
>> But every attempt to label the next volume in the next "slot" failed
>> saying the first volume is already labeled.
>>
>> Any thoughts as to what could be going wrong here are greatly
>> appreciated! Thanks!
>>
>
--
Thomas E. Plancon
CAD/IS Manager
B K A Architects, Inc.
142 Crescent Street
Brockton, MA 02302
tel: 508 . 583 . 5603 ext 313
fax: 508 . 584 . 2914
www.bkaarchitects.com <http://www.bkaarchs.com/>
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|