On Thu, 5 Jan 2006 - 10:34am, Kern Sibbald wrote:

>> >Third hint. I *strongly* recommend running with "Always Open = yes".  It
>> > saves *lots* of wear and tear on your drives/tapes.
>>
>> Just a short question with that. We currently get the tapes ejected with
>> the last job during the night. How would I do that with AlwaysOpen=yes? A
>> simple 'unmount storage=LTO' on the console?
>
>I'm not 100% sure exactly what you are doing, so my response may not be 
>correct, but I don't think any of your procedures will change by having 
>AlwaysOpen=yes.  If you set it to No, then after every job, Bacula releases 
>the drive, and thus the tape will be rewound and repositioned when the next 
>job starts.  With AlwaysOpen=yes, the tape remains properly positioned 
>between jobs.  If you want to change tapes, you either need to make Bacula do 
>it automatically with one of its multitude of directives, or you must 
>explicitly unmount the drive, which will cause the tape to be released.
If Bacula releases /dev/nst0, e.g. a non-rewinding tape, that doesnt matter.
The tape will keep its position as long as no rewind or offline is executed.

>> If yes, do I need to execute a 'mount storage=LTO' after I changed tapes
>> and run 'update slots storage=LTO' afterwards, which (if yes) would mean to
>> me, that I'd have to load a tape 'by hand' running 'mtx load.
>
>I find it hard to answer this question because if you are using an 
>autochanger, then there is no need to mount/unmount drives. The autochanger 
>code will do it for you automatically.  The only case where you would do that 
>is if you want to change the magazine, then you do something like:
>
>  unmount storage=xxx
>  (remove and replace magazine)
>  update slots storage=xxx
>  mount storage=xxx
>
>In this case, it is manual because you need to physically remove the magazine.
Ok, bigger explanation.
At first, we don't have a magazin. I have a changer, when I open its door there 
are 6 slots where I can throw tapes in. So I can change a single one or all or 
... you get the idea. Besides that the device as one tapedrive included.

Currently we are using 2 tapes on a daily basis and on friday we put two more 
in for the weekend backup.

Though we are working with UseDuration and RetentionTime we change tapes on a 
daily basis and store them outside the datacenter. Also theres a printout 
created from the bacula.log that needs to be checked and stored in a folder.
Printout contains the jobs of the last 24h and the bootstrap file for the 
CatalogBackup.
If someone wants it, gimme a mail.

Soooo, back to the "problem". As a matter of fact, we change tapes every 
morning and therefor run an 'mtx inventory' and an 'update slots' after that.
Before switching to 1.38.2 we used AlwaysOpen=no and simply unloaded the tape 
with the RunAfterJob. In the morning we put 2 new tapes in, cronjob at 7pm runs 
'update slots', the tapes are purged hopefully and will be used during the 
night.

Now my question, again, when I execute 'unmount storage=LTO' with the 
RunAfterJob, what do I have to do to satisfy Baculas needs after I changed the 
tapes?
- mtx inventory
- update slots storage=LTO
- mount storage=LTO
  => which should throw an error cause theres no tape loaded in the drive, 
cause I expect Bacula to examine what tapes are there and therefor pick the 
right one. Examination works good as "status director" is showing me.

Ok, did I baffle you enough? good. ;)

Greetings,

 Michael


-- 
  I love deadlines, especially the sound they make as they go whooshing by.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to