Thanks, Arno, for your reply.

On Mon, Apr 23, 2007 at 09:32:56PM +0200, Arno Lehmann wrote:
> On 4/23/2007 8:53 PM, Christoph Haas wrote:
> > I have just replaced my working old DDS-3 streamer with an AIT-1
> > streamer (dmesg says "SDX-300C"). First I ran "btape AIT" and entered
> > "test" to check if Bacula is happy with that drive. Everything went well
> ...
> > So everything went well. However when I try to label a tape from
> > bconsole or just enter "stat storage=AIT" the console hangs. I have to
> > kill the console process in another windows to make it quit. CTRL-C or
> > CTRL-Z do not work.
> 
> > Relevant part of my /etc/bacula/bacula-sd.conf:
> > 
> > ---------------------------------
> >     Device {
> >       Name = AIT
> >       Media Type = AIT1
> >       Archive Device = /dev/nst0
> >       AutomaticMount = yes;
> >       AlwaysOpen = yes;
> >       RemovableMedia = yes;
> >       RandomAccess = no;
> >       VolumePollInterval = 1 minute
> 
> Try removing this...
> 
> >       OfflineOnUnmount = yes
> 
> ... and this and see if it works then.
> 
> >       CloseOnPoll = no
> >       MaximumOpenWait = 2 days
> >     }
> > ---------------------------------

Are these options bad? I want Bacula to auto-detect if the needed tape
has been inserted without manual unmount/mount actions.

> > Reading and writing using "dd" works well. Writing files and restoring
> > them via "tar cvzf /dev/nst0 ..." and "tar xvzf /dev/nst0" works well.
> > (It didn't work early today. I think I ran "mt -f /dev/nst0 setblk 0" or
> > something on it while looking for solutions on the usenet. Maybe that
> > has changed something regarding the block size.)
> 
> Definitely, but setting the block size to zero is usually the right 
> thing to do.

I see. Sounds like "0" is the meaning of "auto-detect" or
"machine-default" or something like that.

> > So I started the storage daemon with "-d100 -f" but it looks that after
> > a few seconds the device is suddenly busy although lsof says that it's
> > the bacula-sd itself blocking the device:
> 
> Probably polling...

That was the helping hint. It turned out I had the old DDS-3 streamer
still configured as a device pointing to /dev/nst0, too. And although I
wasn't using that Bacula device that must have been the reason that the
storage daemon complained that the device is busy. I removed the DDS-3
device and have just been able to label a tape. Hooray! :)

Thanks.

 Christoph

-------------------------------------------------------------------------
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