Re: [Bacula-users] update slots scan question

2013-03-05 Thread Uwe Schuerkamp
On Fri, Feb 08, 2013 at 09:40:28AM -0500, Dan Langille wrote:
 On 2013-02-08 05:17, Uwe Schuerkamp wrote:
 I take it that your tape library does not read barcodes?  Or that you 
 are not
 using barcodes.  Which is it?

Hi Dan, thanks much for your answer. 

Our library is unable to read barcodes, we do all the labelling
manually.

snip snip

 No, not quite. inChanger is either 0 or 1 to indicate if it's in the 
 changer.
 

Ok, got it. Now what happens if I have entered a set of new / weof'ed
tapes into the library and all those are being filled with backups until
the first recycle needs to happen? Will bacula (5.2.13) honor the inchanger
flag, recycling the oldest of the volumes present *in* the library or
will it prompt the operator to insert the even older tapes with
inchanger=0 from the update slots scan run? 

I hope I'm making myself clear enough here. ;) 

Previously I manually set each removed volume status to Archive, but
judging from your answer this isn't necessary as the inChanger flag
takes precedence, right? 

All the best, Uwe 



-- 
NIONEX --- Ein Unternehmen der Bertelsmann SE  Co. KGaA



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] update slots scan question

2013-02-08 Thread Uwe Schuerkamp
Hi folks, 

I'm about to use the update slots scan bconsole command for the
first time as I'm fed up with doing all the manual work changing a set
of tapes involves. 

In a perfect (bacula) world, this command would achieve the following: 


- load all tapes in the changer one after the other

- if a slot is empty but expected to be full according to the Media
table, the volume would be set to state archive an its inChanger
flag to zero

- if the slot is full, but an empty tape is detected, the tape would
be auto-labelled, with the expected (but no longer present) tape in
that slot being set to archive / inchanger = 0

- if the slot is full and the volume has a label that has a Media
record but is set to archive, bacula would set the volume status to
full or recycle and inchanger to 1, updating the slot record.


- If the volume has a bacula label that bacula does not know of, an
additional parameter would allow me to relabel / null the tape and add
the new volume to the pool. 

So, am I dreaming or would the update slots scan command work in a
similar fashion? 

Thanks, Uwe 

-- 
NIONEX --- Ein Unternehmen der Bertelsmann SE  Co. KGaA



--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] update slots scan question

2013-02-08 Thread Dan Langille
On 2013-02-08 05:17, Uwe Schuerkamp wrote:
 Hi folks,

 I'm about to use the update slots scan bconsole command for the
 first time as I'm fed up with doing all the manual work changing a 
 set
 of tapes involves.

I take it that your tape library does not read barcodes?  Or that you 
are not
using barcodes.  Which is it?

 In a perfect (bacula) world, this command would achieve the 
 following:


 - load all tapes in the changer one after the other

Yes

I'm reading: 
http://www.bacula.org/manuals/en/concepts/concepts/Autochanger_Resource.html

At that URL, see 'Simulating Barcodes in your Autochanger', in case 
that helps your particular situation.

 - if a slot is empty but expected to be full according to the Media
 table, the volume would be set to state archive an its inChanger
 flag to zero

No, not quite. inChanger is either 0 or 1 to indicate if it's in the 
changer.

 - if the slot is full, but an empty tape is detected, the tape would
 be auto-labelled, with the expected (but no longer present) tape in
 that slot being set to archive / inchanger = 0

No, I am not sure that auto-labeling occurs.  That is a different 
process.  That's 'label barcodes'

Now I'm reading [old docs]: 
http://www.bacula.org/2.4.x-manuals/en/main/Bacula_Console.html

 - if the slot is full and the volume has a label that has a Media
 record but is set to archive, bacula would set the volume status to
 full or recycle and inchanger to 1, updating the slot record.

I'm not sure how 'archive' enters the situation.  The volume status 
will definitely not be altered.  But the inChanger field will be updated 
to 1.

 - If the volume has a bacula label that bacula does not know of, an
 additional parameter would allow me to relabel / null the tape and 
 add
 the new volume to the pool.

There is no such additional parameter.

 So, am I dreaming or would the update slots scan command work in a
 similar fashion?

Dreaming slightly.   ;)

-- 
Dan Langille - http://langille.org/

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users