Hi,

On 9/22/2006 8:37 PM, Waldock, Brian wrote:
> 
> 
> Hello,
> 
>  
> 
> So far bacula has pretty much done what I have asked, but I still have 
> some issues I would like to get resolved. I was wondering if anyone else 
> has come across these same problems..
> 
>  
> 
> Here is my hardware/software configuration
> 
> Sun e480 running solaris 10
> 
> Sun/stk L180 library
> 
> 6 ibm LTO2 tape drives
> 
> Bacula 1.38.9
> 
>  
> 
> I get about a 20 minute delay every time I restart bacula on my server. 
>  The following messages repeat about every 5 seconds in syslog 
> (/var/adm/messages) and the application creates a core file.
> 
>  
> 
> Sep 22 09:29:25 memorex scsi: [ID 107833 kern.notice]   Requested Block: 
> 0                         Error Block: 0
etc...

As far as I can tell what you observe is, well, not exactly a bug but 
rather a workaround for a problem between Bacula, you OS and the tape 
hardware. It happens when you've got no tape laoded in a tape drive, and 
Bacula tries to access the tape (to read its label, I assume).

I'd expect to find Bacula working without any problems after it finally 
decides to accept the tape drives as empty, but functional.

If you want to avoid this delay you'd have to pre-load tapes to the drives.

Arno

> Sep 22 09:29:25 memorex scsi: [ID 107833 kern.notice]   Vendor: 
> IBM                                Serial Number:
> 
> Sep 22 09:29:25 memorex scsi: [ID 107833 kern.notice]   Sense Key: Not 
> Ready
> 
> Sep 22 09:29:25 memorex scsi: [ID 107833 kern.notice]   ASC: 0x3a 
> (medium not present), ASCQ: 0x0, FRU: 0x30
> 
> Sep 22 09:29:30 memorex scsi: [ID 107833 kern.warning] WARNING: 
> /[EMAIL PROTECTED],600000/SUNW,[EMAIL PROTECTED]/[EMAIL PROTECTED],0/[EMAIL 
> PROTECTED],0 (st4):
> 
> Sep 22 09:29:30 memorex         Error for Command: 
> rezero/rewind           Error Level: Fatal
> 
> Sep 22 09:29:30 memorex scsi: [ID 107833 kern.notice]   Requested Block: 
> 0                         Error Block: 0
> 
> Sep 22 09:29:30 memorex scsi: [ID 107833 kern.notice]   Vendor: 
> IBM                                Serial Number:
> 
> Sep 22 09:29:30 memorex scsi: [ID 107833 kern.notice]   Sense Key: Not 
> Ready
> 
> Sep 22 09:29:30 memorex scsi: [ID 107833 kern.notice]   ASC: 0x3a 
> (medium not present), ASCQ: 0x0, FRU: 0x30
> 
> Sep 22 09:29:35 memorex scsi: [ID 107833 kern.warning] WARNING: 
> /[EMAIL PROTECTED],600000/SUNW,[EMAIL PROTECTED]/[EMAIL PROTECTED],0/[EMAIL 
> PROTECTED],0 (st4):
> 
> Sep 22 09:29:35 memorex         Error for Command: 
> rezero/rewind           Error Level: Fatal
> 
> Sep 22 09:29:35 memorex scsi: [ID 107833 kern.notice]   Requested Block: 
> 0                         Error Block: 0
> 
> Sep 22 09:29:35 memorex scsi: [ID 107833 kern.notice]   Vendor: 
> IBM                                Serial Number:
> 
> Sep 22 09:29:35 memorex scsi: [ID 107833 kern.notice]   Sense Key: Not 
> Ready
> 
> Sep 22 09:29:35 memorex scsi: [ID 107833 kern.notice]   ASC: 0x3a 
> (medium not present), ASCQ: 0x0, FRU: 0x30
> 
> Sep 22 09:29:40 memorex scsi: [ID 107833 kern.warning] WARNING: 
> /[EMAIL PROTECTED],600000/SUNW,[EMAIL PROTECTED]/[EMAIL PROTECTED],0/[EMAIL 
> PROTECTED],0 (st4):
> 
> Sep 22 09:29:40 memorex         Error for Command: 
> rezero/rewind           Error Level: Fatal
> 
> Sep 22 09:29:40 memorex scsi: [ID 107833 kern.notice]   Requested Block: 
> 0                         Error Block: 0
> 
> Sep 22 09:29:40 memorex scsi: [ID 107833 kern.notice]   Vendor: 
> IBM                                Serial Number:
> 
> Sep 22 09:29:40 memorex scsi: [ID 107833 kern.notice]   Sense Key: Not 
> Ready
> 
> Sep 22 09:29:40 memorex scsi: [ID 107833 kern.notice]   ASC: 0x3a 
> (medium not present), ASCQ: 0x0, FRU: 0x30
> 
>  
> 
> After about 20 minutes the messages stop and bacula is fully functional. 
> I did see a possible reference to this with bug fix #558 in beta version 
> bacula-1.39.22, but Im not quite sure if this is the same issue or not.
> 
>  
> 
> Thanks
> 
> Brian
> 
>  
> 
>  
> 
>  
> 
> Here is my bacula-sd.conf configuration file
> 
>  
> 
> # Default Bacula Storage Daemon Configuration file
> 
> #
> 
> #  For Bacula release 1.38.9 (02 May 2006) -- solaris 5.10
> 
> #
> 
> # You may need to change the name of your tape drive
> 
> #   on the "Archive Device" directive in the Device
> 
> #   resource.  If you change the Name and/or the
> 
> #   "Media Type" in the Device resource, please ensure
> 
> #   that dird.conf has corresponding changes.
> 
> #
> 
>  
> 
> Storage {                             # definition of myself
> 
>   Name = memorex-sd
> 
>   SDPort = 9103                  # Director's port
> 
>   WorkingDirectory = "/usr/local/bacula/working"
> 
>   Pid Directory = "/usr/local/bacula/working"
> 
>   Heartbeat Interval = 0
> 
>   Maximum Concurrent Jobs = 30
> 
> }
> 
>  
> 
> #
> 
> # List Directors who are permitted to contact Storage daemon
> 
> #
> 
> Director {
> 
>   Name = memorex-dir
> 
>   Password = "1cCHdeZZzLQojxUOOEh9aU6N6xGR7MyUCUYdBMcVCepH"
> 
> }
> 
>  
> 
> #
> 
> # Restricted Director, used by tray-monitor to get the
> 
> #   status of the storage daemon
> 
> #
> 
> Director {
> 
>   Name = memorex-mon
> 
>   Password = "Hna+LSgY+0ERab+HPOCwYBtBv9nynie9B/bKIXYZwjx1"
> 
>   Monitor = yes
> 
> }
> 
>  
> 
> #
> 
> # Devices supported by this Storage daemon
> 
> # To connect, the Director's bacula-dir.conf must have the
> 
> #  same Name and MediaType.
> 
> #
> 
>  
> 
> Device {
> 
>   Name = FileStorage1
> 
>   Media Type = File
> 
>   Archive Device = /fsbackup1
> 
>   LabelMedia = yes;                   # lets Bacula label unlabeled media
> 
>   Random Access = Yes;
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   RemovableMedia = no;
> 
>   AlwaysOpen = no;
> 
> }
> 
>  
> 
> #
> 
> # An autochanger device with two drives
> 
> #
> 
> Autochanger {
> 
>   Name = "L180 Autochanger"
> 
>   Device = LTO2-1, LTO2-2, LTO2-3, LTO2-4, LTO2-5, LTO2-6
> 
>   Changer Command = "/usr/local/bacula/bin/mtx-changer %c %o %S %a %d"
> 
>   Changer Device = /dev/scsi/changer/c6t10d0
> 
> }
> 
>  
> 
> Device {
> 
>   Name = LTO2-1                      #
> 
>   Drive Index = 0
> 
>   Media Type = LTO2
> 
>   Archive Device = /dev/nrst30
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   Autochanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
>   Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> }
> 
>  
> 
> Device {
> 
>   Name = LTO2-2                      #
> 
>   Drive Index = 1
> 
>   Media Type = LTO2
> 
>   Archive Device = /dev/nrst29
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   Autochanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
>   Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> }
> 
>  
> 
> Device {
> 
>   Name = LTO2-3                      #
> 
>   Drive Index = 2
> 
>   Media Type = LTO2
> 
>   Archive Device = /dev/nrst28
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   Autochanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
>   Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> }
> 
>  
> 
> Device {
> 
>   Name = LTO2-4                      #
> 
>   Drive Index = 3
> 
>   Media Type = LTO2
> 
>   Archive Device = /dev/nrst27
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   Autochanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
>   Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> }
> 
>  
> 
> Device {
> 
>   Name = LTO2-5                      #
> 
>   Drive Index = 4
> 
>   Media Type = LTO2
> 
>   Archive Device = /dev/nrst26
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   Autochanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
>   Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> }
> 
>  
> 
> Device {
> 
>   Name = LTO2-6                      #
> 
>   Drive Index = 5
> 
>   Media Type = LTO2
> 
>   Archive Device = /dev/nrst25
> 
>   AutomaticMount = yes;               # when device opened, read it
> 
>   AlwaysOpen = yes;
> 
>   RemovableMedia = yes;
> 
>   RandomAccess = no;
> 
>   Autochanger = yes
> 
>   # Enable the Alert command only if you have the mtx package loaded
> 
>   Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> }
> 
> #Device {
> 
> #  Name = Drive-2                      #
> 
> #  Drive Index = 1
> 
> #  Media Type = DLT-8000
> 
> #  Archive Device = /dev/nst1
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  AlwaysOpen = yes;
> 
> #  RemovableMedia = yes;
> 
> #  RandomAccess = no;
> 
> #  AutoChanger = yes
> 
> #  # Enable the Alert command only if you have the mtx package loaded
> 
> #  Alert Command = "sh -c '/usr/local/sbin/tapeinfo -f %c |grep 
> TapeAlert|cat'"
> 
> #}
> 
>  
> 
> #
> 
> # A Linux or Solaris tape drive
> 
> #
> 
> #Device {
> 
> #  Name = DDS-4                        #
> 
> #  Media Type = DDS-4
> 
> #  Archive Device = /dev/rmt/0cbn
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  AlwaysOpen = yes;
> 
> #  RemovableMedia = yes;
> 
> #  RandomAccess = no;
> 
> ## Changer Command = "/usr/local/bacula/bin/mtx-changer %c %o %S %a %d"
> 
> ## Changer Device = /dev/sg0
> 
> ## AutoChanger = yes
> 
> #  # Enable the Alert command only if you have the mtx package loaded
> 
> ## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> 
> #}
> 
>  
> 
> #
> 
> # A FreeBSD tape drive
> 
> #
> 
> #Device {
> 
> #  Name = DDS-4
> 
> #  Description = "DDS-4 for FreeBSD"
> 
> #  Media Type = DDS-4
> 
> #  Archive Device = /dev/nsa1
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  AlwaysOpen = yes
> 
> #  Offline On Unmount = no
> 
> #  Hardware End of Medium = no
> 
> #  BSF at EOM = yes
> 
> #  Backward Space Record = no
> 
> #  Fast Forward Space File = no
> 
> #  TWO EOF = yes
> 
> #}
> 
>  
> 
> #
> 
> # A OnStream tape drive.
> 
> # You need the kernel osst driver 0.9.14 or later, and
> 
> #   do "mt -f /dev/nosst0 defblksize 32768" once as root.
> 
> #
> 
> #Device {
> 
> #  Name = OnStream
> 
> #  Description = "OnStream drive on Linux"
> 
> #  Media Type = OnStream
> 
> #  Archive Device = /dev/rmt/0cbn
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  AlwaysOpen = yes
> 
> #  Offline On Unmount = no
> 
> ## The min/max blocksizes of 32768 are *required*
> 
> #  Minimum Block Size = 32768
> 
> #  Maximum Block Size = 32768
> 
> #}
> 
>  
> 
> #
> 
> # A DVD device
> 
> #
> 
> #Device {
> 
> #  Name = "DVD-Writer"
> 
> #  Media Type = DVD
> 
> #  Archive Device = /dev/hdc
> 
> #  LabelMedia = yes;                   # lets Bacula label unlabeled media
> 
> #  Random Access = Yes;
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  RemovableMedia = yes;
> 
> #  AlwaysOpen = no;
> 
> #  MaximumPartSize = 800M;
> 
> #  RequiresMount = yes;
> 
> #  MountPoint = /mnt/cdrom;
> 
> #  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
> 
> #  UnmountCommand = "/bin/umount %m";
> 
> #  SpoolDirectory = /tmp/backup;
> 
> #  WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"
> 
> #  FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"
> 
> #}
> 
>  
> 
> #
> 
> # For OpenBSD OS >= 3.6
> 
> #
> 
> #Device {
> 
> #  Name = DDS-3
> 
> #  Media Type = DDS-3
> 
> #  Archive Device = /dev/nrst0
> 
> #  Use MTIOCGET= no
> 
> #  BSF at EOM = yes
> 
> #  TWO EOF = no
> 
> #  AutomaticMount = yes;
> 
> #  AlwaysOpen = yes;
> 
> #  RemovableMedia = yes;
> 
> #  RandomAccess = no;
> 
> #}
> 
>  
> 
> #
> 
> # A very old Exabyte with no end of media detection
> 
> #
> 
> #Device {
> 
> #  Name = "Exabyte 8mm"
> 
> #  Media Type = "8mm"
> 
> #  Archive Device = /dev/rmt/0cbn
> 
> #  Hardware end of medium = No;
> 
> #  AutomaticMount = yes;               # when device opened, read it
> 
> #  AlwaysOpen = Yes;
> 
> #  RemovableMedia = yes;
> 
> #  RandomAccess = no;
> 
> #}
> 
>  
> 
> #
> 
> # Send all messages to the Director,
> 
> # mount messages also are sent to the email address
> 
> #
> 
> Messages {
> 
>   Name = Standard
> 
>   director = memorex-dir = all
> 
> }
> 
>  
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to