You didn't mention which version of bacula you are running but I know 
2.0.2 has a 'release' command that releases the tape and bacula knows to 
check the drive before trying to access it the next time.

Not sure what version it was introduced in however.

Troy.

Adam Cécile wrote:
> Hi,
> 
> All weeks I need to unload all tapes from drives to the library, so all
> tapes can be removed from the Autochanger easily.
> However, when I do "umount", device is marked as BLOCKED and no more
> jobs run until I mount the drive again.
> What's the right way to eject all tapes without blocking drives ?
> 
> Thanks in advance.
> 
> 
> ##################### bacula-dir.conf
> # Autochanger Dell PV132T (21x LTO3)
> Storage {
>   Name = Autochanger
>   Address = srv-mpp-lrs
>   SDPort = 9103
>   Password = "ZK9nC86vuFvW80l28xQ3jaKtEJt89jXM3R31VjdZl"
>   Device = Dell-PV132T
>   Media Type = LTO3
>   Autochanger = yes
>   Maximum Concurrent Jobs = 2
> }
> 
> ##################### bacula-sd.conf
> # An autochanger device with two drives
> Autochanger {
>   Name = Dell-PV132T
>   Device = ULTRIUM-TD3-1
>   Device = ULTRIUM-TD3-2
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg2
> }
> Device {
>   Name = ULTRIUM-TD3-1
>   Drive Index = 0
>   Media Type = LTO3
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   Offline On Unmount = no;
>   #RandomAccess = no;
>   AutoChanger = yes
>   # Enable the Alert command only if you have the mtx package loaded
>   # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
> Device {
>   Name = ULTRIUM-TD3-2
>   Drive Index = 1
>   Media Type = LTO3
>   Archive Device = /dev/nst1
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   Offline On Unmount = no;
>   #RandomAccess = no;
>   AutoChanger = yes
>   # Enable the Alert command only if you have the mtx package loaded
>   # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to