Bacula-users

Re: [Bacula-users] Best way to auto mount and umount & eject

2008-08-01 09:03:12
Subject: Re: [Bacula-users] Best way to auto mount and umount & eject
From: Ryan Novosielski <novosirj AT umdnj DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 01 Aug 2008 09:02:35 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It's in here:
http://www.bacula.org/en/rel-manual/Storage_Daemon_Configuratio.html#9153

Keith Sudbury wrote:
> Not sure but i just searched the PDF manual for "OfflineOnUnmount" and
> found nothing...
> 
> You would think this would be so simple, I mean everyone must want this?
> 
> Keith
> 
> Ryan Novosielski wrote:
> Seems to me none of this is necessary. Is there some reason that
> AlwaysOpen = no and OfflineOnUnmount = yes or something similar would
> not work? Or does AlwaysOpen not actually unmount, just release the tape?
> 
> Brian Debelius wrote:
>   
>>>> An Admin job is another job type (see the docs).  I have an admin job 
>>>> that is scheduled with a priority of '1' that runs before any other 
>>>> scheduled job.  I also have several admin jobs with a priority greater 
>>>> then '100' that run after my backups.
>>>>
>>>> Kevin is right, you probably should do a release instead of an unmount.  
>>>> Below is an admin job definition that is running on a windows director.  
>>>> All it does in call a script that releases the tape.
>>>>
>>>> ##########################
>>>> # ReleaseTape
>>>> ##########################
>>>> Job {
>>>>   Name    = ReleaseTape
>>>>   Type    = Admin
>>>>   Level    = Full
>>>>   Client    = comp-fd
>>>>   Fileset    = None
>>>>   Messages    = Standard
>>>>   Schedule    = Daily_Backup
>>>>   Pool    = Tape-daily
>>>>   Spool Data= no
>>>>   Priority    = 101
>>>>   RunBeforeJob = "\"c:/program files/bacula/bin/adminjob.cmd\" ReleaseTape"
>>>> }
>>>>
>>>>
>>>>
>>>> Keith Sudbury wrote:
>>>>     
>>>>> Brian Debelius wrote:
>>>>>       
>>>>>> Hi Keith,
>>>>>>
>>>>>> I run an admin job before my run, and after.  I have an autoloader, 
>>>>>> but I think you should be able to do the same.  Possibly have the 
>>>>>> first admin job do a
>>>>>> echo 'mount quit' | bconsole
>>>>>>
>>>>>> and the last job do a
>>>>>> echo 'unmount quit' |bconsole
>>>>>> mt -f device eject
>>>>>>         
>>>>> Are you running this as a before job in bacula or with cron?
>>>>>
>>>>> Thanks
>>>>>
>>>>>       
>>>>>> Keith Sudbury wrote:
>>>>>>         
>>>>>>> Hi,
>>>>>>>
>>>>>>> My Bacula server is about 40 miles away and I rely on normal users 
>>>>>>> to change tapes each day (iv trained them well!). However each day I 
>>>>>>> am having to login to bconsole and type mount then select LTO-3 and 
>>>>>>> then after the job has finished I have to login again and umount 
>>>>>>> LTO-3 and then exit bconsole and type "mt eject" so it spits the 
>>>>>>> tape out.
>>>>>>>
>>>>>>> Is there any way I can automate this process? So they can just put a 
>>>>>>> tape in bacula will mount it do the backup umount and eject the tape 
>>>>>>> after it has finished doing the backup.
>>>>>>>
>>>>>>>
>>>>>>> Many Thanks

- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |novosirj AT umdnj DOT edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIkwlqmb+gadEcsb4RAiXMAKCKKoztwHtt8omhOyYA7N7JcOIH4wCg421J
Y5NcODD2+o7M5qtJVm8wtzk=
=x28U
-----END PGP SIGNATURE-----

Attachment: novosirj.vcf
Description: Vcard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>