Thanks Blake,

You are correct, it seems when I run an unmount, the drive goes into this
state

Jobs waiting to reserve a drive:
   3604 JobId=25 device "Drive-0" (/dev/nst0) is BLOCKED due to user
unmount.

Device status:
Autochanger "Autochanger" with devices:
   "Drive-0" (/dev/nst0)
Device "FileStorage" (/tmp) is not open.
Device "Drive-0" (/dev/nst0) is not open.
    Device is BLOCKED. User unmounted.
    Drive 0 status unknown.


If i restart the bacula-sd daemon, the status is now

Device status:
Autochanger "Autochanger" with devices:
   "Drive-0" (/dev/nst0)
Device "FileStorage" (/tmp) is not open.
Device "Drive-0" (/dev/nst0) is not open.
    Drive 0 status unknown.

So that appears to be the problem.  And my next question is, "release" is
the proper way to unmount a tape from the drive?  It appears to work, I'm
just trying to understand the difference.  Thanks a lot

Jay


On 10/23/07, Blake Dunlap <[EMAIL PROTECTED]> wrote:
>
>  If you run a "status storage" when this is occurring, I believe you will
> see that the drive is unmounted and offline by user. Mounting a tape, or
> instead using the "release" command to unmount tapes should solve your
> problem if this is the case.
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *jay
> *Sent:* Tuesday, October 23, 2007 11:16 AM
> *To:* bacula-users@lists.sourceforge.net
> *Subject:* [Bacula-users] Bacula-SD hang using IBM Ultrium 3581 Library
>
>
>
> Hello,
>
> I'm having a peculiar problem with an IBM Ultrium 3581 autochanger and the
> SD daemon.  I have to restart the SD daemon after I unmount a tape, or the
> next job hangs and never starts.
>
> We currently have a single LTO2 drive in the library, and are running
> Bacula 2.2.5 on a Redhat Enterprise Linux 4 update 5 IBM server.  I ran
> all the btape tests, including the multiple tape test for autochangers, and
> they all worked flawlessly.  Not a single problem or error reported.  I am
> able to use the mtx script and mt successfully as well.  Mtx reports all the
> proper tapes in the library, and I can mount a tape and WEOF and REWIND it
> using mt.  Things look great at this point.  Next, I ran "label barcodes"
> and it labeled all the tapes in the library properly.  Again, no problems.
> I decided at this point to modify the "Full OS Set" backup for our
> environment and run some tests.  I can successfully run the backup the first
> time.  It pulls a tape from the proper pool inside the library, backup
> works.  But if I unmount the tape in bconsole, and try and run the same
> backup again, it hangs.  Nothing happens.  I have waited several hours and
> nothing ever times out.  I finally have to cancel the job manually.  I
> discovered that by restarting bacula-sd that I can then re-run the job
> immediately without any problems.
>
> I'm not sure what could be causing this, or how to even troubleshoot.
> Things seem to work great during all tests and doing a backup, Bacula just
> doesn't like it when I unmount a tape manually.
>
> Could someone offer some advice or debugging steps I could take to figure
> this out?  Below is a copy of my bacula-sd.conf file.  I can post other
> config files if I need to.  Thanks
>
> Jay
>
>
> ---- bacula-sd.conf ---
>
> Storage {
>   Name = server1-sd
>   SDPort = 9103
>   WorkingDirectory = "/var/lib/bacula"
>   Pid Directory = "/var/run"
>   Maximum Concurrent Jobs = 20
>   SDAddress = 192.168.1.20
> }
>
> Director {
>   Name = server1-dir
>   Password = "xxxx1234xxxx"
> }
>
> Director {
>   Name = server1-mon
>   Password = "xxxx1234xxxx"
>   Monitor = yes
> }
>
> Device {
>   Name = FileStorage
>   Media Type = File
>   Archive Device = /tmp
>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = no;
> }
>
> Autochanger {
>   Name = Autochanger
>   Device = Drive-0
>   Changer Device = /dev/sg1
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> }
>
> Device {
>   Name = Drive-0
>   Drive Index = 0
>   Media Type = LTO2
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no
>   AutoChanger = yes
> }
>
> Messages {
>   Name = Standard
>   director = server1-dir = all
> }
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to