Hi Kern,

I manually set the status of the "CLN" volume to "Cleaning" using the "update 
volumes" command, and now it appears properly in the catalog.

I have submitted bug #368 regarding this "label barcodes" issue for the benefit 
of anyone else who has a barcode changer setup, either real or simulated.

http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=0000368

Thanks for this most excellent of backup systems!

Cheers,

Ryan Colp

-----Original Message-----
From: Kern Sibbald [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 29, 2005 1:57 AM
To: bacula-users@lists.sourceforge.net
Cc: Ryan Colp
Subject: Re: [Bacula-users] Autochanger: How is a cleaning tape supposed to 
appear in the catalog?

On Tuesday 28 June 2005 23:58, Ryan Colp wrote:
> Here is the result of "llist volume=CLN"...
>
> *llist volume=CLN
>           MediaId: 37
>        VolumeName: CLN
>              Slot: 6
>            PoolId: 1
>         MediaType:
>      FirstWritten: 0000-00-00 00:00:00
>       LastWritten: 0000-00-00 00:00:00
>         LabelDate: 0000-00-00 00:00:00
>           VolJobs: 0
>          VolFiles: 0
>         VolBlocks: 0
>         VolMounts: 0
>          VolBytes: 0
>         VolErrors: 0
>         VolWrites: 0
>  VolCapacityBytes: 0
>         VolStatus: Append
>           Recycle: 1
>      VolRetention: 2,332,800
>    VolUseDuration: 0
>        MaxVolJobs: 0
>       MaxVolFiles: 0
>       MaxVolBytes: 0
>         InChanger: 1
>           EndFile: 0
>          EndBlock: 0
>
> Thanks,
> -Ryan

Well, I see as in your previous report that the status is Append -- it really 
should be "Cleaning", so I will fix that.

Now to answer your questions: it is very unlikely this Volume will be mounted 
for two reasons:
1. You have defined the CLN prefix in your bacula-dir.conf 2. There is no 
MediaType, and before writing to a tape, Bacula will check the MediaType.

If Bacula does mount this Volume, please file a bug report.

>
> -----Original Message-----
> From: Kern Sibbald [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 28, 2005 4:40 PM
> To: bacula-users@lists.sourceforge.net
> Cc: Ryan Colp
> Subject: Re: [Bacula-users] Autochanger: How is a cleaning tape 
> supposed to appear in the catalog?
>
> On Tuesday 28 June 2005 22:10, Ryan Colp wrote:
> > Hi fellow Bacula users and enthusiasts...  I have a question 
> > regarding the handling of cleaning tapes in an autochanger.
> >
> > I am running Bacula 1.36.3 with a HP SureStore DAT 40x6 autochanger, 
> > and it has been working quite well for some time.  I am now in the 
> > process of replacing an old set of tapes with new ones.  This issue 
> > came to light while I was labelling the new tapes.
> >
> > Here's some background...
> >
> > When I initially set this system up, I adapted the mtx-changer 
> > script to simulate barcodes as documented in 
> > http://www.bacula.org/rel-manual/Autochangers_Support.html (see:
> > Simulating Barcodes in your Autochanger).
> >
> > I also have the line: Cleaning Prefix = "CLN" in the Pool section of 
> > my bacula-dir.conf file.
> >
> > My cleaning tape is in slot 6, and the name "CLN" is listed by slot 
> > 6 in the /etc/bacula/changer.volumes file that mtx-changer uses to 
> > simulate barcode labels with.
> >
> > And here's what happened today when I labelled the tapes...
> >
> > When I issued the command "label barcodes" in bconsole, it looks 
> > like it handled the loading, labelling and unloading of the regular 
> > tapes properly, and it appears to have skipped loading and labelling 
> > of the cleaning tape as it is supposed to do.  When it came to the 
> > cleaning tape, it reported "Catalog record for cleaning tape "CLN" 
> > successfully created."  After that was finished, I issued an "update slots"
> > command, and then "list volumes" to see whether everything looked ok.
> >
> > The curious thing is that when I issue the "list volumes" command, 
> > the cleaning tape looks a lot like a normal tape in the catalog.  
> > Here's what it's showing (NOTE: some column names are shortened for 
> > readability, some columns omitted):
> >
> > *list volumes
> > Pool: Default
> > +---------+---------+---------+----------+----------+---------+------+--
> > ---------+-----------+
> >
> > | MediaId | VolName | VolStat | VolBytes | VolFiles | Recycle | Slot 
> > | |
> >
> > InChanger | MediaType |
> > +---------+---------+---------+----------+----------+---------+------+--
> > ---------+-----------+
> >
> > |      32 | CoLo4A  | Append  |        1 |        0 |       1 |    1 |
> >
> > 1 | DDS-4     |
> >
> > |      33 | CoLo4B  | Append  |        1 |        0 |       1 |    2 |
> >
> > 1 | DDS-4     |
> >
> > |      34 | CoLo4C  | Append  |        1 |        0 |       1 |    3 |
> >
> > 1 | DDS-4     |
> >
> > |      35 | CoLo4D  | Append  |        1 |        0 |       1 |    4 |
> >
> > 1 | DDS-4     |
> >
> > |      36 | CoLo4E  | Append  |        1 |        0 |       1 |    5 |
> >
> > 1 | DDS-4     |
> >
> > |      37 | CLN     | Append  |        0 |        0 |       1 |    6 |
> >
> > 1 |           |
> > +---------+---------+---------+----------+----------+---------+------+--
> > ---------+-----------+
> > *
> > (All VolRetention values were reported as 2,322,800 and all 
> > LastWritten values are 0000-00-00 00:00:00 - including the cleaning
> > tape.)
> >
> > The word "Append" and the value of "1" under the "Recycle" column 
> > concerns me.  I also notice that it doesn't have a "MediaType" value.
> >
> > I just want to make sure Bacula doesn't attempt to mount the backup 
> > tape as a regular volume.  Perhaps the handling of cleaning tapes in 
> > the catalog could be better documented in the Bacula Users Guide.
> >
> > So my questions are:
> >
> > Is this how a cleaning tape is supposed to appear in the catalog 
> > (with an "Append" status, Recycle=1 and no MediaType)?
> >
> > When doing a backup job, does Bacula use any part of the cleaning 
> > tape's catalog record (besides VolumeName) to determine that the 
> > tape is in fact a cleaning tape?
>
> Please do a:
>
> llist volume=CLN
>
> let's see what it says.
>
> > Curious,
> > -Ryan
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > Strategies from IBM. Find simple to follow Roadmaps, straightforward 
> > articles, informative Webcasts and more! Get everything you need to 
> > get up to speed, fast. 
> > http://ads.osdn.com/?ad_idt77&alloc_id492&opÌk
> > _______________________________________________
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Best regards,
>
> Kern
>
>   (">
>   /\
>   V_V
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies 
> from IBM. Find simple to follow Roadmaps, straightforward articles, 
> informative Webcasts and more! Get everything you need to get up to 
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opÌk
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to