Hi, On 4/23/2007 10:17 PM, Christoph Haas wrote: > 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?
Not per se, but I suspected the polling might interfere with your manual work. The suggestion was just for troubleshooting. > I want Bacula to auto-detect if the needed tape > has been inserted without manual unmount/mount actions. I never set up Bacula like this, but I get the impression it can be done :-) All the installations I handle do have more or less reliable operators who have to handle tapes anyway, so it's not really a problem if they have to issue a console command. Or call a script, or click an icon... whatever works for the site. >>> 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. A little more complex... it usually means variable block size, so a program can write data in (more or less) arbitrary blocks and doesn't have to write blocks of a fixed length. >>> 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. I guess it's agood thing you did all this testing... otherwise, you might have ended up with unusable tapes, or something... Arno > 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 -- 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