Bacula-users

Re: [Bacula-users] [Bacula-devel] bug in autolabel code in 5.0.0?

2010-02-03 16:43:58
Subject: Re: [Bacula-users] [Bacula-devel] bug in autolabel code in 5.0.0?
From: Bob Hetzel <beh AT case DOT edu>
To: bacula-users AT lists.sourceforge DOT net, bacula-devel AT lists.sourceforge DOT net
Date: Wed, 03 Feb 2010 16:41:16 -0500
Has anybody gotten 5.0.0 to label tapes properly?  I upgraded to 5.0.0 a 
couple days ago and backups worked that first night until they ran out of 
appendable (i.e. already partially written) media.  Since that point, I've 
been completely stuck.

I just ran the btape "auto" test on a lark and that passed, although 
strangely bacula couldn't read the volume label I created inside there.  I 
then deleted that volume and labeled it from within the director and got 
the following...

*delete volume=LTO429L4

This command will delete volume LTO429L4
and all Jobs saved on that volume from the Catalog
Are you sure you want to delete Volume "LTO429L4"? (yes/no): yes
*mess
You have no messages.
*label barcodes slots=1
Automatically selected Storage: Dell-ML6000
Enter autochanger drive[0]:
Connecting to Storage daemon Dell-ML6000 at claustrum:9103 ...
3306 Issuing autochanger "slots" command.
Device "Dell-ML6000" has 46 slots.
Connecting to Storage daemon Dell-ML6000 at claustrum:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==============
    1  LTO429L4
Do you want to label these Volumes? (yes|no): yes
Defined Pools:
      1: Scratch
      2: Westwing
Select the Pool (1-2): 1
Connecting to Storage daemon Dell-ML6000 at claustrum:9103 ...
Sending label command for Volume "LTO429L4" Slot 1 ...
block.c:1012 Read error on fd=3 at file:blk 0:0 on device "IBMLTO4-0" 
(/dev/nst0). ERR=Device or resource busy.
3000 OK label. VolBytes=131072 DVD=0 Volume="LTO429L4" Device="IBMLTO4-0" 
(/dev/nst0)
Catalog record for Volume "LTO429L4", Slot 1  successfully created.
*release drive=0
Automatically selected Storage: Dell-ML6000
3307 Issuing autochanger "unload slot 1, drive 0" command.
3022 Device "IBMLTO4-0" (/dev/nst0) released.
*mount
Automatically selected Storage: Dell-ML6000
Enter autochanger drive[0]:
Enter autochanger slot:
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3901 Unable to open device "IBMLTO4-0" (/dev/nst0): ERR=dev.c:491 Unable to 
open device "IBMLTO4-0" (/dev/nst0): ERR=No medium found

*mount slot=1
Automatically selected Storage: Dell-ML6000
Enter autochanger drive[0]:
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.
block.c:1012 Read error on fd=5 at file:blk 0:0 on device "IBMLTO4-0" 
(/dev/nst0). ERR=Device or resource busy.
3902 Cannot mount Volume on Storage Device "IBMLTO4-0" (/dev/nst0) because:
Requested Volume "" on "IBMLTO4-0" (/dev/nst0) is not a Bacula labeled 
Volume, because: ERR=block.c:1012 Read error on fd=5 at file:blk 0:0 on 
device "IBMLTO4-0" (/dev/nst0). ERR=Device or resource busy.
3905 Device "IBMLTO4-0" (/dev/nst0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*




------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users