Hello,

I am running into a problem with bacula wanting a mounted tape on one
drive on another drive. I have a Qualstar RLS8236 Autochanger running on
a Sun V240 with Solaris 9.

Here is an example of the e-mail I get (and messages from bconsole)

05-Apr 16:18 solweb-sd: Please mount Volume "Daily02-0005" on Storage
Device "LTO-0" (/dev/rmt/0cbn) for Job BackupCatalog.2007-04-05_04.50.00

Here is the status storage:

*status storage=Autochanger-0
Connecting to Storage daemon Autochanger-0 at 172.16.10.45:9103

solweb-sd Version: 2.0.3 (06 March 2007) sparc-sun-solaris2.9 solaris
5.9
Daemon started 04-Apr-07 18:47, 7 Jobs run since started.
 Heap: bytes=562,732 max_bytes=830,666 bufs=163 max_bufs=223

Running Jobs:
Writing: Full Backup job BackupCatalog JobId=4250 Volume="Daily02-0005"
    pool="Daily02" device=""LTO-0" (/dev/rmt/0cbn)"
    spooling=0 despooling=0 despool_wait=0
    Files=0 Bytes=0 Bytes/sec=0
    FDReadSeqNo=6 in_msg=6 out_msg=4 fd=7
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
  4235  Incr        159    2.359 G  OK       04-Apr-07 13:50 Happy
  4241  Full          1    1.352 G  OK       04-Apr-07 13:59
BackupCatalog
  4242  Incr      1,613    60.10 M  OK       04-Apr-07 18:13 solweb-0
  4243  Incr         71    476.7 M  OK       05-Apr-07 03:09 solweb-0
  4245  Incr        171    327.8 M  OK       05-Apr-07 03:31 Dopey
  4247  Incr        169    316.6 M  OK       05-Apr-07 03:42 Bashful
  4249  Incr        184    419.7 M  OK       05-Apr-07 04:24 Doc
  4248  Incr        178    321.9 M  OK       05-Apr-07 13:53 Grumpy
  4244  Incr        111    2.341 G  OK       05-Apr-07 14:24 Happy
  4246  Incr        281    10.48 G  OK       05-Apr-07 16:11 Sleepy
====

Device status:
Autochanger "Autochanger-0" with devices:
   "LTO-0" (/dev/rmt/0cbn)
   "LTO-1" (/dev/rmt/1cbn)
Device "LTO-0" (/dev/rmt/0cbn) open but no Bacula volume is currently
mounted.
    Device is BLOCKED waiting for mount of volume "Daily02-0005".
    Slot 30 is loaded in drive 0.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
Device "LTO-1" (/dev/rmt/1cbn) is mounted with Volume="" Pool="Daily02"
    Slot 29 is loaded in drive 1.
    Total Bytes=309,484,643,328 Blocks=4,797,318 Bytes/block=64,512
    Positioned at File=312 Block=0
Device "FileStorage" (/tmp) is not open.
====

In Use Volume status:
Daily02-0005 on device "LTO-0" (/dev/rmt/0cbn)
====

Data spooling: 0 active jobs, 0 bytes; 7 total jobs, 10,496,052,587 max
bytes/job.
Attr spooling: 0 active jobs, 0 bytes; 7 total jobs, 87,872 max bytes.
*

The tape from slot 29 is Daily02-0005, the tape from slot 30 is
Daily01-0005. But I am not sure why the SD does not identify the tape in
LTO-1 as Daily02-0005.


Here the device configuration for the SD:

# An autochanger device with two drives
#
Autochanger {
  Name = Autochanger-0
  Device = LTO-0
  Device = LTO-1
  Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/scsi/changer/c2t0d0
}

Device {
  Name = LTO-0
  Drive Index = 0
  Media Type = LTO-2
  Archive Device = /dev/rmt/0cbn
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Autoselect = yes                      # Default is yes but not using
the both drives
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Spool Directory = /local0/BACKUP
  Maximum Spool Size=16777216000
  Maximum Job Spool Size=10485760000
  Maximum Network Buffer Size = 65536
}

Device {
  Name = LTO-1
  Drive Index = 1
  Media Type = LTO-2
  Archive Device = /dev/rmt/1cbn
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Autoselect = yes                      # Default is yes but not using
the both drives
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Spool Directory = /local3/BACKUP
  Maximum Spool Size=29360128000
  Maximum Job Spool Size=19922944000
  Maximum Network Buffer Size = 65536
}

I run two pools for incremental backups, because I was using earlier
versions of bacula that didn't support multiple device autochangers
well, When I moved to 2.0.x moved the above autochanger configuration.
In the older versions I used each drive in the autochanger independently
working the schedule so that the two drives weren't accessing the
changer device at the same time.

Any advice on how to configure the Autochanger, tape devices and even
the pools would be appreciated.

Thank you,

Tom.
----
Thomas Boyda
Consultant
Proxicom, Inc.
276-739-2314 (Desk)
http://www.proxicom.com 


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