Bacula-users

[Bacula-users] A noob and his autochanger

2009-10-07 13:49:49
Subject: [Bacula-users] A noob and his autochanger
From: Kael Fischer <kael.fischer AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 7 Oct 2009 11:45:33 -0600
Hello,

Reading the docs and experimenting has gotten me pretty far.  I'm not
having any problem backing up smallish jobs with spooling to disk and
despooling to an LTO-4 drive in an overland arcvault12.  But while
backing up a 3TB RAID array, the first tape filled, and bacula is
asking me to mount the next volume.

1) I was hoping that the next volume would be mounted w/o intervention
at the console.

2) umount; mount, fails.

How I got here:  After lots initial testing, I dropped all the catalog
tables and recreated them.  Then on the command line I rewound every
tape and 'mt weof' on each one.  Then I used "label barcodes" which
seemed to work, as "list media" cave me 11 volumes labeled with what
looked like tape bar codes (one slot in the library is reserved).

So, how can I achieve 1) and what's going on with 2)?

The system is FreeBSD 7.0 and library is an Overland ArcVault12 with a
SCSI HP LTO-4 drive.  Bacula version is 3.0.2 and the and it was an
_in_situ_ freebsd port build on the machine that is running -dir and
-sd

Here is some console output:
===
*list media
Pool: Default
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes          |
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten         |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       1 | AHK836L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    1 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       3 | AHK837L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    2 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       4 | AHK829L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    3 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       5 | AHK834L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    4 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       6 | AHK838L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    5 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       7 | AHK839L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    6 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       8 | AHK825L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    7 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|       9 | AHK835L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    8 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|      10 | AHK828L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    9 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|      11 | AHK826L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |   10 |         1 | LTO-4     |
0000-00-00 00:00:00 |
|      12 | AHK827L4   | Full      |       1 | 1,609,153,523,712 |
 325 |   94,608,000 |       1 |   11 |         1 | LTO-4     |
2009-10-07 07:03:50 |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Stage
No results to list.
Pool: BaculaCat
+---------+----------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName     | VolStatus | Enabled | VolBytes    |
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten         |
+---------+----------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      13 | BaculaCat-0013 | Append    |       1 | 224,487,416 |
 0 |   31,536,000 |       1 |    0 |         0 | File      |
2009-10-05 15:08:35 |
+---------+----------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
You have messages.
*messages
07-Oct 10:52 kf-nfs1-sd JobId 6: Please mount Volume "AHK836L4" or
label a new one for:
    Job:          R1.2009-10-05_15.48.33_05
    Storage:      "LTO-4" (/dev/nsa0)
    Pool:         Default
    Media type:   LTO-4
*umount
The defined Storage resources are:
     1: Disk
     2: LTO-4
Select Storage resource (1-2): 2
3307 Issuing autochanger "unload slot 1, drive 0" command.
3001 Device "LTO-4" (/dev/nsa0) unmounted.
You have messages.
*messages
07-Oct 11:04 kf-nfs1-sd JobId 6: Please mount Volume "AHK836L4" or
label a new one for:
    Job:          R1.2009-10-05_15.48.33_05
    Storage:      "LTO-4" (/dev/nsa0)
    Pool:         Default
    Media type:   LTO-4
*mount
The defined Storage resources are:
     1: Disk
     2: LTO-4
Select Storage resource (1-2): 2
Enter autochanger slot: 1
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3905 Device "LTO-4" (/dev/nsa0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*
=== end of console output ===

=== part of sd.conf ===
#
# Overland ARCVault12
#
Device {
  Name = LTO-4
  Media Type = LTO-4
  Archive Device = /dev/nsa0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Maximum File Size = 5GB
  Offline On Unmount = no
  Hardware End of Medium = no
  BSF at EOM = yes
  Fast Forward Space File = yes
  TWO EOF = yes
  AutoChanger = yes
  Autoselect = yes
  Maximum Spool Size = 107374000000
  Spool Directory = /r1/.stage
}

Autochanger {
  Name = ARCVault12
  Device = LTO-4
  Changer Command = "/usr/local/share/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/pass3
}


=== from dir.conf ===
Job {
  Name = "R1"
  Client = kf-nfs1-fd
  FileSet = "RAID-r1"
  JobDefs = "COMMON-SYS"
}

JobDefs {
  Name = "COMMON-SYS"
  Type = Backup
  Level = Incremental
  FileSet = "system"
  Schedule = "WeeklyCycle"
  Messages = Standard
  Pool = Default
  Storage = LTO-4
  Priority = 10
  Write Bootstrap = "/var/db/bacula/%c_%n.bsr"
  SpoolData = yes
}

Pool {
  Name = Default
  Pool Type = Backup
  Storage = LTO-4       
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = no                     # Prune expired volumes
  Volume Retention = 3 years         # one year
}


=== end ===

-Kael

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