Hello,

On 4/23/2007 8:53 PM, Christoph Haas wrote:
> Dear list...
> 
> 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.

Yes, that's intentional... Kerns reasoning: The daemons are supposed to 
run non-interactively, so they should never encounter these signals, 
thus they ignore them. For debugging purposes only you use the -f 
switch, preferrably together with -s, and best under gdb.

My solution, by the way, is to run the daemons as daemons, but redirect 
their output to a file which I can look at as often as I want.


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

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

Arno

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

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