Bacula-users

[Bacula-users] Tape Drive blocked, waiting for tape in another drive

2009-10-20 06:29:15
Subject: [Bacula-users] Tape Drive blocked, waiting for tape in another drive
From: Evan Fraser <Evan.Fraser AT rms DOT com>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 20 Oct 2009 11:24:31 +0100
Hello everyone,

I have a 6 drive LTO4 Dell ML6000 changer, running on a Dell Poweredge 2900 
with Suse Enterprise 10 SP2, and over the last weeks I've managed to get Bacula 
3.0.2 running very well with it.

Except for one problem where every night now a few jobs stall requiring 
intervention requesting tapes.  I am using brand new tapes that are being 
autolabelled and moved from a scratch pool.  The autolabelling etc is all 
working well and I'm sure that's not causing problems.

I've been trawling through the email archives, and found a few similar 
situations where people were using older versions of bacula that had a bug.  
But I thought that it was fixed in version 3.0.2...?

Here's an excerpt from the storage status whilst the jobs are requiring 
intervention:

Device "Drive-0" (/dev/tape/by-id/scsi-3500308c09f221090-nst) is mounted with:
    Volume:      LX0005
    Pool:        Week3
    Media type:  LTO4
    Slot 76 is loaded in drive 0.
    Total Bytes=3,571,088,384 Blocks=3,407 Bytes/block=1,048,162
    Positioned at File=5 Block=0
Device "Drive-1" (/dev/tape/by-id/scsi-3500308c09f221094-nst) is mounted with:
    Volume:      LX0002
    Pool:        Week3
    Media type:  LTO4
    Slot 73 is loaded in drive 1.
    Total Bytes=14,290,500,608 Blocks=13,633 Bytes/block=1,048,228
    Positioned at File=18 Block=0
Device "Drive-2" (/dev/tape/by-id/scsi-3500308c09f221098-nst) is mounted with:
    Volume:      LX0003
    Pool:        Week3
    Media type:  LTO4
    Slot 74 is loaded in drive 2.
    Total Bytes=8,136,003,584 Blocks=7,762 Bytes/block=1,048,183
    Positioned at File=10 Block=0
Device "Drive-3" (/dev/tape/by-id/scsi-3500308c09f22109c-nst) is mounted with:
    Volume:      LX0004
    Pool:        Week3
    Media type:  LTO4
    Slot 75 is loaded in drive 3.
    Total Bytes=14,862,441,472 Blocks=14,175 Bytes/block=1,048,496
    Positioned at File=15 Block=0
Device "Drive-4" (/dev/tape/by-id/scsi-3500308c09f221000-nst) is not open.
    Device is BLOCKED waiting for mount of volume "LX0003",
       Pool:        Week3
       Media type:  LTO4
    Drive 4 status unknown.
Device "Drive-5" (/dev/tape/by-id/scsi-3500308c09f221004-nst) is not open.
    Device is BLOCKED waiting for mount of volume "LX0006",
       Pool:        Week3
       Media type:  LTO4
    Slot 77 is loaded in drive 5.

And an excerpt from my bacula-sd.conf:


Autochanger {
  Name = Dell-ML6000
  Device = Drive-0, Drive-1, Drive-2, Drive-3, Drive-4, Drive-5
  Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/tape/by-id/scsi-1ADIC_A0C0138B29_LLA
                    # %c = changer device
                    # %o = command (unload|load|loaded|list|slots)
                    # %S = slot index (1-based)
                    # %a = archive device (i.e., /dev/sd* name for tape drive)
                    # %d = drive index (0-based)
}

Device {
  Name = Drive-0
  Media Type = LTO4
  Archive Device = /dev/tape/by-id/scsi-3500308c09f221090-nst
  Device Type = Tape
  Autochanger = Yes
#  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg1 | /bin/sed -n 
/TapeAlert/p'"
  Drive Index = 0
  # Autoselect = yes                    # Since our backup host lacks
                                        # the I/O bandwidth for it to
                                        # worthwhile to write to two
                                        # drives simultaneously, it
                                        # might be worthwhile
                                        # manipulating this to either
                                        # reserve a drive for
                                        # restores, or to spread the
                                        # wear across the two drives.
  # Maximum Changer Wait = 300 seconds
  # Maximum Rewind Wait = 300 seconds
  # Maximum Open Wait = 300 seconds
  # Always Open = Yes
  # Volume Poll Interval = 0            # 0 means "don't poll".
  RemovableMedia = yes
  Random Access = no
#  Maximum block size = 64512        # Some sources suggest 128K or
#  Maximum block size = 2000000       # 2MB for LTO4
  Maximum block size = 1048576
  # Hardware End of Medium = Yes
  # Fast Forward Space File = Yes
  # Use MTIOCGET = Yes
  # BSF at EOM = No
  # Two EOM = No
  # Backward Space Record = Yes
  # Backward Space File = Yes
  # Forward Space Record = Yes
  # Forward Space File = Yes
  # Offline On Unmount = No
  # Maximum File Size = 1gb
  # Block Positioning = yes
  # Maximum Network Buffer Size = 32768  # The manual suggests it may be
                                         # worthwhile doubling this.
  Maximum Network Buffer Size = 65536
  Maximum Spool Size = 500gb
  Maximum Job Spool Size = 400gb
  Spool Directory = /data/BACULA/spool0
  Label media = yes
  # Automatic mount = Yes
    Automatic Mount = yes
  AlwaysOpen = yes

}

Device {
  Name = Drive-1
  Archive Device = /dev/tape/by-id/scsi-3500308c09f221094-nst
  Device Type = Tape
  Media Type = LTO4
  Autochanger = Yes
  # Changer Device = <inherited from Changer>
#  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg2 | /bin/sed -n 
/TapeAlert/p"
  Drive Index = 1
  RemovableMedia = yes
  Random Access = no
#  Maximum block size = 2000000       # 2MB for LTO4
  Maximum block size = 1048576
  Automatic Mount = yes
  Maximum Network Buffer Size = 65536
  Maximum Spool Size = 500gb
  Maximum Job Spool Size = 400gb
  Spool Directory = /data/BACULA/spool1
  AlwaysOpen = yes
  Label media = yes
}

Device {
  Name = Drive-2
  Archive Device = /dev/tape/by-id/scsi-3500308c09f221098-nst
  Device Type = Tape
  Media Type = LTO4
  Autochanger = Yes
  # Changer Device = <inherited from Changer>
#  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg2 | /bin/sed -n 
/TapeAlert/p"
  Drive Index = 2
  RemovableMedia = yes
  Random Access = no
#  Maximum block size = 2000000       # 2MB for LTO4
  Maximum block size = 1048576
  Automatic Mount = yes
  Maximum Network Buffer Size = 65536
  Maximum Spool Size = 500gb
  Maximum Job Spool Size = 400gb
  Spool Directory = /data/BACULA/spool2
  AlwaysOpen = yes
  Label media = yes
}
Device {
  Name = Drive-3
  Archive Device = /dev/tape/by-id/scsi-3500308c09f22109c-nst
  Device Type = Tape
  Media Type = LTO4
  Autochanger = Yes
  # Changer Device = <inherited from Changer>
#  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg2 | /bin/sed -n 
/TapeAlert/p"
  Drive Index = 3
  RemovableMedia = yes
  Random Access = no
#  Maximum block size = 2000000       # 2MB for LTO4
  Maximum block size = 1048576
  Automatic Mount = yes
  Maximum Network Buffer Size = 65536
  Maximum Spool Size = 500gb
  Maximum Job Spool Size = 400gb
  Spool Directory = /data/BACULA/spool3
  AlwaysOpen = yes
  Label media = yes
}
Device {
  Name = Drive-4
  Archive Device = /dev/tape/by-id/scsi-3500308c09f221000-nst
  Device Type = Tape
  Media Type = LTO4
  Autochanger = Yes
  # Changer Device = <inherited from Changer>
#  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg2 | /bin/sed -n 
/TapeAlert/p"
  Drive Index = 4
  RemovableMedia = yes
  Random Access = no
#  Maximum block size = 2000000       # 2MB for LTO4
  Maximum block size = 1048576
  Automatic Mount = yes
  Maximum Network Buffer Size = 65536
  Maximum Spool Size = 500gb
  Maximum Job Spool Size = 400gb
  Spool Directory = /data/BACULA/spool4
  AlwaysOpen = yes
  Label media = yes
}
Device {
  Name = Drive-5
  Archive Device = /dev/tape/by-id/scsi-3500308c09f221004-nst
  Device Type = Tape
  Media Type = LTO4
  Autochanger = Yes
  # Changer Device = <inherited from Changer>
#  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg2 | /bin/sed -n 
/TapeAlert/p"
  Drive Index = 5
  RemovableMedia = yes
  Random Access = no
#  Maximum block size = 2000000       # 2MB for LTO4
  Maximum block size = 1048576
  Automatic Mount = yes
  Maximum Network Buffer Size = 65536
  Maximum Spool Size = 500gb
  Maximum Job Spool Size = 400gb
  Spool Directory = /data/BACULA/spool5
  AlwaysOpen = yes
  Label media = yes
}

I'd like to thank everyone that's contributed to the documentation so far, 
especially for the ML6000 config someone put in, and the postgresql backup 
notes.  I'll be adding what I can once it's running properly ;-)


Thanks, Evan.
(barkboy)

This message and any attachments contain information that may be RMS Inc. 
confidential and/or privileged.  If you are not the intended recipient (or 
authorized to receive for the intended recipient), and have received this 
message in error, any use, disclosure or distribution is strictly prohibited.   
If you have received this message in error, please notify the sender 
immediately by replying to the e-mail and permanently deleting the message from 
your computer and/or storage system.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>